Merge pull request #1669 from c9s/feature/max/update-open-order-api

FEATURE: [max] update max api url
This commit is contained in:
kbearXD 2024-07-23 14:39:53 +08:00 committed by GitHub
commit acd908064c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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} 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 { type GetWalletOpenOrdersRequest struct {
client requestgen.AuthenticatedAPIClient 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 package v3
@ -193,7 +193,7 @@ func (g *GetWalletOpenOrdersRequest) Do(ctx context.Context) ([]max.Order, error
return nil, err return nil, err
} }
apiURL := "/api/v3/wallet/:walletType/orders/new/open" apiURL := "/api/v3/wallet/:walletType/orders/open"
slugs, err := g.GetSlugsMap() slugs, err := g.GetSlugsMap()
if err != nil { if err != nil {
return nil, err return nil, err