From 90712aff296d7b7042caf3a0d812426cdf4e82ac Mon Sep 17 00:00:00 2001 From: kbearXD Date: Mon, 19 Aug 2024 17:05:02 +0800 Subject: [PATCH] FEATURE: update get trades api --- pkg/exchange/max/maxapi/v3/get_wallet_trades_request.go | 2 +- .../max/maxapi/v3/get_wallet_trades_request_requestgen.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/exchange/max/maxapi/v3/get_wallet_trades_request.go b/pkg/exchange/max/maxapi/v3/get_wallet_trades_request.go index f55701806..65271ef6e 100644 --- a/pkg/exchange/max/maxapi/v3/get_wallet_trades_request.go +++ b/pkg/exchange/max/maxapi/v3/get_wallet_trades_request.go @@ -14,7 +14,7 @@ func (s *Client) NewGetWalletTradesRequest(walletType WalletType) *GetWalletTrad return &GetWalletTradesRequest{client: s.Client, walletType: walletType} } -//go:generate GetRequest -url "/api/v3/wallet/:walletType/new/trades" -type GetWalletTradesRequest -responseType []Trade +//go:generate GetRequest -url "/api/v3/wallet/:walletType/trades" -type GetWalletTradesRequest -responseType []Trade type GetWalletTradesRequest struct { client requestgen.AuthenticatedAPIClient diff --git a/pkg/exchange/max/maxapi/v3/get_wallet_trades_request_requestgen.go b/pkg/exchange/max/maxapi/v3/get_wallet_trades_request_requestgen.go index 8edacc3a5..38790fa21 100644 --- a/pkg/exchange/max/maxapi/v3/get_wallet_trades_request_requestgen.go +++ b/pkg/exchange/max/maxapi/v3/get_wallet_trades_request_requestgen.go @@ -1,4 +1,4 @@ -// Code generated by "requestgen -debug -method GET -url /api/v3/wallet/:walletType/new/trades -type GetWalletTradesRequest -responseType []"github.com/c9s/bbgo/pkg/exchange/max/maxapi/v3".Trade"; DO NOT EDIT. +// Code generated by "requestgen -debug -method GET -url /api/v3/wallet/:walletType/trades -type GetWalletTradesRequest -responseType []"github.com/c9s/bbgo/pkg/exchange/max/maxapi/v3".Trade"; DO NOT EDIT. package v3 @@ -216,7 +216,7 @@ func (g *GetWalletTradesRequest) Do(ctx context.Context) ([]Trade, error) { return nil, err } - apiURL := "/api/v3/wallet/:walletType/new/trades" + apiURL := "/api/v3/wallet/:walletType/trades" slugs, err := g.GetSlugsMap() if err != nil { return nil, err