Documentation ¶
Index ¶
- type ADRatio
- type Account
- type CancelOrderRequest
- func (c *CancelOrderRequest) ClientOrderID(clientOrderID string) *CancelOrderRequest
- func (c *CancelOrderRequest) Do(ctx context.Context) (*max.Order, error)
- func (c *CancelOrderRequest) GetParameters() (map[string]interface{}, error)
- func (c *CancelOrderRequest) GetParametersJSON() ([]byte, error)
- func (c *CancelOrderRequest) GetParametersQuery() (url.Values, error)
- func (c *CancelOrderRequest) GetQueryParameters() (url.Values, error)
- func (c *CancelOrderRequest) GetSlugParameters() (map[string]interface{}, error)
- func (c *CancelOrderRequest) GetSlugsMap() (map[string]string, error)
- func (c *CancelOrderRequest) Id(id uint64) *CancelOrderRequest
- type CancelWalletOrderAllRequest
- func (c *CancelWalletOrderAllRequest) Do(ctx context.Context) ([]OrderCancelResponse, error)
- func (c *CancelWalletOrderAllRequest) GetParameters() (map[string]interface{}, error)
- func (c *CancelWalletOrderAllRequest) GetParametersJSON() ([]byte, error)
- func (c *CancelWalletOrderAllRequest) GetParametersQuery() (url.Values, error)
- func (c *CancelWalletOrderAllRequest) GetQueryParameters() (url.Values, error)
- func (c *CancelWalletOrderAllRequest) GetSlugParameters() (map[string]interface{}, error)
- func (c *CancelWalletOrderAllRequest) GetSlugsMap() (map[string]string, error)
- func (c *CancelWalletOrderAllRequest) GroupID(groupID uint32) *CancelWalletOrderAllRequest
- func (c *CancelWalletOrderAllRequest) Market(market string) *CancelWalletOrderAllRequest
- func (c *CancelWalletOrderAllRequest) Side(side string) *CancelWalletOrderAllRequest
- func (c *CancelWalletOrderAllRequest) WalletType(walletType max.WalletType) *CancelWalletOrderAllRequest
- type Client
- func (s *Client) NewCancelOrderRequest() *CancelOrderRequest
- func (s *Client) NewCancelWalletOrderAllRequest(walletType WalletType) *CancelWalletOrderAllRequest
- func (s *Client) NewCreateWalletOrderRequest(walletType WalletType) *CreateWalletOrderRequest
- func (s *Client) NewGetMarginADRatioRequest() *GetMarginADRatioRequest
- func (s *Client) NewGetMarginBorrowingLimitsRequest() *GetMarginBorrowingLimitsRequest
- func (s *Client) NewGetMarginInterestHistoryRequest(currency string) *GetMarginInterestHistoryRequest
- func (s *Client) NewGetMarginInterestRatesRequest() *GetMarginInterestRatesRequest
- func (s *Client) NewGetMarginLiquidationHistoryRequest() *GetMarginLiquidationHistoryRequest
- func (s *Client) NewGetMarginLoanHistoryRequest() *GetMarginLoanHistoryRequest
- func (s *Client) NewGetOrderRequest() *GetOrderRequest
- func (s *Client) NewGetOrderTradesRequest() *GetOrderTradesRequest
- func (s *Client) NewGetWalletAccountsRequest(walletType WalletType) *GetWalletAccountsRequest
- func (s *Client) NewGetWalletOpenOrdersRequest(walletType WalletType) *GetWalletOpenOrdersRequest
- func (s *Client) NewGetWalletOrderHistoryRequest(walletType WalletType) *GetWalletOrderHistoryRequest
- func (s *Client) NewGetWalletTradesRequest(walletType WalletType) *GetWalletTradesRequest
- func (s *Client) NewMarginLoanRequest() *MarginLoanRequest
- func (s *Client) NewMarginRepayRequest() *MarginRepayRequest
- type CreateWalletOrderRequest
- func (c *CreateWalletOrderRequest) ClientOrderID(clientOrderID string) *CreateWalletOrderRequest
- func (c *CreateWalletOrderRequest) Do(ctx context.Context) (*max.Order, error)
- func (c *CreateWalletOrderRequest) GetParameters() (map[string]interface{}, error)
- func (c *CreateWalletOrderRequest) GetParametersJSON() ([]byte, error)
- func (c *CreateWalletOrderRequest) GetParametersQuery() (url.Values, error)
- func (c *CreateWalletOrderRequest) GetQueryParameters() (url.Values, error)
- func (c *CreateWalletOrderRequest) GetSlugParameters() (map[string]interface{}, error)
- func (c *CreateWalletOrderRequest) GetSlugsMap() (map[string]string, error)
- func (c *CreateWalletOrderRequest) GroupID(groupID string) *CreateWalletOrderRequest
- func (c *CreateWalletOrderRequest) Market(market string) *CreateWalletOrderRequest
- func (c *CreateWalletOrderRequest) OrderType(orderType max.OrderType) *CreateWalletOrderRequest
- func (c *CreateWalletOrderRequest) Price(price string) *CreateWalletOrderRequest
- func (c *CreateWalletOrderRequest) Side(side string) *CreateWalletOrderRequest
- func (c *CreateWalletOrderRequest) StopPrice(stopPrice string) *CreateWalletOrderRequest
- func (c *CreateWalletOrderRequest) Volume(volume string) *CreateWalletOrderRequest
- func (c *CreateWalletOrderRequest) WalletType(walletType max.WalletType) *CreateWalletOrderRequest
- type GetMarginADRatioRequest
- func (g *GetMarginADRatioRequest) Do(ctx context.Context) (*ADRatio, error)
- func (g *GetMarginADRatioRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetMarginADRatioRequest) GetParametersJSON() ([]byte, error)
- func (g *GetMarginADRatioRequest) GetParametersQuery() (url.Values, error)
- func (g *GetMarginADRatioRequest) GetQueryParameters() (url.Values, error)
- func (g *GetMarginADRatioRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetMarginADRatioRequest) GetSlugsMap() (map[string]string, error)
- type GetMarginBorrowingLimitsRequest
- func (g *GetMarginBorrowingLimitsRequest) Do(ctx context.Context) (*MarginBorrowingLimitMap, error)
- func (g *GetMarginBorrowingLimitsRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetMarginBorrowingLimitsRequest) GetParametersJSON() ([]byte, error)
- func (g *GetMarginBorrowingLimitsRequest) GetParametersQuery() (url.Values, error)
- func (g *GetMarginBorrowingLimitsRequest) GetQueryParameters() (url.Values, error)
- func (g *GetMarginBorrowingLimitsRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetMarginBorrowingLimitsRequest) GetSlugsMap() (map[string]string, error)
- type GetMarginInterestHistoryRequest
- func (g *GetMarginInterestHistoryRequest) Currency(currency string) *GetMarginInterestHistoryRequest
- func (g *GetMarginInterestHistoryRequest) Do(ctx context.Context) ([]MarginInterestRecord, error)
- func (g *GetMarginInterestHistoryRequest) EndTime(endTime time.Time) *GetMarginInterestHistoryRequest
- func (g *GetMarginInterestHistoryRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetMarginInterestHistoryRequest) GetParametersJSON() ([]byte, error)
- func (g *GetMarginInterestHistoryRequest) GetParametersQuery() (url.Values, error)
- func (g *GetMarginInterestHistoryRequest) GetQueryParameters() (url.Values, error)
- func (g *GetMarginInterestHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetMarginInterestHistoryRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetMarginInterestHistoryRequest) Limit(limit int) *GetMarginInterestHistoryRequest
- func (g *GetMarginInterestHistoryRequest) StartTime(startTime time.Time) *GetMarginInterestHistoryRequest
- type GetMarginInterestRatesRequest
- func (g *GetMarginInterestRatesRequest) Do(ctx context.Context) (MarginInterestRateMap, error)
- func (g *GetMarginInterestRatesRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetMarginInterestRatesRequest) GetParametersJSON() ([]byte, error)
- func (g *GetMarginInterestRatesRequest) GetParametersQuery() (url.Values, error)
- func (g *GetMarginInterestRatesRequest) GetQueryParameters() (url.Values, error)
- func (g *GetMarginInterestRatesRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetMarginInterestRatesRequest) GetSlugsMap() (map[string]string, error)
- type GetMarginLiquidationHistoryRequest
- func (g *GetMarginLiquidationHistoryRequest) Do(ctx context.Context) ([]LiquidationRecord, error)
- func (g *GetMarginLiquidationHistoryRequest) EndTime(endTime time.Time) *GetMarginLiquidationHistoryRequest
- func (g *GetMarginLiquidationHistoryRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetMarginLiquidationHistoryRequest) GetParametersJSON() ([]byte, error)
- func (g *GetMarginLiquidationHistoryRequest) GetParametersQuery() (url.Values, error)
- func (g *GetMarginLiquidationHistoryRequest) GetQueryParameters() (url.Values, error)
- func (g *GetMarginLiquidationHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetMarginLiquidationHistoryRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetMarginLiquidationHistoryRequest) Limit(limit int) *GetMarginLiquidationHistoryRequest
- func (g *GetMarginLiquidationHistoryRequest) StartTime(startTime time.Time) *GetMarginLiquidationHistoryRequest
- type GetMarginLoanHistoryRequest
- func (g *GetMarginLoanHistoryRequest) Currency(currency string) *GetMarginLoanHistoryRequest
- func (g *GetMarginLoanHistoryRequest) Do(ctx context.Context) ([]LoanRecord, error)
- func (g *GetMarginLoanHistoryRequest) EndTime(endTime time.Time) *GetMarginLoanHistoryRequest
- func (g *GetMarginLoanHistoryRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetMarginLoanHistoryRequest) GetParametersJSON() ([]byte, error)
- func (g *GetMarginLoanHistoryRequest) GetParametersQuery() (url.Values, error)
- func (g *GetMarginLoanHistoryRequest) GetQueryParameters() (url.Values, error)
- func (g *GetMarginLoanHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetMarginLoanHistoryRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetMarginLoanHistoryRequest) Limit(limit int) *GetMarginLoanHistoryRequest
- func (g *GetMarginLoanHistoryRequest) StartTime(startTime time.Time) *GetMarginLoanHistoryRequest
- type GetMarginRepaymentHistoryRequest
- func (g *GetMarginRepaymentHistoryRequest) Currency(currency string) *GetMarginRepaymentHistoryRequest
- func (g *GetMarginRepaymentHistoryRequest) Do(ctx context.Context) ([]RepaymentRecord, error)
- func (g *GetMarginRepaymentHistoryRequest) EndTime(endTime time.Time) *GetMarginRepaymentHistoryRequest
- func (g *GetMarginRepaymentHistoryRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetMarginRepaymentHistoryRequest) GetParametersJSON() ([]byte, error)
- func (g *GetMarginRepaymentHistoryRequest) GetParametersQuery() (url.Values, error)
- func (g *GetMarginRepaymentHistoryRequest) GetQueryParameters() (url.Values, error)
- func (g *GetMarginRepaymentHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetMarginRepaymentHistoryRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetMarginRepaymentHistoryRequest) Limit(limit int) *GetMarginRepaymentHistoryRequest
- func (g *GetMarginRepaymentHistoryRequest) StartTime(startTime time.Time) *GetMarginRepaymentHistoryRequest
- type GetOrderRequest
- func (g *GetOrderRequest) ClientOrderID(clientOrderID string) *GetOrderRequest
- func (g *GetOrderRequest) Do(ctx context.Context) (*max.Order, error)
- func (g *GetOrderRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetOrderRequest) GetParametersJSON() ([]byte, error)
- func (g *GetOrderRequest) GetParametersQuery() (url.Values, error)
- func (g *GetOrderRequest) GetQueryParameters() (url.Values, error)
- func (g *GetOrderRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetOrderRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetOrderRequest) Id(id uint64) *GetOrderRequest
- type GetOrderTradesRequest
- func (g *GetOrderTradesRequest) ClientOrderID(clientOrderID string) *GetOrderTradesRequest
- func (g *GetOrderTradesRequest) Do(ctx context.Context) ([]Trade, error)
- func (g *GetOrderTradesRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetOrderTradesRequest) GetParametersJSON() ([]byte, error)
- func (g *GetOrderTradesRequest) GetParametersQuery() (url.Values, error)
- func (g *GetOrderTradesRequest) GetQueryParameters() (url.Values, error)
- func (g *GetOrderTradesRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetOrderTradesRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetOrderTradesRequest) OrderID(orderID uint64) *GetOrderTradesRequest
- type GetWalletAccountsRequest
- func (g *GetWalletAccountsRequest) Currency(currency string) *GetWalletAccountsRequest
- func (g *GetWalletAccountsRequest) Do(ctx context.Context) ([]max.Account, error)
- func (g *GetWalletAccountsRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetWalletAccountsRequest) GetParametersJSON() ([]byte, error)
- func (g *GetWalletAccountsRequest) GetParametersQuery() (url.Values, error)
- func (g *GetWalletAccountsRequest) GetQueryParameters() (url.Values, error)
- func (g *GetWalletAccountsRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetWalletAccountsRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetWalletAccountsRequest) WalletType(walletType max.WalletType) *GetWalletAccountsRequest
- type GetWalletOpenOrdersRequest
- func (g *GetWalletOpenOrdersRequest) Do(ctx context.Context) ([]max.Order, error)
- func (g *GetWalletOpenOrdersRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetWalletOpenOrdersRequest) GetParametersJSON() ([]byte, error)
- func (g *GetWalletOpenOrdersRequest) GetParametersQuery() (url.Values, error)
- func (g *GetWalletOpenOrdersRequest) GetQueryParameters() (url.Values, error)
- func (g *GetWalletOpenOrdersRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetWalletOpenOrdersRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetWalletOpenOrdersRequest) Market(market string) *GetWalletOpenOrdersRequest
- func (g *GetWalletOpenOrdersRequest) WalletType(walletType max.WalletType) *GetWalletOpenOrdersRequest
- type GetWalletOrderHistoryRequest
- func (g *GetWalletOrderHistoryRequest) Do(ctx context.Context) ([]max.Order, error)
- func (g *GetWalletOrderHistoryRequest) FromID(fromID uint64) *GetWalletOrderHistoryRequest
- func (g *GetWalletOrderHistoryRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetWalletOrderHistoryRequest) GetParametersJSON() ([]byte, error)
- func (g *GetWalletOrderHistoryRequest) GetParametersQuery() (url.Values, error)
- func (g *GetWalletOrderHistoryRequest) GetQueryParameters() (url.Values, error)
- func (g *GetWalletOrderHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetWalletOrderHistoryRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetWalletOrderHistoryRequest) Limit(limit uint) *GetWalletOrderHistoryRequest
- func (g *GetWalletOrderHistoryRequest) Market(market string) *GetWalletOrderHistoryRequest
- func (g *GetWalletOrderHistoryRequest) WalletType(walletType max.WalletType) *GetWalletOrderHistoryRequest
- type GetWalletTradesRequest
- func (g *GetWalletTradesRequest) Do(ctx context.Context) ([]Trade, error)
- func (g *GetWalletTradesRequest) EndTime(endTime time.Time) *GetWalletTradesRequest
- func (g *GetWalletTradesRequest) From(from uint64) *GetWalletTradesRequest
- func (g *GetWalletTradesRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetWalletTradesRequest) GetParametersJSON() ([]byte, error)
- func (g *GetWalletTradesRequest) GetParametersQuery() (url.Values, error)
- func (g *GetWalletTradesRequest) GetQueryParameters() (url.Values, error)
- func (g *GetWalletTradesRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetWalletTradesRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetWalletTradesRequest) Limit(limit uint64) *GetWalletTradesRequest
- func (g *GetWalletTradesRequest) Market(market string) *GetWalletTradesRequest
- func (g *GetWalletTradesRequest) StartTime(startTime time.Time) *GetWalletTradesRequest
- func (g *GetWalletTradesRequest) WalletType(walletType max.WalletType) *GetWalletTradesRequest
- type LiquidationRecord
- type LiquidationState
- type LoanRecord
- type MarginBorrowingLimitMap
- type MarginInterestRate
- type MarginInterestRateMap
- type MarginInterestRecord
- type MarginLoanRequest
- func (m *MarginLoanRequest) Amount(amount string) *MarginLoanRequest
- func (m *MarginLoanRequest) Currency(currency string) *MarginLoanRequest
- func (m *MarginLoanRequest) Do(ctx context.Context) (*LoanRecord, error)
- func (m *MarginLoanRequest) GetParameters() (map[string]interface{}, error)
- func (m *MarginLoanRequest) GetParametersJSON() ([]byte, error)
- func (m *MarginLoanRequest) GetParametersQuery() (url.Values, error)
- func (m *MarginLoanRequest) GetQueryParameters() (url.Values, error)
- func (m *MarginLoanRequest) GetSlugParameters() (map[string]interface{}, error)
- func (m *MarginLoanRequest) GetSlugsMap() (map[string]string, error)
- type MarginRepayRequest
- func (m *MarginRepayRequest) Amount(amount string) *MarginRepayRequest
- func (m *MarginRepayRequest) Currency(currency string) *MarginRepayRequest
- func (m *MarginRepayRequest) Do(ctx context.Context) (*RepaymentRecord, error)
- func (m *MarginRepayRequest) GetParameters() (map[string]interface{}, error)
- func (m *MarginRepayRequest) GetParametersJSON() ([]byte, error)
- func (m *MarginRepayRequest) GetParametersQuery() (url.Values, error)
- func (m *MarginRepayRequest) GetQueryParameters() (url.Values, error)
- func (m *MarginRepayRequest) GetSlugParameters() (map[string]interface{}, error)
- func (m *MarginRepayRequest) GetSlugsMap() (map[string]string, error)
- type MarginService
- type Order
- type OrderCancelResponse
- type OrderType
- type RepaymentRecord
- type Trade
- type WalletType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ADRatio ¶
type ADRatio struct { AdRatio fixedpoint.Value `json:"ad_ratio"` AssetInUsdt fixedpoint.Value `json:"asset_in_usdt"` DebtInUsdt fixedpoint.Value `json:"debt_in_usdt"` }
type CancelOrderRequest ¶
type CancelOrderRequest struct {
// contains filtered or unexported fields
}
func (*CancelOrderRequest) ClientOrderID ¶
func (c *CancelOrderRequest) ClientOrderID(clientOrderID string) *CancelOrderRequest
func (*CancelOrderRequest) Do ¶
func (c *CancelOrderRequest) Do(ctx context.Context) (*max.Order, error)
func (*CancelOrderRequest) GetParameters ¶
func (c *CancelOrderRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*CancelOrderRequest) GetParametersJSON ¶
func (c *CancelOrderRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*CancelOrderRequest) GetParametersQuery ¶
func (c *CancelOrderRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*CancelOrderRequest) GetQueryParameters ¶
func (c *CancelOrderRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*CancelOrderRequest) GetSlugParameters ¶
func (c *CancelOrderRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*CancelOrderRequest) GetSlugsMap ¶
func (c *CancelOrderRequest) GetSlugsMap() (map[string]string, error)
func (*CancelOrderRequest) Id ¶
func (c *CancelOrderRequest) Id(id uint64) *CancelOrderRequest
type CancelWalletOrderAllRequest ¶
type CancelWalletOrderAllRequest struct {
// contains filtered or unexported fields
}
func (*CancelWalletOrderAllRequest) Do ¶
func (c *CancelWalletOrderAllRequest) Do(ctx context.Context) ([]OrderCancelResponse, error)
func (*CancelWalletOrderAllRequest) GetParameters ¶
func (c *CancelWalletOrderAllRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*CancelWalletOrderAllRequest) GetParametersJSON ¶
func (c *CancelWalletOrderAllRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*CancelWalletOrderAllRequest) GetParametersQuery ¶
func (c *CancelWalletOrderAllRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*CancelWalletOrderAllRequest) GetQueryParameters ¶
func (c *CancelWalletOrderAllRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*CancelWalletOrderAllRequest) GetSlugParameters ¶
func (c *CancelWalletOrderAllRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*CancelWalletOrderAllRequest) GetSlugsMap ¶
func (c *CancelWalletOrderAllRequest) GetSlugsMap() (map[string]string, error)
func (*CancelWalletOrderAllRequest) GroupID ¶
func (c *CancelWalletOrderAllRequest) GroupID(groupID uint32) *CancelWalletOrderAllRequest
func (*CancelWalletOrderAllRequest) Market ¶
func (c *CancelWalletOrderAllRequest) Market(market string) *CancelWalletOrderAllRequest
func (*CancelWalletOrderAllRequest) Side ¶
func (c *CancelWalletOrderAllRequest) Side(side string) *CancelWalletOrderAllRequest
func (*CancelWalletOrderAllRequest) WalletType ¶
func (c *CancelWalletOrderAllRequest) WalletType(walletType max.WalletType) *CancelWalletOrderAllRequest
type Client ¶ added in v1.48.0
type Client struct {
Client requestgen.AuthenticatedAPIClient
}
func (*Client) NewCancelOrderRequest ¶ added in v1.48.0
func (s *Client) NewCancelOrderRequest() *CancelOrderRequest
func (*Client) NewCancelWalletOrderAllRequest ¶ added in v1.48.0
func (s *Client) NewCancelWalletOrderAllRequest(walletType WalletType) *CancelWalletOrderAllRequest
func (*Client) NewCreateWalletOrderRequest ¶ added in v1.48.0
func (s *Client) NewCreateWalletOrderRequest(walletType WalletType) *CreateWalletOrderRequest
func (*Client) NewGetMarginADRatioRequest ¶ added in v1.48.0
func (s *Client) NewGetMarginADRatioRequest() *GetMarginADRatioRequest
func (*Client) NewGetMarginBorrowingLimitsRequest ¶ added in v1.48.0
func (s *Client) NewGetMarginBorrowingLimitsRequest() *GetMarginBorrowingLimitsRequest
func (*Client) NewGetMarginInterestHistoryRequest ¶ added in v1.48.0
func (s *Client) NewGetMarginInterestHistoryRequest(currency string) *GetMarginInterestHistoryRequest
func (*Client) NewGetMarginInterestRatesRequest ¶ added in v1.48.0
func (s *Client) NewGetMarginInterestRatesRequest() *GetMarginInterestRatesRequest
func (*Client) NewGetMarginLiquidationHistoryRequest ¶ added in v1.48.0
func (s *Client) NewGetMarginLiquidationHistoryRequest() *GetMarginLiquidationHistoryRequest
func (*Client) NewGetMarginLoanHistoryRequest ¶ added in v1.48.0
func (s *Client) NewGetMarginLoanHistoryRequest() *GetMarginLoanHistoryRequest
func (*Client) NewGetOrderRequest ¶ added in v1.48.0
func (s *Client) NewGetOrderRequest() *GetOrderRequest
func (*Client) NewGetOrderTradesRequest ¶ added in v1.48.0
func (s *Client) NewGetOrderTradesRequest() *GetOrderTradesRequest
func (*Client) NewGetWalletAccountsRequest ¶ added in v1.48.0
func (s *Client) NewGetWalletAccountsRequest(walletType WalletType) *GetWalletAccountsRequest
func (*Client) NewGetWalletOpenOrdersRequest ¶ added in v1.48.0
func (s *Client) NewGetWalletOpenOrdersRequest(walletType WalletType) *GetWalletOpenOrdersRequest
func (*Client) NewGetWalletOrderHistoryRequest ¶ added in v1.48.0
func (s *Client) NewGetWalletOrderHistoryRequest(walletType WalletType) *GetWalletOrderHistoryRequest
func (*Client) NewGetWalletTradesRequest ¶ added in v1.48.0
func (s *Client) NewGetWalletTradesRequest(walletType WalletType) *GetWalletTradesRequest
func (*Client) NewMarginLoanRequest ¶ added in v1.48.0
func (s *Client) NewMarginLoanRequest() *MarginLoanRequest
func (*Client) NewMarginRepayRequest ¶ added in v1.48.0
func (s *Client) NewMarginRepayRequest() *MarginRepayRequest
type CreateWalletOrderRequest ¶
type CreateWalletOrderRequest struct {
// contains filtered or unexported fields
}
func (*CreateWalletOrderRequest) ClientOrderID ¶
func (c *CreateWalletOrderRequest) ClientOrderID(clientOrderID string) *CreateWalletOrderRequest
func (*CreateWalletOrderRequest) Do ¶
func (c *CreateWalletOrderRequest) Do(ctx context.Context) (*max.Order, error)
func (*CreateWalletOrderRequest) GetParameters ¶
func (c *CreateWalletOrderRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*CreateWalletOrderRequest) GetParametersJSON ¶
func (c *CreateWalletOrderRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*CreateWalletOrderRequest) GetParametersQuery ¶
func (c *CreateWalletOrderRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*CreateWalletOrderRequest) GetQueryParameters ¶
func (c *CreateWalletOrderRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*CreateWalletOrderRequest) GetSlugParameters ¶
func (c *CreateWalletOrderRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*CreateWalletOrderRequest) GetSlugsMap ¶
func (c *CreateWalletOrderRequest) GetSlugsMap() (map[string]string, error)
func (*CreateWalletOrderRequest) GroupID ¶
func (c *CreateWalletOrderRequest) GroupID(groupID string) *CreateWalletOrderRequest
func (*CreateWalletOrderRequest) Market ¶
func (c *CreateWalletOrderRequest) Market(market string) *CreateWalletOrderRequest
func (*CreateWalletOrderRequest) OrderType ¶
func (c *CreateWalletOrderRequest) OrderType(orderType max.OrderType) *CreateWalletOrderRequest
func (*CreateWalletOrderRequest) Price ¶
func (c *CreateWalletOrderRequest) Price(price string) *CreateWalletOrderRequest
func (*CreateWalletOrderRequest) Side ¶
func (c *CreateWalletOrderRequest) Side(side string) *CreateWalletOrderRequest
func (*CreateWalletOrderRequest) StopPrice ¶
func (c *CreateWalletOrderRequest) StopPrice(stopPrice string) *CreateWalletOrderRequest
func (*CreateWalletOrderRequest) Volume ¶
func (c *CreateWalletOrderRequest) Volume(volume string) *CreateWalletOrderRequest
func (*CreateWalletOrderRequest) WalletType ¶
func (c *CreateWalletOrderRequest) WalletType(walletType max.WalletType) *CreateWalletOrderRequest
type GetMarginADRatioRequest ¶
type GetMarginADRatioRequest struct {
// contains filtered or unexported fields
}
func (*GetMarginADRatioRequest) Do ¶
func (g *GetMarginADRatioRequest) Do(ctx context.Context) (*ADRatio, error)
func (*GetMarginADRatioRequest) GetParameters ¶
func (g *GetMarginADRatioRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetMarginADRatioRequest) GetParametersJSON ¶
func (g *GetMarginADRatioRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetMarginADRatioRequest) GetParametersQuery ¶
func (g *GetMarginADRatioRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetMarginADRatioRequest) GetQueryParameters ¶
func (g *GetMarginADRatioRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetMarginADRatioRequest) GetSlugParameters ¶
func (g *GetMarginADRatioRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetMarginADRatioRequest) GetSlugsMap ¶
func (g *GetMarginADRatioRequest) GetSlugsMap() (map[string]string, error)
type GetMarginBorrowingLimitsRequest ¶
type GetMarginBorrowingLimitsRequest struct {
// contains filtered or unexported fields
}
func (*GetMarginBorrowingLimitsRequest) Do ¶
func (g *GetMarginBorrowingLimitsRequest) Do(ctx context.Context) (*MarginBorrowingLimitMap, error)
func (*GetMarginBorrowingLimitsRequest) GetParameters ¶
func (g *GetMarginBorrowingLimitsRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetMarginBorrowingLimitsRequest) GetParametersJSON ¶
func (g *GetMarginBorrowingLimitsRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetMarginBorrowingLimitsRequest) GetParametersQuery ¶
func (g *GetMarginBorrowingLimitsRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetMarginBorrowingLimitsRequest) GetQueryParameters ¶
func (g *GetMarginBorrowingLimitsRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetMarginBorrowingLimitsRequest) GetSlugParameters ¶
func (g *GetMarginBorrowingLimitsRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetMarginBorrowingLimitsRequest) GetSlugsMap ¶
func (g *GetMarginBorrowingLimitsRequest) GetSlugsMap() (map[string]string, error)
type GetMarginInterestHistoryRequest ¶
type GetMarginInterestHistoryRequest struct {
// contains filtered or unexported fields
}
func (*GetMarginInterestHistoryRequest) Currency ¶
func (g *GetMarginInterestHistoryRequest) Currency(currency string) *GetMarginInterestHistoryRequest
func (*GetMarginInterestHistoryRequest) Do ¶
func (g *GetMarginInterestHistoryRequest) Do(ctx context.Context) ([]MarginInterestRecord, error)
func (*GetMarginInterestHistoryRequest) EndTime ¶
func (g *GetMarginInterestHistoryRequest) EndTime(endTime time.Time) *GetMarginInterestHistoryRequest
func (*GetMarginInterestHistoryRequest) GetParameters ¶
func (g *GetMarginInterestHistoryRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetMarginInterestHistoryRequest) GetParametersJSON ¶
func (g *GetMarginInterestHistoryRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetMarginInterestHistoryRequest) GetParametersQuery ¶
func (g *GetMarginInterestHistoryRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetMarginInterestHistoryRequest) GetQueryParameters ¶
func (g *GetMarginInterestHistoryRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetMarginInterestHistoryRequest) GetSlugParameters ¶
func (g *GetMarginInterestHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetMarginInterestHistoryRequest) GetSlugsMap ¶
func (g *GetMarginInterestHistoryRequest) GetSlugsMap() (map[string]string, error)
func (*GetMarginInterestHistoryRequest) Limit ¶
func (g *GetMarginInterestHistoryRequest) Limit(limit int) *GetMarginInterestHistoryRequest
func (*GetMarginInterestHistoryRequest) StartTime ¶
func (g *GetMarginInterestHistoryRequest) StartTime(startTime time.Time) *GetMarginInterestHistoryRequest
type GetMarginInterestRatesRequest ¶
type GetMarginInterestRatesRequest struct {
// contains filtered or unexported fields
}
func (*GetMarginInterestRatesRequest) Do ¶
func (g *GetMarginInterestRatesRequest) Do(ctx context.Context) (MarginInterestRateMap, error)
func (*GetMarginInterestRatesRequest) GetParameters ¶
func (g *GetMarginInterestRatesRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetMarginInterestRatesRequest) GetParametersJSON ¶
func (g *GetMarginInterestRatesRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetMarginInterestRatesRequest) GetParametersQuery ¶
func (g *GetMarginInterestRatesRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetMarginInterestRatesRequest) GetQueryParameters ¶
func (g *GetMarginInterestRatesRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetMarginInterestRatesRequest) GetSlugParameters ¶
func (g *GetMarginInterestRatesRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetMarginInterestRatesRequest) GetSlugsMap ¶
func (g *GetMarginInterestRatesRequest) GetSlugsMap() (map[string]string, error)
type GetMarginLiquidationHistoryRequest ¶
type GetMarginLiquidationHistoryRequest struct {
// contains filtered or unexported fields
}
func (*GetMarginLiquidationHistoryRequest) Do ¶
func (g *GetMarginLiquidationHistoryRequest) Do(ctx context.Context) ([]LiquidationRecord, error)
func (*GetMarginLiquidationHistoryRequest) EndTime ¶
func (g *GetMarginLiquidationHistoryRequest) EndTime(endTime time.Time) *GetMarginLiquidationHistoryRequest
func (*GetMarginLiquidationHistoryRequest) GetParameters ¶
func (g *GetMarginLiquidationHistoryRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetMarginLiquidationHistoryRequest) GetParametersJSON ¶
func (g *GetMarginLiquidationHistoryRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetMarginLiquidationHistoryRequest) GetParametersQuery ¶
func (g *GetMarginLiquidationHistoryRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetMarginLiquidationHistoryRequest) GetQueryParameters ¶
func (g *GetMarginLiquidationHistoryRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetMarginLiquidationHistoryRequest) GetSlugParameters ¶
func (g *GetMarginLiquidationHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetMarginLiquidationHistoryRequest) GetSlugsMap ¶
func (g *GetMarginLiquidationHistoryRequest) GetSlugsMap() (map[string]string, error)
func (*GetMarginLiquidationHistoryRequest) Limit ¶
func (g *GetMarginLiquidationHistoryRequest) Limit(limit int) *GetMarginLiquidationHistoryRequest
func (*GetMarginLiquidationHistoryRequest) StartTime ¶
func (g *GetMarginLiquidationHistoryRequest) StartTime(startTime time.Time) *GetMarginLiquidationHistoryRequest
type GetMarginLoanHistoryRequest ¶
type GetMarginLoanHistoryRequest struct {
// contains filtered or unexported fields
}
func (*GetMarginLoanHistoryRequest) Currency ¶
func (g *GetMarginLoanHistoryRequest) Currency(currency string) *GetMarginLoanHistoryRequest
func (*GetMarginLoanHistoryRequest) Do ¶
func (g *GetMarginLoanHistoryRequest) Do(ctx context.Context) ([]LoanRecord, error)
func (*GetMarginLoanHistoryRequest) EndTime ¶
func (g *GetMarginLoanHistoryRequest) EndTime(endTime time.Time) *GetMarginLoanHistoryRequest
func (*GetMarginLoanHistoryRequest) GetParameters ¶
func (g *GetMarginLoanHistoryRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetMarginLoanHistoryRequest) GetParametersJSON ¶
func (g *GetMarginLoanHistoryRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetMarginLoanHistoryRequest) GetParametersQuery ¶
func (g *GetMarginLoanHistoryRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetMarginLoanHistoryRequest) GetQueryParameters ¶
func (g *GetMarginLoanHistoryRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetMarginLoanHistoryRequest) GetSlugParameters ¶
func (g *GetMarginLoanHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetMarginLoanHistoryRequest) GetSlugsMap ¶
func (g *GetMarginLoanHistoryRequest) GetSlugsMap() (map[string]string, error)
func (*GetMarginLoanHistoryRequest) Limit ¶
func (g *GetMarginLoanHistoryRequest) Limit(limit int) *GetMarginLoanHistoryRequest
func (*GetMarginLoanHistoryRequest) StartTime ¶
func (g *GetMarginLoanHistoryRequest) StartTime(startTime time.Time) *GetMarginLoanHistoryRequest
type GetMarginRepaymentHistoryRequest ¶
type GetMarginRepaymentHistoryRequest struct {
// contains filtered or unexported fields
}
func (*GetMarginRepaymentHistoryRequest) Currency ¶
func (g *GetMarginRepaymentHistoryRequest) Currency(currency string) *GetMarginRepaymentHistoryRequest
func (*GetMarginRepaymentHistoryRequest) Do ¶
func (g *GetMarginRepaymentHistoryRequest) Do(ctx context.Context) ([]RepaymentRecord, error)
func (*GetMarginRepaymentHistoryRequest) EndTime ¶
func (g *GetMarginRepaymentHistoryRequest) EndTime(endTime time.Time) *GetMarginRepaymentHistoryRequest
func (*GetMarginRepaymentHistoryRequest) GetParameters ¶
func (g *GetMarginRepaymentHistoryRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetMarginRepaymentHistoryRequest) GetParametersJSON ¶
func (g *GetMarginRepaymentHistoryRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetMarginRepaymentHistoryRequest) GetParametersQuery ¶
func (g *GetMarginRepaymentHistoryRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetMarginRepaymentHistoryRequest) GetQueryParameters ¶
func (g *GetMarginRepaymentHistoryRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetMarginRepaymentHistoryRequest) GetSlugParameters ¶
func (g *GetMarginRepaymentHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetMarginRepaymentHistoryRequest) GetSlugsMap ¶
func (g *GetMarginRepaymentHistoryRequest) GetSlugsMap() (map[string]string, error)
func (*GetMarginRepaymentHistoryRequest) Limit ¶
func (g *GetMarginRepaymentHistoryRequest) Limit(limit int) *GetMarginRepaymentHistoryRequest
func (*GetMarginRepaymentHistoryRequest) StartTime ¶
func (g *GetMarginRepaymentHistoryRequest) StartTime(startTime time.Time) *GetMarginRepaymentHistoryRequest
type GetOrderRequest ¶
type GetOrderRequest struct {
// contains filtered or unexported fields
}
func (*GetOrderRequest) ClientOrderID ¶
func (g *GetOrderRequest) ClientOrderID(clientOrderID string) *GetOrderRequest
func (*GetOrderRequest) GetParameters ¶
func (g *GetOrderRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetOrderRequest) GetParametersJSON ¶
func (g *GetOrderRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetOrderRequest) GetParametersQuery ¶
func (g *GetOrderRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetOrderRequest) GetQueryParameters ¶
func (g *GetOrderRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetOrderRequest) GetSlugParameters ¶
func (g *GetOrderRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetOrderRequest) GetSlugsMap ¶
func (g *GetOrderRequest) GetSlugsMap() (map[string]string, error)
func (*GetOrderRequest) Id ¶
func (g *GetOrderRequest) Id(id uint64) *GetOrderRequest
type GetOrderTradesRequest ¶ added in v1.39.0
type GetOrderTradesRequest struct {
// contains filtered or unexported fields
}
func (*GetOrderTradesRequest) ClientOrderID ¶ added in v1.39.0
func (g *GetOrderTradesRequest) ClientOrderID(clientOrderID string) *GetOrderTradesRequest
func (*GetOrderTradesRequest) Do ¶ added in v1.39.0
func (g *GetOrderTradesRequest) Do(ctx context.Context) ([]Trade, error)
func (*GetOrderTradesRequest) GetParameters ¶ added in v1.39.0
func (g *GetOrderTradesRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetOrderTradesRequest) GetParametersJSON ¶ added in v1.39.0
func (g *GetOrderTradesRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetOrderTradesRequest) GetParametersQuery ¶ added in v1.39.0
func (g *GetOrderTradesRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetOrderTradesRequest) GetQueryParameters ¶ added in v1.39.0
func (g *GetOrderTradesRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetOrderTradesRequest) GetSlugParameters ¶ added in v1.39.0
func (g *GetOrderTradesRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetOrderTradesRequest) GetSlugsMap ¶ added in v1.39.0
func (g *GetOrderTradesRequest) GetSlugsMap() (map[string]string, error)
func (*GetOrderTradesRequest) OrderID ¶ added in v1.39.0
func (g *GetOrderTradesRequest) OrderID(orderID uint64) *GetOrderTradesRequest
type GetWalletAccountsRequest ¶
type GetWalletAccountsRequest struct {
// contains filtered or unexported fields
}
func (*GetWalletAccountsRequest) Currency ¶ added in v1.48.0
func (g *GetWalletAccountsRequest) Currency(currency string) *GetWalletAccountsRequest
func (*GetWalletAccountsRequest) Do ¶
func (g *GetWalletAccountsRequest) Do(ctx context.Context) ([]max.Account, error)
func (*GetWalletAccountsRequest) GetParameters ¶
func (g *GetWalletAccountsRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetWalletAccountsRequest) GetParametersJSON ¶
func (g *GetWalletAccountsRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetWalletAccountsRequest) GetParametersQuery ¶
func (g *GetWalletAccountsRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetWalletAccountsRequest) GetQueryParameters ¶
func (g *GetWalletAccountsRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetWalletAccountsRequest) GetSlugParameters ¶
func (g *GetWalletAccountsRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetWalletAccountsRequest) GetSlugsMap ¶
func (g *GetWalletAccountsRequest) GetSlugsMap() (map[string]string, error)
func (*GetWalletAccountsRequest) WalletType ¶
func (g *GetWalletAccountsRequest) WalletType(walletType max.WalletType) *GetWalletAccountsRequest
type GetWalletOpenOrdersRequest ¶
type GetWalletOpenOrdersRequest struct {
// contains filtered or unexported fields
}
func (*GetWalletOpenOrdersRequest) Do ¶
func (g *GetWalletOpenOrdersRequest) Do(ctx context.Context) ([]max.Order, error)
func (*GetWalletOpenOrdersRequest) GetParameters ¶
func (g *GetWalletOpenOrdersRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetWalletOpenOrdersRequest) GetParametersJSON ¶
func (g *GetWalletOpenOrdersRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetWalletOpenOrdersRequest) GetParametersQuery ¶
func (g *GetWalletOpenOrdersRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetWalletOpenOrdersRequest) GetQueryParameters ¶
func (g *GetWalletOpenOrdersRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetWalletOpenOrdersRequest) GetSlugParameters ¶
func (g *GetWalletOpenOrdersRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetWalletOpenOrdersRequest) GetSlugsMap ¶
func (g *GetWalletOpenOrdersRequest) GetSlugsMap() (map[string]string, error)
func (*GetWalletOpenOrdersRequest) Market ¶
func (g *GetWalletOpenOrdersRequest) Market(market string) *GetWalletOpenOrdersRequest
func (*GetWalletOpenOrdersRequest) WalletType ¶
func (g *GetWalletOpenOrdersRequest) WalletType(walletType max.WalletType) *GetWalletOpenOrdersRequest
type GetWalletOrderHistoryRequest ¶
type GetWalletOrderHistoryRequest struct {
// contains filtered or unexported fields
}
func (*GetWalletOrderHistoryRequest) Do ¶
func (g *GetWalletOrderHistoryRequest) Do(ctx context.Context) ([]max.Order, error)
func (*GetWalletOrderHistoryRequest) FromID ¶
func (g *GetWalletOrderHistoryRequest) FromID(fromID uint64) *GetWalletOrderHistoryRequest
func (*GetWalletOrderHistoryRequest) GetParameters ¶
func (g *GetWalletOrderHistoryRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetWalletOrderHistoryRequest) GetParametersJSON ¶
func (g *GetWalletOrderHistoryRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetWalletOrderHistoryRequest) GetParametersQuery ¶
func (g *GetWalletOrderHistoryRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetWalletOrderHistoryRequest) GetQueryParameters ¶
func (g *GetWalletOrderHistoryRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetWalletOrderHistoryRequest) GetSlugParameters ¶
func (g *GetWalletOrderHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetWalletOrderHistoryRequest) GetSlugsMap ¶
func (g *GetWalletOrderHistoryRequest) GetSlugsMap() (map[string]string, error)
func (*GetWalletOrderHistoryRequest) Limit ¶
func (g *GetWalletOrderHistoryRequest) Limit(limit uint) *GetWalletOrderHistoryRequest
func (*GetWalletOrderHistoryRequest) Market ¶
func (g *GetWalletOrderHistoryRequest) Market(market string) *GetWalletOrderHistoryRequest
func (*GetWalletOrderHistoryRequest) WalletType ¶
func (g *GetWalletOrderHistoryRequest) WalletType(walletType max.WalletType) *GetWalletOrderHistoryRequest
type GetWalletTradesRequest ¶
type GetWalletTradesRequest struct {
// contains filtered or unexported fields
}
func (*GetWalletTradesRequest) Do ¶
func (g *GetWalletTradesRequest) Do(ctx context.Context) ([]Trade, error)
func (*GetWalletTradesRequest) EndTime ¶
func (g *GetWalletTradesRequest) EndTime(endTime time.Time) *GetWalletTradesRequest
func (*GetWalletTradesRequest) From ¶
func (g *GetWalletTradesRequest) From(from uint64) *GetWalletTradesRequest
func (*GetWalletTradesRequest) GetParameters ¶
func (g *GetWalletTradesRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetWalletTradesRequest) GetParametersJSON ¶
func (g *GetWalletTradesRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetWalletTradesRequest) GetParametersQuery ¶
func (g *GetWalletTradesRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetWalletTradesRequest) GetQueryParameters ¶
func (g *GetWalletTradesRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetWalletTradesRequest) GetSlugParameters ¶
func (g *GetWalletTradesRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetWalletTradesRequest) GetSlugsMap ¶
func (g *GetWalletTradesRequest) GetSlugsMap() (map[string]string, error)
func (*GetWalletTradesRequest) Limit ¶
func (g *GetWalletTradesRequest) Limit(limit uint64) *GetWalletTradesRequest
func (*GetWalletTradesRequest) Market ¶
func (g *GetWalletTradesRequest) Market(market string) *GetWalletTradesRequest
func (*GetWalletTradesRequest) StartTime ¶
func (g *GetWalletTradesRequest) StartTime(startTime time.Time) *GetWalletTradesRequest
func (*GetWalletTradesRequest) WalletType ¶
func (g *GetWalletTradesRequest) WalletType(walletType max.WalletType) *GetWalletTradesRequest
type LiquidationRecord ¶
type LiquidationRecord struct { SN string `json:"sn"` AdRatio fixedpoint.Value `json:"ad_ratio"` ExpectedAdRatio fixedpoint.Value `json:"expected_ad_ratio"` CreatedAt types.MillisecondTimestamp `json:"created_at"` State LiquidationState `json:"state"` }
type LiquidationState ¶
type LiquidationState string
const ( LiquidationStateProcessing LiquidationState = "processing" LiquidationStateDebt LiquidationState = "debt" LiquidationStateLiquidated LiquidationState = "liquidated" )
type LoanRecord ¶
type LoanRecord struct { SN string `json:"sn"` Currency string `json:"currency"` Amount fixedpoint.Value `json:"amount"` State string `json:"state"` CreatedAt types.MillisecondTimestamp `json:"created_at"` InterestRate fixedpoint.Value `json:"interest_rate"` }
type MarginBorrowingLimitMap ¶
type MarginBorrowingLimitMap map[string]fixedpoint.Value
type MarginInterestRate ¶
type MarginInterestRate struct { HourlyInterestRate fixedpoint.Value `json:"hourly_interest_rate"` NextHourlyInterestRate fixedpoint.Value `json:"next_hourly_interest_rate"` }
type MarginInterestRateMap ¶
type MarginInterestRateMap map[string]MarginInterestRate
type MarginInterestRecord ¶
type MarginInterestRecord struct { Currency string `json:"currency"` Amount fixedpoint.Value `json:"amount"` InterestRate fixedpoint.Value `json:"interest_rate"` CreatedAt types.MillisecondTimestamp `json:"created_at"` }
type MarginLoanRequest ¶
type MarginLoanRequest struct {
// contains filtered or unexported fields
}
func (*MarginLoanRequest) Amount ¶
func (m *MarginLoanRequest) Amount(amount string) *MarginLoanRequest
func (*MarginLoanRequest) Currency ¶
func (m *MarginLoanRequest) Currency(currency string) *MarginLoanRequest
func (*MarginLoanRequest) Do ¶
func (m *MarginLoanRequest) Do(ctx context.Context) (*LoanRecord, error)
func (*MarginLoanRequest) GetParameters ¶
func (m *MarginLoanRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*MarginLoanRequest) GetParametersJSON ¶
func (m *MarginLoanRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*MarginLoanRequest) GetParametersQuery ¶
func (m *MarginLoanRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*MarginLoanRequest) GetQueryParameters ¶
func (m *MarginLoanRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*MarginLoanRequest) GetSlugParameters ¶
func (m *MarginLoanRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*MarginLoanRequest) GetSlugsMap ¶
func (m *MarginLoanRequest) GetSlugsMap() (map[string]string, error)
type MarginRepayRequest ¶
type MarginRepayRequest struct {
// contains filtered or unexported fields
}
func (*MarginRepayRequest) Amount ¶
func (m *MarginRepayRequest) Amount(amount string) *MarginRepayRequest
func (*MarginRepayRequest) Currency ¶
func (m *MarginRepayRequest) Currency(currency string) *MarginRepayRequest
func (*MarginRepayRequest) Do ¶
func (m *MarginRepayRequest) Do(ctx context.Context) (*RepaymentRecord, error)
func (*MarginRepayRequest) GetParameters ¶
func (m *MarginRepayRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*MarginRepayRequest) GetParametersJSON ¶
func (m *MarginRepayRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*MarginRepayRequest) GetParametersQuery ¶
func (m *MarginRepayRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*MarginRepayRequest) GetQueryParameters ¶
func (m *MarginRepayRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*MarginRepayRequest) GetSlugParameters ¶
func (m *MarginRepayRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*MarginRepayRequest) GetSlugsMap ¶
func (m *MarginRepayRequest) GetSlugsMap() (map[string]string, error)
type MarginService ¶
type MarginService struct {
Client *maxapi.RestClient
}
type OrderCancelResponse ¶ added in v1.44.0
type RepaymentRecord ¶
type RepaymentRecord struct { SN string `json:"sn"` Currency string `json:"currency"` Amount fixedpoint.Value `json:"amount"` Principal fixedpoint.Value `json:"principal"` Interest fixedpoint.Value `json:"interest"` CreatedAt types.MillisecondTimestamp `json:"created_at"` State string `json:"state"` }
type Trade ¶
type Trade struct { ID uint64 `json:"id" db:"exchange_id"` WalletType WalletType `json:"wallet_type,omitempty"` Price fixedpoint.Value `json:"price"` Volume fixedpoint.Value `json:"volume"` Funds fixedpoint.Value `json:"funds"` Market string `json:"market"` MarketName string `json:"market_name"` CreatedAt types.MillisecondTimestamp `json:"created_at"` Side string `json:"side"` OrderID uint64 `json:"order_id"` Fee fixedpoint.Value `json:"fee"` // float number as string FeeCurrency string `json:"fee_currency"` Liquidity string `json:"liquidity"` SelfTradeBidFee fixedpoint.Value `json:"self_trade_bid_fee"` SelfTradeBidFeeCurrency string `json:"self_trade_bid_fee_currency"` SelfTradeBidOrderID uint64 `json:"self_trade_bid_order_id"` }
Source Files ¶
- cancel_order_request.go
- cancel_order_request_requestgen.go
- cancel_wallet_order_all_request.go
- cancel_wallet_order_all_request_requestgen.go
- create_wallet_order_request.go
- create_wallet_order_request_requestgen.go
- get_margin_ad_ratio_request.go
- get_margin_ad_ratio_request_requestgen.go
- get_margin_borrowing_limits_request_requestgen.go
- get_margin_interest_history_request.go
- get_margin_interest_history_request_requestgen.go
- get_margin_interest_rates_request.go
- get_margin_interest_rates_request_requestgen.go
- get_margin_liquidation_history_request.go
- get_margin_liquidation_history_request_requestgen.go
- get_margin_loan_history_request.go
- get_margin_loan_history_request_requestgen.go
- get_margin_repayment_history_request.go
- get_margin_repayment_history_request_requestgen.go
- get_order_request.go
- get_order_request_requestgen.go
- get_order_trades_request.go
- get_order_trades_request_requestgen.go
- get_wallet_accounts_request.go
- get_wallet_accounts_request_requestgen.go
- get_wallet_open_orders_request.go
- get_wallet_open_orders_request_requestgen.go
- get_wallet_order_history_request.go
- get_wallet_order_history_request_requestgen.go
- get_wallet_trades_request.go
- get_wallet_trades_request_requestgen.go
- margin.go
- margin_loan_request.go
- margin_loan_request_requestgen.go
- margin_repay_request.go
- margin_repay_request_requestgen.go
- order.go
- trade.go