FEATURE: [max] update max api url

This commit is contained in:
kbearXD 2024-07-15 18:04:44 +08:00
parent 015c5fc9a9
commit 1c28fd3b44
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ func (s *Client) NewGetWalletOpenOrdersRequest(walletType WalletType) *GetWallet
return &GetWalletOpenOrdersRequest{client: s.Client, walletType: walletType}
}
//go:generate GetRequest -url "/api/v3/wallet/:walletType/orders/new/open" -type GetWalletOpenOrdersRequest -responseType []Order
//go:generate GetRequest -url "/api/v3/wallet/:walletType/orders/open" -type GetWalletOpenOrdersRequest -responseType []Order
type GetWalletOpenOrdersRequest struct {
client requestgen.AuthenticatedAPIClient

View File

@ -1,4 +1,4 @@
// Code generated by "requestgen -method GET -url /api/v3/wallet/:walletType/orders/new/open -type GetWalletOpenOrdersRequest -responseType []Order"; DO NOT EDIT.
// Code generated by "requestgen -method GET -url /api/v3/wallet/:walletType/orders/open -type GetWalletOpenOrdersRequest -responseType []Order"; DO NOT EDIT.
package v3
@ -193,7 +193,7 @@ func (g *GetWalletOpenOrdersRequest) Do(ctx context.Context) ([]max.Order, error
return nil, err
}
apiURL := "/api/v3/wallet/:walletType/orders/new/open"
apiURL := "/api/v3/wallet/:walletType/orders/open"
slugs, err := g.GetSlugsMap()
if err != nil {
return nil, err