Documentation ¶
Index ¶
- Constants
- Variables
- func FormatTimestamp(t time.Time) int64
- type APIResponse
- type ApiReferralIfNewUserResponse
- type BorrowRepayType
- type CancelReplaceModeType
- type CancelReplaceSpotOrderData
- type CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) CancelNewClientOrderId(cancelNewClientOrderId string) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) CancelOrderId(cancelOrderId int) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) CancelOrigClientOrderId(cancelOrigClientOrderId string) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) CancelReplaceMode(cancelReplaceMode CancelReplaceModeType) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) Do(ctx context.Context) (*CancelReplaceSpotOrderResponse, error)
- func (c *CancelReplaceSpotOrderRequest) GetParameters() (map[string]interface{}, error)
- func (c *CancelReplaceSpotOrderRequest) GetParametersJSON() ([]byte, error)
- func (c *CancelReplaceSpotOrderRequest) GetParametersQuery() (url.Values, error)
- func (c *CancelReplaceSpotOrderRequest) GetQueryParameters() (url.Values, error)
- func (c *CancelReplaceSpotOrderRequest) GetSlugParameters() (map[string]interface{}, error)
- func (c *CancelReplaceSpotOrderRequest) GetSlugsMap() (map[string]string, error)
- func (c *CancelReplaceSpotOrderRequest) IcebergQty(icebergQty string) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) NewClientOrderId(newClientOrderId string) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) NewOrderRespType(newOrderRespType OrderRespType) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) Price(price string) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) Quantity(quantity string) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) QuoteOrderQty(quoteOrderQty string) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) RecvWindow(recvWindow int) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) Side(side binance.SideType) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) StopPrice(stopPrice string) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) StrategyId(strategyId int) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) StrategyType(strategyType int) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) Symbol(symbol string) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) TimeInForce(timeInForce string) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) Timestamp(timestamp types.MillisecondTimestamp) *CancelReplaceSpotOrderRequest
- func (c *CancelReplaceSpotOrderRequest) TrailingDelta(trailingDelta int) *CancelReplaceSpotOrderRequest
- type CancelReplaceSpotOrderResponse
- type DepositAddress
- type DepositHistory
- type DepositStatus
- type Depth
- type FuturesAccount
- type FuturesAccountAsset
- type FuturesAccountPosition
- type FuturesBalance
- type FuturesChangeInitialLeverageRequest
- func (f *FuturesChangeInitialLeverageRequest) Do(ctx context.Context) (*FuturesChangeInitialLeverageResponse, error)
- func (f *FuturesChangeInitialLeverageRequest) GetParameters() (map[string]interface{}, error)
- func (f *FuturesChangeInitialLeverageRequest) GetParametersJSON() ([]byte, error)
- func (f *FuturesChangeInitialLeverageRequest) GetParametersQuery() (url.Values, error)
- func (f *FuturesChangeInitialLeverageRequest) GetQueryParameters() (url.Values, error)
- func (f *FuturesChangeInitialLeverageRequest) GetSlugParameters() (map[string]interface{}, error)
- func (f *FuturesChangeInitialLeverageRequest) GetSlugsMap() (map[string]string, error)
- func (f *FuturesChangeInitialLeverageRequest) Leverage(leverage int) *FuturesChangeInitialLeverageRequest
- func (f *FuturesChangeInitialLeverageRequest) Symbol(symbol string) *FuturesChangeInitialLeverageRequest
- type FuturesChangeInitialLeverageResponse
- type FuturesChangeMultiAssetsModeRequest
- func (f *FuturesChangeMultiAssetsModeRequest) Do(ctx context.Context) (*FuturesChangeMultiAssetsModeResponse, error)
- func (f *FuturesChangeMultiAssetsModeRequest) GetParameters() (map[string]interface{}, error)
- func (f *FuturesChangeMultiAssetsModeRequest) GetParametersJSON() ([]byte, error)
- func (f *FuturesChangeMultiAssetsModeRequest) GetParametersQuery() (url.Values, error)
- func (f *FuturesChangeMultiAssetsModeRequest) GetQueryParameters() (url.Values, error)
- func (f *FuturesChangeMultiAssetsModeRequest) GetSlugParameters() (map[string]interface{}, error)
- func (f *FuturesChangeMultiAssetsModeRequest) GetSlugsMap() (map[string]string, error)
- func (f *FuturesChangeMultiAssetsModeRequest) MultiAssetsMargin(multiAssetsMargin MultiAssetsMarginMode) *FuturesChangeMultiAssetsModeRequest
- type FuturesChangeMultiAssetsModeResponse
- type FuturesGetAccountBalanceRequest
- func (f *FuturesGetAccountBalanceRequest) Do(ctx context.Context) ([]FuturesBalance, error)
- func (f *FuturesGetAccountBalanceRequest) GetParameters() (map[string]interface{}, error)
- func (f *FuturesGetAccountBalanceRequest) GetParametersJSON() ([]byte, error)
- func (f *FuturesGetAccountBalanceRequest) GetParametersQuery() (url.Values, error)
- func (f *FuturesGetAccountBalanceRequest) GetQueryParameters() (url.Values, error)
- func (f *FuturesGetAccountBalanceRequest) GetSlugParameters() (map[string]interface{}, error)
- func (f *FuturesGetAccountBalanceRequest) GetSlugsMap() (map[string]string, error)
- type FuturesGetAccountRequest
- func (f *FuturesGetAccountRequest) Do(ctx context.Context) (*FuturesAccount, error)
- func (f *FuturesGetAccountRequest) GetParameters() (map[string]interface{}, error)
- func (f *FuturesGetAccountRequest) GetParametersJSON() ([]byte, error)
- func (f *FuturesGetAccountRequest) GetParametersQuery() (url.Values, error)
- func (f *FuturesGetAccountRequest) GetQueryParameters() (url.Values, error)
- func (f *FuturesGetAccountRequest) GetSlugParameters() (map[string]interface{}, error)
- func (f *FuturesGetAccountRequest) GetSlugsMap() (map[string]string, error)
- type FuturesGetIncomeHistoryRequest
- func (f *FuturesGetIncomeHistoryRequest) Do(ctx context.Context) ([]FuturesIncome, error)
- func (f *FuturesGetIncomeHistoryRequest) EndTime(endTime time.Time) *FuturesGetIncomeHistoryRequest
- func (f *FuturesGetIncomeHistoryRequest) GetParameters() (map[string]interface{}, error)
- func (f *FuturesGetIncomeHistoryRequest) GetParametersJSON() ([]byte, error)
- func (f *FuturesGetIncomeHistoryRequest) GetParametersQuery() (url.Values, error)
- func (f *FuturesGetIncomeHistoryRequest) GetQueryParameters() (url.Values, error)
- func (f *FuturesGetIncomeHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
- func (f *FuturesGetIncomeHistoryRequest) GetSlugsMap() (map[string]string, error)
- func (f *FuturesGetIncomeHistoryRequest) IncomeType(incomeType FuturesIncomeType) *FuturesGetIncomeHistoryRequest
- func (f *FuturesGetIncomeHistoryRequest) Limit(limit uint64) *FuturesGetIncomeHistoryRequest
- func (f *FuturesGetIncomeHistoryRequest) StartTime(startTime time.Time) *FuturesGetIncomeHistoryRequest
- func (f *FuturesGetIncomeHistoryRequest) Symbol(symbol string) *FuturesGetIncomeHistoryRequest
- type FuturesGetMultiAssetsModeRequest
- func (f *FuturesGetMultiAssetsModeRequest) Do(ctx context.Context) (*FuturesMultiAssetsModeResponse, error)
- func (f *FuturesGetMultiAssetsModeRequest) GetParameters() (map[string]interface{}, error)
- func (f *FuturesGetMultiAssetsModeRequest) GetParametersJSON() ([]byte, error)
- func (f *FuturesGetMultiAssetsModeRequest) GetParametersQuery() (url.Values, error)
- func (f *FuturesGetMultiAssetsModeRequest) GetQueryParameters() (url.Values, error)
- func (f *FuturesGetMultiAssetsModeRequest) GetSlugParameters() (map[string]interface{}, error)
- func (f *FuturesGetMultiAssetsModeRequest) GetSlugsMap() (map[string]string, error)
- type FuturesGetOpenInterestRequest
- func (f *FuturesGetOpenInterestRequest) Do(ctx context.Context) (*FuturesOpenInterest, error)
- func (f *FuturesGetOpenInterestRequest) GetParameters() (map[string]interface{}, error)
- func (f *FuturesGetOpenInterestRequest) GetParametersJSON() ([]byte, error)
- func (f *FuturesGetOpenInterestRequest) GetParametersQuery() (url.Values, error)
- func (f *FuturesGetOpenInterestRequest) GetQueryParameters() (url.Values, error)
- func (f *FuturesGetOpenInterestRequest) GetSlugParameters() (map[string]interface{}, error)
- func (f *FuturesGetOpenInterestRequest) GetSlugsMap() (map[string]string, error)
- func (f *FuturesGetOpenInterestRequest) Symbol(symbol string) *FuturesGetOpenInterestRequest
- type FuturesGetOpenInterestStatisticsRequest
- func (f *FuturesGetOpenInterestStatisticsRequest) Do(ctx context.Context) ([]FuturesOpenInterestStatistics, error)
- func (f *FuturesGetOpenInterestStatisticsRequest) EndTime(endTime time.Time) *FuturesGetOpenInterestStatisticsRequest
- func (f *FuturesGetOpenInterestStatisticsRequest) GetParameters() (map[string]interface{}, error)
- func (f *FuturesGetOpenInterestStatisticsRequest) GetParametersJSON() ([]byte, error)
- func (f *FuturesGetOpenInterestStatisticsRequest) GetParametersQuery() (url.Values, error)
- func (f *FuturesGetOpenInterestStatisticsRequest) GetQueryParameters() (url.Values, error)
- func (f *FuturesGetOpenInterestStatisticsRequest) GetSlugParameters() (map[string]interface{}, error)
- func (f *FuturesGetOpenInterestStatisticsRequest) GetSlugsMap() (map[string]string, error)
- func (f *FuturesGetOpenInterestStatisticsRequest) Limit(limit uint64) *FuturesGetOpenInterestStatisticsRequest
- func (f *FuturesGetOpenInterestStatisticsRequest) Period(period types.Interval) *FuturesGetOpenInterestStatisticsRequest
- func (f *FuturesGetOpenInterestStatisticsRequest) StartTime(startTime time.Time) *FuturesGetOpenInterestStatisticsRequest
- func (f *FuturesGetOpenInterestStatisticsRequest) Symbol(symbol string) *FuturesGetOpenInterestStatisticsRequest
- type FuturesGetPositionRisksRequest
- func (f *FuturesGetPositionRisksRequest) Do(ctx context.Context) ([]FuturesPositionRisk, error)
- func (f *FuturesGetPositionRisksRequest) GetParameters() (map[string]interface{}, error)
- func (f *FuturesGetPositionRisksRequest) GetParametersJSON() ([]byte, error)
- func (f *FuturesGetPositionRisksRequest) GetParametersQuery() (url.Values, error)
- func (f *FuturesGetPositionRisksRequest) GetQueryParameters() (url.Values, error)
- func (f *FuturesGetPositionRisksRequest) GetSlugParameters() (map[string]interface{}, error)
- func (f *FuturesGetPositionRisksRequest) GetSlugsMap() (map[string]string, error)
- func (f *FuturesGetPositionRisksRequest) Symbol(symbol string) *FuturesGetPositionRisksRequest
- type FuturesGlobalLongShortAccountRatio
- type FuturesGlobalLongShortAccountRatioRequest
- func (f *FuturesGlobalLongShortAccountRatioRequest) Do(ctx context.Context) ([]FuturesGlobalLongShortAccountRatio, error)
- func (f *FuturesGlobalLongShortAccountRatioRequest) EndTime(endTime time.Time) *FuturesGlobalLongShortAccountRatioRequest
- func (f *FuturesGlobalLongShortAccountRatioRequest) GetParameters() (map[string]interface{}, error)
- func (f *FuturesGlobalLongShortAccountRatioRequest) GetParametersJSON() ([]byte, error)
- func (f *FuturesGlobalLongShortAccountRatioRequest) GetParametersQuery() (url.Values, error)
- func (f *FuturesGlobalLongShortAccountRatioRequest) GetQueryParameters() (url.Values, error)
- func (f *FuturesGlobalLongShortAccountRatioRequest) GetSlugParameters() (map[string]interface{}, error)
- func (f *FuturesGlobalLongShortAccountRatioRequest) GetSlugsMap() (map[string]string, error)
- func (f *FuturesGlobalLongShortAccountRatioRequest) Limit(limit uint64) *FuturesGlobalLongShortAccountRatioRequest
- func (f *FuturesGlobalLongShortAccountRatioRequest) Period(period types.Interval) *FuturesGlobalLongShortAccountRatioRequest
- func (f *FuturesGlobalLongShortAccountRatioRequest) StartTime(startTime time.Time) *FuturesGlobalLongShortAccountRatioRequest
- func (f *FuturesGlobalLongShortAccountRatioRequest) Symbol(symbol string) *FuturesGlobalLongShortAccountRatioRequest
- type FuturesIncome
- type FuturesIncomeType
- type FuturesMultiAssetsModeResponse
- type FuturesOpenInterest
- type FuturesOpenInterestStatistics
- type FuturesPositionRisk
- type FuturesRestClient
- func (c *FuturesRestClient) NewFuturesChangeInitialLeverageRequest() *FuturesChangeInitialLeverageRequest
- func (c *FuturesRestClient) NewFuturesChangeMultiAssetsModeRequest() *FuturesChangeMultiAssetsModeRequest
- func (c *FuturesRestClient) NewFuturesGetAccountBalanceRequest() *FuturesGetAccountBalanceRequest
- func (c *FuturesRestClient) NewFuturesGetAccountRequest() *FuturesGetAccountRequest
- func (c *FuturesRestClient) NewFuturesGetIncomeHistoryRequest() *FuturesGetIncomeHistoryRequest
- func (c *FuturesRestClient) NewFuturesGetMultiAssetsModeRequest() *FuturesGetMultiAssetsModeRequest
- func (c *FuturesRestClient) NewFuturesGetOpenInterestRequest() *FuturesGetOpenInterestRequest
- func (c *FuturesRestClient) NewFuturesGetOpenInterestStatisticsRequest() *FuturesGetOpenInterestStatisticsRequest
- func (c *FuturesRestClient) NewFuturesGetPositionRisksRequest() *FuturesGetPositionRisksRequest
- func (c *FuturesRestClient) NewFuturesGlobalLongShortAccountRatioRequest() *FuturesGlobalLongShortAccountRatioRequest
- func (c *FuturesRestClient) NewFuturesTakerBuySellVolumeRequest() *FuturesTakerBuySellVolumeRequest
- func (c *FuturesRestClient) NewFuturesTopTraderLongShortAccountRatioRequest() *FuturesTopTraderLongShortAccountRatioRequest
- func (c *FuturesRestClient) NewFuturesTopTraderLongShortPositionRatioRequest() *FuturesTopTraderLongShortPositionRatioRequest
- type FuturesTakerBuySellVolume
- type FuturesTakerBuySellVolumeRequest
- func (f *FuturesTakerBuySellVolumeRequest) Do(ctx context.Context) ([]FuturesTakerBuySellVolume, error)
- func (f *FuturesTakerBuySellVolumeRequest) EndTime(endTime time.Time) *FuturesTakerBuySellVolumeRequest
- func (f *FuturesTakerBuySellVolumeRequest) GetParameters() (map[string]interface{}, error)
- func (f *FuturesTakerBuySellVolumeRequest) GetParametersJSON() ([]byte, error)
- func (f *FuturesTakerBuySellVolumeRequest) GetParametersQuery() (url.Values, error)
- func (f *FuturesTakerBuySellVolumeRequest) GetQueryParameters() (url.Values, error)
- func (f *FuturesTakerBuySellVolumeRequest) GetSlugParameters() (map[string]interface{}, error)
- func (f *FuturesTakerBuySellVolumeRequest) GetSlugsMap() (map[string]string, error)
- func (f *FuturesTakerBuySellVolumeRequest) Limit(limit uint64) *FuturesTakerBuySellVolumeRequest
- func (f *FuturesTakerBuySellVolumeRequest) Period(period types.Interval) *FuturesTakerBuySellVolumeRequest
- func (f *FuturesTakerBuySellVolumeRequest) StartTime(startTime time.Time) *FuturesTakerBuySellVolumeRequest
- func (f *FuturesTakerBuySellVolumeRequest) Symbol(symbol string) *FuturesTakerBuySellVolumeRequest
- type FuturesTopTraderLongShortAccountRatio
- type FuturesTopTraderLongShortAccountRatioRequest
- func (f *FuturesTopTraderLongShortAccountRatioRequest) Do(ctx context.Context) ([]FuturesTopTraderLongShortAccountRatio, error)
- func (f *FuturesTopTraderLongShortAccountRatioRequest) EndTime(endTime time.Time) *FuturesTopTraderLongShortAccountRatioRequest
- func (f *FuturesTopTraderLongShortAccountRatioRequest) GetParameters() (map[string]interface{}, error)
- func (f *FuturesTopTraderLongShortAccountRatioRequest) GetParametersJSON() ([]byte, error)
- func (f *FuturesTopTraderLongShortAccountRatioRequest) GetParametersQuery() (url.Values, error)
- func (f *FuturesTopTraderLongShortAccountRatioRequest) GetQueryParameters() (url.Values, error)
- func (f *FuturesTopTraderLongShortAccountRatioRequest) GetSlugParameters() (map[string]interface{}, error)
- func (f *FuturesTopTraderLongShortAccountRatioRequest) GetSlugsMap() (map[string]string, error)
- func (f *FuturesTopTraderLongShortAccountRatioRequest) Limit(limit uint64) *FuturesTopTraderLongShortAccountRatioRequest
- func (f *FuturesTopTraderLongShortAccountRatioRequest) Period(period types.Interval) *FuturesTopTraderLongShortAccountRatioRequest
- func (f *FuturesTopTraderLongShortAccountRatioRequest) StartTime(startTime time.Time) *FuturesTopTraderLongShortAccountRatioRequest
- func (f *FuturesTopTraderLongShortAccountRatioRequest) Symbol(symbol string) *FuturesTopTraderLongShortAccountRatioRequest
- type FuturesTopTraderLongShortPositionRatio
- type FuturesTopTraderLongShortPositionRatioRequest
- func (f *FuturesTopTraderLongShortPositionRatioRequest) Do(ctx context.Context) ([]FuturesTopTraderLongShortPositionRatio, error)
- func (f *FuturesTopTraderLongShortPositionRatioRequest) EndTime(endTime time.Time) *FuturesTopTraderLongShortPositionRatioRequest
- func (f *FuturesTopTraderLongShortPositionRatioRequest) GetParameters() (map[string]interface{}, error)
- func (f *FuturesTopTraderLongShortPositionRatioRequest) GetParametersJSON() ([]byte, error)
- func (f *FuturesTopTraderLongShortPositionRatioRequest) GetParametersQuery() (url.Values, error)
- func (f *FuturesTopTraderLongShortPositionRatioRequest) GetQueryParameters() (url.Values, error)
- func (f *FuturesTopTraderLongShortPositionRatioRequest) GetSlugParameters() (map[string]interface{}, error)
- func (f *FuturesTopTraderLongShortPositionRatioRequest) GetSlugsMap() (map[string]string, error)
- func (f *FuturesTopTraderLongShortPositionRatioRequest) Limit(limit uint64) *FuturesTopTraderLongShortPositionRatioRequest
- func (f *FuturesTopTraderLongShortPositionRatioRequest) Period(period types.Interval) *FuturesTopTraderLongShortPositionRatioRequest
- func (f *FuturesTopTraderLongShortPositionRatioRequest) StartTime(startTime time.Time) *FuturesTopTraderLongShortPositionRatioRequest
- func (f *FuturesTopTraderLongShortPositionRatioRequest) Symbol(symbol string) *FuturesTopTraderLongShortPositionRatioRequest
- type FuturesTransferRequest
- func (f *FuturesTransferRequest) Amount(amount string) *FuturesTransferRequest
- func (f *FuturesTransferRequest) Asset(asset string) *FuturesTransferRequest
- func (f *FuturesTransferRequest) Do(ctx context.Context) (*FuturesTransferResponse, error)
- func (f *FuturesTransferRequest) GetParameters() (map[string]interface{}, error)
- func (f *FuturesTransferRequest) GetParametersJSON() ([]byte, error)
- func (f *FuturesTransferRequest) GetParametersQuery() (url.Values, error)
- func (f *FuturesTransferRequest) GetQueryParameters() (url.Values, error)
- func (f *FuturesTransferRequest) GetSlugParameters() (map[string]interface{}, error)
- func (f *FuturesTransferRequest) GetSlugsMap() (map[string]string, error)
- func (f *FuturesTransferRequest) TransferType(transferType FuturesTransferType) *FuturesTransferRequest
- type FuturesTransferResponse
- type FuturesTransferType
- type GetApiReferralIfNewUserRequest
- func (g *GetApiReferralIfNewUserRequest) Do(ctx context.Context) (*ApiReferralIfNewUserResponse, error)
- func (g *GetApiReferralIfNewUserRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetApiReferralIfNewUserRequest) GetParametersJSON() ([]byte, error)
- func (g *GetApiReferralIfNewUserRequest) GetParametersQuery() (url.Values, error)
- func (g *GetApiReferralIfNewUserRequest) GetQueryParameters() (url.Values, error)
- func (g *GetApiReferralIfNewUserRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetApiReferralIfNewUserRequest) GetSlugsMap() (map[string]string, error)
- type GetDepositAddressRequest
- func (g *GetDepositAddressRequest) Coin(coin string) *GetDepositAddressRequest
- func (g *GetDepositAddressRequest) Do(ctx context.Context) (*DepositAddress, error)
- func (g *GetDepositAddressRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetDepositAddressRequest) GetParametersJSON() ([]byte, error)
- func (g *GetDepositAddressRequest) GetParametersQuery() (url.Values, error)
- func (g *GetDepositAddressRequest) GetQueryParameters() (url.Values, error)
- func (g *GetDepositAddressRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetDepositAddressRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetDepositAddressRequest) Network(network string) *GetDepositAddressRequest
- type GetDepositHistoryRequest
- func (g *GetDepositHistoryRequest) Coin(coin string) *GetDepositHistoryRequest
- func (g *GetDepositHistoryRequest) Do(ctx context.Context) ([]DepositHistory, error)
- func (g *GetDepositHistoryRequest) EndTime(endTime time.Time) *GetDepositHistoryRequest
- func (g *GetDepositHistoryRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetDepositHistoryRequest) GetParametersJSON() ([]byte, error)
- func (g *GetDepositHistoryRequest) GetParametersQuery() (url.Values, error)
- func (g *GetDepositHistoryRequest) GetQueryParameters() (url.Values, error)
- func (g *GetDepositHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetDepositHistoryRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetDepositHistoryRequest) StartTime(startTime time.Time) *GetDepositHistoryRequest
- type GetDepthRequest
- func (g *GetDepthRequest) Do(ctx context.Context) (*Depth, error)
- func (g *GetDepthRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetDepthRequest) GetParametersJSON() ([]byte, error)
- func (g *GetDepthRequest) GetParametersQuery() (url.Values, error)
- func (g *GetDepthRequest) GetPath() string
- func (g *GetDepthRequest) GetQueryParameters() (url.Values, error)
- func (g *GetDepthRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetDepthRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetDepthRequest) Limit(limit int) *GetDepthRequest
- func (g *GetDepthRequest) Symbol(symbol string) *GetDepthRequest
- type GetHistoricalTradesRequest
- func (g *GetHistoricalTradesRequest) Do(ctx context.Context) ([]binance.TradeV3, error)
- func (g *GetHistoricalTradesRequest) FromID(fromID uint64) *GetHistoricalTradesRequest
- func (g *GetHistoricalTradesRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetHistoricalTradesRequest) GetParametersJSON() ([]byte, error)
- func (g *GetHistoricalTradesRequest) GetParametersQuery() (url.Values, error)
- func (g *GetHistoricalTradesRequest) GetQueryParameters() (url.Values, error)
- func (g *GetHistoricalTradesRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetHistoricalTradesRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetHistoricalTradesRequest) Limit(limit uint64) *GetHistoricalTradesRequest
- func (g *GetHistoricalTradesRequest) Symbol(symbol string) *GetHistoricalTradesRequest
- type GetMarginBorrowRepayHistoryRequest
- func (g *GetMarginBorrowRepayHistoryRequest) Archived(archived bool) *GetMarginBorrowRepayHistoryRequest
- func (g *GetMarginBorrowRepayHistoryRequest) Asset(asset string) *GetMarginBorrowRepayHistoryRequest
- func (g *GetMarginBorrowRepayHistoryRequest) Current(current int) *GetMarginBorrowRepayHistoryRequest
- func (g *GetMarginBorrowRepayHistoryRequest) Do(ctx context.Context) ([]MarginBorrowRepayRecord, error)
- func (g *GetMarginBorrowRepayHistoryRequest) EndTime(endTime time.Time) *GetMarginBorrowRepayHistoryRequest
- func (g *GetMarginBorrowRepayHistoryRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetMarginBorrowRepayHistoryRequest) GetParametersJSON() ([]byte, error)
- func (g *GetMarginBorrowRepayHistoryRequest) GetParametersQuery() (url.Values, error)
- func (g *GetMarginBorrowRepayHistoryRequest) GetPath() string
- func (g *GetMarginBorrowRepayHistoryRequest) GetQueryParameters() (url.Values, error)
- func (g *GetMarginBorrowRepayHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetMarginBorrowRepayHistoryRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetMarginBorrowRepayHistoryRequest) IsolatedSymbol(isolatedSymbol string) *GetMarginBorrowRepayHistoryRequest
- func (g *GetMarginBorrowRepayHistoryRequest) SetBorrowRepayType(BorrowRepayType BorrowRepayType) *GetMarginBorrowRepayHistoryRequest
- func (g *GetMarginBorrowRepayHistoryRequest) Size(size int) *GetMarginBorrowRepayHistoryRequest
- func (g *GetMarginBorrowRepayHistoryRequest) StartTime(startTime time.Time) *GetMarginBorrowRepayHistoryRequest
- type GetMarginInterestHistoryRequest
- func (g *GetMarginInterestHistoryRequest) Archived(archived bool) *GetMarginInterestHistoryRequest
- func (g *GetMarginInterestHistoryRequest) Asset(asset string) *GetMarginInterestHistoryRequest
- func (g *GetMarginInterestHistoryRequest) Current(current int) *GetMarginInterestHistoryRequest
- func (g *GetMarginInterestHistoryRequest) Do(ctx context.Context) ([]MarginInterest, 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) IsolatedSymbol(isolatedSymbol string) *GetMarginInterestHistoryRequest
- func (g *GetMarginInterestHistoryRequest) Size(size int) *GetMarginInterestHistoryRequest
- func (g *GetMarginInterestHistoryRequest) StartTime(startTime time.Time) *GetMarginInterestHistoryRequest
- type GetMarginInterestRateHistoryRequest
- func (g *GetMarginInterestRateHistoryRequest) Asset(asset string) *GetMarginInterestRateHistoryRequest
- func (g *GetMarginInterestRateHistoryRequest) Do(ctx context.Context) ([]MarginInterestRate, error)
- func (g *GetMarginInterestRateHistoryRequest) EndTime(endTime time.Time) *GetMarginInterestRateHistoryRequest
- func (g *GetMarginInterestRateHistoryRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetMarginInterestRateHistoryRequest) GetParametersJSON() ([]byte, error)
- func (g *GetMarginInterestRateHistoryRequest) GetParametersQuery() (url.Values, error)
- func (g *GetMarginInterestRateHistoryRequest) GetQueryParameters() (url.Values, error)
- func (g *GetMarginInterestRateHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetMarginInterestRateHistoryRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetMarginInterestRateHistoryRequest) StartTime(startTime time.Time) *GetMarginInterestRateHistoryRequest
- type GetMarginLiquidationHistoryRequest
- func (g *GetMarginLiquidationHistoryRequest) Current(current int) *GetMarginLiquidationHistoryRequest
- func (g *GetMarginLiquidationHistoryRequest) Do(ctx context.Context) ([]MarginLiquidationRecord, 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) IsolatedSymbol(isolatedSymbol string) *GetMarginLiquidationHistoryRequest
- func (g *GetMarginLiquidationHistoryRequest) Size(size int) *GetMarginLiquidationHistoryRequest
- func (g *GetMarginLiquidationHistoryRequest) StartTime(startTime time.Time) *GetMarginLiquidationHistoryRequest
- type GetMarginMaxBorrowableRequest
- func (g *GetMarginMaxBorrowableRequest) Asset(asset string) *GetMarginMaxBorrowableRequest
- func (g *GetMarginMaxBorrowableRequest) Do(ctx context.Context) (*MarginMaxBorrowable, error)
- func (g *GetMarginMaxBorrowableRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetMarginMaxBorrowableRequest) GetParametersJSON() ([]byte, error)
- func (g *GetMarginMaxBorrowableRequest) GetParametersQuery() (url.Values, error)
- func (g *GetMarginMaxBorrowableRequest) GetQueryParameters() (url.Values, error)
- func (g *GetMarginMaxBorrowableRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetMarginMaxBorrowableRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetMarginMaxBorrowableRequest) IsolatedSymbol(isolatedSymbol string) *GetMarginMaxBorrowableRequest
- type GetMarginTradesRequest
- func (g *GetMarginTradesRequest) Do(ctx context.Context) ([]binance.TradeV3, error)
- func (g *GetMarginTradesRequest) EndTime(endTime time.Time) *GetMarginTradesRequest
- func (g *GetMarginTradesRequest) FromID(fromID uint64) *GetMarginTradesRequest
- func (g *GetMarginTradesRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetMarginTradesRequest) GetParametersJSON() ([]byte, error)
- func (g *GetMarginTradesRequest) GetParametersQuery() (url.Values, error)
- func (g *GetMarginTradesRequest) GetPath() string
- func (g *GetMarginTradesRequest) GetQueryParameters() (url.Values, error)
- func (g *GetMarginTradesRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetMarginTradesRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetMarginTradesRequest) IsIsolated(isIsolated bool) *GetMarginTradesRequest
- func (g *GetMarginTradesRequest) Limit(limit uint64) *GetMarginTradesRequest
- func (g *GetMarginTradesRequest) OrderID(orderID uint64) *GetMarginTradesRequest
- func (g *GetMarginTradesRequest) StartTime(startTime time.Time) *GetMarginTradesRequest
- func (g *GetMarginTradesRequest) Symbol(symbol string) *GetMarginTradesRequest
- type GetMyTradesRequest
- func (g *GetMyTradesRequest) Do(ctx context.Context) ([]binance.TradeV3, error)
- func (g *GetMyTradesRequest) EndTime(endTime time.Time) *GetMyTradesRequest
- func (g *GetMyTradesRequest) FromID(fromID uint64) *GetMyTradesRequest
- func (g *GetMyTradesRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetMyTradesRequest) GetParametersJSON() ([]byte, error)
- func (g *GetMyTradesRequest) GetParametersQuery() (url.Values, error)
- func (g *GetMyTradesRequest) GetQueryParameters() (url.Values, error)
- func (g *GetMyTradesRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetMyTradesRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetMyTradesRequest) Limit(limit uint64) *GetMyTradesRequest
- func (g *GetMyTradesRequest) OrderID(orderID uint64) *GetMyTradesRequest
- func (g *GetMyTradesRequest) StartTime(startTime time.Time) *GetMyTradesRequest
- func (g *GetMyTradesRequest) Symbol(symbol string) *GetMyTradesRequest
- type GetSpotRebateHistoryRequest
- func (g *GetSpotRebateHistoryRequest) Do(ctx context.Context) ([]SpotRebate, error)
- func (g *GetSpotRebateHistoryRequest) EndTime(endTime time.Time) *GetSpotRebateHistoryRequest
- func (g *GetSpotRebateHistoryRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetSpotRebateHistoryRequest) GetParametersJSON() ([]byte, error)
- func (g *GetSpotRebateHistoryRequest) GetParametersQuery() (url.Values, error)
- func (g *GetSpotRebateHistoryRequest) GetQueryParameters() (url.Values, error)
- func (g *GetSpotRebateHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetSpotRebateHistoryRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetSpotRebateHistoryRequest) StartTime(startTime time.Time) *GetSpotRebateHistoryRequest
- type GetTradeFeeRequest
- func (g *GetTradeFeeRequest) Do(ctx context.Context) ([]TradeFee, error)
- func (g *GetTradeFeeRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetTradeFeeRequest) GetParametersJSON() ([]byte, error)
- func (g *GetTradeFeeRequest) GetParametersQuery() (url.Values, error)
- func (g *GetTradeFeeRequest) GetQueryParameters() (url.Values, error)
- func (g *GetTradeFeeRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetTradeFeeRequest) GetSlugsMap() (map[string]string, error)
- type GetWithdrawHistoryRequest
- func (g *GetWithdrawHistoryRequest) Coin(coin string) *GetWithdrawHistoryRequest
- func (g *GetWithdrawHistoryRequest) Do(ctx context.Context) ([]WithdrawRecord, error)
- func (g *GetWithdrawHistoryRequest) EndTime(endTime time.Time) *GetWithdrawHistoryRequest
- func (g *GetWithdrawHistoryRequest) GetParameters() (map[string]interface{}, error)
- func (g *GetWithdrawHistoryRequest) GetParametersJSON() ([]byte, error)
- func (g *GetWithdrawHistoryRequest) GetParametersQuery() (url.Values, error)
- func (g *GetWithdrawHistoryRequest) GetPath() string
- func (g *GetWithdrawHistoryRequest) GetQueryParameters() (url.Values, error)
- func (g *GetWithdrawHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
- func (g *GetWithdrawHistoryRequest) GetSlugsMap() (map[string]string, error)
- func (g *GetWithdrawHistoryRequest) Limit(limit uint64) *GetWithdrawHistoryRequest
- func (g *GetWithdrawHistoryRequest) Offset(offset uint64) *GetWithdrawHistoryRequest
- func (g *GetWithdrawHistoryRequest) StartTime(startTime time.Time) *GetWithdrawHistoryRequest
- func (g *GetWithdrawHistoryRequest) Status(status WithdrawStatus) *GetWithdrawHistoryRequest
- func (g *GetWithdrawHistoryRequest) WithdrawOrderId(withdrawOrderId string) *GetWithdrawHistoryRequest
- type InterestType
- type MarginBorrowRepayRecord
- type MarginBorrowStatus
- type MarginInterest
- type MarginInterestRate
- type MarginLiquidationRecord
- type MarginMaxBorrowable
- type MultiAssetsMarginMode
- type OrderRespType
- type OrderStatusType
- type OrderType
- type PagedDataResponse
- type PlaceMarginOrderRequest
- func (p *PlaceMarginOrderRequest) Amount(amount fixedpoint.Value) *PlaceMarginOrderRequest
- func (p *PlaceMarginOrderRequest) Asset(asset string) *PlaceMarginOrderRequest
- func (p *PlaceMarginOrderRequest) Do(ctx context.Context) (*TransferResponse, error)
- func (p *PlaceMarginOrderRequest) GetParameters() (map[string]interface{}, error)
- func (p *PlaceMarginOrderRequest) GetParametersJSON() ([]byte, error)
- func (p *PlaceMarginOrderRequest) GetParametersQuery() (url.Values, error)
- func (p *PlaceMarginOrderRequest) GetPath() string
- func (p *PlaceMarginOrderRequest) GetQueryParameters() (url.Values, error)
- func (p *PlaceMarginOrderRequest) GetSlugParameters() (map[string]interface{}, error)
- func (p *PlaceMarginOrderRequest) GetSlugsMap() (map[string]string, error)
- func (p *PlaceMarginOrderRequest) IsIsolated(isIsolated bool) *PlaceMarginOrderRequest
- func (p *PlaceMarginOrderRequest) SetBorrowRepayType(BorrowRepayType BorrowRepayType) *PlaceMarginOrderRequest
- func (p *PlaceMarginOrderRequest) Symbol(symbol string) *PlaceMarginOrderRequest
- type RebateType
- type RestClient
- func (c *RestClient) Auth(key, secret string)
- func (c *RestClient) NewAuthenticatedRequest(ctx context.Context, method, refURL string, params url.Values, ...) (*http.Request, error)
- func (c *RestClient) NewCancelReplaceSpotOrderRequest() *CancelReplaceSpotOrderRequest
- func (c *RestClient) NewFuturesTransferRequest() *FuturesTransferRequest
- func (c *RestClient) NewGetApiReferralIfNewUserRequest() *GetApiReferralIfNewUserRequest
- func (c *RestClient) NewGetDepositAddressRequest() *GetDepositAddressRequest
- func (c *RestClient) NewGetDepositHistoryRequest() *GetDepositHistoryRequest
- func (c *RestClient) NewGetDepthRequest() *GetDepthRequest
- func (c *RestClient) NewGetHistoricalTradesRequest() *GetHistoricalTradesRequest
- func (c *RestClient) NewGetMarginBorrowRepayHistoryRequest() *GetMarginBorrowRepayHistoryRequest
- func (c *RestClient) NewGetMarginInterestHistoryRequest() *GetMarginInterestHistoryRequest
- func (c *RestClient) NewGetMarginInterestRateHistoryRequest() *GetMarginInterestRateHistoryRequest
- func (c *RestClient) NewGetMarginLiquidationHistoryRequest() *GetMarginLiquidationHistoryRequest
- func (c *RestClient) NewGetMarginMaxBorrowableRequest() *GetMarginMaxBorrowableRequest
- func (c *RestClient) NewGetMarginTradesRequest() *GetMarginTradesRequest
- func (c *RestClient) NewGetMyTradesRequest() *GetMyTradesRequest
- func (c *RestClient) NewGetSpotRebateHistoryRequest() *GetSpotRebateHistoryRequest
- func (c *RestClient) NewGetTradeFeeRequest() *GetTradeFeeRequest
- func (c *RestClient) NewGetWithdrawHistoryRequest() *GetWithdrawHistoryRequest
- func (c *RestClient) NewPlaceMarginOrderRequest() *PlaceMarginOrderRequest
- func (c *RestClient) NewRequest(ctx context.Context, method, refURL string, params url.Values, ...) (*http.Request, error)
- func (c *RestClient) NewTransferAssetRequest() *TransferAssetRequest
- func (c *RestClient) NewWithdrawRequest() *WithdrawRequest
- func (c *RestClient) SendRequest(req *http.Request) (*requestgen.Response, error)
- func (c *RestClient) SetTimeOffsetFromServer(ctx context.Context) error
- type RowsResponse
- type SideType
- type SpotRebate
- type Trade
- type TradeFee
- type TransferAssetRequest
- func (t *TransferAssetRequest) Amount(amount string) *TransferAssetRequest
- func (t *TransferAssetRequest) Asset(asset string) *TransferAssetRequest
- func (t *TransferAssetRequest) Do(ctx context.Context) (*TransferResponse, error)
- func (t *TransferAssetRequest) FromSymbol(fromSymbol string) *TransferAssetRequest
- func (t *TransferAssetRequest) GetParameters() (map[string]interface{}, error)
- func (t *TransferAssetRequest) GetParametersJSON() ([]byte, error)
- func (t *TransferAssetRequest) GetParametersQuery() (url.Values, error)
- func (t *TransferAssetRequest) GetPath() string
- func (t *TransferAssetRequest) GetQueryParameters() (url.Values, error)
- func (t *TransferAssetRequest) GetSlugParameters() (map[string]interface{}, error)
- func (t *TransferAssetRequest) GetSlugsMap() (map[string]string, error)
- func (t *TransferAssetRequest) ToSymbol(toSymbol string) *TransferAssetRequest
- func (t *TransferAssetRequest) TransferType(transferType TransferAssetType) *TransferAssetRequest
- type TransferAssetType
- type TransferResponse
- type TransferType
- type WalletType
- type WithdrawRecord
- type WithdrawRequest
- func (w *WithdrawRequest) Address(address string) *WithdrawRequest
- func (w *WithdrawRequest) AddressTag(addressTag string) *WithdrawRequest
- func (w *WithdrawRequest) Amount(amount string) *WithdrawRequest
- func (w *WithdrawRequest) Coin(coin string) *WithdrawRequest
- func (w *WithdrawRequest) Do(ctx context.Context) (*WithdrawResponse, error)
- func (w *WithdrawRequest) GetParameters() (map[string]interface{}, error)
- func (w *WithdrawRequest) GetParametersJSON() ([]byte, error)
- func (w *WithdrawRequest) GetParametersQuery() (url.Values, error)
- func (w *WithdrawRequest) GetQueryParameters() (url.Values, error)
- func (w *WithdrawRequest) GetSlugParameters() (map[string]interface{}, error)
- func (w *WithdrawRequest) GetSlugsMap() (map[string]string, error)
- func (w *WithdrawRequest) Name(name string) *WithdrawRequest
- func (w *WithdrawRequest) Network(network string) *WithdrawRequest
- func (w *WithdrawRequest) TransactionFeeFlag(transactionFeeFlag bool) *WithdrawRequest
- func (w *WithdrawRequest) WalletType(walletType WalletType) *WithdrawRequest
- func (w *WithdrawRequest) WithdrawOrderId(withdrawOrderId string) *WithdrawRequest
- type WithdrawResponse
- type WithdrawStatus
Constants ¶
const ( RebateTypeCommission = 1 RebateTypeReferralKickback = 2 )
const DebugRequestResponse = false
const FuturesRestBaseURL = "https://fapi.binance.com"
const RestBaseURL = "https://api.binance.com"
const SandboxRestBaseURL = "https://testnet.binance.vision"
const SideTypeBuy = binance.SideTypeBuy
const SideTypeSell = binance.SideTypeSell
Variables ¶
var DefaultHttpClient = &http.Client{
Timeout: defaultHTTPTimeout,
Transport: defaultTransport,
}
Functions ¶
func FormatTimestamp ¶
FormatTimestamp formats a time into Unix timestamp in milliseconds, as requested by Binance.
Types ¶
type APIResponse ¶
type APIResponse struct { Code string `json:"code"` Message string `json:"msg"` Data json.RawMessage `json:"data"` }
type ApiReferralIfNewUserResponse ¶ added in v1.34.0
type BorrowRepayType ¶ added in v1.57.0
type BorrowRepayType string
const ( BorrowRepayTypeBorrow BorrowRepayType = "BORROW" BorrowRepayTypeRepay BorrowRepayType = "REPAY" )
type CancelReplaceModeType ¶ added in v1.43.0
type CancelReplaceModeType string
const ( StopOnFailure CancelReplaceModeType = "STOP_ON_FAILURE" AllowFailure CancelReplaceModeType = "ALLOW_FAILURE" )
type CancelReplaceSpotOrderData ¶ added in v1.43.0
type CancelReplaceSpotOrderRequest ¶ added in v1.43.0
type CancelReplaceSpotOrderRequest struct {
// contains filtered or unexported fields
}
func (*CancelReplaceSpotOrderRequest) CancelNewClientOrderId ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) CancelNewClientOrderId(cancelNewClientOrderId string) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) CancelOrderId ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) CancelOrderId(cancelOrderId int) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) CancelOrigClientOrderId ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) CancelOrigClientOrderId(cancelOrigClientOrderId string) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) CancelReplaceMode ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) CancelReplaceMode(cancelReplaceMode CancelReplaceModeType) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) Do ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) Do(ctx context.Context) (*CancelReplaceSpotOrderResponse, error)
func (*CancelReplaceSpotOrderRequest) GetParameters ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*CancelReplaceSpotOrderRequest) GetParametersJSON ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*CancelReplaceSpotOrderRequest) GetParametersQuery ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*CancelReplaceSpotOrderRequest) GetQueryParameters ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*CancelReplaceSpotOrderRequest) GetSlugParameters ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*CancelReplaceSpotOrderRequest) GetSlugsMap ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) GetSlugsMap() (map[string]string, error)
func (*CancelReplaceSpotOrderRequest) IcebergQty ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) IcebergQty(icebergQty string) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) NewClientOrderId ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) NewClientOrderId(newClientOrderId string) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) NewOrderRespType ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) NewOrderRespType(newOrderRespType OrderRespType) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) Price ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) Price(price string) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) Quantity ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) Quantity(quantity string) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) QuoteOrderQty ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) QuoteOrderQty(quoteOrderQty string) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) RecvWindow ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) RecvWindow(recvWindow int) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) Side ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) Side(side binance.SideType) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) StopPrice ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) StopPrice(stopPrice string) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) StrategyId ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) StrategyId(strategyId int) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) StrategyType ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) StrategyType(strategyType int) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) Symbol ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) Symbol(symbol string) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) TimeInForce ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) TimeInForce(timeInForce string) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) Timestamp ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) Timestamp(timestamp types.MillisecondTimestamp) *CancelReplaceSpotOrderRequest
func (*CancelReplaceSpotOrderRequest) TrailingDelta ¶ added in v1.43.0
func (c *CancelReplaceSpotOrderRequest) TrailingDelta(trailingDelta int) *CancelReplaceSpotOrderRequest
type CancelReplaceSpotOrderResponse ¶ added in v1.43.0
type CancelReplaceSpotOrderResponse struct { Code int `json:"code,omitempty"` Msg string `json:"msg,omitempty"` Data *CancelReplaceSpotOrderData `json:"data"` }
type DepositAddress ¶
type DepositHistory ¶
type DepositHistory struct { Amount fixedpoint.Value `json:"amount"` Coin string `json:"coin"` Network string `json:"network"` Status DepositStatus `json:"status"` Address string `json:"address"` AddressTag string `json:"addressTag"` TxId string `json:"txId"` InsertTime types.MillisecondTimestamp `json:"insertTime"` TransferType int `json:"transferType"` UnlockConfirm int `json:"unlockConfirm"` // ConfirmTimes format = "current/required", for example: "7/16" ConfirmTimes string `json:"confirmTimes"` WalletType int `json:"walletType"` }
type DepositStatus ¶ added in v1.52.0
type DepositStatus int
const ( DepositStatusPending DepositStatus = 0 DepositStatusSuccess DepositStatus = 1 DepositStatusCredited DepositStatus = 6 DepositStatusWrong DepositStatus = 7 DepositStatusWaitingUserConfirm DepositStatus = 8 )
type Depth ¶ added in v1.57.0
type Depth struct { LastUpdateId int64 `json:"lastUpdateId"` Bids [][]fixedpoint.Value `json:"bids"` Asks [][]fixedpoint.Value `json:"asks"` }
type FuturesAccount ¶ added in v1.52.0
type FuturesAccount struct { Assets []*FuturesAccountAsset `json:"assets"` FeeTier int `json:"feeTier"` CanTrade bool `json:"canTrade"` CanDeposit bool `json:"canDeposit"` CanWithdraw bool `json:"canWithdraw"` UpdateTime int64 `json:"updateTime"` TotalInitialMargin string `json:"totalInitialMargin"` TotalMaintMargin string `json:"totalMaintMargin"` TotalWalletBalance string `json:"totalWalletBalance"` TotalUnrealizedProfit string `json:"totalUnrealizedProfit"` TotalMarginBalance string `json:"totalMarginBalance"` TotalPositionInitialMargin string `json:"totalPositionInitialMargin"` TotalOpenOrderInitialMargin string `json:"totalOpenOrderInitialMargin"` TotalCrossWalletBalance string `json:"totalCrossWalletBalance"` TotalCrossUnPnl string `json:"totalCrossUnPnl"` AvailableBalance string `json:"availableBalance"` MaxWithdrawAmount string `json:"maxWithdrawAmount"` Positions []*FuturesAccountPosition `json:"positions"` }
type FuturesAccountAsset ¶ added in v1.52.0
type FuturesAccountAsset struct { Asset string `json:"asset"` InitialMargin string `json:"initialMargin"` MaintMargin string `json:"maintMargin"` MarginBalance string `json:"marginBalance"` MaxWithdrawAmount string `json:"maxWithdrawAmount"` OpenOrderInitialMargin string `json:"openOrderInitialMargin"` PositionInitialMargin string `json:"positionInitialMargin"` UnrealizedProfit string `json:"unrealizedProfit"` WalletBalance string `json:"walletBalance"` }
FuturesAccountAsset define account asset
type FuturesAccountPosition ¶ added in v1.52.0
type FuturesAccountPosition struct { Isolated bool `json:"isolated"` Leverage string `json:"leverage"` InitialMargin string `json:"initialMargin"` MaintMargin string `json:"maintMargin"` OpenOrderInitialMargin string `json:"openOrderInitialMargin"` PositionInitialMargin string `json:"positionInitialMargin"` Symbol string `json:"symbol"` UnrealizedProfit string `json:"unrealizedProfit"` EntryPrice string `json:"entryPrice"` MaxNotional string `json:"maxNotional"` PositionSide string `json:"positionSide"` PositionAmt string `json:"positionAmt"` Notional string `json:"notional"` IsolatedWallet string `json:"isolatedWallet"` UpdateTime int64 `json:"updateTime"` }
FuturesAccountPosition define account position
type FuturesBalance ¶ added in v1.45.0
type FuturesBalance struct { AccountAlias string `json:"accountAlias"` Asset string `json:"asset"` // Balance - wallet balance Balance fixedpoint.Value `json:"balance"` CrossWalletBalance fixedpoint.Value `json:"crossWalletBalance"` // CrossUnPnL unrealized profit of crossed positions CrossUnPnl fixedpoint.Value `json:"crossUnPnl"` AvailableBalance fixedpoint.Value `json:"availableBalance"` // MaxWithdrawAmount - maximum amount for transfer out MaxWithdrawAmount fixedpoint.Value `json:"maxWithdrawAmount"` // MarginAvailable - whether the asset can be used as margin in Multi-Assets mode MarginAvailable bool `json:"marginAvailable"` UpdateTime types.MillisecondTimestamp `json:"updateTime"` }
type FuturesChangeInitialLeverageRequest ¶ added in v1.45.0
type FuturesChangeInitialLeverageRequest struct {
// contains filtered or unexported fields
}
func (*FuturesChangeInitialLeverageRequest) Do ¶ added in v1.45.0
func (f *FuturesChangeInitialLeverageRequest) Do(ctx context.Context) (*FuturesChangeInitialLeverageResponse, error)
func (*FuturesChangeInitialLeverageRequest) GetParameters ¶ added in v1.45.0
func (f *FuturesChangeInitialLeverageRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*FuturesChangeInitialLeverageRequest) GetParametersJSON ¶ added in v1.45.0
func (f *FuturesChangeInitialLeverageRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*FuturesChangeInitialLeverageRequest) GetParametersQuery ¶ added in v1.45.0
func (f *FuturesChangeInitialLeverageRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*FuturesChangeInitialLeverageRequest) GetQueryParameters ¶ added in v1.45.0
func (f *FuturesChangeInitialLeverageRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*FuturesChangeInitialLeverageRequest) GetSlugParameters ¶ added in v1.45.0
func (f *FuturesChangeInitialLeverageRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*FuturesChangeInitialLeverageRequest) GetSlugsMap ¶ added in v1.45.0
func (f *FuturesChangeInitialLeverageRequest) GetSlugsMap() (map[string]string, error)
func (*FuturesChangeInitialLeverageRequest) Leverage ¶ added in v1.45.0
func (f *FuturesChangeInitialLeverageRequest) Leverage(leverage int) *FuturesChangeInitialLeverageRequest
func (*FuturesChangeInitialLeverageRequest) Symbol ¶ added in v1.45.0
func (f *FuturesChangeInitialLeverageRequest) Symbol(symbol string) *FuturesChangeInitialLeverageRequest
type FuturesChangeInitialLeverageResponse ¶ added in v1.45.0
type FuturesChangeInitialLeverageResponse struct { Leverage int `json:"leverage"` MaxNotionalValue fixedpoint.Value `json:"maxNotionalValue"` Symbol string `json:"symbol"` }
type FuturesChangeMultiAssetsModeRequest ¶ added in v1.45.0
type FuturesChangeMultiAssetsModeRequest struct {
// contains filtered or unexported fields
}
func (*FuturesChangeMultiAssetsModeRequest) Do ¶ added in v1.45.0
func (f *FuturesChangeMultiAssetsModeRequest) Do(ctx context.Context) (*FuturesChangeMultiAssetsModeResponse, error)
func (*FuturesChangeMultiAssetsModeRequest) GetParameters ¶ added in v1.45.0
func (f *FuturesChangeMultiAssetsModeRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*FuturesChangeMultiAssetsModeRequest) GetParametersJSON ¶ added in v1.45.0
func (f *FuturesChangeMultiAssetsModeRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*FuturesChangeMultiAssetsModeRequest) GetParametersQuery ¶ added in v1.45.0
func (f *FuturesChangeMultiAssetsModeRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*FuturesChangeMultiAssetsModeRequest) GetQueryParameters ¶ added in v1.45.0
func (f *FuturesChangeMultiAssetsModeRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*FuturesChangeMultiAssetsModeRequest) GetSlugParameters ¶ added in v1.45.0
func (f *FuturesChangeMultiAssetsModeRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*FuturesChangeMultiAssetsModeRequest) GetSlugsMap ¶ added in v1.45.0
func (f *FuturesChangeMultiAssetsModeRequest) GetSlugsMap() (map[string]string, error)
func (*FuturesChangeMultiAssetsModeRequest) MultiAssetsMargin ¶ added in v1.45.0
func (f *FuturesChangeMultiAssetsModeRequest) MultiAssetsMargin(multiAssetsMargin MultiAssetsMarginMode) *FuturesChangeMultiAssetsModeRequest
type FuturesChangeMultiAssetsModeResponse ¶ added in v1.45.0
Code 200 == success
type FuturesGetAccountBalanceRequest ¶ added in v1.45.0
type FuturesGetAccountBalanceRequest struct {
// contains filtered or unexported fields
}
func (*FuturesGetAccountBalanceRequest) Do ¶ added in v1.45.0
func (f *FuturesGetAccountBalanceRequest) Do(ctx context.Context) ([]FuturesBalance, error)
func (*FuturesGetAccountBalanceRequest) GetParameters ¶ added in v1.45.0
func (f *FuturesGetAccountBalanceRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*FuturesGetAccountBalanceRequest) GetParametersJSON ¶ added in v1.45.0
func (f *FuturesGetAccountBalanceRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*FuturesGetAccountBalanceRequest) GetParametersQuery ¶ added in v1.45.0
func (f *FuturesGetAccountBalanceRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*FuturesGetAccountBalanceRequest) GetQueryParameters ¶ added in v1.45.0
func (f *FuturesGetAccountBalanceRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*FuturesGetAccountBalanceRequest) GetSlugParameters ¶ added in v1.45.0
func (f *FuturesGetAccountBalanceRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*FuturesGetAccountBalanceRequest) GetSlugsMap ¶ added in v1.45.0
func (f *FuturesGetAccountBalanceRequest) GetSlugsMap() (map[string]string, error)
type FuturesGetAccountRequest ¶ added in v1.52.0
type FuturesGetAccountRequest struct {
// contains filtered or unexported fields
}
func (*FuturesGetAccountRequest) Do ¶ added in v1.52.0
func (f *FuturesGetAccountRequest) Do(ctx context.Context) (*FuturesAccount, error)
func (*FuturesGetAccountRequest) GetParameters ¶ added in v1.52.0
func (f *FuturesGetAccountRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*FuturesGetAccountRequest) GetParametersJSON ¶ added in v1.52.0
func (f *FuturesGetAccountRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*FuturesGetAccountRequest) GetParametersQuery ¶ added in v1.52.0
func (f *FuturesGetAccountRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*FuturesGetAccountRequest) GetQueryParameters ¶ added in v1.52.0
func (f *FuturesGetAccountRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*FuturesGetAccountRequest) GetSlugParameters ¶ added in v1.52.0
func (f *FuturesGetAccountRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*FuturesGetAccountRequest) GetSlugsMap ¶ added in v1.52.0
func (f *FuturesGetAccountRequest) GetSlugsMap() (map[string]string, error)
type FuturesGetIncomeHistoryRequest ¶ added in v1.45.0
type FuturesGetIncomeHistoryRequest struct {
// contains filtered or unexported fields
}
func (*FuturesGetIncomeHistoryRequest) Do ¶ added in v1.45.0
func (f *FuturesGetIncomeHistoryRequest) Do(ctx context.Context) ([]FuturesIncome, error)
func (*FuturesGetIncomeHistoryRequest) EndTime ¶ added in v1.45.0
func (f *FuturesGetIncomeHistoryRequest) EndTime(endTime time.Time) *FuturesGetIncomeHistoryRequest
func (*FuturesGetIncomeHistoryRequest) GetParameters ¶ added in v1.45.0
func (f *FuturesGetIncomeHistoryRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*FuturesGetIncomeHistoryRequest) GetParametersJSON ¶ added in v1.45.0
func (f *FuturesGetIncomeHistoryRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*FuturesGetIncomeHistoryRequest) GetParametersQuery ¶ added in v1.45.0
func (f *FuturesGetIncomeHistoryRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*FuturesGetIncomeHistoryRequest) GetQueryParameters ¶ added in v1.45.0
func (f *FuturesGetIncomeHistoryRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*FuturesGetIncomeHistoryRequest) GetSlugParameters ¶ added in v1.45.0
func (f *FuturesGetIncomeHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*FuturesGetIncomeHistoryRequest) GetSlugsMap ¶ added in v1.45.0
func (f *FuturesGetIncomeHistoryRequest) GetSlugsMap() (map[string]string, error)
func (*FuturesGetIncomeHistoryRequest) IncomeType ¶ added in v1.45.0
func (f *FuturesGetIncomeHistoryRequest) IncomeType(incomeType FuturesIncomeType) *FuturesGetIncomeHistoryRequest
func (*FuturesGetIncomeHistoryRequest) Limit ¶ added in v1.45.0
func (f *FuturesGetIncomeHistoryRequest) Limit(limit uint64) *FuturesGetIncomeHistoryRequest
func (*FuturesGetIncomeHistoryRequest) StartTime ¶ added in v1.45.0
func (f *FuturesGetIncomeHistoryRequest) StartTime(startTime time.Time) *FuturesGetIncomeHistoryRequest
func (*FuturesGetIncomeHistoryRequest) Symbol ¶ added in v1.45.0
func (f *FuturesGetIncomeHistoryRequest) Symbol(symbol string) *FuturesGetIncomeHistoryRequest
type FuturesGetMultiAssetsModeRequest ¶ added in v1.45.0
type FuturesGetMultiAssetsModeRequest struct {
// contains filtered or unexported fields
}
func (*FuturesGetMultiAssetsModeRequest) Do ¶ added in v1.45.0
func (f *FuturesGetMultiAssetsModeRequest) Do(ctx context.Context) (*FuturesMultiAssetsModeResponse, error)
func (*FuturesGetMultiAssetsModeRequest) GetParameters ¶ added in v1.45.0
func (f *FuturesGetMultiAssetsModeRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*FuturesGetMultiAssetsModeRequest) GetParametersJSON ¶ added in v1.45.0
func (f *FuturesGetMultiAssetsModeRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*FuturesGetMultiAssetsModeRequest) GetParametersQuery ¶ added in v1.45.0
func (f *FuturesGetMultiAssetsModeRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*FuturesGetMultiAssetsModeRequest) GetQueryParameters ¶ added in v1.45.0
func (f *FuturesGetMultiAssetsModeRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*FuturesGetMultiAssetsModeRequest) GetSlugParameters ¶ added in v1.45.0
func (f *FuturesGetMultiAssetsModeRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*FuturesGetMultiAssetsModeRequest) GetSlugsMap ¶ added in v1.45.0
func (f *FuturesGetMultiAssetsModeRequest) GetSlugsMap() (map[string]string, error)
type FuturesGetOpenInterestRequest ¶ added in v1.48.0
type FuturesGetOpenInterestRequest struct {
// contains filtered or unexported fields
}
func (*FuturesGetOpenInterestRequest) Do ¶ added in v1.48.0
func (f *FuturesGetOpenInterestRequest) Do(ctx context.Context) (*FuturesOpenInterest, error)
func (*FuturesGetOpenInterestRequest) GetParameters ¶ added in v1.48.0
func (f *FuturesGetOpenInterestRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*FuturesGetOpenInterestRequest) GetParametersJSON ¶ added in v1.48.0
func (f *FuturesGetOpenInterestRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*FuturesGetOpenInterestRequest) GetParametersQuery ¶ added in v1.48.0
func (f *FuturesGetOpenInterestRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*FuturesGetOpenInterestRequest) GetQueryParameters ¶ added in v1.48.0
func (f *FuturesGetOpenInterestRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*FuturesGetOpenInterestRequest) GetSlugParameters ¶ added in v1.48.0
func (f *FuturesGetOpenInterestRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*FuturesGetOpenInterestRequest) GetSlugsMap ¶ added in v1.48.0
func (f *FuturesGetOpenInterestRequest) GetSlugsMap() (map[string]string, error)
func (*FuturesGetOpenInterestRequest) Symbol ¶ added in v1.48.0
func (f *FuturesGetOpenInterestRequest) Symbol(symbol string) *FuturesGetOpenInterestRequest
type FuturesGetOpenInterestStatisticsRequest ¶ added in v1.48.0
type FuturesGetOpenInterestStatisticsRequest struct {
// contains filtered or unexported fields
}
func (*FuturesGetOpenInterestStatisticsRequest) Do ¶ added in v1.48.0
func (f *FuturesGetOpenInterestStatisticsRequest) Do(ctx context.Context) ([]FuturesOpenInterestStatistics, error)
func (*FuturesGetOpenInterestStatisticsRequest) EndTime ¶ added in v1.48.0
func (f *FuturesGetOpenInterestStatisticsRequest) EndTime(endTime time.Time) *FuturesGetOpenInterestStatisticsRequest
func (*FuturesGetOpenInterestStatisticsRequest) GetParameters ¶ added in v1.48.0
func (f *FuturesGetOpenInterestStatisticsRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*FuturesGetOpenInterestStatisticsRequest) GetParametersJSON ¶ added in v1.48.0
func (f *FuturesGetOpenInterestStatisticsRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*FuturesGetOpenInterestStatisticsRequest) GetParametersQuery ¶ added in v1.48.0
func (f *FuturesGetOpenInterestStatisticsRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*FuturesGetOpenInterestStatisticsRequest) GetQueryParameters ¶ added in v1.48.0
func (f *FuturesGetOpenInterestStatisticsRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*FuturesGetOpenInterestStatisticsRequest) GetSlugParameters ¶ added in v1.48.0
func (f *FuturesGetOpenInterestStatisticsRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*FuturesGetOpenInterestStatisticsRequest) GetSlugsMap ¶ added in v1.48.0
func (f *FuturesGetOpenInterestStatisticsRequest) GetSlugsMap() (map[string]string, error)
func (*FuturesGetOpenInterestStatisticsRequest) Limit ¶ added in v1.48.0
func (f *FuturesGetOpenInterestStatisticsRequest) Limit(limit uint64) *FuturesGetOpenInterestStatisticsRequest
func (*FuturesGetOpenInterestStatisticsRequest) Period ¶ added in v1.48.0
func (f *FuturesGetOpenInterestStatisticsRequest) Period(period types.Interval) *FuturesGetOpenInterestStatisticsRequest
func (*FuturesGetOpenInterestStatisticsRequest) StartTime ¶ added in v1.48.0
func (f *FuturesGetOpenInterestStatisticsRequest) StartTime(startTime time.Time) *FuturesGetOpenInterestStatisticsRequest
func (*FuturesGetOpenInterestStatisticsRequest) Symbol ¶ added in v1.48.0
func (f *FuturesGetOpenInterestStatisticsRequest) Symbol(symbol string) *FuturesGetOpenInterestStatisticsRequest
type FuturesGetPositionRisksRequest ¶ added in v1.45.0
type FuturesGetPositionRisksRequest struct {
// contains filtered or unexported fields
}
func (*FuturesGetPositionRisksRequest) Do ¶ added in v1.45.0
func (f *FuturesGetPositionRisksRequest) Do(ctx context.Context) ([]FuturesPositionRisk, error)
func (*FuturesGetPositionRisksRequest) GetParameters ¶ added in v1.45.0
func (f *FuturesGetPositionRisksRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*FuturesGetPositionRisksRequest) GetParametersJSON ¶ added in v1.45.0
func (f *FuturesGetPositionRisksRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*FuturesGetPositionRisksRequest) GetParametersQuery ¶ added in v1.45.0
func (f *FuturesGetPositionRisksRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*FuturesGetPositionRisksRequest) GetQueryParameters ¶ added in v1.45.0
func (f *FuturesGetPositionRisksRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*FuturesGetPositionRisksRequest) GetSlugParameters ¶ added in v1.45.0
func (f *FuturesGetPositionRisksRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*FuturesGetPositionRisksRequest) GetSlugsMap ¶ added in v1.45.0
func (f *FuturesGetPositionRisksRequest) GetSlugsMap() (map[string]string, error)
func (*FuturesGetPositionRisksRequest) Symbol ¶ added in v1.45.0
func (f *FuturesGetPositionRisksRequest) Symbol(symbol string) *FuturesGetPositionRisksRequest
type FuturesGlobalLongShortAccountRatio ¶ added in v1.48.0
type FuturesGlobalLongShortAccountRatio struct { Symbol string `json:"symbol"` LongShortRatio fixedpoint.Value `json:"longShortRatio"` LongAccount fixedpoint.Value `json:"longAccount"` ShortAccount fixedpoint.Value `json:"shortAccount"` Timestamp types.MillisecondTimestamp `json:"timestamp"` }
type FuturesGlobalLongShortAccountRatioRequest ¶ added in v1.48.0
type FuturesGlobalLongShortAccountRatioRequest struct {
// contains filtered or unexported fields
}
func (*FuturesGlobalLongShortAccountRatioRequest) Do ¶ added in v1.48.0
func (f *FuturesGlobalLongShortAccountRatioRequest) Do(ctx context.Context) ([]FuturesGlobalLongShortAccountRatio, error)
func (*FuturesGlobalLongShortAccountRatioRequest) EndTime ¶ added in v1.48.0
func (f *FuturesGlobalLongShortAccountRatioRequest) EndTime(endTime time.Time) *FuturesGlobalLongShortAccountRatioRequest
func (*FuturesGlobalLongShortAccountRatioRequest) GetParameters ¶ added in v1.48.0
func (f *FuturesGlobalLongShortAccountRatioRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*FuturesGlobalLongShortAccountRatioRequest) GetParametersJSON ¶ added in v1.48.0
func (f *FuturesGlobalLongShortAccountRatioRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*FuturesGlobalLongShortAccountRatioRequest) GetParametersQuery ¶ added in v1.48.0
func (f *FuturesGlobalLongShortAccountRatioRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*FuturesGlobalLongShortAccountRatioRequest) GetQueryParameters ¶ added in v1.48.0
func (f *FuturesGlobalLongShortAccountRatioRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*FuturesGlobalLongShortAccountRatioRequest) GetSlugParameters ¶ added in v1.48.0
func (f *FuturesGlobalLongShortAccountRatioRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*FuturesGlobalLongShortAccountRatioRequest) GetSlugsMap ¶ added in v1.48.0
func (f *FuturesGlobalLongShortAccountRatioRequest) GetSlugsMap() (map[string]string, error)
func (*FuturesGlobalLongShortAccountRatioRequest) Limit ¶ added in v1.48.0
func (f *FuturesGlobalLongShortAccountRatioRequest) Limit(limit uint64) *FuturesGlobalLongShortAccountRatioRequest
func (*FuturesGlobalLongShortAccountRatioRequest) Period ¶ added in v1.48.0
func (f *FuturesGlobalLongShortAccountRatioRequest) Period(period types.Interval) *FuturesGlobalLongShortAccountRatioRequest
func (*FuturesGlobalLongShortAccountRatioRequest) StartTime ¶ added in v1.48.0
func (f *FuturesGlobalLongShortAccountRatioRequest) StartTime(startTime time.Time) *FuturesGlobalLongShortAccountRatioRequest
func (*FuturesGlobalLongShortAccountRatioRequest) Symbol ¶ added in v1.48.0
func (f *FuturesGlobalLongShortAccountRatioRequest) Symbol(symbol string) *FuturesGlobalLongShortAccountRatioRequest
type FuturesIncome ¶ added in v1.45.0
type FuturesIncome struct { Symbol string `json:"symbol"` IncomeType FuturesIncomeType `json:"incomeType"` Income fixedpoint.Value `json:"income"` Asset string `json:"asset"` Info string `json:"info"` Time types.MillisecondTimestamp `json:"time"` TranId int64 `json:"tranId"` TradeId string `json:"tradeId"` }
type FuturesIncomeType ¶ added in v1.45.0
type FuturesIncomeType string
FuturesIncomeType can be one of the following value: TRANSFER, WELCOME_BONUS, REALIZED_PNL, FUNDING_FEE, COMMISSION, INSURANCE_CLEAR, REFERRAL_KICKBACK, COMMISSION_REBATE, API_REBATE, CONTEST_REWARD, CROSS_COLLATERAL_TRANSFER, OPTIONS_PREMIUM_FEE, OPTIONS_SETTLE_PROFIT, INTERNAL_TRANSFER, AUTO_EXCHANGE, DELIVERED_SETTELMENT, COIN_SWAP_DEPOSIT, COIN_SWAP_WITHDRAW, POSITION_LIMIT_INCREASE_FEE
const ( FuturesIncomeTransfer FuturesIncomeType = "TRANSFER" FuturesIncomeWelcomeBonus FuturesIncomeType = "WELCOME_BONUS" FuturesIncomeFundingFee FuturesIncomeType = "FUNDING_FEE" FuturesIncomeRealizedPnL FuturesIncomeType = "REALIZED_PNL" FuturesIncomeCommission FuturesIncomeType = "COMMISSION" FuturesIncomeReferralKickback FuturesIncomeType = "REFERRAL_KICKBACK" FuturesIncomeCommissionRebate FuturesIncomeType = "COMMISSION_REBATE" FuturesIncomeApiRebate FuturesIncomeType = "API_REBATE" FuturesIncomeContestReward FuturesIncomeType = "CONTEST_REWARD" )
type FuturesMultiAssetsModeResponse ¶ added in v1.45.0
type FuturesMultiAssetsModeResponse struct {
MultiAssetsMargin bool `json:"multiAssetsMargin"`
}
type FuturesOpenInterest ¶ added in v1.48.0
type FuturesOpenInterest struct { OpenInterest fixedpoint.Value `json:"openInterest"` Symbol string `json:"symbol"` Time types.MillisecondTimestamp `json:"time"` }
type FuturesOpenInterestStatistics ¶ added in v1.48.0
type FuturesOpenInterestStatistics struct { Symbol string `json:"symbol"` SumOpenInterest fixedpoint.Value `json:"sumOpenInterest"` SumOpenInterestValue fixedpoint.Value `json:"sumOpenInterestValue"` Timestamp types.MillisecondTimestamp `json:"timestamp"` }
type FuturesPositionRisk ¶ added in v1.45.0
type FuturesPositionRisk struct { EntryPrice fixedpoint.Value `json:"entryPrice"` MarginType string `json:"marginType"` IsAutoAddMargin string `json:"isAutoAddMargin"` IsolatedMargin string `json:"isolatedMargin"` Leverage fixedpoint.Value `json:"leverage"` LiquidationPrice fixedpoint.Value `json:"liquidationPrice"` MarkPrice fixedpoint.Value `json:"markPrice"` MaxNotionalValue fixedpoint.Value `json:"maxNotionalValue"` PositionAmount fixedpoint.Value `json:"positionAmt"` Notional fixedpoint.Value `json:"notional"` IsolatedWallet string `json:"isolatedWallet"` Symbol string `json:"symbol"` UnRealizedProfit fixedpoint.Value `json:"unRealizedProfit"` PositionSide string `json:"positionSide"` UpdateTime types.MillisecondTimestamp `json:"updateTime"` }
type FuturesRestClient ¶ added in v1.45.0
type FuturesRestClient struct {
RestClient
}
func NewFuturesRestClient ¶ added in v1.45.0
func NewFuturesRestClient(baseURL string) *FuturesRestClient
func (*FuturesRestClient) NewFuturesChangeInitialLeverageRequest ¶ added in v1.45.0
func (c *FuturesRestClient) NewFuturesChangeInitialLeverageRequest() *FuturesChangeInitialLeverageRequest
func (*FuturesRestClient) NewFuturesChangeMultiAssetsModeRequest ¶ added in v1.45.0
func (c *FuturesRestClient) NewFuturesChangeMultiAssetsModeRequest() *FuturesChangeMultiAssetsModeRequest
func (*FuturesRestClient) NewFuturesGetAccountBalanceRequest ¶ added in v1.45.0
func (c *FuturesRestClient) NewFuturesGetAccountBalanceRequest() *FuturesGetAccountBalanceRequest
func (*FuturesRestClient) NewFuturesGetAccountRequest ¶ added in v1.52.0
func (c *FuturesRestClient) NewFuturesGetAccountRequest() *FuturesGetAccountRequest
func (*FuturesRestClient) NewFuturesGetIncomeHistoryRequest ¶ added in v1.45.0
func (c *FuturesRestClient) NewFuturesGetIncomeHistoryRequest() *FuturesGetIncomeHistoryRequest
func (*FuturesRestClient) NewFuturesGetMultiAssetsModeRequest ¶ added in v1.45.0
func (c *FuturesRestClient) NewFuturesGetMultiAssetsModeRequest() *FuturesGetMultiAssetsModeRequest
func (*FuturesRestClient) NewFuturesGetOpenInterestRequest ¶ added in v1.48.0
func (c *FuturesRestClient) NewFuturesGetOpenInterestRequest() *FuturesGetOpenInterestRequest
func (*FuturesRestClient) NewFuturesGetOpenInterestStatisticsRequest ¶ added in v1.48.0
func (c *FuturesRestClient) NewFuturesGetOpenInterestStatisticsRequest() *FuturesGetOpenInterestStatisticsRequest
func (*FuturesRestClient) NewFuturesGetPositionRisksRequest ¶ added in v1.45.0
func (c *FuturesRestClient) NewFuturesGetPositionRisksRequest() *FuturesGetPositionRisksRequest
func (*FuturesRestClient) NewFuturesGlobalLongShortAccountRatioRequest ¶ added in v1.48.0
func (c *FuturesRestClient) NewFuturesGlobalLongShortAccountRatioRequest() *FuturesGlobalLongShortAccountRatioRequest
func (*FuturesRestClient) NewFuturesTakerBuySellVolumeRequest ¶ added in v1.48.0
func (c *FuturesRestClient) NewFuturesTakerBuySellVolumeRequest() *FuturesTakerBuySellVolumeRequest
func (*FuturesRestClient) NewFuturesTopTraderLongShortAccountRatioRequest ¶ added in v1.48.0
func (c *FuturesRestClient) NewFuturesTopTraderLongShortAccountRatioRequest() *FuturesTopTraderLongShortAccountRatioRequest
func (*FuturesRestClient) NewFuturesTopTraderLongShortPositionRatioRequest ¶ added in v1.48.0
func (c *FuturesRestClient) NewFuturesTopTraderLongShortPositionRatioRequest() *FuturesTopTraderLongShortPositionRatioRequest
type FuturesTakerBuySellVolume ¶ added in v1.48.0
type FuturesTakerBuySellVolume struct { BuySellRatio fixedpoint.Value `json:"buySellRatio"` BuyVol fixedpoint.Value `json:"buyVol"` SellVol fixedpoint.Value `json:"sellVol"` Timestamp types.MillisecondTimestamp `json:"timestamp"` }
type FuturesTakerBuySellVolumeRequest ¶ added in v1.48.0
type FuturesTakerBuySellVolumeRequest struct {
// contains filtered or unexported fields
}
func (*FuturesTakerBuySellVolumeRequest) Do ¶ added in v1.48.0
func (f *FuturesTakerBuySellVolumeRequest) Do(ctx context.Context) ([]FuturesTakerBuySellVolume, error)
func (*FuturesTakerBuySellVolumeRequest) EndTime ¶ added in v1.48.0
func (f *FuturesTakerBuySellVolumeRequest) EndTime(endTime time.Time) *FuturesTakerBuySellVolumeRequest
func (*FuturesTakerBuySellVolumeRequest) GetParameters ¶ added in v1.48.0
func (f *FuturesTakerBuySellVolumeRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*FuturesTakerBuySellVolumeRequest) GetParametersJSON ¶ added in v1.48.0
func (f *FuturesTakerBuySellVolumeRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*FuturesTakerBuySellVolumeRequest) GetParametersQuery ¶ added in v1.48.0
func (f *FuturesTakerBuySellVolumeRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*FuturesTakerBuySellVolumeRequest) GetQueryParameters ¶ added in v1.48.0
func (f *FuturesTakerBuySellVolumeRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*FuturesTakerBuySellVolumeRequest) GetSlugParameters ¶ added in v1.48.0
func (f *FuturesTakerBuySellVolumeRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*FuturesTakerBuySellVolumeRequest) GetSlugsMap ¶ added in v1.48.0
func (f *FuturesTakerBuySellVolumeRequest) GetSlugsMap() (map[string]string, error)
func (*FuturesTakerBuySellVolumeRequest) Limit ¶ added in v1.48.0
func (f *FuturesTakerBuySellVolumeRequest) Limit(limit uint64) *FuturesTakerBuySellVolumeRequest
func (*FuturesTakerBuySellVolumeRequest) Period ¶ added in v1.48.0
func (f *FuturesTakerBuySellVolumeRequest) Period(period types.Interval) *FuturesTakerBuySellVolumeRequest
func (*FuturesTakerBuySellVolumeRequest) StartTime ¶ added in v1.48.0
func (f *FuturesTakerBuySellVolumeRequest) StartTime(startTime time.Time) *FuturesTakerBuySellVolumeRequest
func (*FuturesTakerBuySellVolumeRequest) Symbol ¶ added in v1.48.0
func (f *FuturesTakerBuySellVolumeRequest) Symbol(symbol string) *FuturesTakerBuySellVolumeRequest
type FuturesTopTraderLongShortAccountRatio ¶ added in v1.48.0
type FuturesTopTraderLongShortAccountRatio struct { Symbol string `json:"symbol"` LongShortRatio fixedpoint.Value `json:"longShortRatio"` LongAccount fixedpoint.Value `json:"longAccount"` ShortAccount fixedpoint.Value `json:"shortAccount"` Timestamp types.MillisecondTimestamp `json:"timestamp"` }
type FuturesTopTraderLongShortAccountRatioRequest ¶ added in v1.48.0
type FuturesTopTraderLongShortAccountRatioRequest struct {
// contains filtered or unexported fields
}
func (*FuturesTopTraderLongShortAccountRatioRequest) Do ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortAccountRatioRequest) Do(ctx context.Context) ([]FuturesTopTraderLongShortAccountRatio, error)
func (*FuturesTopTraderLongShortAccountRatioRequest) EndTime ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortAccountRatioRequest) EndTime(endTime time.Time) *FuturesTopTraderLongShortAccountRatioRequest
func (*FuturesTopTraderLongShortAccountRatioRequest) GetParameters ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortAccountRatioRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*FuturesTopTraderLongShortAccountRatioRequest) GetParametersJSON ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortAccountRatioRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*FuturesTopTraderLongShortAccountRatioRequest) GetParametersQuery ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortAccountRatioRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*FuturesTopTraderLongShortAccountRatioRequest) GetQueryParameters ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortAccountRatioRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*FuturesTopTraderLongShortAccountRatioRequest) GetSlugParameters ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortAccountRatioRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*FuturesTopTraderLongShortAccountRatioRequest) GetSlugsMap ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortAccountRatioRequest) GetSlugsMap() (map[string]string, error)
func (*FuturesTopTraderLongShortAccountRatioRequest) Limit ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortAccountRatioRequest) Limit(limit uint64) *FuturesTopTraderLongShortAccountRatioRequest
func (*FuturesTopTraderLongShortAccountRatioRequest) Period ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortAccountRatioRequest) Period(period types.Interval) *FuturesTopTraderLongShortAccountRatioRequest
func (*FuturesTopTraderLongShortAccountRatioRequest) StartTime ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortAccountRatioRequest) StartTime(startTime time.Time) *FuturesTopTraderLongShortAccountRatioRequest
func (*FuturesTopTraderLongShortAccountRatioRequest) Symbol ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortAccountRatioRequest) Symbol(symbol string) *FuturesTopTraderLongShortAccountRatioRequest
type FuturesTopTraderLongShortPositionRatio ¶ added in v1.48.0
type FuturesTopTraderLongShortPositionRatio struct { Symbol string `json:"symbol"` LongShortRatio fixedpoint.Value `json:"longShortRatio"` LongAccount fixedpoint.Value `json:"longAccount"` ShortAccount fixedpoint.Value `json:"shortAccount"` Timestamp types.MillisecondTimestamp `json:"timestamp"` }
type FuturesTopTraderLongShortPositionRatioRequest ¶ added in v1.48.0
type FuturesTopTraderLongShortPositionRatioRequest struct {
// contains filtered or unexported fields
}
func (*FuturesTopTraderLongShortPositionRatioRequest) Do ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortPositionRatioRequest) Do(ctx context.Context) ([]FuturesTopTraderLongShortPositionRatio, error)
func (*FuturesTopTraderLongShortPositionRatioRequest) EndTime ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortPositionRatioRequest) EndTime(endTime time.Time) *FuturesTopTraderLongShortPositionRatioRequest
func (*FuturesTopTraderLongShortPositionRatioRequest) GetParameters ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortPositionRatioRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*FuturesTopTraderLongShortPositionRatioRequest) GetParametersJSON ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortPositionRatioRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*FuturesTopTraderLongShortPositionRatioRequest) GetParametersQuery ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortPositionRatioRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*FuturesTopTraderLongShortPositionRatioRequest) GetQueryParameters ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortPositionRatioRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*FuturesTopTraderLongShortPositionRatioRequest) GetSlugParameters ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortPositionRatioRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*FuturesTopTraderLongShortPositionRatioRequest) GetSlugsMap ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortPositionRatioRequest) GetSlugsMap() (map[string]string, error)
func (*FuturesTopTraderLongShortPositionRatioRequest) Limit ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortPositionRatioRequest) Limit(limit uint64) *FuturesTopTraderLongShortPositionRatioRequest
func (*FuturesTopTraderLongShortPositionRatioRequest) Period ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortPositionRatioRequest) Period(period types.Interval) *FuturesTopTraderLongShortPositionRatioRequest
func (*FuturesTopTraderLongShortPositionRatioRequest) StartTime ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortPositionRatioRequest) StartTime(startTime time.Time) *FuturesTopTraderLongShortPositionRatioRequest
func (*FuturesTopTraderLongShortPositionRatioRequest) Symbol ¶ added in v1.48.0
func (f *FuturesTopTraderLongShortPositionRatioRequest) Symbol(symbol string) *FuturesTopTraderLongShortPositionRatioRequest
type FuturesTransferRequest ¶ added in v1.45.0
type FuturesTransferRequest struct {
// contains filtered or unexported fields
}
func (*FuturesTransferRequest) Amount ¶ added in v1.45.0
func (f *FuturesTransferRequest) Amount(amount string) *FuturesTransferRequest
func (*FuturesTransferRequest) Asset ¶ added in v1.45.0
func (f *FuturesTransferRequest) Asset(asset string) *FuturesTransferRequest
func (*FuturesTransferRequest) Do ¶ added in v1.45.0
func (f *FuturesTransferRequest) Do(ctx context.Context) (*FuturesTransferResponse, error)
func (*FuturesTransferRequest) GetParameters ¶ added in v1.45.0
func (f *FuturesTransferRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*FuturesTransferRequest) GetParametersJSON ¶ added in v1.45.0
func (f *FuturesTransferRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*FuturesTransferRequest) GetParametersQuery ¶ added in v1.45.0
func (f *FuturesTransferRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*FuturesTransferRequest) GetQueryParameters ¶ added in v1.45.0
func (f *FuturesTransferRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*FuturesTransferRequest) GetSlugParameters ¶ added in v1.45.0
func (f *FuturesTransferRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*FuturesTransferRequest) GetSlugsMap ¶ added in v1.45.0
func (f *FuturesTransferRequest) GetSlugsMap() (map[string]string, error)
func (*FuturesTransferRequest) TransferType ¶ added in v1.45.0
func (f *FuturesTransferRequest) TransferType(transferType FuturesTransferType) *FuturesTransferRequest
type FuturesTransferResponse ¶ added in v1.45.0
type FuturesTransferResponse struct {
TranId int64 `json:"tranId"`
}
type FuturesTransferType ¶ added in v1.45.0
type FuturesTransferType int
const ( FuturesTransferSpotToUsdtFutures FuturesTransferType = 1 FuturesTransferUsdtFuturesToSpot FuturesTransferType = 2 FuturesTransferSpotToCoinFutures FuturesTransferType = 3 FuturesTransferCoinFuturesToSpot FuturesTransferType = 4 )
type GetApiReferralIfNewUserRequest ¶ added in v1.34.0
type GetApiReferralIfNewUserRequest struct {
// contains filtered or unexported fields
}
func (*GetApiReferralIfNewUserRequest) Do ¶ added in v1.34.0
func (g *GetApiReferralIfNewUserRequest) Do(ctx context.Context) (*ApiReferralIfNewUserResponse, error)
func (*GetApiReferralIfNewUserRequest) GetParameters ¶ added in v1.34.0
func (g *GetApiReferralIfNewUserRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetApiReferralIfNewUserRequest) GetParametersJSON ¶ added in v1.34.0
func (g *GetApiReferralIfNewUserRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetApiReferralIfNewUserRequest) GetParametersQuery ¶ added in v1.34.0
func (g *GetApiReferralIfNewUserRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetApiReferralIfNewUserRequest) GetQueryParameters ¶ added in v1.34.0
func (g *GetApiReferralIfNewUserRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetApiReferralIfNewUserRequest) GetSlugParameters ¶ added in v1.34.0
func (g *GetApiReferralIfNewUserRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetApiReferralIfNewUserRequest) GetSlugsMap ¶ added in v1.34.0
func (g *GetApiReferralIfNewUserRequest) GetSlugsMap() (map[string]string, error)
type GetDepositAddressRequest ¶
type GetDepositAddressRequest struct {
// contains filtered or unexported fields
}
func (*GetDepositAddressRequest) Coin ¶
func (g *GetDepositAddressRequest) Coin(coin string) *GetDepositAddressRequest
func (*GetDepositAddressRequest) Do ¶
func (g *GetDepositAddressRequest) Do(ctx context.Context) (*DepositAddress, error)
func (*GetDepositAddressRequest) GetParameters ¶
func (g *GetDepositAddressRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetDepositAddressRequest) GetParametersJSON ¶
func (g *GetDepositAddressRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetDepositAddressRequest) GetParametersQuery ¶
func (g *GetDepositAddressRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetDepositAddressRequest) GetQueryParameters ¶
func (g *GetDepositAddressRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetDepositAddressRequest) GetSlugParameters ¶
func (g *GetDepositAddressRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetDepositAddressRequest) GetSlugsMap ¶
func (g *GetDepositAddressRequest) GetSlugsMap() (map[string]string, error)
func (*GetDepositAddressRequest) Network ¶
func (g *GetDepositAddressRequest) Network(network string) *GetDepositAddressRequest
type GetDepositHistoryRequest ¶
type GetDepositHistoryRequest struct {
// contains filtered or unexported fields
}
func (*GetDepositHistoryRequest) Coin ¶
func (g *GetDepositHistoryRequest) Coin(coin string) *GetDepositHistoryRequest
func (*GetDepositHistoryRequest) Do ¶
func (g *GetDepositHistoryRequest) Do(ctx context.Context) ([]DepositHistory, error)
func (*GetDepositHistoryRequest) EndTime ¶
func (g *GetDepositHistoryRequest) EndTime(endTime time.Time) *GetDepositHistoryRequest
func (*GetDepositHistoryRequest) GetParameters ¶
func (g *GetDepositHistoryRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetDepositHistoryRequest) GetParametersJSON ¶
func (g *GetDepositHistoryRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetDepositHistoryRequest) GetParametersQuery ¶
func (g *GetDepositHistoryRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetDepositHistoryRequest) GetQueryParameters ¶
func (g *GetDepositHistoryRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetDepositHistoryRequest) GetSlugParameters ¶
func (g *GetDepositHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetDepositHistoryRequest) GetSlugsMap ¶
func (g *GetDepositHistoryRequest) GetSlugsMap() (map[string]string, error)
func (*GetDepositHistoryRequest) StartTime ¶
func (g *GetDepositHistoryRequest) StartTime(startTime time.Time) *GetDepositHistoryRequest
type GetDepthRequest ¶ added in v1.57.0
type GetDepthRequest struct {
// contains filtered or unexported fields
}
func (*GetDepthRequest) Do ¶ added in v1.57.0
func (g *GetDepthRequest) Do(ctx context.Context) (*Depth, error)
Do generates the request object and send the request object to the API endpoint
func (*GetDepthRequest) GetParameters ¶ added in v1.57.0
func (g *GetDepthRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetDepthRequest) GetParametersJSON ¶ added in v1.57.0
func (g *GetDepthRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetDepthRequest) GetParametersQuery ¶ added in v1.57.0
func (g *GetDepthRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetDepthRequest) GetPath ¶ added in v1.57.0
func (g *GetDepthRequest) GetPath() string
GetPath returns the request path of the API
func (*GetDepthRequest) GetQueryParameters ¶ added in v1.57.0
func (g *GetDepthRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetDepthRequest) GetSlugParameters ¶ added in v1.57.0
func (g *GetDepthRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetDepthRequest) GetSlugsMap ¶ added in v1.57.0
func (g *GetDepthRequest) GetSlugsMap() (map[string]string, error)
func (*GetDepthRequest) Limit ¶ added in v1.57.0
func (g *GetDepthRequest) Limit(limit int) *GetDepthRequest
func (*GetDepthRequest) Symbol ¶ added in v1.57.0
func (g *GetDepthRequest) Symbol(symbol string) *GetDepthRequest
type GetHistoricalTradesRequest ¶ added in v1.44.0
type GetHistoricalTradesRequest struct {
// contains filtered or unexported fields
}
func (*GetHistoricalTradesRequest) Do ¶ added in v1.44.0
func (g *GetHistoricalTradesRequest) Do(ctx context.Context) ([]binance.TradeV3, error)
func (*GetHistoricalTradesRequest) FromID ¶ added in v1.44.0
func (g *GetHistoricalTradesRequest) FromID(fromID uint64) *GetHistoricalTradesRequest
func (*GetHistoricalTradesRequest) GetParameters ¶ added in v1.44.0
func (g *GetHistoricalTradesRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetHistoricalTradesRequest) GetParametersJSON ¶ added in v1.44.0
func (g *GetHistoricalTradesRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetHistoricalTradesRequest) GetParametersQuery ¶ added in v1.44.0
func (g *GetHistoricalTradesRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetHistoricalTradesRequest) GetQueryParameters ¶ added in v1.44.0
func (g *GetHistoricalTradesRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetHistoricalTradesRequest) GetSlugParameters ¶ added in v1.44.0
func (g *GetHistoricalTradesRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetHistoricalTradesRequest) GetSlugsMap ¶ added in v1.44.0
func (g *GetHistoricalTradesRequest) GetSlugsMap() (map[string]string, error)
func (*GetHistoricalTradesRequest) Limit ¶ added in v1.44.0
func (g *GetHistoricalTradesRequest) Limit(limit uint64) *GetHistoricalTradesRequest
func (*GetHistoricalTradesRequest) Symbol ¶ added in v1.44.0
func (g *GetHistoricalTradesRequest) Symbol(symbol string) *GetHistoricalTradesRequest
type GetMarginBorrowRepayHistoryRequest ¶ added in v1.57.0
type GetMarginBorrowRepayHistoryRequest struct { BorrowRepayType BorrowRepayType `param:"type"` // contains filtered or unexported fields }
GetMarginBorrowRepayHistoryRequest
txId or startTime must be sent. txId takes precedence. Response in descending order If isolatedSymbol is not sent, crossed margin data will be returned The max interval between startTime and endTime is 30 days. If startTime and endTime not sent, return records of the last 7 days by default Set archived to true to query data from 6 months ago
func (*GetMarginBorrowRepayHistoryRequest) Archived ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) Archived(archived bool) *GetMarginBorrowRepayHistoryRequest
func (*GetMarginBorrowRepayHistoryRequest) Asset ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) Asset(asset string) *GetMarginBorrowRepayHistoryRequest
func (*GetMarginBorrowRepayHistoryRequest) Current ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) Current(current int) *GetMarginBorrowRepayHistoryRequest
func (*GetMarginBorrowRepayHistoryRequest) Do ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) Do(ctx context.Context) ([]MarginBorrowRepayRecord, error)
Do generates the request object and send the request object to the API endpoint
func (*GetMarginBorrowRepayHistoryRequest) EndTime ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) EndTime(endTime time.Time) *GetMarginBorrowRepayHistoryRequest
func (*GetMarginBorrowRepayHistoryRequest) GetParameters ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetMarginBorrowRepayHistoryRequest) GetParametersJSON ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetMarginBorrowRepayHistoryRequest) GetParametersQuery ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetMarginBorrowRepayHistoryRequest) GetPath ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) GetPath() string
GetPath returns the request path of the API
func (*GetMarginBorrowRepayHistoryRequest) GetQueryParameters ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetMarginBorrowRepayHistoryRequest) GetSlugParameters ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetMarginBorrowRepayHistoryRequest) GetSlugsMap ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) GetSlugsMap() (map[string]string, error)
func (*GetMarginBorrowRepayHistoryRequest) IsolatedSymbol ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) IsolatedSymbol(isolatedSymbol string) *GetMarginBorrowRepayHistoryRequest
func (*GetMarginBorrowRepayHistoryRequest) SetBorrowRepayType ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) SetBorrowRepayType(BorrowRepayType BorrowRepayType) *GetMarginBorrowRepayHistoryRequest
func (*GetMarginBorrowRepayHistoryRequest) Size ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) Size(size int) *GetMarginBorrowRepayHistoryRequest
func (*GetMarginBorrowRepayHistoryRequest) StartTime ¶ added in v1.57.0
func (g *GetMarginBorrowRepayHistoryRequest) StartTime(startTime time.Time) *GetMarginBorrowRepayHistoryRequest
type GetMarginInterestHistoryRequest ¶
type GetMarginInterestHistoryRequest struct {
// contains filtered or unexported fields
}
func (*GetMarginInterestHistoryRequest) Archived ¶
func (g *GetMarginInterestHistoryRequest) Archived(archived bool) *GetMarginInterestHistoryRequest
func (*GetMarginInterestHistoryRequest) Asset ¶
func (g *GetMarginInterestHistoryRequest) Asset(asset string) *GetMarginInterestHistoryRequest
func (*GetMarginInterestHistoryRequest) Current ¶
func (g *GetMarginInterestHistoryRequest) Current(current int) *GetMarginInterestHistoryRequest
func (*GetMarginInterestHistoryRequest) Do ¶
func (g *GetMarginInterestHistoryRequest) Do(ctx context.Context) ([]MarginInterest, 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) IsolatedSymbol ¶
func (g *GetMarginInterestHistoryRequest) IsolatedSymbol(isolatedSymbol string) *GetMarginInterestHistoryRequest
func (*GetMarginInterestHistoryRequest) Size ¶
func (g *GetMarginInterestHistoryRequest) Size(size int) *GetMarginInterestHistoryRequest
func (*GetMarginInterestHistoryRequest) StartTime ¶
func (g *GetMarginInterestHistoryRequest) StartTime(startTime time.Time) *GetMarginInterestHistoryRequest
type GetMarginInterestRateHistoryRequest ¶
type GetMarginInterestRateHistoryRequest struct {
// contains filtered or unexported fields
}
func (*GetMarginInterestRateHistoryRequest) Asset ¶
func (g *GetMarginInterestRateHistoryRequest) Asset(asset string) *GetMarginInterestRateHistoryRequest
func (*GetMarginInterestRateHistoryRequest) Do ¶
func (g *GetMarginInterestRateHistoryRequest) Do(ctx context.Context) ([]MarginInterestRate, error)
func (*GetMarginInterestRateHistoryRequest) EndTime ¶
func (g *GetMarginInterestRateHistoryRequest) EndTime(endTime time.Time) *GetMarginInterestRateHistoryRequest
func (*GetMarginInterestRateHistoryRequest) GetParameters ¶
func (g *GetMarginInterestRateHistoryRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetMarginInterestRateHistoryRequest) GetParametersJSON ¶
func (g *GetMarginInterestRateHistoryRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetMarginInterestRateHistoryRequest) GetParametersQuery ¶
func (g *GetMarginInterestRateHistoryRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetMarginInterestRateHistoryRequest) GetQueryParameters ¶
func (g *GetMarginInterestRateHistoryRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetMarginInterestRateHistoryRequest) GetSlugParameters ¶
func (g *GetMarginInterestRateHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetMarginInterestRateHistoryRequest) GetSlugsMap ¶
func (g *GetMarginInterestRateHistoryRequest) GetSlugsMap() (map[string]string, error)
func (*GetMarginInterestRateHistoryRequest) StartTime ¶
func (g *GetMarginInterestRateHistoryRequest) StartTime(startTime time.Time) *GetMarginInterestRateHistoryRequest
type GetMarginLiquidationHistoryRequest ¶
type GetMarginLiquidationHistoryRequest struct {
// contains filtered or unexported fields
}
func (*GetMarginLiquidationHistoryRequest) Current ¶
func (g *GetMarginLiquidationHistoryRequest) Current(current int) *GetMarginLiquidationHistoryRequest
func (*GetMarginLiquidationHistoryRequest) Do ¶
func (g *GetMarginLiquidationHistoryRequest) Do(ctx context.Context) ([]MarginLiquidationRecord, 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) IsolatedSymbol ¶
func (g *GetMarginLiquidationHistoryRequest) IsolatedSymbol(isolatedSymbol string) *GetMarginLiquidationHistoryRequest
func (*GetMarginLiquidationHistoryRequest) Size ¶
func (g *GetMarginLiquidationHistoryRequest) Size(size int) *GetMarginLiquidationHistoryRequest
func (*GetMarginLiquidationHistoryRequest) StartTime ¶
func (g *GetMarginLiquidationHistoryRequest) StartTime(startTime time.Time) *GetMarginLiquidationHistoryRequest
type GetMarginMaxBorrowableRequest ¶ added in v1.41.0
type GetMarginMaxBorrowableRequest struct {
// contains filtered or unexported fields
}
func (*GetMarginMaxBorrowableRequest) Asset ¶ added in v1.41.0
func (g *GetMarginMaxBorrowableRequest) Asset(asset string) *GetMarginMaxBorrowableRequest
func (*GetMarginMaxBorrowableRequest) Do ¶ added in v1.41.0
func (g *GetMarginMaxBorrowableRequest) Do(ctx context.Context) (*MarginMaxBorrowable, error)
func (*GetMarginMaxBorrowableRequest) GetParameters ¶ added in v1.41.0
func (g *GetMarginMaxBorrowableRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetMarginMaxBorrowableRequest) GetParametersJSON ¶ added in v1.41.0
func (g *GetMarginMaxBorrowableRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetMarginMaxBorrowableRequest) GetParametersQuery ¶ added in v1.41.0
func (g *GetMarginMaxBorrowableRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetMarginMaxBorrowableRequest) GetQueryParameters ¶ added in v1.41.0
func (g *GetMarginMaxBorrowableRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetMarginMaxBorrowableRequest) GetSlugParameters ¶ added in v1.41.0
func (g *GetMarginMaxBorrowableRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetMarginMaxBorrowableRequest) GetSlugsMap ¶ added in v1.41.0
func (g *GetMarginMaxBorrowableRequest) GetSlugsMap() (map[string]string, error)
func (*GetMarginMaxBorrowableRequest) IsolatedSymbol ¶ added in v1.41.0
func (g *GetMarginMaxBorrowableRequest) IsolatedSymbol(isolatedSymbol string) *GetMarginMaxBorrowableRequest
type GetMarginTradesRequest ¶ added in v1.60.0
type GetMarginTradesRequest struct {
// contains filtered or unexported fields
}
func (*GetMarginTradesRequest) Do ¶ added in v1.60.0
func (g *GetMarginTradesRequest) Do(ctx context.Context) ([]binance.TradeV3, error)
Do generates the request object and send the request object to the API endpoint
func (*GetMarginTradesRequest) EndTime ¶ added in v1.60.0
func (g *GetMarginTradesRequest) EndTime(endTime time.Time) *GetMarginTradesRequest
func (*GetMarginTradesRequest) FromID ¶ added in v1.60.0
func (g *GetMarginTradesRequest) FromID(fromID uint64) *GetMarginTradesRequest
func (*GetMarginTradesRequest) GetParameters ¶ added in v1.60.0
func (g *GetMarginTradesRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetMarginTradesRequest) GetParametersJSON ¶ added in v1.60.0
func (g *GetMarginTradesRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetMarginTradesRequest) GetParametersQuery ¶ added in v1.60.0
func (g *GetMarginTradesRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetMarginTradesRequest) GetPath ¶ added in v1.60.0
func (g *GetMarginTradesRequest) GetPath() string
GetPath returns the request path of the API
func (*GetMarginTradesRequest) GetQueryParameters ¶ added in v1.60.0
func (g *GetMarginTradesRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetMarginTradesRequest) GetSlugParameters ¶ added in v1.60.0
func (g *GetMarginTradesRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetMarginTradesRequest) GetSlugsMap ¶ added in v1.60.0
func (g *GetMarginTradesRequest) GetSlugsMap() (map[string]string, error)
func (*GetMarginTradesRequest) IsIsolated ¶ added in v1.60.0
func (g *GetMarginTradesRequest) IsIsolated(isIsolated bool) *GetMarginTradesRequest
func (*GetMarginTradesRequest) Limit ¶ added in v1.60.0
func (g *GetMarginTradesRequest) Limit(limit uint64) *GetMarginTradesRequest
func (*GetMarginTradesRequest) OrderID ¶ added in v1.60.0
func (g *GetMarginTradesRequest) OrderID(orderID uint64) *GetMarginTradesRequest
func (*GetMarginTradesRequest) StartTime ¶ added in v1.60.0
func (g *GetMarginTradesRequest) StartTime(startTime time.Time) *GetMarginTradesRequest
func (*GetMarginTradesRequest) Symbol ¶ added in v1.60.0
func (g *GetMarginTradesRequest) Symbol(symbol string) *GetMarginTradesRequest
type GetMyTradesRequest ¶ added in v1.43.0
type GetMyTradesRequest struct {
// contains filtered or unexported fields
}
func (*GetMyTradesRequest) Do ¶ added in v1.43.0
func (g *GetMyTradesRequest) Do(ctx context.Context) ([]binance.TradeV3, error)
func (*GetMyTradesRequest) EndTime ¶ added in v1.43.0
func (g *GetMyTradesRequest) EndTime(endTime time.Time) *GetMyTradesRequest
func (*GetMyTradesRequest) FromID ¶ added in v1.43.0
func (g *GetMyTradesRequest) FromID(fromID uint64) *GetMyTradesRequest
func (*GetMyTradesRequest) GetParameters ¶ added in v1.43.0
func (g *GetMyTradesRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetMyTradesRequest) GetParametersJSON ¶ added in v1.43.0
func (g *GetMyTradesRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetMyTradesRequest) GetParametersQuery ¶ added in v1.43.0
func (g *GetMyTradesRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetMyTradesRequest) GetQueryParameters ¶ added in v1.43.0
func (g *GetMyTradesRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetMyTradesRequest) GetSlugParameters ¶ added in v1.43.0
func (g *GetMyTradesRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetMyTradesRequest) GetSlugsMap ¶ added in v1.43.0
func (g *GetMyTradesRequest) GetSlugsMap() (map[string]string, error)
func (*GetMyTradesRequest) Limit ¶ added in v1.43.0
func (g *GetMyTradesRequest) Limit(limit uint64) *GetMyTradesRequest
func (*GetMyTradesRequest) OrderID ¶ added in v1.43.0
func (g *GetMyTradesRequest) OrderID(orderID uint64) *GetMyTradesRequest
func (*GetMyTradesRequest) StartTime ¶ added in v1.43.0
func (g *GetMyTradesRequest) StartTime(startTime time.Time) *GetMyTradesRequest
func (*GetMyTradesRequest) Symbol ¶ added in v1.43.0
func (g *GetMyTradesRequest) Symbol(symbol string) *GetMyTradesRequest
type GetSpotRebateHistoryRequest ¶
type GetSpotRebateHistoryRequest struct {
// contains filtered or unexported fields
}
GetSpotRebateHistoryRequest The max interval between startTime and endTime is 30 days. If startTime and endTime are not sent, the recent 7 days' data will be returned. The earliest startTime is supported on June 10, 2020
func (*GetSpotRebateHistoryRequest) Do ¶
func (g *GetSpotRebateHistoryRequest) Do(ctx context.Context) ([]SpotRebate, error)
func (*GetSpotRebateHistoryRequest) EndTime ¶
func (g *GetSpotRebateHistoryRequest) EndTime(endTime time.Time) *GetSpotRebateHistoryRequest
func (*GetSpotRebateHistoryRequest) GetParameters ¶
func (g *GetSpotRebateHistoryRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetSpotRebateHistoryRequest) GetParametersJSON ¶
func (g *GetSpotRebateHistoryRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetSpotRebateHistoryRequest) GetParametersQuery ¶
func (g *GetSpotRebateHistoryRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetSpotRebateHistoryRequest) GetQueryParameters ¶
func (g *GetSpotRebateHistoryRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetSpotRebateHistoryRequest) GetSlugParameters ¶
func (g *GetSpotRebateHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetSpotRebateHistoryRequest) GetSlugsMap ¶
func (g *GetSpotRebateHistoryRequest) GetSlugsMap() (map[string]string, error)
func (*GetSpotRebateHistoryRequest) StartTime ¶
func (g *GetSpotRebateHistoryRequest) StartTime(startTime time.Time) *GetSpotRebateHistoryRequest
type GetTradeFeeRequest ¶
type GetTradeFeeRequest struct {
// contains filtered or unexported fields
}
func (*GetTradeFeeRequest) Do ¶
func (g *GetTradeFeeRequest) Do(ctx context.Context) ([]TradeFee, error)
func (*GetTradeFeeRequest) GetParameters ¶
func (g *GetTradeFeeRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetTradeFeeRequest) GetParametersJSON ¶
func (g *GetTradeFeeRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetTradeFeeRequest) GetParametersQuery ¶
func (g *GetTradeFeeRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetTradeFeeRequest) GetQueryParameters ¶
func (g *GetTradeFeeRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetTradeFeeRequest) GetSlugParameters ¶
func (g *GetTradeFeeRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetTradeFeeRequest) GetSlugsMap ¶
func (g *GetTradeFeeRequest) GetSlugsMap() (map[string]string, error)
type GetWithdrawHistoryRequest ¶
type GetWithdrawHistoryRequest struct {
// contains filtered or unexported fields
}
func (*GetWithdrawHistoryRequest) Coin ¶
func (g *GetWithdrawHistoryRequest) Coin(coin string) *GetWithdrawHistoryRequest
func (*GetWithdrawHistoryRequest) Do ¶
func (g *GetWithdrawHistoryRequest) Do(ctx context.Context) ([]WithdrawRecord, error)
Do generates the request object and send the request object to the API endpoint
func (*GetWithdrawHistoryRequest) EndTime ¶
func (g *GetWithdrawHistoryRequest) EndTime(endTime time.Time) *GetWithdrawHistoryRequest
func (*GetWithdrawHistoryRequest) GetParameters ¶
func (g *GetWithdrawHistoryRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*GetWithdrawHistoryRequest) GetParametersJSON ¶
func (g *GetWithdrawHistoryRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*GetWithdrawHistoryRequest) GetParametersQuery ¶
func (g *GetWithdrawHistoryRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*GetWithdrawHistoryRequest) GetPath ¶ added in v1.60.0
func (g *GetWithdrawHistoryRequest) GetPath() string
GetPath returns the request path of the API
func (*GetWithdrawHistoryRequest) GetQueryParameters ¶
func (g *GetWithdrawHistoryRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*GetWithdrawHistoryRequest) GetSlugParameters ¶
func (g *GetWithdrawHistoryRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*GetWithdrawHistoryRequest) GetSlugsMap ¶
func (g *GetWithdrawHistoryRequest) GetSlugsMap() (map[string]string, error)
func (*GetWithdrawHistoryRequest) Limit ¶
func (g *GetWithdrawHistoryRequest) Limit(limit uint64) *GetWithdrawHistoryRequest
func (*GetWithdrawHistoryRequest) Offset ¶
func (g *GetWithdrawHistoryRequest) Offset(offset uint64) *GetWithdrawHistoryRequest
func (*GetWithdrawHistoryRequest) StartTime ¶
func (g *GetWithdrawHistoryRequest) StartTime(startTime time.Time) *GetWithdrawHistoryRequest
func (*GetWithdrawHistoryRequest) Status ¶
func (g *GetWithdrawHistoryRequest) Status(status WithdrawStatus) *GetWithdrawHistoryRequest
func (*GetWithdrawHistoryRequest) WithdrawOrderId ¶
func (g *GetWithdrawHistoryRequest) WithdrawOrderId(withdrawOrderId string) *GetWithdrawHistoryRequest
type InterestType ¶
type InterestType string
interest type in response has 4 enums: PERIODIC interest charged per hour ON_BORROW first interest charged on borrow PERIODIC_CONVERTED interest charged per hour converted into BNB ON_BORROW_CONVERTED first interest charged on borrow converted into BNB
const ( InterestTypePeriodic InterestType = "PERIODIC" InterestTypeOnBorrow InterestType = "ON_BORROW" InterestTypePeriodicConverted InterestType = "PERIODIC_CONVERTED" InterestTypeOnBorrowConverted InterestType = "ON_BORROW_CONVERTED" )
type MarginBorrowRepayRecord ¶ added in v1.57.0
type MarginBorrowRepayRecord struct { IsolatedSymbol string `json:"isolatedSymbol"` Amount fixedpoint.Value `json:"amount"` Asset string `json:"asset"` Interest fixedpoint.Value `json:"interest"` Principal fixedpoint.Value `json:"principal"` Status MarginBorrowStatus `json:"status"` Timestamp types.MillisecondTimestamp `json:"timestamp"` TxId uint64 `json:"txId"` }
type MarginBorrowStatus ¶ added in v1.57.0
type MarginBorrowStatus string
one of PENDING (pending execution), CONFIRMED (successfully loaned), FAILED (execution failed, nothing happened to your account);
const ( BorrowRepayStatusPending MarginBorrowStatus = "PENDING" BorrowRepayStatusConfirmed MarginBorrowStatus = "CONFIRMED" BorrowRepayStatusFailed MarginBorrowStatus = "FAILED" )
type MarginInterest ¶
type MarginInterest struct { IsolatedSymbol string `json:"isolatedSymbol"` Asset string `json:"asset"` Interest fixedpoint.Value `json:"interest"` InterestAccuredTime types.MillisecondTimestamp `json:"interestAccuredTime"` InterestRate fixedpoint.Value `json:"interestRate"` Principal fixedpoint.Value `json:"principal"` Type InterestType `json:"type"` }
MarginInterest is the user margin interest record
type MarginInterestRate ¶
type MarginInterestRate struct { Asset string `json:"asset"` DailyInterestRate fixedpoint.Value `json:"dailyInterestRate"` Timestamp types.MillisecondTimestamp `json:"timestamp"` VipLevel int `json:"vipLevel"` }
type MarginLiquidationRecord ¶
type MarginLiquidationRecord struct { AveragePrice fixedpoint.Value `json:"avgPrice"` ExecutedQuantity fixedpoint.Value `json:"executedQty"` OrderId uint64 `json:"orderId"` Price fixedpoint.Value `json:"price"` Quantity fixedpoint.Value `json:"qty"` Side SideType `json:"side"` Symbol string `json:"symbol"` TimeInForce string `json:"timeInForce"` IsIsolated bool `json:"isIsolated"` UpdatedTime types.MillisecondTimestamp `json:"updatedTime"` }
type MarginMaxBorrowable ¶ added in v1.41.0
type MarginMaxBorrowable struct { Amount fixedpoint.Value `json:"amount"` BorrowLimit fixedpoint.Value `json:"borrowLimit"` }
MarginMaxBorrowable is the user margin interest record
type MultiAssetsMarginMode ¶ added in v1.45.0
type MultiAssetsMarginMode string
const ( MultiAssetsMarginModeOn MultiAssetsMarginMode = "true" MultiAssetsMarginModeOff MultiAssetsMarginMode = "false" )
type OrderRespType ¶ added in v1.43.0
type OrderRespType string
const ( Ack OrderRespType = "ACK" Result OrderRespType = "RESULT" Full OrderRespType = "FULL" )
type OrderStatusType ¶
type OrderStatusType = binance.OrderStatusType
const ( OrderStatusTypeNew OrderStatusType = binance.OrderStatusTypeNew OrderStatusTypePartiallyFilled OrderStatusType = binance.OrderStatusTypePartiallyFilled OrderStatusTypeFilled OrderStatusType = binance.OrderStatusTypeFilled OrderStatusTypeCanceled OrderStatusType = binance.OrderStatusTypeCanceled OrderStatusTypePendingCancel OrderStatusType = binance.OrderStatusTypePendingCancel OrderStatusTypeRejected OrderStatusType = binance.OrderStatusTypeRejected OrderStatusTypeExpired OrderStatusType = binance.OrderStatusTypeExpired )
type OrderType ¶
type OrderType = binance.OrderType
const ( OrderTypeLimit OrderType = binance.OrderTypeLimit OrderTypeMarket OrderType = binance.OrderTypeMarket OrderTypeLimitMaker OrderType = binance.OrderTypeLimitMaker OrderTypeStopLoss OrderType = binance.OrderTypeStopLoss OrderTypeStopLossLimit OrderType = binance.OrderTypeStopLossLimit OrderTypeTakeProfit OrderType = binance.OrderTypeTakeProfit OrderTypeTakeProfitLimit OrderType = binance.OrderTypeTakeProfitLimit )
type PagedDataResponse ¶
type PlaceMarginOrderRequest ¶ added in v1.57.0
type PlaceMarginOrderRequest struct { BorrowRepayType BorrowRepayType `param:"type"` // contains filtered or unexported fields }
func (*PlaceMarginOrderRequest) Amount ¶ added in v1.57.0
func (p *PlaceMarginOrderRequest) Amount(amount fixedpoint.Value) *PlaceMarginOrderRequest
func (*PlaceMarginOrderRequest) Asset ¶ added in v1.57.0
func (p *PlaceMarginOrderRequest) Asset(asset string) *PlaceMarginOrderRequest
func (*PlaceMarginOrderRequest) Do ¶ added in v1.57.0
func (p *PlaceMarginOrderRequest) Do(ctx context.Context) (*TransferResponse, error)
Do generates the request object and send the request object to the API endpoint
func (*PlaceMarginOrderRequest) GetParameters ¶ added in v1.57.0
func (p *PlaceMarginOrderRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*PlaceMarginOrderRequest) GetParametersJSON ¶ added in v1.57.0
func (p *PlaceMarginOrderRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*PlaceMarginOrderRequest) GetParametersQuery ¶ added in v1.57.0
func (p *PlaceMarginOrderRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*PlaceMarginOrderRequest) GetPath ¶ added in v1.57.0
func (p *PlaceMarginOrderRequest) GetPath() string
GetPath returns the request path of the API
func (*PlaceMarginOrderRequest) GetQueryParameters ¶ added in v1.57.0
func (p *PlaceMarginOrderRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*PlaceMarginOrderRequest) GetSlugParameters ¶ added in v1.57.0
func (p *PlaceMarginOrderRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*PlaceMarginOrderRequest) GetSlugsMap ¶ added in v1.57.0
func (p *PlaceMarginOrderRequest) GetSlugsMap() (map[string]string, error)
func (*PlaceMarginOrderRequest) IsIsolated ¶ added in v1.57.0
func (p *PlaceMarginOrderRequest) IsIsolated(isIsolated bool) *PlaceMarginOrderRequest
func (*PlaceMarginOrderRequest) SetBorrowRepayType ¶ added in v1.57.0
func (p *PlaceMarginOrderRequest) SetBorrowRepayType(BorrowRepayType BorrowRepayType) *PlaceMarginOrderRequest
func (*PlaceMarginOrderRequest) Symbol ¶ added in v1.57.0
func (p *PlaceMarginOrderRequest) Symbol(symbol string) *PlaceMarginOrderRequest
type RestClient ¶
type RestClient struct { requestgen.BaseAPIClient Key, Secret string // contains filtered or unexported fields }
func NewClient ¶
func NewClient(baseURL string) *RestClient
func (*RestClient) Auth ¶
func (c *RestClient) Auth(key, secret string)
func (*RestClient) NewAuthenticatedRequest ¶
func (c *RestClient) NewAuthenticatedRequest(ctx context.Context, method, refURL string, params url.Values, payload interface{}) (*http.Request, error)
newAuthenticatedRequest creates new http request for authenticated routes.
func (*RestClient) NewCancelReplaceSpotOrderRequest ¶ added in v1.43.0
func (c *RestClient) NewCancelReplaceSpotOrderRequest() *CancelReplaceSpotOrderRequest
func (*RestClient) NewFuturesTransferRequest ¶ added in v1.45.0
func (c *RestClient) NewFuturesTransferRequest() *FuturesTransferRequest
func (*RestClient) NewGetApiReferralIfNewUserRequest ¶ added in v1.34.0
func (c *RestClient) NewGetApiReferralIfNewUserRequest() *GetApiReferralIfNewUserRequest
func (*RestClient) NewGetDepositAddressRequest ¶
func (c *RestClient) NewGetDepositAddressRequest() *GetDepositAddressRequest
func (*RestClient) NewGetDepositHistoryRequest ¶
func (c *RestClient) NewGetDepositHistoryRequest() *GetDepositHistoryRequest
func (*RestClient) NewGetDepthRequest ¶ added in v1.57.0
func (c *RestClient) NewGetDepthRequest() *GetDepthRequest
func (*RestClient) NewGetHistoricalTradesRequest ¶ added in v1.44.0
func (c *RestClient) NewGetHistoricalTradesRequest() *GetHistoricalTradesRequest
func (*RestClient) NewGetMarginBorrowRepayHistoryRequest ¶ added in v1.57.0
func (c *RestClient) NewGetMarginBorrowRepayHistoryRequest() *GetMarginBorrowRepayHistoryRequest
func (*RestClient) NewGetMarginInterestHistoryRequest ¶
func (c *RestClient) NewGetMarginInterestHistoryRequest() *GetMarginInterestHistoryRequest
func (*RestClient) NewGetMarginInterestRateHistoryRequest ¶
func (c *RestClient) NewGetMarginInterestRateHistoryRequest() *GetMarginInterestRateHistoryRequest
func (*RestClient) NewGetMarginLiquidationHistoryRequest ¶
func (c *RestClient) NewGetMarginLiquidationHistoryRequest() *GetMarginLiquidationHistoryRequest
func (*RestClient) NewGetMarginMaxBorrowableRequest ¶ added in v1.41.0
func (c *RestClient) NewGetMarginMaxBorrowableRequest() *GetMarginMaxBorrowableRequest
func (*RestClient) NewGetMarginTradesRequest ¶ added in v1.60.0
func (c *RestClient) NewGetMarginTradesRequest() *GetMarginTradesRequest
func (*RestClient) NewGetMyTradesRequest ¶ added in v1.43.0
func (c *RestClient) NewGetMyTradesRequest() *GetMyTradesRequest
func (*RestClient) NewGetSpotRebateHistoryRequest ¶
func (c *RestClient) NewGetSpotRebateHistoryRequest() *GetSpotRebateHistoryRequest
func (*RestClient) NewGetTradeFeeRequest ¶
func (c *RestClient) NewGetTradeFeeRequest() *GetTradeFeeRequest
func (*RestClient) NewGetWithdrawHistoryRequest ¶
func (c *RestClient) NewGetWithdrawHistoryRequest() *GetWithdrawHistoryRequest
func (*RestClient) NewPlaceMarginOrderRequest ¶ added in v1.57.0
func (c *RestClient) NewPlaceMarginOrderRequest() *PlaceMarginOrderRequest
func (*RestClient) NewRequest ¶
func (c *RestClient) NewRequest(ctx context.Context, method, refURL string, params url.Values, payload interface{}) (*http.Request, error)
NewRequest create new API request. Relative url can be provided in refURL.
func (*RestClient) NewTransferAssetRequest ¶ added in v1.57.0
func (c *RestClient) NewTransferAssetRequest() *TransferAssetRequest
func (*RestClient) NewWithdrawRequest ¶
func (c *RestClient) NewWithdrawRequest() *WithdrawRequest
func (*RestClient) SendRequest ¶
func (c *RestClient) SendRequest(req *http.Request) (*requestgen.Response, error)
func (*RestClient) SetTimeOffsetFromServer ¶
func (c *RestClient) SetTimeOffsetFromServer(ctx context.Context) error
type RowsResponse ¶
type RowsResponse struct { Rows json.RawMessage `json:"rows"` Total int `json:"total"` }
type SpotRebate ¶
type SpotRebate struct { Asset string `json:"asset"` Type RebateType `json:"type"` Amount fixedpoint.Value `json:"amount"` UpdateTime types.MillisecondTimestamp `json:"updateTime"` }
type TradeFee ¶
type TradeFee struct { Symbol string `json:"symbol"` MakerCommission fixedpoint.Value `json:"makerCommission"` TakerCommission fixedpoint.Value `json:"takerCommission"` }
type TransferAssetRequest ¶ added in v1.57.0
type TransferAssetRequest struct {
// contains filtered or unexported fields
}
func (*TransferAssetRequest) Amount ¶ added in v1.57.0
func (t *TransferAssetRequest) Amount(amount string) *TransferAssetRequest
func (*TransferAssetRequest) Asset ¶ added in v1.57.0
func (t *TransferAssetRequest) Asset(asset string) *TransferAssetRequest
func (*TransferAssetRequest) Do ¶ added in v1.57.0
func (t *TransferAssetRequest) Do(ctx context.Context) (*TransferResponse, error)
Do generates the request object and send the request object to the API endpoint
func (*TransferAssetRequest) FromSymbol ¶ added in v1.57.0
func (t *TransferAssetRequest) FromSymbol(fromSymbol string) *TransferAssetRequest
func (*TransferAssetRequest) GetParameters ¶ added in v1.57.0
func (t *TransferAssetRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*TransferAssetRequest) GetParametersJSON ¶ added in v1.57.0
func (t *TransferAssetRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*TransferAssetRequest) GetParametersQuery ¶ added in v1.57.0
func (t *TransferAssetRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*TransferAssetRequest) GetPath ¶ added in v1.57.0
func (t *TransferAssetRequest) GetPath() string
GetPath returns the request path of the API
func (*TransferAssetRequest) GetQueryParameters ¶ added in v1.57.0
func (t *TransferAssetRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*TransferAssetRequest) GetSlugParameters ¶ added in v1.57.0
func (t *TransferAssetRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*TransferAssetRequest) GetSlugsMap ¶ added in v1.57.0
func (t *TransferAssetRequest) GetSlugsMap() (map[string]string, error)
func (*TransferAssetRequest) ToSymbol ¶ added in v1.57.0
func (t *TransferAssetRequest) ToSymbol(toSymbol string) *TransferAssetRequest
func (*TransferAssetRequest) TransferType ¶ added in v1.57.0
func (t *TransferAssetRequest) TransferType(transferType TransferAssetType) *TransferAssetRequest
type TransferAssetType ¶ added in v1.57.0
type TransferAssetType string
const ( TransferAssetTypeMainToMargin TransferAssetType = "MAIN_MARGIN" TransferAssetTypeMarginToMain TransferAssetType = "MARGIN_MAIN" TransferAssetTypeMainToIsolatedMargin TransferAssetType = "MAIN_ISOLATED_MARGIN" TransferAssetTypeIsolatedMarginToMain TransferAssetType = "ISOLATED_MARGIN_MAIN" )
type TransferResponse ¶ added in v1.52.0
type TransferResponse struct {
TranId int `json:"tranId"`
}
type TransferType ¶
type TransferType int
1 for internal transfer, 0 for external transfer
const ( TransferTypeInternal TransferType = 0 TransferTypeExternal TransferType = 0 )
func (TransferType) String ¶
func (i TransferType) String() string
type WalletType ¶
type WalletType int
const ( WalletTypeSpot WalletType = 0 WalletTypeFunding WalletType = 1 )
type WithdrawRecord ¶
type WithdrawRecord struct { Id string `json:"id"` Address string `json:"address"` Amount fixedpoint.Value `json:"amount"` ApplyTime string `json:"applyTime"` Coin string `json:"coin"` WithdrawOrderID string `json:"withdrawOrderId"` Network string `json:"network"` TransferType TransferType `json:"transferType"` Status WithdrawStatus `json:"status"` TransactionFee fixedpoint.Value `json:"transactionFee"` ConfirmNo int `json:"confirmNo"` Info string `json:"info"` TxID string `json:"txId"` }
type WithdrawRequest ¶
type WithdrawRequest struct {
// contains filtered or unexported fields
}
func (*WithdrawRequest) Address ¶
func (w *WithdrawRequest) Address(address string) *WithdrawRequest
func (*WithdrawRequest) AddressTag ¶
func (w *WithdrawRequest) AddressTag(addressTag string) *WithdrawRequest
func (*WithdrawRequest) Amount ¶
func (w *WithdrawRequest) Amount(amount string) *WithdrawRequest
func (*WithdrawRequest) Coin ¶
func (w *WithdrawRequest) Coin(coin string) *WithdrawRequest
func (*WithdrawRequest) Do ¶
func (w *WithdrawRequest) Do(ctx context.Context) (*WithdrawResponse, error)
func (*WithdrawRequest) GetParameters ¶
func (w *WithdrawRequest) GetParameters() (map[string]interface{}, error)
GetParameters builds and checks the parameters and return the result in a map object
func (*WithdrawRequest) GetParametersJSON ¶
func (w *WithdrawRequest) GetParametersJSON() ([]byte, error)
GetParametersJSON converts the parameters from GetParameters into the JSON format
func (*WithdrawRequest) GetParametersQuery ¶
func (w *WithdrawRequest) GetParametersQuery() (url.Values, error)
GetParametersQuery converts the parameters from GetParameters into the url.Values format
func (*WithdrawRequest) GetQueryParameters ¶
func (w *WithdrawRequest) GetQueryParameters() (url.Values, error)
GetQueryParameters builds and checks the query parameters and returns url.Values
func (*WithdrawRequest) GetSlugParameters ¶
func (w *WithdrawRequest) GetSlugParameters() (map[string]interface{}, error)
GetSlugParameters builds and checks the slug parameters and return the result in a map object
func (*WithdrawRequest) GetSlugsMap ¶
func (w *WithdrawRequest) GetSlugsMap() (map[string]string, error)
func (*WithdrawRequest) Name ¶
func (w *WithdrawRequest) Name(name string) *WithdrawRequest
func (*WithdrawRequest) Network ¶
func (w *WithdrawRequest) Network(network string) *WithdrawRequest
func (*WithdrawRequest) TransactionFeeFlag ¶
func (w *WithdrawRequest) TransactionFeeFlag(transactionFeeFlag bool) *WithdrawRequest
func (*WithdrawRequest) WalletType ¶
func (w *WithdrawRequest) WalletType(walletType WalletType) *WithdrawRequest
func (*WithdrawRequest) WithdrawOrderId ¶
func (w *WithdrawRequest) WithdrawOrderId(withdrawOrderId string) *WithdrawRequest
type WithdrawResponse ¶
type WithdrawResponse struct {
ID string `json:"id"`
}
type WithdrawStatus ¶
type WithdrawStatus int
const ( WithdrawStatusEmailSent WithdrawStatus = iota WithdrawStatusCancelled WithdrawStatusAwaitingApproval WithdrawStatusRejected WithdrawStatusProcessing WithdrawStatusFailure WithdrawStatusCompleted )
WithdrawStatus: 0(0:Email Sent,1:Cancelled 2:Awaiting Approval 3:Rejected 4:Processing 5:Failure 6:Completed)
func (WithdrawStatus) String ¶
func (i WithdrawStatus) String() string
Source Files ¶
- alias.go
- cancel_replace_request.go
- cancel_replace_spot_order_request_requestgen.go
- client.go
- futures_change_initial_leverage_request.go
- futures_change_initial_leverage_request_requestgen.go
- futures_change_multi_assets_mode_request.go
- futures_change_multi_assets_mode_request_requestgen.go
- futures_client.go
- futures_get_account_balance_request.go
- futures_get_account_balance_request_requestgen.go
- futures_get_account_request.go
- futures_get_account_request_requestgen.go
- futures_get_global_long_short_account_ratio.go
- futures_get_income_history_request.go
- futures_get_income_history_request_requestgen.go
- futures_get_multi_assets_mode_request.go
- futures_get_multi_assets_mode_request_requestgen.go
- futures_get_open_interest.go
- futures_get_open_interest_request_requestgen.go
- futures_get_open_interest_statistics.go
- futures_get_open_interest_statistics_request_requestgen.go
- futures_get_position_risks_request.go
- futures_get_position_risks_request_requestgen.go
- futures_get_taker_buy_sell_volume.go
- futures_get_top_trader_long_short_account_ratio.go
- futures_get_top_trader_long_short_position_ratio.go
- futures_global_long_short_account_ratio_request_requestgen.go
- futures_taker_buy_sell_volume_request_requestgen.go
- futures_top_trader_long_short_account_ratio_request_requestgen.go
- futures_top_trader_long_short_position_ratio_request_requestgen.go
- futures_transfer_request.go
- futures_transfer_request_requestgen.go
- get_api_referral_if_new_user_request.go
- get_api_referral_if_new_user_request_requestgen.go
- get_deposit_address_request.go
- get_deposit_address_request_requestgen.go
- get_deposit_history_request.go
- get_deposit_history_request_requestgen.go
- get_depth_request.go
- get_depth_request_requestgen.go
- get_historical_trades_request.go
- get_historical_trades_request_requestgen.go
- get_margin_borrow_repay_history_request.go
- get_margin_borrow_repay_history_request_requestgen.go
- get_margin_interest_history_request.go
- get_margin_interest_history_request_requestgen.go
- get_margin_interest_rate_history_request.go
- get_margin_interest_rate_history_request_requestgen.go
- get_margin_liquidation_history_request.go
- get_margin_liquidation_history_request_requestgen.go
- get_margin_max_borrowable_request.go
- get_margin_max_borrowable_request_requestgen.go
- get_margin_trades_request.go
- get_margin_trades_request_requestgen.go
- get_my_trades_request.go
- get_my_trades_request_requestgen.go
- get_spot_rebate_history_request.go
- get_spot_rebate_history_request_requestgen.go
- get_trade_fee_request.go
- get_trade_fee_request_requestgen.go
- get_withdraw_history_request.go
- get_withdraw_history_request_requestgen.go
- page.go
- place_margin_order_request.go
- place_margin_order_request_requestgen.go
- rows.go
- transfer_asset_request.go
- transfer_asset_request_requestgen.go
- transfertype_string.go
- withdraw_request.go
- withdraw_request_requestgen.go
- withdrawstatus_string.go