Documentation ¶
Index ¶
- type ApiOption
- type ApiOptions
- type CancelOrderResponseUnmarshaler
- type CreateOrderResponseUnmarshaler
- type GetAccountResponseUnmarshaler
- type GetDepthResponseUnmarshaler
- type GetExchangeInfoResponseUnmarshaler
- type GetFuturesAccountResponseUnmarshaler
- type GetHistoryOrdersResponseUnmarshaler
- type GetKlineResponseUnmarshaler
- type GetOrderInfoResponseUnmarshaler
- type GetPendingOrdersResponseUnmarshaler
- type GetPositionsResponseUnmarshaler
- type GetTickerResponseUnmarshaler
- type ResponseUnmarshaler
- type UnmarshalerOption
- func WithCancelOrderResponseUnmarshaler(unmarshaler CancelOrderResponseUnmarshaler) UnmarshalerOption
- func WithCreateOrderResponseUnmarshaler(unmarshaler CreateOrderResponseUnmarshaler) UnmarshalerOption
- func WithDepthUnmarshaler(unmarshaler GetDepthResponseUnmarshaler) UnmarshalerOption
- func WithGetAccountResponseUnmarshaler(unmarshaler GetAccountResponseUnmarshaler) UnmarshalerOption
- func WithGetExchangeInfoResponseUnmarshaler(unmarshaler GetExchangeInfoResponseUnmarshaler) UnmarshalerOption
- func WithGetFuturesAccountResponseUnmarshaler(unmarshaler GetFuturesAccountResponseUnmarshaler) UnmarshalerOption
- func WithGetHistoryOrdersResponseUnmarshaler(unmarshaler GetHistoryOrdersResponseUnmarshaler) UnmarshalerOption
- func WithGetOrderInfoResponseUnmarshaler(unmarshaler GetOrderInfoResponseUnmarshaler) UnmarshalerOption
- func WithGetPendingOrdersResponseUnmarshaler(unmarshaler GetPendingOrdersResponseUnmarshaler) UnmarshalerOption
- func WithGetPositionsResponseUnmarshaler(unmarshaler GetPositionsResponseUnmarshaler) UnmarshalerOption
- func WithKlineUnmarshaler(unmarshaler GetKlineResponseUnmarshaler) UnmarshalerOption
- func WithResponseUnmarshaler(unmarshaler ResponseUnmarshaler) UnmarshalerOption
- func WithTickerUnmarshaler(unmarshaler GetTickerResponseUnmarshaler) UnmarshalerOption
- type UnmarshalerOptions
- type UriOption
- func WithCancelOrderUri(uri string) UriOption
- func WithClosePositionUri(uri string) UriOption
- func WithDepthUri(uri string) UriOption
- func WithEndpoint(endpoint string) UriOption
- func WithGetAccountUri(uri string) UriOption
- func WithGetExchangeUri(uri string) UriOption
- func WithGetHistoryOrdersUri(uri string) UriOption
- func WithGetOrderUri(uri string) UriOption
- func WithGetPendingOrdersUri(uri string) UriOption
- func WithGetPositionsUri(uri string) UriOption
- func WithHeader(header map[string]string) UriOption
- func WithKlineUri(uri string) UriOption
- func WithNewOrderUri(uri string) UriOption
- func WithTickerUri(uri string) UriOption
- type UriOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiOption ¶
type ApiOption func(options *ApiOptions)
func WithApiKey ¶
func WithApiSecretKey ¶
func WithClientId ¶
func WithPassphrase ¶
type ApiOptions ¶
type GetExchangeInfoResponseUnmarshaler ¶
type GetExchangeInfoResponseUnmarshaler func([]byte) (map[string]model.CurrencyPair, error)
type GetFuturesAccountResponseUnmarshaler ¶
type GetFuturesAccountResponseUnmarshaler func([]byte) (map[string]model.FuturesAccount, error)
type GetPositionsResponseUnmarshaler ¶
type GetPositionsResponseUnmarshaler func([]byte) ([]model.FuturesPosition, error)
type ResponseUnmarshaler ¶
type UnmarshalerOption ¶
type UnmarshalerOption func(options *UnmarshalerOptions)
func WithCancelOrderResponseUnmarshaler ¶
func WithCancelOrderResponseUnmarshaler(unmarshaler CancelOrderResponseUnmarshaler) UnmarshalerOption
func WithCreateOrderResponseUnmarshaler ¶
func WithCreateOrderResponseUnmarshaler(unmarshaler CreateOrderResponseUnmarshaler) UnmarshalerOption
func WithDepthUnmarshaler ¶
func WithDepthUnmarshaler(unmarshaler GetDepthResponseUnmarshaler) UnmarshalerOption
func WithGetAccountResponseUnmarshaler ¶
func WithGetAccountResponseUnmarshaler(unmarshaler GetAccountResponseUnmarshaler) UnmarshalerOption
func WithGetExchangeInfoResponseUnmarshaler ¶
func WithGetExchangeInfoResponseUnmarshaler(unmarshaler GetExchangeInfoResponseUnmarshaler) UnmarshalerOption
func WithGetFuturesAccountResponseUnmarshaler ¶
func WithGetFuturesAccountResponseUnmarshaler(unmarshaler GetFuturesAccountResponseUnmarshaler) UnmarshalerOption
func WithGetHistoryOrdersResponseUnmarshaler ¶
func WithGetHistoryOrdersResponseUnmarshaler(unmarshaler GetHistoryOrdersResponseUnmarshaler) UnmarshalerOption
func WithGetOrderInfoResponseUnmarshaler ¶
func WithGetOrderInfoResponseUnmarshaler(unmarshaler GetOrderInfoResponseUnmarshaler) UnmarshalerOption
func WithGetPendingOrdersResponseUnmarshaler ¶
func WithGetPendingOrdersResponseUnmarshaler(unmarshaler GetPendingOrdersResponseUnmarshaler) UnmarshalerOption
func WithGetPositionsResponseUnmarshaler ¶
func WithGetPositionsResponseUnmarshaler(unmarshaler GetPositionsResponseUnmarshaler) UnmarshalerOption
func WithKlineUnmarshaler ¶
func WithKlineUnmarshaler(unmarshaler GetKlineResponseUnmarshaler) UnmarshalerOption
func WithResponseUnmarshaler ¶
func WithResponseUnmarshaler(unmarshaler ResponseUnmarshaler) UnmarshalerOption
func WithTickerUnmarshaler ¶
func WithTickerUnmarshaler(unmarshaler GetTickerResponseUnmarshaler) UnmarshalerOption
type UnmarshalerOptions ¶
type UnmarshalerOptions struct { ResponseUnmarshaler ResponseUnmarshaler TickerUnmarshaler GetTickerResponseUnmarshaler DepthUnmarshaler GetDepthResponseUnmarshaler KlineUnmarshaler GetKlineResponseUnmarshaler CreateOrderResponseUnmarshaler CreateOrderResponseUnmarshaler GetOrderInfoResponseUnmarshaler GetOrderInfoResponseUnmarshaler GetPendingOrdersResponseUnmarshaler GetPendingOrdersResponseUnmarshaler GetHistoryOrdersResponseUnmarshaler GetHistoryOrdersResponseUnmarshaler CancelOrderResponseUnmarshaler CancelOrderResponseUnmarshaler GetAccountResponseUnmarshaler GetAccountResponseUnmarshaler GetPositionsResponseUnmarshaler GetPositionsResponseUnmarshaler GetFuturesAccountResponseUnmarshaler GetFuturesAccountResponseUnmarshaler GetExchangeInfoResponseUnmarshaler GetExchangeInfoResponseUnmarshaler }
type UriOption ¶
type UriOption func(*UriOptions)
func WithCancelOrderUri ¶
func WithClosePositionUri ¶ added in v2.0.3
func WithDepthUri ¶
func WithEndpoint ¶
func WithGetAccountUri ¶
func WithGetExchangeUri ¶
func WithGetHistoryOrdersUri ¶
func WithGetOrderUri ¶
func WithGetPendingOrdersUri ¶
func WithGetPositionsUri ¶
func WithHeader ¶
func WithKlineUri ¶
func WithNewOrderUri ¶
func WithTickerUri ¶
type UriOptions ¶
type UriOptions struct { Endpoint string Header map[string]string TickerUri string DepthUri string KlineUri string GetOrderUri string GetPendingOrdersUri string GetHistoryOrdersUri string CancelOrderUri string ClosePositionUri string NewOrderUri string GetAccountUri string GetPositionsUri string GetExchangeInfoUri string }
Click to show internal directories.
Click to hide internal directories.