From cc8821bb66035ebdc6bb2fe6378e38fa76e8e420 Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 8 Jul 2022 20:47:51 +0800 Subject: [PATCH] update max order api path --- pkg/exchange/max/maxapi/v3/create_wallet_order_request.go | 2 +- .../max/maxapi/v3/create_wallet_order_request_requestgen.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/exchange/max/maxapi/v3/create_wallet_order_request.go b/pkg/exchange/max/maxapi/v3/create_wallet_order_request.go index 736c540cc..93cc96a0f 100644 --- a/pkg/exchange/max/maxapi/v3/create_wallet_order_request.go +++ b/pkg/exchange/max/maxapi/v3/create_wallet_order_request.go @@ -6,7 +6,7 @@ import "github.com/c9s/requestgen" //go:generate -command PostRequest requestgen -method POST //go:generate -command DeleteRequest requestgen -method DELETE -//go:generate PostRequest -url "/api/v3/wallet/:walletType/orders" -type CreateWalletOrderRequest -responseType .Order +//go:generate PostRequest -url "/api/v3/wallet/:walletType/order" -type CreateWalletOrderRequest -responseType .Order type CreateWalletOrderRequest struct { client requestgen.AuthenticatedAPIClient diff --git a/pkg/exchange/max/maxapi/v3/create_wallet_order_request_requestgen.go b/pkg/exchange/max/maxapi/v3/create_wallet_order_request_requestgen.go index 1a59fba9a..6251ec027 100644 --- a/pkg/exchange/max/maxapi/v3/create_wallet_order_request_requestgen.go +++ b/pkg/exchange/max/maxapi/v3/create_wallet_order_request_requestgen.go @@ -1,4 +1,4 @@ -// Code generated by "requestgen -method POST -url /api/v3/wallet/:walletType/orders -type CreateWalletOrderRequest -responseType .Order"; DO NOT EDIT. +// Code generated by "requestgen -method POST -url /api/v3/wallet/:walletType/order -type CreateWalletOrderRequest -responseType .Order"; DO NOT EDIT. package v3 @@ -244,7 +244,7 @@ func (c *CreateWalletOrderRequest) Do(ctx context.Context) (*max.Order, error) { } query := url.Values{} - apiURL := "/api/v3/wallet/:walletType/orders" + apiURL := "/api/v3/wallet/:walletType/order" slugs, err := c.GetSlugsMap() if err != nil { return nil, err