Documentation
¶
Overview ¶
Package binance is a Golang SDK for binance APIs.
Index ¶
- Constants
- Variables
- func FormatTimestamp(t time.Time) int64
- func GetRetryAfter(unit string, intervalVal int64) (time.Time, error)
- func NewDeliveryClient(apiKey, secretKey string) *delivery.Client
- func NewFuturesClient(apiKey, secretKey string) *futures.Client
- func NewOptionsClient(apiKey, secretKey string) *options.Client
- func SetWsProxyUrl(url string)
- func WsAggTradeServe(symbol string, handler WsAggTradeHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsAllBookTickerServe(handler WsBookTickerHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsAllMarketsStatServe(handler WsAllMarketsStatHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsAllMiniMarketsStatServe(handler WsAllMiniMarketsStatServeHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsApiInitReadWriteConn() (*websocket.Conn, error)
- func WsApiMarginUserDataServe(apiKey, secretKey string, createSubscription CreateSubscriptionToken, ...) (doneC, stopC chan struct{}, err error)
- func WsApiUserDataServe(apiKey, secretKey string, handler WsUserDataHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsBookTickerServe(symbol string, handler WsBookTickerHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsCombinedAggTradeServe(symbols []string, handler WsAggTradeHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsCombinedBookTickerServe(symbols []string, handler WsBookTickerHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsCombinedDepthServe(symbols []string, handler WsDepthHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsCombinedDepthServe100Ms(symbols []string, handler WsDepthHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsCombinedKlineServe(symbolIntervalPair map[string]string, handler WsKlineHandler, ...) (doneC, stopC chan struct{}, err error)
- func WsCombinedMarketStatServe(symbols []string, handler WsMarketStatHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsCombinedPartialDepthServe(symbolLevels map[string]string, handler WsPartialDepthHandler, ...) (doneC, stopC chan struct{}, err error)
- func WsCombinedTradeServe(symbols []string, handler WsCombinedTradeHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsDepthServe(symbol string, handler WsDepthHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsDepthServe100Ms(symbol string, handler WsDepthHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsKlineServe(symbol string, interval string, handler WsKlineHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsMarketStatServe(symbol string, handler WsMarketStatHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsPartialDepthServe(symbol string, levels string, handler WsPartialDepthHandler, ...) (doneC, stopC chan struct{}, err error)
- func WsPartialDepthServe100Ms(symbol string, levels string, handler WsPartialDepthHandler, ...) (doneC, stopC chan struct{}, err error)
- func WsTradeServe(symbol string, handler WsTradeHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- func WsUserDataServe(listenKey string, handler WsUserDataHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
- type APIKeyPermission
- type Account
- type AccountType
- type AddLiquidityPreviewResponse
- type AddLiquidityPreviewService
- func (s *AddLiquidityPreviewService) Do(ctx context.Context) (*AddLiquidityPreviewResponse, error)
- func (s *AddLiquidityPreviewService) OperationType(operationType LiquidityOperationType) *AddLiquidityPreviewService
- func (s *AddLiquidityPreviewService) PoolId(poolId int64) *AddLiquidityPreviewService
- func (s *AddLiquidityPreviewService) QuoteAsset(quoteAsset string) *AddLiquidityPreviewService
- func (s *AddLiquidityPreviewService) QuoteQty(quoteQty float64) *AddLiquidityPreviewService
- type AddLiquidityResponse
- type AddLiquidityService
- func (s *AddLiquidityService) Do(ctx context.Context) (*AddLiquidityResponse, error)
- func (s *AddLiquidityService) OperationType(operationType LiquidityOperationType) *AddLiquidityService
- func (s *AddLiquidityService) PoolId(poolId int64) *AddLiquidityService
- func (s *AddLiquidityService) QuoteAsset(quoteAsset string) *AddLiquidityService
- func (s *AddLiquidityService) QuoteQty(quoteQty float64) *AddLiquidityService
- type AggTrade
- type AggTradesService
- func (s *AggTradesService) Do(ctx context.Context, opts ...RequestOption) (res []*AggTrade, err error)
- func (s *AggTradesService) EndTime(endTime int64) *AggTradesService
- func (s *AggTradesService) FromID(fromID int64) *AggTradesService
- func (s *AggTradesService) Limit(limit int) *AggTradesService
- func (s *AggTradesService) StartTime(startTime int64) *AggTradesService
- func (s *AggTradesService) Symbol(symbol string) *AggTradesService
- type AllCoinResponse
- type AllCoinService
- type Ask
- type AssetBalance
- type AssetDetail
- type AssetDividendService
- func (s *AssetDividendService) Asset(asset string) *AssetDividendService
- func (s *AssetDividendService) Do(ctx context.Context) (*DividendResponseWrapper, error)
- func (s *AssetDividendService) EndTime(endTime int64) *AssetDividendService
- func (s *AssetDividendService) Limit(limit int) *AssetDividendService
- func (s *AssetDividendService) StartTime(startTime int64) *AssetDividendService
- type AveragePriceService
- type AvgPrice
- type BNBBurn
- type Balance
- type Bid
- type BookTicker
- type C2CRecord
- type C2CTradeHistory
- type C2CTradeHistoryService
- func (s *C2CTradeHistoryService) Do(ctx context.Context, opts ...RequestOption) (*C2CTradeHistory, error)
- func (s *C2CTradeHistoryService) EndTime(endTimestamp int64) *C2CTradeHistoryService
- func (s *C2CTradeHistoryService) Page(page int32) *C2CTradeHistoryService
- func (s *C2CTradeHistoryService) Rows(rows int32) *C2CTradeHistoryService
- func (s *C2CTradeHistoryService) StartTimestamp(startTimestamp int64) *C2CTradeHistoryService
- func (s *C2CTradeHistoryService) TradeType(tradeType SideType) *C2CTradeHistoryService
- type CancelFuturesAlgoOrderResponse
- type CancelFuturesAlgoOrderService
- type CancelMarginOCOResponse
- type CancelMarginOCOService
- func (s *CancelMarginOCOService) Do(ctx context.Context, opts ...RequestOption) (res *CancelMarginOCOResponse, err error)
- func (s *CancelMarginOCOService) IsIsolated(isIsolated bool) *CancelMarginOCOService
- func (s *CancelMarginOCOService) ListClientOrderID(listClientOrderID string) *CancelMarginOCOService
- func (s *CancelMarginOCOService) NewClientOrderID(newClientOrderID string) *CancelMarginOCOService
- func (s *CancelMarginOCOService) OrderListID(orderListID int64) *CancelMarginOCOService
- func (s *CancelMarginOCOService) Symbol(symbol string) *CancelMarginOCOService
- type CancelMarginOrderResponse
- type CancelMarginOrderService
- func (s *CancelMarginOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CancelMarginOrderResponse, err error)
- func (s *CancelMarginOrderService) IsIsolated(isIsolated bool) *CancelMarginOrderService
- func (s *CancelMarginOrderService) NewClientOrderID(newClientOrderID string) *CancelMarginOrderService
- func (s *CancelMarginOrderService) OrderID(orderID int64) *CancelMarginOrderService
- func (s *CancelMarginOrderService) OrigClientOrderID(origClientOrderID string) *CancelMarginOrderService
- func (s *CancelMarginOrderService) Symbol(symbol string) *CancelMarginOrderService
- type CancelOCOResponse
- type CancelOCOService
- func (s *CancelOCOService) Do(ctx context.Context, opts ...RequestOption) (res *CancelOCOResponse, err error)
- func (s *CancelOCOService) ListClientOrderID(listClientOrderID string) *CancelOCOService
- func (s *CancelOCOService) NewClientOrderID(newClientOrderID string) *CancelOCOService
- func (s *CancelOCOService) OrderListID(orderListID int64) *CancelOCOService
- func (s *CancelOCOService) Symbol(symbol string) *CancelOCOService
- type CancelOpenOrdersResponse
- type CancelOpenOrdersService
- type CancelOrderResponse
- type CancelOrderService
- func (s *CancelOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CancelOrderResponse, err error)
- func (s *CancelOrderService) NewClientOrderID(newClientOrderID string) *CancelOrderService
- func (s *CancelOrderService) OrderID(orderID int64) *CancelOrderService
- func (s *CancelOrderService) OrigClientOrderID(origClientOrderID string) *CancelOrderService
- func (s *CancelOrderService) Symbol(symbol string) *CancelOrderService
- type ClaimRewardResponse
- type ClaimRewardService
- type ClaimedRewardHistory
- type Client
- func (c *Client) NewAddLiquidityPreviewService() *AddLiquidityPreviewService
- func (c *Client) NewAddLiquidityService() *AddLiquidityService
- func (c *Client) NewAggTradesService() *AggTradesService
- func (c *Client) NewAllCoinService() *AllCoinService
- func (c *Client) NewAssetDividendService() *AssetDividendService
- func (c *Client) NewAveragePriceService() *AveragePriceService
- func (c *Client) NewC2CTradeHistoryService() *C2CTradeHistoryService
- func (c *Client) NewCancelFuturesAlgoOrderService() *CancelFuturesAlgoOrderService
- func (c *Client) NewCancelMarginOCOService() *CancelMarginOCOService
- func (c *Client) NewCancelMarginOrderService() *CancelMarginOrderService
- func (c *Client) NewCancelOCOService() *CancelOCOService
- func (c *Client) NewCancelOpenOrdersService() *CancelOpenOrdersService
- func (c *Client) NewCancelOrderService() *CancelOrderService
- func (c *Client) NewClaimRewardService() *ClaimRewardService
- func (c *Client) NewCloseIsolatedMarginUserStreamService() *CloseIsolatedMarginUserStreamService
- func (c *Client) NewCloseMarginUserStreamService() *CloseMarginUserStreamService
- func (c *Client) NewCloseUserStreamService() *CloseUserStreamService
- func (c *Client) NewConvertAcceptQuoteService() *ConvertAcceptQuoteService
- func (c *Client) NewConvertAssetInfoService() *ConvertAssetInfoService
- func (c *Client) NewConvertExchangeInfoService() *ConvertExchangeInfoService
- func (c *Client) NewConvertOrderStatusService() *ConvertOrderStatusService
- func (c *Client) NewConvertQuoteService() *ConvertGetQuoteService
- func (c *Client) NewConvertTradeHistoryService() *ConvertTradeHistoryService
- func (c *Client) NewCreateFuturesAlgoTwapOrderService() *CreateFuturesAlgoTwapOrderService
- func (c *Client) NewCreateFuturesAlgoVpOrderService() *CreateFuturesAlgoVpOrderService
- func (c *Client) NewCreateMarginOCOService() *CreateMarginOCOService
- func (c *Client) NewCreateMarginOrderService() *CreateMarginOrderService
- func (c *Client) NewCreateMarginSpecialKeyService(apiName string) *CreateMarginSpecialKeyService
- func (c *Client) NewCreateOCOService() *CreateOCOService
- func (c *Client) NewCreateOrderService() *CreateOrderService
- func (c *Client) NewCreateVirtualSubAccountService() *CreateVirtualSubAccountService
- func (c *Client) NewCreateWithdrawService() *CreateWithdrawService
- func (c *Client) NewCrossMarginDataService() *CrossMarginDataService
- func (c *Client) NewCryptoLoanService() *CryptoLoanService
- func (c *Client) NewDeleteMarginSpecialKeyService() *DeleteMarginSpecialKeyService
- func (c *Client) NewDepthService() *DepthService
- func (c *Client) NewDustTransferService() *DustTransferService
- func (c *Client) NewExchangeInfoService() *ExchangeInfoService
- func (c *Client) NewFiatDepositWithdrawHistoryService() *FiatDepositWithdrawHistoryService
- func (c *Client) NewFiatPaymentsHistoryService() *FiatPaymentsHistoryService
- func (c *Client) NewFlexibleLoanAdjustLTVService() *FlexibleLoanAdjustLTVService
- func (c *Client) NewFlexibleLoanBorrowService() *FlexibleLoanBorrowService
- func (c *Client) NewFlexibleLoanRepayService() *FlexibleLoanRepayService
- func (c *Client) NewFuturesOrderBookHistoryService() *FuturesOrderBookHistoryService
- func (c *Client) NewFuturesTransferService() *FuturesTransferService
- func (c *Client) NewGetAPIKeyPermission() *GetAPIKeyPermission
- func (c *Client) NewGetAccountService() *GetAccountService
- func (c *Client) NewGetAccountSnapshotService() *GetAccountSnapshotService
- func (c *Client) NewGetAllCoinsInfoService() *GetAllCoinsInfoService
- func (c *Client) NewGetAllLiquidityPoolService() *GetAllLiquidityPoolService
- func (c *Client) NewGetAllMarginAssetsService() *GetAllMarginAssetsService
- func (c *Client) NewGetAssetDetailService() *GetAssetDetailService
- func (c *Client) NewGetBNBBurnService() *GetBNBBurnService
- func (c *Client) NewGetCommissionRatesService() *GetCommissionRatesService
- func (c *Client) NewGetDepositAddressService() *GetDepositsAddressService
- func (c *Client) NewGetFlexibleLoanAssetsDataService() *GetFlexibleLoanAssetsDataService
- func (c *Client) NewGetFlexibleLoanBorrowHistoryService() *GetFlexibleLoanBorrowHistoryService
- func (c *Client) NewGetFlexibleLoanOngoingOrdersService() *GetFlexibleLoanOngoingOrdersService
- func (c *Client) NewGetFlexibleLoanRepayHistoryService() *GetFlexibleLoanRepayHistoryService
- func (c *Client) NewGetFlexibleProductPosition() *GetFlexibleProductPositionService
- func (c *Client) NewGetFlexibleRewardHistory() *FlexibleRewardHistoryService
- func (c *Client) NewGetFuturesAlgoSubOrdersService() *GetFuturesAlgoSubOrdersService
- func (c *Client) NewGetIsolatedMarginAccountService() *GetIsolatedMarginAccountService
- func (c *Client) NewGetIsolatedMarginAllPairsService() *GetIsolatedMarginAllPairsService
- func (c *Client) NewGetLiquidityPoolDetailService() *GetLiquidityPoolDetailService
- func (c *Client) NewGetLockedProductPosition() *GetLockedProductPositionService
- func (c *Client) NewGetMarginAccountService() *GetMarginAccountService
- func (c *Client) NewGetMarginAllPairsService() *GetMarginAllPairsService
- func (c *Client) NewGetMarginAssetService() *GetMarginAssetService
- func (c *Client) NewGetMarginOrderService() *GetMarginOrderService
- func (c *Client) NewGetMarginPairService() *GetMarginPairService
- func (c *Client) NewGetMarginPriceIndexService() *GetMarginPriceIndexService
- func (c *Client) NewGetMaxBorrowableService() *GetMaxBorrowableService
- func (c *Client) NewGetMaxTransferableService() *GetMaxTransferableService
- func (c *Client) NewGetOrderService() *GetOrderService
- func (c *Client) NewGetSwapQuoteService() *GetSwapQuoteService
- func (c *Client) NewGetUserAsset() *GetUserAssetService
- func (c *Client) NewGetUserSwapRecordsService() *GetUserSwapRecordsService
- func (c *Client) NewHistoricalTradesService() *HistoricalTradesService
- func (c *Client) NewInterestHistoryService() *InterestHistoryService
- func (c *Client) NewInternalUniversalTransferHistoryService() *InternalUniversalTransferHistoryService
- func (c *Client) NewInternalUniversalTransferService() *InternalUniversalTransferService
- func (c *Client) NewIsolatedMarginDataService() *IsolatedMarginDataService
- func (c *Client) NewIsolatedMarginTransferService() *IsolatedMarginTransferService
- func (c *Client) NewKeepaliveIsolatedMarginUserStreamService() *KeepaliveIsolatedMarginUserStreamService
- func (c *Client) NewKeepaliveMarginUserStreamService() *KeepaliveMarginUserStreamService
- func (c *Client) NewKeepaliveUserStreamService() *KeepaliveUserStreamService
- func (c *Client) NewKlinesService() *KlinesService
- func (c *Client) NewListBookTickersService() *ListBookTickersService
- func (c *Client) NewListDepositsService() *ListDepositsService
- func (c *Client) NewListDustLogService() *ListDustLogService
- func (c *Client) NewListDustService() *ListDustService
- func (c *Client) NewListFuturesTransferService() *ListFuturesTransferService
- func (c *Client) NewListHistoryFuturesAlgoOrdersService() *ListHistoryFuturesAlgoOrdersService
- func (c *Client) NewListMarginBorrowRepayService() *ListMarginBorrowRepayService
- func (c *Client) NewListMarginLoansService() *ListMarginLoansService
- func (c *Client) NewListMarginOpenOrdersService() *ListMarginOpenOrdersService
- func (c *Client) NewListMarginOrdersService() *ListMarginOrdersService
- func (c *Client) NewListMarginRepaysService() *ListMarginRepaysService
- func (c *Client) NewListMarginSpecialKeyService() *ListMarginSpecialKeyService
- func (c *Client) NewListMarginTradesService() *ListMarginTradesService
- func (c *Client) NewListOpenFuturesAlgoOrdersService() *ListOpenFuturesAlgoOrdersService
- func (c *Client) NewListOpenOcoService() *ListOpenOcoService
- func (c *Client) NewListOpenOrdersService() *ListOpenOrdersService
- func (c *Client) NewListOrdersService() *ListOrdersService
- func (c *Client) NewListPriceChangeStatsService() *ListPriceChangeStatsService
- func (c *Client) NewListPricesService() *ListPricesService
- func (c *Client) NewListSavingsFixedAndActivityProductsService() *ListSavingsFixedAndActivityProductsService
- func (c *Client) NewListSavingsFlexibleProductsService() *ListSavingsFlexibleProductsService
- func (c *Client) NewListSymbolTickerService() *ListSymbolTickerService
- func (c *Client) NewListTradesService() *ListTradesService
- func (c *Client) NewListUserUniversalTransferService() *ListUserUniversalTransferService
- func (c *Client) NewListWithdrawsService() *ListWithdrawsService
- func (c *Client) NewManagedSubAccountAssetsService() *ManagedSubAccountAssetsService
- func (c *Client) NewManagedSubAccountDepositAddressService() *ManagedSubAccountDepositAddressService
- func (c *Client) NewManagedSubAccountDepositService() *ManagedSubAccountDepositService
- func (c *Client) NewManagedSubAccountInfoService() *ManagedSubAccountInfoService
- func (c *Client) NewManagedSubAccountQueryFuturesAssetService() *ManagedSubAccountQueryFuturesAssetService
- func (c *Client) NewManagedSubAccountQueryMarginAssetService() *ManagedSubAccountQueryMarginAssetService
- func (c *Client) NewManagedSubAccountQueryTransferLogForInvestorService() *ManagedSubAccountQueryTransferLogForInvestorService
- func (c *Client) NewManagedSubAccountQueryTransferLogForTradeParentService() *ManagedSubAccountQueryTransferLogForTradeParentService
- func (c *Client) NewManagedSubAccountQueryTransferLogService() *ManagedSubAccountQueryTransferLogService
- func (c *Client) NewManagedSubAccountSnapshotService() *ManagedSubAccountSnapshotService
- func (c *Client) NewManagedSubAccountWithdrawService() *ManagedSubAccountWithdrawService
- func (c *Client) NewManagedSubAccountWithdrawalService() *ManagedSubAccountWithdrawalService
- func (c *Client) NewMarginBorrowRepayService() *MarginBorrowRepayService
- func (c *Client) NewMarginInterestHistoryService() *MarginInterestHistoryService
- func (c *Client) NewMarginLoanService() *MarginLoanService
- func (c *Client) NewMarginRepayService() *MarginRepayService
- func (c *Client) NewMarginSubscriptionToken() *MarginSubscriptionTokenService
- func (c *Client) NewMarginTransferService() *MarginTransferService
- func (c *Client) NewPayTradeHistoryService() *PayTradeHistoryService
- func (c *Client) NewPingService() *PingService
- func (c *Client) NewPurchaseSavingsFlexibleProductService() *PurchaseSavingsFlexibleProductService
- func (c *Client) NewQueryClaimedRewardHistoryService() *QueryClaimedRewardHistoryService
- func (c *Client) NewRateLimitService() *RateLimitService
- func (c *Client) NewRecentTradesService() *RecentTradesService
- func (c *Client) NewRedeemSavingsFlexibleProductService() *RedeemSavingsFlexibleProductService
- func (c *Client) NewRemoveLiquidityService() *RemoveLiquidityService
- func (c *Client) NewSavingFixedProjectPositionsService() *SavingFixedProjectPositionsService
- func (c *Client) NewSavingFlexibleProductPositionsService() *SavingFlexibleProductPositionsService
- func (c *Client) NewServerTimeService() *ServerTimeService
- func (c *Client) NewSetServerTimeService() *SetServerTimeService
- func (c *Client) NewSimpleEarnService() *SimpleEarnService
- func (c *Client) NewSpotRebateHistoryService() *SpotRebateHistoryService
- func (c *Client) NewStakingHistoryService() *StakingHistoryService
- func (c *Client) NewStakingProductPositionService() *StakingProductPositionService
- func (c *Client) NewStartIsolatedMarginUserStreamService() *StartIsolatedMarginUserStreamService
- func (c *Client) NewStartMarginUserStreamService() *StartMarginUserStreamService
- func (c *Client) NewStartUserStreamService() *StartUserStreamService
- func (c *Client) NewSubAccUniversalTransferHistoryService() *SubAccUniversalTransferHistoryService
- func (c *Client) NewSubAccountApiAddIpRestrictionService() *SubAccountApiAddIpRestrictionService
- func (c *Client) NewSubAccountApiDeleteIpRestrictionService() *SubAccountApiDeleteIpRestrictionService
- func (c *Client) NewSubAccountApiIpRestrictionService() *SubAccountApiIpRestrictionService
- func (c *Client) NewSubAccountAssetService() *SubAccountAssetService
- func (c *Client) NewSubAccountBlvtEnableService() *SubAccountBlvtEnableService
- func (c *Client) NewSubAccountDepositRecordService() *SubAccountDepositRecordService
- func (c *Client) NewSubAccountFuturesAccountService() *SubAccountFuturesAccountService
- func (c *Client) NewSubAccountFuturesAccountSummaryService() *SubAccountFuturesAccountSummaryService
- func (c *Client) NewSubAccountFuturesAccountV2Service() *SubAccountFuturesAccountV2Service
- func (c *Client) NewSubAccountFuturesEnableService() *SubAccountFuturesEnableService
- func (c *Client) NewSubAccountFuturesInternalTransferService() *SubAccountFuturesInternalTransferService
- func (c *Client) NewSubAccountFuturesPositionsService() *SubAccountFuturesPositionsService
- func (c *Client) NewSubAccountFuturesSummaryV1Service() *SubAccountFuturesSummaryV1Service
- func (c *Client) NewSubAccountFuturesTransferHistoryService() *SubAccountFuturesTransferHistoryService
- func (c *Client) NewSubAccountFuturesTransferV1Service() *SubAccountFuturesTransferV1Service
- func (c *Client) NewSubAccountListService() *SubAccountListService
- func (c *Client) NewSubAccountMarginAccountInfoService() *SubAccountMarginAccountInfoService
- func (c *Client) NewSubAccountMarginAccountSummaryService() *SubAccountMarginAccountSummaryService
- func (c *Client) NewSubAccountMarginEnableService() *SubAccountMarginEnableService
- func (c *Client) NewSubAccountMarginFuturesStatusService() *SubAccountMarginFuturesStatusService
- func (c *Client) NewSubAccountMarginTransferService() *SubAccountMarginTransferService
- func (c *Client) NewSubAccountOptionsEnableService() *SubAccountOptionsEnableService
- func (c *Client) NewSubAccountSpotTransferHistoryService() *SubAccountSpotTransferHistoryService
- func (c *Client) NewSubAccountTransactionStatisticsService() *SubAccountTransactionStatisticsService
- func (c *Client) NewSubAccountTransferHistoryService() *SubAccountTransferHistoryService
- func (c *Client) NewSubAccountTransferSubToMasterService() *SubAccountTransferSubToMasterService
- func (c *Client) NewSubAccountUniversalTransferService() *SubAccountUniversalTransferService
- func (c *Client) NewSubTransferHistoryService() *SubTransferHistoryService
- func (c *Client) NewSubaccountAssetsService() *SubaccountAssetsService
- func (c *Client) NewSubaccountDepositAddressService() *SubaccountDepositAddressService
- func (c *Client) NewSubaccountSpotSummaryService() *SubaccountSpotSummaryService
- func (c *Client) NewSwapService() *SwapService
- func (c *Client) NewToggleBNBBurnService() *ToggleBNBBurnService
- func (c *Client) NewTradeFeeService() *TradeFeeService
- func (c *Client) NewTradingDayTickerService() *TradingDayTickerService
- func (c *Client) NewTransferToSubAccountService() *TransferToSubAccountService
- func (c *Client) NewUiKlinesService() *UiKlinesService
- func (c *Client) NewUpdateMarginSpecialKeyService(apiKey string) *UpdateMarginSpecialKeyService
- func (c *Client) NewUserUniversalTransferService() *CreateUserUniversalTransferService
- func (c *Client) NewVipLoanService() *VipLoanService
- func (c *Client) NewWalletBalanceService() *WalletBalanceService
- func (c *Client) SetApiEndpoint(url string) *Client
- type CloseIsolatedMarginUserStreamService
- func (s *CloseIsolatedMarginUserStreamService) Do(ctx context.Context, opts ...RequestOption) (err error)
- func (s *CloseIsolatedMarginUserStreamService) ListenKey(listenKey string) *CloseIsolatedMarginUserStreamService
- func (s *CloseIsolatedMarginUserStreamService) Symbol(symbol string) *CloseIsolatedMarginUserStreamService
- type CloseMarginUserStreamService
- type CloseUserStreamService
- type CoinInfo
- type CommissionGroup
- type CommissionRates
- type CommissionRatesResponse
- type ConvertAcceptQuote
- type ConvertAcceptQuoteService
- type ConvertAssetInfo
- type ConvertAssetInfoService
- type ConvertExchangeInfo
- type ConvertExchangeInfoService
- type ConvertGetQuoteService
- func (s *ConvertGetQuoteService) Do(ctx context.Context, opts ...RequestOption) (*ConvertQuote, error)
- func (s *ConvertGetQuoteService) FromAmount(fromAmount string) *ConvertGetQuoteService
- func (s *ConvertGetQuoteService) FromAsset(fromAsset string) *ConvertGetQuoteService
- func (s *ConvertGetQuoteService) ToAmount(toAmount string) *ConvertGetQuoteService
- func (s *ConvertGetQuoteService) ToAsset(toAsset string) *ConvertGetQuoteService
- func (s *ConvertGetQuoteService) ValidTime(validTime string) *ConvertGetQuoteService
- func (s *ConvertGetQuoteService) WalletType(walletType string) *ConvertGetQuoteService
- type ConvertOrderStatus
- type ConvertOrderStatusService
- type ConvertQuote
- type ConvertTradeHistory
- type ConvertTradeHistoryItem
- type ConvertTradeHistoryService
- func (s *ConvertTradeHistoryService) Do(ctx context.Context, opts ...RequestOption) (*ConvertTradeHistory, error)
- func (s *ConvertTradeHistoryService) EndTime(endTime int64) *ConvertTradeHistoryService
- func (s *ConvertTradeHistoryService) Limit(limit int32) *ConvertTradeHistoryService
- func (s *ConvertTradeHistoryService) StartTime(startTime int64) *ConvertTradeHistoryService
- type CreateFuturesAlgoOrderResponse
- type CreateFuturesAlgoTwapOrderService
- func (s *CreateFuturesAlgoTwapOrderService) ClientAlgoId(clientAlgoId string) *CreateFuturesAlgoTwapOrderService
- func (s *CreateFuturesAlgoTwapOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CreateFuturesAlgoOrderResponse, err error)
- func (s *CreateFuturesAlgoTwapOrderService) Duration(duration int64) *CreateFuturesAlgoTwapOrderService
- func (s *CreateFuturesAlgoTwapOrderService) LimitPrice(limitPrice float64) *CreateFuturesAlgoTwapOrderService
- func (s *CreateFuturesAlgoTwapOrderService) PositionSide(positionSide futures.PositionSideType) *CreateFuturesAlgoTwapOrderService
- func (s *CreateFuturesAlgoTwapOrderService) Quantity(quantity float64) *CreateFuturesAlgoTwapOrderService
- func (s *CreateFuturesAlgoTwapOrderService) ReduceOnly(reduceOnly bool) *CreateFuturesAlgoTwapOrderService
- func (s *CreateFuturesAlgoTwapOrderService) Side(side SideType) *CreateFuturesAlgoTwapOrderService
- func (s *CreateFuturesAlgoTwapOrderService) Symbol(symbol string) *CreateFuturesAlgoTwapOrderService
- type CreateFuturesAlgoVpOrderService
- func (s *CreateFuturesAlgoVpOrderService) ClientAlgoId(clientAlgoId string) *CreateFuturesAlgoVpOrderService
- func (s *CreateFuturesAlgoVpOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CreateFuturesAlgoOrderResponse, err error)
- func (s *CreateFuturesAlgoVpOrderService) LimitPrice(limitPrice float64) *CreateFuturesAlgoVpOrderService
- func (s *CreateFuturesAlgoVpOrderService) PositionSide(positionSide futures.PositionSideType) *CreateFuturesAlgoVpOrderService
- func (s *CreateFuturesAlgoVpOrderService) Quantity(quantity float64) *CreateFuturesAlgoVpOrderService
- func (s *CreateFuturesAlgoVpOrderService) ReduceOnly(reduceOnly bool) *CreateFuturesAlgoVpOrderService
- func (s *CreateFuturesAlgoVpOrderService) Side(side SideType) *CreateFuturesAlgoVpOrderService
- func (s *CreateFuturesAlgoVpOrderService) Symbol(symbol string) *CreateFuturesAlgoVpOrderService
- func (s *CreateFuturesAlgoVpOrderService) Urgency(urgency FuturesAlgoUrgencyType) *CreateFuturesAlgoVpOrderService
- type CreateMarginOCOResponse
- type CreateMarginOCOService
- func (s *CreateMarginOCOService) Do(ctx context.Context, opts ...RequestOption) (res *CreateMarginOCOResponse, err error)
- func (s *CreateMarginOCOService) IsIsolated(isIsolated bool) *CreateMarginOCOService
- func (s *CreateMarginOCOService) LimitClientOrderID(limitClientOrderID string) *CreateMarginOCOService
- func (s *CreateMarginOCOService) LimitIcebergQuantity(limitIcebergQty string) *CreateMarginOCOService
- func (s *CreateMarginOCOService) ListClientOrderID(listClientOrderID string) *CreateMarginOCOService
- func (s *CreateMarginOCOService) NewOrderRespType(newOrderRespType NewOrderRespType) *CreateMarginOCOService
- func (s *CreateMarginOCOService) Price(price string) *CreateMarginOCOService
- func (s *CreateMarginOCOService) Quantity(quantity string) *CreateMarginOCOService
- func (s *CreateMarginOCOService) Side(side SideType) *CreateMarginOCOService
- func (s *CreateMarginOCOService) SideEffectType(sideEffectType SideEffectType) *CreateMarginOCOService
- func (s *CreateMarginOCOService) StopClientOrderID(stopClientOrderID string) *CreateMarginOCOService
- func (s *CreateMarginOCOService) StopIcebergQty(stopIcebergQty string) *CreateMarginOCOService
- func (s *CreateMarginOCOService) StopLimitPrice(stopLimitPrice string) *CreateMarginOCOService
- func (s *CreateMarginOCOService) StopLimitTimeInForce(stopLimitTimeInForce TimeInForceType) *CreateMarginOCOService
- func (s *CreateMarginOCOService) StopPrice(stopPrice string) *CreateMarginOCOService
- func (s *CreateMarginOCOService) Symbol(symbol string) *CreateMarginOCOService
- type CreateMarginOrderService
- func (s *CreateMarginOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CreateOrderResponse, err error)
- func (s *CreateMarginOrderService) IcebergQuantity(icebergQuantity string) *CreateMarginOrderService
- func (s *CreateMarginOrderService) IsIsolated(isIsolated bool) *CreateMarginOrderService
- func (s *CreateMarginOrderService) NewClientOrderID(newClientOrderID string) *CreateMarginOrderService
- func (s *CreateMarginOrderService) NewOrderRespType(newOrderRespType NewOrderRespType) *CreateMarginOrderService
- func (s *CreateMarginOrderService) Price(price string) *CreateMarginOrderService
- func (s *CreateMarginOrderService) Quantity(quantity string) *CreateMarginOrderService
- func (s *CreateMarginOrderService) QuoteOrderQty(quoteOrderQty string) *CreateMarginOrderService
- func (s *CreateMarginOrderService) Side(side SideType) *CreateMarginOrderService
- func (s *CreateMarginOrderService) SideEffectType(sideEffectType SideEffectType) *CreateMarginOrderService
- func (s *CreateMarginOrderService) StopPrice(stopPrice string) *CreateMarginOrderService
- func (s *CreateMarginOrderService) Symbol(symbol string) *CreateMarginOrderService
- func (s *CreateMarginOrderService) TimeInForce(timeInForce TimeInForceType) *CreateMarginOrderService
- func (s *CreateMarginOrderService) Type(orderType OrderType) *CreateMarginOrderService
- type CreateMarginSpecialKeyService
- func (s *CreateMarginSpecialKeyService) APIName(apiName string) *CreateMarginSpecialKeyService
- func (s *CreateMarginSpecialKeyService) Do(ctx context.Context, opts ...RequestOption) (res MarginSpecialKey, err error)
- func (s *CreateMarginSpecialKeyService) Ips(ips string) *CreateMarginSpecialKeyService
- func (s *CreateMarginSpecialKeyService) PermissionMode(permissionMode string) *CreateMarginSpecialKeyService
- func (s *CreateMarginSpecialKeyService) PublicKey(publicKey string) *CreateMarginSpecialKeyService
- func (s *CreateMarginSpecialKeyService) RecvWindow(recvWindow int64) *CreateMarginSpecialKeyService
- func (s *CreateMarginSpecialKeyService) Symbol(symbol string) *CreateMarginSpecialKeyService
- type CreateOCOResponse
- type CreateOCOService
- func (s *CreateOCOService) Do(ctx context.Context, opts ...RequestOption) (res *CreateOCOResponse, err error)
- func (s *CreateOCOService) LimitClientOrderID(limitClientOrderID string) *CreateOCOService
- func (s *CreateOCOService) LimitIcebergQuantity(limitIcebergQty string) *CreateOCOService
- func (s *CreateOCOService) ListClientOrderID(listClientOrderID string) *CreateOCOService
- func (s *CreateOCOService) NewOrderRespType(newOrderRespType NewOrderRespType) *CreateOCOService
- func (s *CreateOCOService) Price(price string) *CreateOCOService
- func (s *CreateOCOService) Quantity(quantity string) *CreateOCOService
- func (s *CreateOCOService) Side(side SideType) *CreateOCOService
- func (s *CreateOCOService) StopClientOrderID(stopClientOrderID string) *CreateOCOService
- func (s *CreateOCOService) StopIcebergQty(stopIcebergQty string) *CreateOCOService
- func (s *CreateOCOService) StopLimitPrice(stopLimitPrice string) *CreateOCOService
- func (s *CreateOCOService) StopLimitTimeInForce(stopLimitTimeInForce TimeInForceType) *CreateOCOService
- func (s *CreateOCOService) StopPrice(stopPrice string) *CreateOCOService
- func (s *CreateOCOService) Symbol(symbol string) *CreateOCOService
- type CreateOrderResponse
- type CreateOrderResult
- type CreateOrderService
- func (s *CreateOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CreateOrderResponse, err error)
- func (s *CreateOrderService) IcebergQuantity(icebergQuantity string) *CreateOrderService
- func (s *CreateOrderService) NewClientOrderID(newClientOrderID string) *CreateOrderService
- func (s *CreateOrderService) NewOrderRespType(newOrderRespType NewOrderRespType) *CreateOrderService
- func (s *CreateOrderService) Price(price string) *CreateOrderService
- func (s *CreateOrderService) Quantity(quantity string) *CreateOrderService
- func (s *CreateOrderService) QuoteOrderQty(quoteOrderQty string) *CreateOrderService
- func (s *CreateOrderService) SelfTradePreventionMode(selfTradePreventionMode SelfTradePreventionMode) *CreateOrderService
- func (s *CreateOrderService) Side(side SideType) *CreateOrderService
- func (s *CreateOrderService) StopPrice(stopPrice string) *CreateOrderService
- func (s *CreateOrderService) Symbol(symbol string) *CreateOrderService
- func (s *CreateOrderService) Test(ctx context.Context, opts ...RequestOption) (err error)
- func (s *CreateOrderService) TimeInForce(timeInForce TimeInForceType) *CreateOrderService
- func (s *CreateOrderService) TrailingDelta(trailingDelta string) *CreateOrderService
- func (s *CreateOrderService) Type(orderType OrderType) *CreateOrderService
- type CreateOrderWsResponse
- type CreateSubscriptionToken
- type CreateUserUniversalTransferResponse
- type CreateUserUniversalTransferService
- func (s *CreateUserUniversalTransferService) Amount(v string) *CreateUserUniversalTransferService
- func (s *CreateUserUniversalTransferService) Asset(v string) *CreateUserUniversalTransferService
- func (s *CreateUserUniversalTransferService) Do(ctx context.Context) (*CreateUserUniversalTransferResponse, error)
- func (s *CreateUserUniversalTransferService) FromSymbol(v string) *CreateUserUniversalTransferService
- func (s *CreateUserUniversalTransferService) ToSymbol(v string) *CreateUserUniversalTransferService
- func (s *CreateUserUniversalTransferService) Type(v UserUniversalTransferType) *CreateUserUniversalTransferService
- type CreateVirtualSubAccountResponse
- type CreateVirtualSubAccountService
- func (s *CreateVirtualSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *CreateVirtualSubAccountResponse, err error)
- func (s *CreateVirtualSubAccountService) RecvWindow(recvWindow int64) *CreateVirtualSubAccountService
- func (s *CreateVirtualSubAccountService) SubAccountString(subAccountString string) *CreateVirtualSubAccountService
- type CreateWithdrawResponse
- type CreateWithdrawService
- func (s *CreateWithdrawService) Address(v string) *CreateWithdrawService
- func (s *CreateWithdrawService) AddressTag(v string) *CreateWithdrawService
- func (s *CreateWithdrawService) Amount(v string) *CreateWithdrawService
- func (s *CreateWithdrawService) Coin(v string) *CreateWithdrawService
- func (s *CreateWithdrawService) Do(ctx context.Context, opts ...RequestOption) (*CreateWithdrawResponse, error)
- func (s *CreateWithdrawService) Name(v string) *CreateWithdrawService
- func (s *CreateWithdrawService) Network(v string) *CreateWithdrawService
- func (s *CreateWithdrawService) TransactionFeeFlag(v bool) *CreateWithdrawService
- func (s *CreateWithdrawService) WalletType(walletType int) *CreateWithdrawService
- func (s *CreateWithdrawService) WithdrawOrderID(v string) *CreateWithdrawService
- type CrossMarginData
- type CrossMarginDataService
- type CryptoLoanAsset
- type CryptoLoanService
- type CryptoLoanableAssets
- type DeleteMarginSpecialKeyService
- func (s *DeleteMarginSpecialKeyService) APIKey(apiKey string) *DeleteMarginSpecialKeyService
- func (s *DeleteMarginSpecialKeyService) APIName(apiName string) *DeleteMarginSpecialKeyService
- func (s *DeleteMarginSpecialKeyService) Do(ctx context.Context, opts ...RequestOption) (err error)
- func (s *DeleteMarginSpecialKeyService) RecvWindow(recvWindow int64) *DeleteMarginSpecialKeyService
- func (s *DeleteMarginSpecialKeyService) Symbol(symbol string) *DeleteMarginSpecialKeyService
- type DeliverySubAccount
- type Deposit
- type DepthResponse
- type DepthService
- type DiscountInfo
- type DividendResponse
- type DividendResponseWrapper
- type DustResult
- type DustTransferResponse
- type DustTransferResult
- type DustTransferService
- type ErrHandler
- type ExchangeInfo
- type ExchangeInfoService
- func (s *ExchangeInfoService) Do(ctx context.Context, opts ...RequestOption) (res *ExchangeInfo, err error)
- func (s *ExchangeInfoService) Permissions(permissions ...string) *ExchangeInfoService
- func (s *ExchangeInfoService) ShowPermissionSets(showPermissionSets *bool) *ExchangeInfoService
- func (s *ExchangeInfoService) Symbol(symbol string) *ExchangeInfoService
- func (s *ExchangeInfoService) Symbols(symbols ...string) *ExchangeInfoService
- type FLAdjustLTVDirection
- type FLAdjustLTVStatus
- type FiatDepositWithdrawHistory
- type FiatDepositWithdrawHistoryItem
- type FiatDepositWithdrawHistoryService
- func (s *FiatDepositWithdrawHistoryService) BeginTime(beginTime int64) *FiatDepositWithdrawHistoryService
- func (s *FiatDepositWithdrawHistoryService) Do(ctx context.Context, opts ...RequestOption) (*FiatDepositWithdrawHistory, error)
- func (s *FiatDepositWithdrawHistoryService) EndTime(endTime int64) *FiatDepositWithdrawHistoryService
- func (s *FiatDepositWithdrawHistoryService) Page(page int32) *FiatDepositWithdrawHistoryService
- func (s *FiatDepositWithdrawHistoryService) Rows(rows int32) *FiatDepositWithdrawHistoryService
- func (s *FiatDepositWithdrawHistoryService) TransactionType(transactionType TransactionType) *FiatDepositWithdrawHistoryService
- type FiatPaymentsHistory
- type FiatPaymentsHistoryItem
- type FiatPaymentsHistoryService
- func (s *FiatPaymentsHistoryService) BeginTime(beginTime int64) *FiatPaymentsHistoryService
- func (s *FiatPaymentsHistoryService) Do(ctx context.Context, opts ...RequestOption) (*FiatPaymentsHistory, error)
- func (s *FiatPaymentsHistoryService) EndTime(endTime int64) *FiatPaymentsHistoryService
- func (s *FiatPaymentsHistoryService) Page(page int32) *FiatPaymentsHistoryService
- func (s *FiatPaymentsHistoryService) Rows(rows int32) *FiatPaymentsHistoryService
- func (s *FiatPaymentsHistoryService) TransactionType(transactionType TransactionType) *FiatPaymentsHistoryService
- type Fill
- type FlexibleBorrowStatus
- type FlexibleLoanAdjustLTVResp
- type FlexibleLoanAdjustLTVService
- func (s *FlexibleLoanAdjustLTVService) AdjustmentAmount(amt float64) *FlexibleLoanAdjustLTVService
- func (s *FlexibleLoanAdjustLTVService) CollateralCoin(coll string) *FlexibleLoanAdjustLTVService
- func (s *FlexibleLoanAdjustLTVService) Direction(direction FLAdjustLTVDirection) *FlexibleLoanAdjustLTVService
- func (s *FlexibleLoanAdjustLTVService) Do(ctx context.Context, opts ...RequestOption) (res *FlexibleLoanAdjustLTVResp, err error)
- func (s *FlexibleLoanAdjustLTVService) LoanCoin(loanCoin string) *FlexibleLoanAdjustLTVService
- type FlexibleLoanAsset
- type FlexibleLoanBorrowHistory
- type FlexibleLoanBorrowResp
- type FlexibleLoanBorrowService
- func (s *FlexibleLoanBorrowService) CollateralAmount(collAmt float64) *FlexibleLoanBorrowService
- func (s *FlexibleLoanBorrowService) CollateralCoin(coll string) *FlexibleLoanBorrowService
- func (s *FlexibleLoanBorrowService) Do(ctx context.Context, opts ...RequestOption) (res *FlexibleLoanBorrowResp, err error)
- func (s *FlexibleLoanBorrowService) LoanAmount(loanAmount float64) *FlexibleLoanBorrowService
- func (s *FlexibleLoanBorrowService) LoanCoin(loanCoin string) *FlexibleLoanBorrowService
- type FlexibleLoanOngoingOrder
- type FlexibleLoanRepayHistory
- type FlexibleLoanRepayResp
- type FlexibleLoanRepayService
- func (s *FlexibleLoanRepayService) CollateralCoin(coll string) *FlexibleLoanRepayService
- func (s *FlexibleLoanRepayService) CollateralReturn(collReturn bool) *FlexibleLoanRepayService
- func (s *FlexibleLoanRepayService) Do(ctx context.Context, opts ...RequestOption) (res *FlexibleLoanRepayResp, err error)
- func (s *FlexibleLoanRepayService) FullRepayment(fullRepayment bool) *FlexibleLoanRepayService
- func (s *FlexibleLoanRepayService) LoanCoin(loanCoin string) *FlexibleLoanRepayService
- func (s *FlexibleLoanRepayService) RepayAmount(amt float64) *FlexibleLoanRepayService
- type FlexibleLoanRepayStatus
- type FlexibleLoanableAssets
- type FlexibleProductPosition
- type FlexibleRewardHistory
- type FlexibleRewardHistoryResponse
- type FlexibleRewardHistoryService
- func (s *FlexibleRewardHistoryService) Asset(asset string) *FlexibleRewardHistoryService
- func (s *FlexibleRewardHistoryService) Current(current int64) *FlexibleRewardHistoryService
- func (s *FlexibleRewardHistoryService) Do(ctx context.Context, opts ...RequestOption) (FlexibleRewardHistoryResponse, error)
- func (s *FlexibleRewardHistoryService) EndTime(endTime int64) *FlexibleRewardHistoryService
- func (s *FlexibleRewardHistoryService) ProductID(productID string) *FlexibleRewardHistoryService
- func (s *FlexibleRewardHistoryService) Size(size int64) *FlexibleRewardHistoryService
- func (s *FlexibleRewardHistoryService) StartTime(startTime int64) *FlexibleRewardHistoryService
- func (s *FlexibleRewardHistoryService) Type(typ string) *FlexibleRewardHistoryService
- type FundsDetail
- type Future
- type FuturesAlgoOrder
- type FuturesAlgoOrderStatusType
- type FuturesAlgoSubOrder
- type FuturesAlgoType
- type FuturesAlgoUrgencyType
- type FuturesAsset
- type FuturesOrderBookHistory
- type FuturesOrderBookHistoryDataType
- type FuturesOrderBookHistoryItem
- type FuturesOrderBookHistoryService
- func (s *FuturesOrderBookHistoryService) DataType(dataType FuturesOrderBookHistoryDataType) *FuturesOrderBookHistoryService
- func (s *FuturesOrderBookHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *FuturesOrderBookHistory, err error)
- func (s *FuturesOrderBookHistoryService) EndTime(endTime int64) *FuturesOrderBookHistoryService
- func (s *FuturesOrderBookHistoryService) StartTime(startTime int64) *FuturesOrderBookHistoryService
- func (s *FuturesOrderBookHistoryService) Symbol(symbol string) *FuturesOrderBookHistoryService
- type FuturesSubAccount
- type FuturesTransfer
- type FuturesTransferHistory
- type FuturesTransferService
- func (s *FuturesTransferService) Amount(amount string) *FuturesTransferService
- func (s *FuturesTransferService) Asset(asset string) *FuturesTransferService
- func (s *FuturesTransferService) Do(ctx context.Context, opts ...RequestOption) (res *TransactionResponse, err error)
- func (s *FuturesTransferService) Type(transferType FuturesTransferType) *FuturesTransferService
- type FuturesTransferStatusType
- type FuturesTransferType
- type FuturesUserAsset
- type FuturesUserPosition
- type GenericWSClient
- type GenericWSResponse
- type GetAPIKeyPermission
- type GetAccountService
- type GetAccountSnapshotService
- func (s *GetAccountSnapshotService) Do(ctx context.Context, opts ...RequestOption) (res *Snapshot, err error)
- func (s *GetAccountSnapshotService) EndTime(endTime int64) *GetAccountSnapshotService
- func (s *GetAccountSnapshotService) Limit(limit int) *GetAccountSnapshotService
- func (s *GetAccountSnapshotService) StartTime(startTime int64) *GetAccountSnapshotService
- func (s *GetAccountSnapshotService) Type(accountType string) *GetAccountSnapshotService
- type GetAllCoinsInfoService
- type GetAllLiquidityPoolService
- type GetAllMarginAssetsService
- type GetAssetDetailService
- type GetBNBBurnService
- type GetCommissionRatesService
- type GetDepositAddressResponse
- type GetDepositsAddressService
- type GetFlexibleLoanAssetsDataService
- type GetFlexibleLoanBorrowHistoryResp
- type GetFlexibleLoanBorrowHistoryService
- func (s *GetFlexibleLoanBorrowHistoryService) CollateralCoin(coll string) *GetFlexibleLoanBorrowHistoryService
- func (s *GetFlexibleLoanBorrowHistoryService) Current(current int64) *GetFlexibleLoanBorrowHistoryService
- func (s *GetFlexibleLoanBorrowHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *GetFlexibleLoanBorrowHistoryResp, err error)
- func (s *GetFlexibleLoanBorrowHistoryService) EndTime(endTime int64) *GetFlexibleLoanBorrowHistoryService
- func (s *GetFlexibleLoanBorrowHistoryService) Limit(limit int64) *GetFlexibleLoanBorrowHistoryService
- func (s *GetFlexibleLoanBorrowHistoryService) LoanCoin(loanCoin string) *GetFlexibleLoanBorrowHistoryService
- func (s *GetFlexibleLoanBorrowHistoryService) StartTime(startTime int64) *GetFlexibleLoanBorrowHistoryService
- type GetFlexibleLoanOngoingOrdersResp
- type GetFlexibleLoanOngoingOrdersService
- func (s *GetFlexibleLoanOngoingOrdersService) CollateralCoin(coll string) *GetFlexibleLoanOngoingOrdersService
- func (s *GetFlexibleLoanOngoingOrdersService) Current(current int64) *GetFlexibleLoanOngoingOrdersService
- func (s *GetFlexibleLoanOngoingOrdersService) Do(ctx context.Context, opts ...RequestOption) (res *GetFlexibleLoanOngoingOrdersResp, err error)
- func (s *GetFlexibleLoanOngoingOrdersService) Limit(limit int64) *GetFlexibleLoanOngoingOrdersService
- func (s *GetFlexibleLoanOngoingOrdersService) LoanCoin(loanCoin string) *GetFlexibleLoanOngoingOrdersService
- type GetFlexibleLoanRepayHistoryResp
- type GetFlexibleLoanRepayHistoryService
- func (s *GetFlexibleLoanRepayHistoryService) CollateralCoin(coll string) *GetFlexibleLoanRepayHistoryService
- func (s *GetFlexibleLoanRepayHistoryService) Current(current int64) *GetFlexibleLoanRepayHistoryService
- func (s *GetFlexibleLoanRepayHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *GetFlexibleLoanRepayHistoryResp, err error)
- func (s *GetFlexibleLoanRepayHistoryService) EndTime(endTime int64) *GetFlexibleLoanRepayHistoryService
- func (s *GetFlexibleLoanRepayHistoryService) Limit(limit int64) *GetFlexibleLoanRepayHistoryService
- func (s *GetFlexibleLoanRepayHistoryService) LoanCoin(loanCoin string) *GetFlexibleLoanRepayHistoryService
- func (s *GetFlexibleLoanRepayHistoryService) StartTime(startTime int64) *GetFlexibleLoanRepayHistoryService
- type GetFlexibleProductPositionResponse
- type GetFlexibleProductPositionService
- func (s *GetFlexibleProductPositionService) Current(current int64) *GetFlexibleProductPositionService
- func (s *GetFlexibleProductPositionService) Do(ctx context.Context, opts ...RequestOption) (GetFlexibleProductPositionResponse, error)
- func (s *GetFlexibleProductPositionService) ProductId(productId string) *GetFlexibleProductPositionService
- func (s *GetFlexibleProductPositionService) Size(size int64) *GetFlexibleProductPositionService
- type GetFuturesAlgoSubOrdersResponse
- type GetFuturesAlgoSubOrdersService
- func (s *GetFuturesAlgoSubOrdersService) AlgoId(algoId int64) *GetFuturesAlgoSubOrdersService
- func (s *GetFuturesAlgoSubOrdersService) Do(ctx context.Context, opts ...RequestOption) (res *GetFuturesAlgoSubOrdersResponse, err error)
- func (s *GetFuturesAlgoSubOrdersService) Page(page int) *GetFuturesAlgoSubOrdersService
- func (s *GetFuturesAlgoSubOrdersService) PageSize(pageSize int) *GetFuturesAlgoSubOrdersService
- type GetIsolatedMarginAccountService
- type GetIsolatedMarginAllPairsService
- type GetLiquidityPoolDetailService
- type GetLockedProductPositionResponse
- type GetLockedProductPositionService
- func (s *GetLockedProductPositionService) Asset(asset string) *GetLockedProductPositionService
- func (s *GetLockedProductPositionService) Current(current int64) *GetLockedProductPositionService
- func (s *GetLockedProductPositionService) Do(ctx context.Context, opts ...RequestOption) (GetLockedProductPositionResponse, error)
- func (s *GetLockedProductPositionService) PositionID(positionId string) *GetLockedProductPositionService
- func (s *GetLockedProductPositionService) ProductId(productId string) *GetLockedProductPositionService
- func (s *GetLockedProductPositionService) Size(size int64) *GetLockedProductPositionService
- type GetMarginAccountService
- type GetMarginAllPairsService
- type GetMarginAssetService
- type GetMarginOrderService
- func (s *GetMarginOrderService) Do(ctx context.Context, opts ...RequestOption) (res *Order, err error)
- func (s *GetMarginOrderService) IsIsolated(isIsolated bool) *GetMarginOrderService
- func (s *GetMarginOrderService) OrderID(orderID int64) *GetMarginOrderService
- func (s *GetMarginOrderService) OrigClientOrderID(origClientOrderID string) *GetMarginOrderService
- func (s *GetMarginOrderService) Symbol(symbol string) *GetMarginOrderService
- type GetMarginPairService
- type GetMarginPriceIndexService
- type GetMaxBorrowableService
- type GetMaxTransferableService
- type GetOrderService
- func (s *GetOrderService) Do(ctx context.Context, opts ...RequestOption) (res *Order, err error)
- func (s *GetOrderService) OrderID(orderID int64) *GetOrderService
- func (s *GetOrderService) OrigClientOrderID(origClientOrderID string) *GetOrderService
- func (s *GetOrderService) Symbol(symbol string) *GetOrderService
- type GetSwapQuoteResponse
- type GetSwapQuoteService
- func (s *GetSwapQuoteService) BaseAsset(baseAsset string) *GetSwapQuoteService
- func (s *GetSwapQuoteService) Do(ctx context.Context) (*GetSwapQuoteResponse, error)
- func (s *GetSwapQuoteService) QuoteAsset(quoteAsset string) *GetSwapQuoteService
- func (s *GetSwapQuoteService) QuoteQty(quoteQty float64) *GetSwapQuoteService
- type GetUserAssetService
- type GetUserSwapRecordsService
- func (s *GetUserSwapRecordsService) BaseAsset(baseAsset string) *GetUserSwapRecordsService
- func (s *GetUserSwapRecordsService) Do(ctx context.Context) ([]*SwapRecord, error)
- func (s *GetUserSwapRecordsService) EndTime(endTime int64) *GetUserSwapRecordsService
- func (s *GetUserSwapRecordsService) QuoteAsset(quoteAsset string) *GetUserSwapRecordsService
- func (s *GetUserSwapRecordsService) ResultSize(resultSize int64) *GetUserSwapRecordsService
- func (s *GetUserSwapRecordsService) StartTime(startTime int64) *GetUserSwapRecordsService
- func (s *GetUserSwapRecordsService) Status(status SwappingStatus) *GetUserSwapRecordsService
- func (s *GetUserSwapRecordsService) SwapId(swapId int64) *GetUserSwapRecordsService
- type HistoricalTradesService
- func (s *HistoricalTradesService) Do(ctx context.Context, opts ...RequestOption) (res []*Trade, err error)
- func (s *HistoricalTradesService) FromID(fromID int64) *HistoricalTradesService
- func (s *HistoricalTradesService) Limit(limit int) *HistoricalTradesService
- func (s *HistoricalTradesService) Symbol(symbol string) *HistoricalTradesService
- type IcebergPartsFilter
- type InterestHistory
- type InterestHistoryElement
- type InterestHistoryService
- func (s *InterestHistoryService) Asset(asset string) *InterestHistoryService
- func (s *InterestHistoryService) Current(current int32) *InterestHistoryService
- func (s *InterestHistoryService) Do(ctx context.Context) (*InterestHistory, error)
- func (s *InterestHistoryService) EndTime(endTime int64) *InterestHistoryService
- func (s *InterestHistoryService) LendingType(lendingType LendingType) *InterestHistoryService
- func (s *InterestHistoryService) Size(size int32) *InterestHistoryService
- func (s *InterestHistoryService) StartTime(startTime int64) *InterestHistoryService
- type InternalUniversalTransfer
- type InternalUniversalTransferHistoryResponse
- type InternalUniversalTransferHistoryService
- func (s *InternalUniversalTransferHistoryService) ClientTranId(v string) *InternalUniversalTransferHistoryService
- func (s *InternalUniversalTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res InternalUniversalTransferHistoryResponse, err error)
- func (s *InternalUniversalTransferHistoryService) EndTime(v int64) *InternalUniversalTransferHistoryService
- func (s *InternalUniversalTransferHistoryService) FromEmail(v string) *InternalUniversalTransferHistoryService
- func (s *InternalUniversalTransferHistoryService) Limit(v int) *InternalUniversalTransferHistoryService
- func (s *InternalUniversalTransferHistoryService) Page(v int) *InternalUniversalTransferHistoryService
- func (s *InternalUniversalTransferHistoryService) StartTime(v int64) *InternalUniversalTransferHistoryService
- func (s *InternalUniversalTransferHistoryService) ToEmail(v string) *InternalUniversalTransferHistoryService
- type InternalUniversalTransferResponse
- type InternalUniversalTransferService
- func (s *InternalUniversalTransferService) Amount(v string) *InternalUniversalTransferService
- func (s *InternalUniversalTransferService) Asset(v string) *InternalUniversalTransferService
- func (s *InternalUniversalTransferService) ClientTranId(v string) *InternalUniversalTransferService
- func (s *InternalUniversalTransferService) Do(ctx context.Context, opts ...RequestOption) (*InternalUniversalTransferResponse, error)
- func (s *InternalUniversalTransferService) FromAccountType(v string) *InternalUniversalTransferService
- func (s *InternalUniversalTransferService) FromEmail(v string) *InternalUniversalTransferService
- func (s *InternalUniversalTransferService) Symbol(v string) *InternalUniversalTransferService
- func (s *InternalUniversalTransferService) ToAccountType(v string) *InternalUniversalTransferService
- func (s *InternalUniversalTransferService) ToEmail(v string) *InternalUniversalTransferService
- type IsolatedMarginAccount
- type IsolatedMarginAllPair
- type IsolatedMarginAsset
- type IsolatedMarginData
- type IsolatedMarginDataService
- type IsolatedMarginTransferService
- func (s *IsolatedMarginTransferService) Amount(amount string) *IsolatedMarginTransferService
- func (s *IsolatedMarginTransferService) Asset(asset string) *IsolatedMarginTransferService
- func (s *IsolatedMarginTransferService) Do(ctx context.Context, opts ...RequestOption) (res *TransactionResponse, err error)
- func (s *IsolatedMarginTransferService) Symbol(symbol string) *IsolatedMarginTransferService
- func (s *IsolatedMarginTransferService) TransFrom(transFrom AccountType) *IsolatedMarginTransferService
- func (s *IsolatedMarginTransferService) TransTo(transTo AccountType) *IsolatedMarginTransferService
- type IsolatedUserAsset
- type KeepaliveIsolatedMarginUserStreamService
- func (s *KeepaliveIsolatedMarginUserStreamService) Do(ctx context.Context, opts ...RequestOption) (err error)
- func (s *KeepaliveIsolatedMarginUserStreamService) ListenKey(listenKey string) *KeepaliveIsolatedMarginUserStreamService
- func (s *KeepaliveIsolatedMarginUserStreamService) Symbol(symbol string) *KeepaliveIsolatedMarginUserStreamService
- type KeepaliveMarginUserStreamService
- type KeepaliveUserStreamService
- type Kline
- type KlinesService
- func (s *KlinesService) Do(ctx context.Context, opts ...RequestOption) (res []*Kline, err error)
- func (s *KlinesService) EndTime(endTime int64) *KlinesService
- func (s *KlinesService) Interval(interval string) *KlinesService
- func (s *KlinesService) Limit(limit int) *KlinesService
- func (s *KlinesService) StartTime(startTime int64) *KlinesService
- func (s *KlinesService) Symbol(symbol string) *KlinesService
- type LendingType
- type LiquidityOperationType
- type LiquidityPool
- type LiquidityPoolDetail
- type LiquidityRewardType
- type ListBookTickersService
- type ListDepositsService
- func (s *ListDepositsService) Coin(coin string) *ListDepositsService
- func (s *ListDepositsService) Do(ctx context.Context, opts ...RequestOption) (res []*Deposit, err error)
- func (s *ListDepositsService) EndTime(endTime int64) *ListDepositsService
- func (s *ListDepositsService) Limit(limit int) *ListDepositsService
- func (s *ListDepositsService) Offset(offset int) *ListDepositsService
- func (s *ListDepositsService) StartTime(startTime int64) *ListDepositsService
- func (s *ListDepositsService) Status(status int) *ListDepositsService
- func (s *ListDepositsService) TxID(id string) *ListDepositsService
- type ListDustDetail
- type ListDustLogService
- type ListDustResponse
- type ListDustService
- type ListFuturesTransferService
- func (s *ListFuturesTransferService) Asset(asset string) *ListFuturesTransferService
- func (s *ListFuturesTransferService) Current(current int64) *ListFuturesTransferService
- func (s *ListFuturesTransferService) Do(ctx context.Context, opts ...RequestOption) (res *FuturesTransferHistory, err error)
- func (s *ListFuturesTransferService) EndTime(endTime int64) *ListFuturesTransferService
- func (s *ListFuturesTransferService) Size(size int64) *ListFuturesTransferService
- func (s *ListFuturesTransferService) StartTime(startTime int64) *ListFuturesTransferService
- type ListHistoryFuturesAlgoOrdersResponse
- type ListHistoryFuturesAlgoOrdersService
- func (s *ListHistoryFuturesAlgoOrdersService) Do(ctx context.Context, opts ...RequestOption) (res *ListHistoryFuturesAlgoOrdersResponse, err error)
- func (s *ListHistoryFuturesAlgoOrdersService) EndTime(endTime int64) *ListHistoryFuturesAlgoOrdersService
- func (s *ListHistoryFuturesAlgoOrdersService) Page(page int) *ListHistoryFuturesAlgoOrdersService
- func (s *ListHistoryFuturesAlgoOrdersService) PageSize(pageSize int) *ListHistoryFuturesAlgoOrdersService
- func (s *ListHistoryFuturesAlgoOrdersService) Side(side SideType) *ListHistoryFuturesAlgoOrdersService
- func (s *ListHistoryFuturesAlgoOrdersService) StartTime(startTime int64) *ListHistoryFuturesAlgoOrdersService
- func (s *ListHistoryFuturesAlgoOrdersService) Symbol(symbol string) *ListHistoryFuturesAlgoOrdersService
- type ListMarginBorrowRepayService
- func (s *ListMarginBorrowRepayService) Asset(asset string) *ListMarginBorrowRepayService
- func (s *ListMarginBorrowRepayService) Current(current int64) *ListMarginBorrowRepayService
- func (s *ListMarginBorrowRepayService) Do(ctx context.Context, opts ...RequestOption) (res *MarginBorrowRepayResponse, err error)
- func (s *ListMarginBorrowRepayService) EndTime(endTime int64) *ListMarginBorrowRepayService
- func (s *ListMarginBorrowRepayService) IsolatedSymbol(isolatedSymbol string) *ListMarginBorrowRepayService
- func (s *ListMarginBorrowRepayService) Size(size int64) *ListMarginBorrowRepayService
- func (s *ListMarginBorrowRepayService) StartTime(startTime int64) *ListMarginBorrowRepayService
- func (s *ListMarginBorrowRepayService) TxId(txId int64) *ListMarginBorrowRepayService
- func (s *ListMarginBorrowRepayService) Type(marginBorrowRepayType MarginAccountBorrowRepayType) *ListMarginBorrowRepayService
- type ListMarginLoansService
- func (s *ListMarginLoansService) Asset(asset string) *ListMarginLoansService
- func (s *ListMarginLoansService) Current(current int64) *ListMarginLoansService
- func (s *ListMarginLoansService) Do(ctx context.Context, opts ...RequestOption) (res *MarginLoanResponse, err error)
- func (s *ListMarginLoansService) EndTime(endTime int64) *ListMarginLoansService
- func (s *ListMarginLoansService) Size(size int64) *ListMarginLoansService
- func (s *ListMarginLoansService) StartTime(startTime int64) *ListMarginLoansService
- func (s *ListMarginLoansService) TxID(txID int64) *ListMarginLoansService
- type ListMarginOpenOrdersService
- type ListMarginOrdersService
- func (s *ListMarginOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*Order, err error)
- func (s *ListMarginOrdersService) EndTime(endTime int64) *ListMarginOrdersService
- func (s *ListMarginOrdersService) IsIsolated(isIsolated bool) *ListMarginOrdersService
- func (s *ListMarginOrdersService) Limit(limit int) *ListMarginOrdersService
- func (s *ListMarginOrdersService) OrderID(orderID int64) *ListMarginOrdersService
- func (s *ListMarginOrdersService) StartTime(startTime int64) *ListMarginOrdersService
- func (s *ListMarginOrdersService) Symbol(symbol string) *ListMarginOrdersService
- type ListMarginRepaysService
- func (s *ListMarginRepaysService) Asset(asset string) *ListMarginRepaysService
- func (s *ListMarginRepaysService) Current(current int64) *ListMarginRepaysService
- func (s *ListMarginRepaysService) Do(ctx context.Context, opts ...RequestOption) (res *MarginRepayResponse, err error)
- func (s *ListMarginRepaysService) EndTime(endTime int64) *ListMarginRepaysService
- func (s *ListMarginRepaysService) Size(size int64) *ListMarginRepaysService
- func (s *ListMarginRepaysService) StartTime(startTime int64) *ListMarginRepaysService
- func (s *ListMarginRepaysService) TxID(txID int64) *ListMarginRepaysService
- type ListMarginSpecialKeyService
- func (s *ListMarginSpecialKeyService) Do(ctx context.Context, opts ...RequestOption) (res []MarginAPIKey, err error)
- func (s *ListMarginSpecialKeyService) RecvWindow(recvWindow int64) *ListMarginSpecialKeyService
- func (s *ListMarginSpecialKeyService) Symbol(symbol string) *ListMarginSpecialKeyService
- type ListMarginTradesService
- func (s *ListMarginTradesService) Do(ctx context.Context, opts ...RequestOption) (res []*TradeV3, err error)
- func (s *ListMarginTradesService) EndTime(endTime int64) *ListMarginTradesService
- func (s *ListMarginTradesService) FromID(fromID int64) *ListMarginTradesService
- func (s *ListMarginTradesService) IsIsolated(isIsolated bool) *ListMarginTradesService
- func (s *ListMarginTradesService) Limit(limit int) *ListMarginTradesService
- func (s *ListMarginTradesService) StartTime(startTime int64) *ListMarginTradesService
- func (s *ListMarginTradesService) Symbol(symbol string) *ListMarginTradesService
- type ListOpenFuturesAlgoOrdersResponse
- type ListOpenFuturesAlgoOrdersService
- type ListOpenOcoService
- type ListOpenOrdersService
- type ListOrdersService
- func (s *ListOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*Order, err error)
- func (s *ListOrdersService) EndTime(endTime int64) *ListOrdersService
- func (s *ListOrdersService) Limit(limit int) *ListOrdersService
- func (s *ListOrdersService) OrderID(orderID int64) *ListOrdersService
- func (s *ListOrdersService) StartTime(startTime int64) *ListOrdersService
- func (s *ListOrdersService) Symbol(symbol string) *ListOrdersService
- type ListPriceChangeStatsService
- func (s *ListPriceChangeStatsService) Do(ctx context.Context, opts ...RequestOption) (res []*PriceChangeStats, err error)
- func (s *ListPriceChangeStatsService) Symbol(symbol string) *ListPriceChangeStatsService
- func (s *ListPriceChangeStatsService) Symbols(symbols []string) *ListPriceChangeStatsService
- type ListPricesService
- type ListSavingsFixedAndActivityProductsService
- func (s *ListSavingsFixedAndActivityProductsService) Asset(asset string) *ListSavingsFixedAndActivityProductsService
- func (s *ListSavingsFixedAndActivityProductsService) Current(current int64) *ListSavingsFixedAndActivityProductsService
- func (s *ListSavingsFixedAndActivityProductsService) Do(ctx context.Context, opts ...RequestOption) ([]*SavingsFixedProduct, error)
- func (s *ListSavingsFixedAndActivityProductsService) IsSortAsc(isSortAsc bool) *ListSavingsFixedAndActivityProductsService
- func (s *ListSavingsFixedAndActivityProductsService) Size(size int64) *ListSavingsFixedAndActivityProductsService
- func (s *ListSavingsFixedAndActivityProductsService) SortBy(sortBy string) *ListSavingsFixedAndActivityProductsService
- func (s *ListSavingsFixedAndActivityProductsService) Status(status string) *ListSavingsFixedAndActivityProductsService
- func (s *ListSavingsFixedAndActivityProductsService) Type(projectType string) *ListSavingsFixedAndActivityProductsService
- type ListSavingsFlexibleProductsService
- func (s *ListSavingsFlexibleProductsService) Current(current int64) *ListSavingsFlexibleProductsService
- func (s *ListSavingsFlexibleProductsService) Do(ctx context.Context, opts ...RequestOption) ([]*SavingsFlexibleProduct, error)
- func (s *ListSavingsFlexibleProductsService) Featured(featured string) *ListSavingsFlexibleProductsService
- func (s *ListSavingsFlexibleProductsService) Size(size int64) *ListSavingsFlexibleProductsService
- func (s *ListSavingsFlexibleProductsService) Status(status string) *ListSavingsFlexibleProductsService
- type ListSymbolTickerService
- func (s *ListSymbolTickerService) Do(ctx context.Context, opts ...RequestOption) (res []*SymbolTicker, err error)
- func (s *ListSymbolTickerService) Symbol(symbol string) *ListSymbolTickerService
- func (s *ListSymbolTickerService) Symbols(symbols []string) *ListSymbolTickerService
- func (s *ListSymbolTickerService) WindowSize(windowSize string) *ListSymbolTickerService
- type ListTradesService
- func (s *ListTradesService) Do(ctx context.Context, opts ...RequestOption) (res []*TradeV3, err error)
- func (s *ListTradesService) EndTime(endTime int64) *ListTradesService
- func (s *ListTradesService) FromID(fromID int64) *ListTradesService
- func (s *ListTradesService) Limit(limit int) *ListTradesService
- func (s *ListTradesService) OrderId(OrderId int64) *ListTradesService
- func (s *ListTradesService) StartTime(startTime int64) *ListTradesService
- func (s *ListTradesService) Symbol(symbol string) *ListTradesService
- type ListUserUniversalTransferService
- func (s *ListUserUniversalTransferService) Current(v int) *ListUserUniversalTransferService
- func (s *ListUserUniversalTransferService) Do(ctx context.Context) (res *UserUniversalTransferResponse, err error)
- func (s *ListUserUniversalTransferService) EndTime(v int64) *ListUserUniversalTransferService
- func (s *ListUserUniversalTransferService) FromSymbol(v string) *ListUserUniversalTransferService
- func (s *ListUserUniversalTransferService) Size(v int) *ListUserUniversalTransferService
- func (s *ListUserUniversalTransferService) StartTime(v int64) *ListUserUniversalTransferService
- func (s *ListUserUniversalTransferService) ToSymbol(v string) *ListUserUniversalTransferService
- func (s *ListUserUniversalTransferService) Type(v UserUniversalTransferType) *ListUserUniversalTransferService
- type ListWithdrawsService
- func (s *ListWithdrawsService) Coin(coin string) *ListWithdrawsService
- func (s *ListWithdrawsService) Do(ctx context.Context, opts ...RequestOption) (res []*Withdraw, err error)
- func (s *ListWithdrawsService) EndTime(endTime int64) *ListWithdrawsService
- func (s *ListWithdrawsService) IdList(ids string) *ListWithdrawsService
- func (s *ListWithdrawsService) Limit(limit int) *ListWithdrawsService
- func (s *ListWithdrawsService) Offset(offset int) *ListWithdrawsService
- func (s *ListWithdrawsService) StartTime(startTime int64) *ListWithdrawsService
- func (s *ListWithdrawsService) Status(status int) *ListWithdrawsService
- func (s *ListWithdrawsService) WithdrawOrderId(withdrawOrderId string) *ListWithdrawsService
- type LockedProductPosition
- type Logger
- type LotSizeFilter
- type ManagedSubAccountAsset
- type ManagedSubAccountAssetsService
- type ManagedSubAccountDepositAddressService
- func (s *ManagedSubAccountDepositAddressService) Coin(coin string) *ManagedSubAccountDepositAddressService
- func (s *ManagedSubAccountDepositAddressService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountDepositAddressServiceResponse, err error)
- func (s *ManagedSubAccountDepositAddressService) Email(email string) *ManagedSubAccountDepositAddressService
- func (s *ManagedSubAccountDepositAddressService) Network(network string) *ManagedSubAccountDepositAddressService
- func (s *ManagedSubAccountDepositAddressService) RecvWindow(recvWindow int64) *ManagedSubAccountDepositAddressService
- type ManagedSubAccountDepositAddressServiceResponse
- type ManagedSubAccountDepositResponse
- type ManagedSubAccountDepositService
- func (s *ManagedSubAccountDepositService) Amount(amount string) *ManagedSubAccountDepositService
- func (s *ManagedSubAccountDepositService) Asset(asset string) *ManagedSubAccountDepositService
- func (s *ManagedSubAccountDepositService) Do(ctx context.Context, opts ...RequestOption) (*ManagedSubAccountDepositResponse, error)
- func (s *ManagedSubAccountDepositService) ToEmail(email string) *ManagedSubAccountDepositService
- type ManagedSubAccountInfoService
- func (s *ManagedSubAccountInfoService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountInfoServiceResponse, err error)
- func (s *ManagedSubAccountInfoService) Email(email string) *ManagedSubAccountInfoService
- func (s *ManagedSubAccountInfoService) Limit(limit int32) *ManagedSubAccountInfoService
- func (s *ManagedSubAccountInfoService) Page(page int32) *ManagedSubAccountInfoService
- func (s *ManagedSubAccountInfoService) RecvWindow(recvWindow int64) *ManagedSubAccountInfoService
- type ManagedSubAccountInfoServiceResponse
- type ManagedSubAccountMarginAsset
- type ManagedSubAccountQueryFuturesAssetService
- type ManagedSubAccountQueryFuturesAssetServiceResponse
- type ManagedSubAccountQueryMarginAssetService
- type ManagedSubAccountQueryMarginAssetServiceResponse
- type ManagedSubAccountQueryTransferLogForInvestorService
- func (s *ManagedSubAccountQueryTransferLogForInvestorService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountQueryTransferLogForInvestorServiceResponse, err error)
- func (s *ManagedSubAccountQueryTransferLogForInvestorService) Email(email string) *ManagedSubAccountQueryTransferLogForInvestorService
- func (s *ManagedSubAccountQueryTransferLogForInvestorService) EndTime(endTime int64) *ManagedSubAccountQueryTransferLogForInvestorService
- func (s *ManagedSubAccountQueryTransferLogForInvestorService) Limit(limit int32) *ManagedSubAccountQueryTransferLogForInvestorService
- func (s *ManagedSubAccountQueryTransferLogForInvestorService) Page(page int32) *ManagedSubAccountQueryTransferLogForInvestorService
- func (s *ManagedSubAccountQueryTransferLogForInvestorService) StartTime(startTime int64) *ManagedSubAccountQueryTransferLogForInvestorService
- func (s *ManagedSubAccountQueryTransferLogForInvestorService) TransferFunctionAccountType(transferFunctionAccountType string) *ManagedSubAccountQueryTransferLogForInvestorService
- func (s *ManagedSubAccountQueryTransferLogForInvestorService) Transfers(transfers string) *ManagedSubAccountQueryTransferLogForInvestorService
- type ManagedSubAccountQueryTransferLogForInvestorServiceResponse
- type ManagedSubAccountQueryTransferLogForTradeParentService
- func (s *ManagedSubAccountQueryTransferLogForTradeParentService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountQueryTransferLogForTradeParentServiceResponse, err error)
- func (s *ManagedSubAccountQueryTransferLogForTradeParentService) Email(email string) *ManagedSubAccountQueryTransferLogForTradeParentService
- func (s *ManagedSubAccountQueryTransferLogForTradeParentService) EndTime(endTime int64) *ManagedSubAccountQueryTransferLogForTradeParentService
- func (s *ManagedSubAccountQueryTransferLogForTradeParentService) Limit(limit int32) *ManagedSubAccountQueryTransferLogForTradeParentService
- func (s *ManagedSubAccountQueryTransferLogForTradeParentService) Page(page int32) *ManagedSubAccountQueryTransferLogForTradeParentService
- func (s *ManagedSubAccountQueryTransferLogForTradeParentService) StartTime(startTime int64) *ManagedSubAccountQueryTransferLogForTradeParentService
- func (s *ManagedSubAccountQueryTransferLogForTradeParentService) TransferFunctionAccountType(transferFunctionAccountType string) *ManagedSubAccountQueryTransferLogForTradeParentService
- func (s *ManagedSubAccountQueryTransferLogForTradeParentService) Transfers(transfers string) *ManagedSubAccountQueryTransferLogForTradeParentService
- type ManagedSubAccountQueryTransferLogForTradeParentServiceResponse
- type ManagedSubAccountQueryTransferLogService
- func (s *ManagedSubAccountQueryTransferLogService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountQueryTransferLogServiceResponse, err error)
- func (s *ManagedSubAccountQueryTransferLogService) EndTime(endTime int64) *ManagedSubAccountQueryTransferLogService
- func (s *ManagedSubAccountQueryTransferLogService) Limit(limit int32) *ManagedSubAccountQueryTransferLogService
- func (s *ManagedSubAccountQueryTransferLogService) Page(page int32) *ManagedSubAccountQueryTransferLogService
- func (s *ManagedSubAccountQueryTransferLogService) RecvWindow(recvWindow int64) *ManagedSubAccountQueryTransferLogService
- func (s *ManagedSubAccountQueryTransferLogService) StartTime(startTime int64) *ManagedSubAccountQueryTransferLogService
- func (s *ManagedSubAccountQueryTransferLogService) TransferFunctionAccountType(transferFunctionAccountType string) *ManagedSubAccountQueryTransferLogService
- func (s *ManagedSubAccountQueryTransferLogService) Transfers(transfers string) *ManagedSubAccountQueryTransferLogService
- type ManagedSubAccountQueryTransferLogServiceResponse
- type ManagedSubAccountSnapshotService
- func (s *ManagedSubAccountSnapshotService) AccType(accType string) *ManagedSubAccountSnapshotService
- func (s *ManagedSubAccountSnapshotService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountSnapshotServiceResponse, err error)
- func (s *ManagedSubAccountSnapshotService) Email(email string) *ManagedSubAccountSnapshotService
- func (s *ManagedSubAccountSnapshotService) EndTime(endTime int64) *ManagedSubAccountSnapshotService
- func (s *ManagedSubAccountSnapshotService) Limit(limit int32) *ManagedSubAccountSnapshotService
- func (s *ManagedSubAccountSnapshotService) RecvWindow(recvWindow int64) *ManagedSubAccountSnapshotService
- func (s *ManagedSubAccountSnapshotService) StartTime(startTime int64) *ManagedSubAccountSnapshotService
- type ManagedSubAccountSnapshotServiceResponse
- type ManagedSubAccountUserInfoVo
- type ManagedSubAccountWithdrawService
- func (s *ManagedSubAccountWithdrawService) Amount(amount string) *ManagedSubAccountWithdrawService
- func (s *ManagedSubAccountWithdrawService) Asset(asset string) *ManagedSubAccountWithdrawService
- func (s *ManagedSubAccountWithdrawService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountWithdrawServiceResponse, err error)
- func (s *ManagedSubAccountWithdrawService) FromEmail(fromEmail string) *ManagedSubAccountWithdrawService
- func (s *ManagedSubAccountWithdrawService) RecvWindow(recvWindow int64) *ManagedSubAccountWithdrawService
- func (s *ManagedSubAccountWithdrawService) TransferDate(transferDate int64) *ManagedSubAccountWithdrawService
- type ManagedSubAccountWithdrawServiceResponse
- type ManagedSubAccountWithdrawalResponse
- type ManagedSubAccountWithdrawalService
- func (s *ManagedSubAccountWithdrawalService) Amount(amount string) *ManagedSubAccountWithdrawalService
- func (s *ManagedSubAccountWithdrawalService) Asset(asset string) *ManagedSubAccountWithdrawalService
- func (s *ManagedSubAccountWithdrawalService) Do(ctx context.Context, opts ...RequestOption) (*ManagedSubAccountWithdrawalResponse, error)
- func (s *ManagedSubAccountWithdrawalService) FromEmail(email string) *ManagedSubAccountWithdrawalService
- func (s *ManagedSubAccountWithdrawalService) TransferDate(val int64) *ManagedSubAccountWithdrawalService
- type ManagedSubFuturesAccountSnapVo
- type ManagedSubFuturesAccountSnapVoData
- type ManagedSubFuturesAccountSnapVoDataAsset
- type ManagedSubFuturesAccountSnapVoDataPosition
- type ManagedSubTransferHistoryVo
- type MarginAPIKey
- type MarginAccount
- type MarginAccountBorrowRepayType
- type MarginAllPair
- type MarginAsset
- type MarginBorrowRepay
- type MarginBorrowRepayResponse
- type MarginBorrowRepayService
- func (s *MarginBorrowRepayService) Amount(amount string) *MarginBorrowRepayService
- func (s *MarginBorrowRepayService) Asset(asset string) *MarginBorrowRepayService
- func (s *MarginBorrowRepayService) Do(ctx context.Context, opts ...RequestOption) (res *TransactionResponse, err error)
- func (s *MarginBorrowRepayService) IsIsolated(isIsolated bool) *MarginBorrowRepayService
- func (s *MarginBorrowRepayService) Symbol(symbol string) *MarginBorrowRepayService
- func (s *MarginBorrowRepayService) Type(marginBorrowRepayType MarginAccountBorrowRepayType) *MarginBorrowRepayService
- type MarginInterestHistory
- type MarginInterestHistoryRow
- type MarginInterestHistoryService
- func (s *MarginInterestHistoryService) Asset(asset string) *MarginInterestHistoryService
- func (s *MarginInterestHistoryService) Current(current int64) *MarginInterestHistoryService
- func (s *MarginInterestHistoryService) Do(ctx context.Context) (*MarginInterestHistory, error)
- func (s *MarginInterestHistoryService) EndTime(endTime int64) *MarginInterestHistoryService
- func (s *MarginInterestHistoryService) IsolatedSymbol(symbol string) *MarginInterestHistoryService
- func (s *MarginInterestHistoryService) Size(size int64) *MarginInterestHistoryService
- func (s *MarginInterestHistoryService) StartTime(startTime int64) *MarginInterestHistoryService
- type MarginLoan
- type MarginLoanResponse
- type MarginLoanService
- func (s *MarginLoanService) Amount(amount string) *MarginLoanService
- func (s *MarginLoanService) Asset(asset string) *MarginLoanService
- func (s *MarginLoanService) Do(ctx context.Context, opts ...RequestOption) (res *TransactionResponse, err error)
- func (s *MarginLoanService) IsIsolated(isIsolated bool) *MarginLoanService
- func (s *MarginLoanService) Symbol(symbol string) *MarginLoanService
- type MarginLoanStatusType
- type MarginOCOOrder
- type MarginOCOOrderReport
- type MarginPair
- type MarginPriceIndex
- type MarginRepay
- type MarginRepayResponse
- type MarginRepayService
- func (s *MarginRepayService) Amount(amount string) *MarginRepayService
- func (s *MarginRepayService) Asset(asset string) *MarginRepayService
- func (s *MarginRepayService) Do(ctx context.Context, opts ...RequestOption) (res *TransactionResponse, err error)
- func (s *MarginRepayService) IsIsolated(isIsolated bool) *MarginRepayService
- func (s *MarginRepayService) Symbol(symbol string) *MarginRepayService
- type MarginRepayStatusType
- type MarginSpecialKey
- type MarginSubAccount
- type MarginSubscriptionResponse
- type MarginSubscriptionToken
- type MarginSubscriptionTokenService
- func (s *MarginSubscriptionTokenService) Do(ctx context.Context, opts ...RequestOption) (*MarginSubscriptionToken, error)
- func (s *MarginSubscriptionTokenService) IsIsolated(isIsolated bool) *MarginSubscriptionTokenService
- func (s *MarginSubscriptionTokenService) Symbol(symbol string) *MarginSubscriptionTokenService
- func (s *MarginSubscriptionTokenService) Validity(validity int64) *MarginSubscriptionTokenService
- type MarginTradeCoeffVo
- type MarginTransferService
- func (s *MarginTransferService) Amount(amount string) *MarginTransferService
- func (s *MarginTransferService) Asset(asset string) *MarginTransferService
- func (s *MarginTransferService) Do(ctx context.Context, opts ...RequestOption) (res *TransactionResponse, err error)
- func (s *MarginTransferService) Type(transferType MarginTransferType) *MarginTransferService
- type MarginTransferType
- type MarginUserAsset
- type MarginUserAssetVo
- type MarketLotSizeFilter
- type MaxBorrowable
- type MaxNumAlgoOrdersFilter
- type MaxNumOrdersFilter
- type MaxTransferable
- type Network
- type NewOrderRespType
- type NotionalFilter
- type OCOOrder
- type OCOOrderReport
- type Oco
- type Order
- type OrderCreateWsRequest
- func (s *OrderCreateWsRequest) GetParams() map[string]interface{}
- func (s *OrderCreateWsRequest) IcebergQty(icebergQty string) *OrderCreateWsRequest
- func (s *OrderCreateWsRequest) NewClientOrderID(newClientOrderID string) *OrderCreateWsRequest
- func (s *OrderCreateWsRequest) NewOrderRespType(newOrderRespType NewOrderRespType) *OrderCreateWsRequest
- func (s *OrderCreateWsRequest) Price(price string) *OrderCreateWsRequest
- func (s *OrderCreateWsRequest) Quantity(quantity string) *OrderCreateWsRequest
- func (s *OrderCreateWsRequest) QuoteOrderQty(quoteOrderQty string) *OrderCreateWsRequest
- func (s *OrderCreateWsRequest) RecvWindow(recvWindow uint16) *OrderCreateWsRequest
- func (s *OrderCreateWsRequest) Side(side SideType) *OrderCreateWsRequest
- func (s *OrderCreateWsRequest) StopPrice(stopPrice string) *OrderCreateWsRequest
- func (s *OrderCreateWsRequest) StrategyId(strategyId uint64) *OrderCreateWsRequest
- func (s *OrderCreateWsRequest) StrategyType(strategyType uint32) *OrderCreateWsRequest
- func (s *OrderCreateWsRequest) Symbol(symbol string) *OrderCreateWsRequest
- func (s *OrderCreateWsRequest) TimeInForce(timeInForce TimeInForceType) *OrderCreateWsRequest
- func (s *OrderCreateWsRequest) TrailingDelta(trailingDelta int64) *OrderCreateWsRequest
- func (s *OrderCreateWsRequest) Type(orderType OrderType) *OrderCreateWsRequest
- type OrderCreateWsService
- func (s *OrderCreateWsService) Do(requestID string, request *OrderCreateWsRequest) error
- func (s *OrderCreateWsService) GetReadChannel() <-chan []byte
- func (s *OrderCreateWsService) GetReadErrorChannel() <-chan error
- func (s *OrderCreateWsService) GetReconnectCount() int64
- func (s *OrderCreateWsService) ReceiveAllDataBeforeStop(timeout time.Duration)
- func (s *OrderCreateWsService) SyncDo(requestID string, request *OrderCreateWsRequest) (*CreateOrderWsResponse, error)
- type OrderStatusType
- type OrderType
- type PayTradeHistory
- type PayTradeHistoryService
- func (s *PayTradeHistoryService) Do(ctx context.Context, opts ...RequestOption) (*PayTradeHistory, error)
- func (s *PayTradeHistoryService) EndTimestamp(endTimestamp int64) *PayTradeHistoryService
- func (s *PayTradeHistoryService) Limit(limit int32) *PayTradeHistoryService
- func (s *PayTradeHistoryService) StartTimestamp(startTimestamp int64) *PayTradeHistoryService
- type PayTradeItem
- type PayerInfo
- type PercentPriceBySideFilter
- type PingService
- type PoolShareInformation
- type PriceChangeStats
- type PriceFilter
- type PurchaseSavingsFlexibleProductResponse
- type PurchaseSavingsFlexibleProductService
- func (s *PurchaseSavingsFlexibleProductService) Amount(amount float64) *PurchaseSavingsFlexibleProductService
- func (s *PurchaseSavingsFlexibleProductService) Do(ctx context.Context, opts ...RequestOption) (uint64, error)
- func (s *PurchaseSavingsFlexibleProductService) ProductId(productId string) *PurchaseSavingsFlexibleProductService
- type QueryClaimedRewardHistoryService
- func (s *QueryClaimedRewardHistoryService) AssetRewards(assetRewards string) *QueryClaimedRewardHistoryService
- func (s *QueryClaimedRewardHistoryService) Do(ctx context.Context) ([]*ClaimedRewardHistory, error)
- func (s *QueryClaimedRewardHistoryService) EndTime(endTime int64) *QueryClaimedRewardHistoryService
- func (s *QueryClaimedRewardHistoryService) PoolId(poolId int64) *QueryClaimedRewardHistoryService
- func (s *QueryClaimedRewardHistoryService) ResultSize(resultSize int64) *QueryClaimedRewardHistoryService
- func (s *QueryClaimedRewardHistoryService) RewardType(t LiquidityRewardType) *QueryClaimedRewardHistoryService
- func (s *QueryClaimedRewardHistoryService) StartTime(startTime int64) *QueryClaimedRewardHistoryService
- type RPCError
- type RateLimit
- type RateLimitBlocker
- type RateLimitFull
- type RateLimitInterval
- type RateLimitService
- type RateLimitType
- type ReceiverInfo
- type RecentTradesService
- type RedeemSavingsFlexibleProductService
- func (s *RedeemSavingsFlexibleProductService) Amount(amount float64) *RedeemSavingsFlexibleProductService
- func (s *RedeemSavingsFlexibleProductService) Do(ctx context.Context, opts ...RequestOption) error
- func (s *RedeemSavingsFlexibleProductService) ProductId(productId string) *RedeemSavingsFlexibleProductService
- func (s *RedeemSavingsFlexibleProductService) Type(redeemType string) *RedeemSavingsFlexibleProductService
- type RedeemTo
- type RemoveLiquidityResponse
- type RemoveLiquidityService
- func (s *RemoveLiquidityService) AddAesst(asset string) *RemoveLiquidityService
- func (s *RemoveLiquidityService) Do(ctx context.Context) (*RemoveLiquidityResponse, error)
- func (s *RemoveLiquidityService) OperationType(operationType LiquidityOperationType) *RemoveLiquidityService
- func (s *RemoveLiquidityService) PoolId(poolId int64) *RemoveLiquidityService
- func (s *RemoveLiquidityService) ShareAmount(amt float64) *RemoveLiquidityService
- type RequestOption
- type RewardClaimStatus
- type SavingFixedProjectPosition
- type SavingFixedProjectPositionsService
- func (s *SavingFixedProjectPositionsService) Asset(asset string) *SavingFixedProjectPositionsService
- func (s *SavingFixedProjectPositionsService) Do(ctx context.Context, opts ...RequestOption) ([]*SavingFixedProjectPosition, error)
- func (s *SavingFixedProjectPositionsService) ProjectID(projectId string) *SavingFixedProjectPositionsService
- func (s *SavingFixedProjectPositionsService) Status(status string) *SavingFixedProjectPositionsService
- type SavingFlexibleProductPosition
- type SavingFlexibleProductPositionsService
- type SavingsFixedProduct
- type SavingsFlexibleProduct
- type SelfTradePreventionMode
- type ServerTimeService
- type SessionWsResponse
- type SetServerTimeService
- type SideEffectType
- type SideType
- type SimpleEarnAccount
- type SimpleEarnFlexiblePersonalLeftQuotaResp
- type SimpleEarnFlexiblePosition
- type SimpleEarnFlexiblePositionResp
- type SimpleEarnFlexibleProduct
- type SimpleEarnFlexibleProductResp
- type SimpleEarnFlexibleService
- func (s *SimpleEarnFlexibleService) GetLeftQuote() *SimpleEarnGetFlexibleQuotaService
- func (s *SimpleEarnFlexibleService) GetPosition() *SimpleEarnGetFlexiblePositionService
- func (s *SimpleEarnFlexibleService) ListProduct() *SimpleEarnListFlexibleProductService
- func (s *SimpleEarnFlexibleService) PreviewSubscribe() *SimpleEarnFlexibleSubscriptionPreviewService
- func (s *SimpleEarnFlexibleService) Redeem() *SimpleEarnRedeemFlexibleProductService
- func (s *SimpleEarnFlexibleService) SetAutoSubscribe() *SimpleEarnSetAutoSubscribeFlexibleProductService
- func (s *SimpleEarnFlexibleService) Subscribe() *SimpleEarnSubscribeFlexibleProductService
- type SimpleEarnFlexibleSubscriptionPreviewResp
- type SimpleEarnFlexibleSubscriptionPreviewService
- func (s *SimpleEarnFlexibleSubscriptionPreviewService) Amount(amount string) *SimpleEarnFlexibleSubscriptionPreviewService
- func (s *SimpleEarnFlexibleSubscriptionPreviewService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnFlexibleSubscriptionPreviewResp, err error)
- func (s *SimpleEarnFlexibleSubscriptionPreviewService) ProductId(productId string) *SimpleEarnFlexibleSubscriptionPreviewService
- type SimpleEarnGetAccountService
- type SimpleEarnGetFlexiblePositionService
- func (s *SimpleEarnGetFlexiblePositionService) Asset(asset string) *SimpleEarnGetFlexiblePositionService
- func (s *SimpleEarnGetFlexiblePositionService) Current(current int) *SimpleEarnGetFlexiblePositionService
- func (s *SimpleEarnGetFlexiblePositionService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnFlexiblePositionResp, err error)
- func (s *SimpleEarnGetFlexiblePositionService) ProductId(productId string) *SimpleEarnGetFlexiblePositionService
- func (s *SimpleEarnGetFlexiblePositionService) Size(size int) *SimpleEarnGetFlexiblePositionService
- type SimpleEarnGetFlexibleQuotaService
- type SimpleEarnGetLockedPositionService
- func (s *SimpleEarnGetLockedPositionService) Asset(asset string) *SimpleEarnGetLockedPositionService
- func (s *SimpleEarnGetLockedPositionService) Current(current int64) *SimpleEarnGetLockedPositionService
- func (s *SimpleEarnGetLockedPositionService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnLockedPositionResp, err error)
- func (s *SimpleEarnGetLockedPositionService) PositionId(positionId int) *SimpleEarnGetLockedPositionService
- func (s *SimpleEarnGetLockedPositionService) ProjectId(projectId string) *SimpleEarnGetLockedPositionService
- func (s *SimpleEarnGetLockedPositionService) Size(size int64) *SimpleEarnGetLockedPositionService
- type SimpleEarnGetLockedQuotaService
- type SimpleEarnListFlexibleProductService
- func (s *SimpleEarnListFlexibleProductService) Asset(asset string) *SimpleEarnListFlexibleProductService
- func (s *SimpleEarnListFlexibleProductService) Current(current int) *SimpleEarnListFlexibleProductService
- func (s *SimpleEarnListFlexibleProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnFlexibleProductResp, err error)
- func (s *SimpleEarnListFlexibleProductService) Size(size int) *SimpleEarnListFlexibleProductService
- type SimpleEarnListLockedProductService
- func (s *SimpleEarnListLockedProductService) Asset(asset string) *SimpleEarnListLockedProductService
- func (s *SimpleEarnListLockedProductService) Current(current int) *SimpleEarnListLockedProductService
- func (s *SimpleEarnListLockedProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnLockedProductResp, err error)
- func (s *SimpleEarnListLockedProductService) Size(size int) *SimpleEarnListLockedProductService
- type SimpleEarnLockedPersonalLeftQuotaResp
- type SimpleEarnLockedPosition
- type SimpleEarnLockedPositionResp
- type SimpleEarnLockedProduct
- type SimpleEarnLockedProductResp
- type SimpleEarnLockedService
- func (s *SimpleEarnLockedService) GetLeftQuote() *SimpleEarnGetLockedQuotaService
- func (s *SimpleEarnLockedService) GetPosition() *SimpleEarnGetLockedPositionService
- func (s *SimpleEarnLockedService) ListProduct() *SimpleEarnListLockedProductService
- func (s *SimpleEarnLockedService) PreviewSubscribe() *SimpleEarnLockedSubscriptionPreviewService
- func (s *SimpleEarnLockedService) Redeem() *SimpleEarnRedeemLockedProductService
- func (s *SimpleEarnLockedService) SetAutoSubscribe() *SimpleEarnSetAutoSubscribeLockedProductService
- func (s *SimpleEarnLockedService) SetRedeemOption() *SimpleEarnSetRedeemOptionService
- func (s *SimpleEarnLockedService) Subscribe() *SimpleEarnSubscribeLockedProductService
- type SimpleEarnLockedSubscriptionPreviewResp
- type SimpleEarnLockedSubscriptionPreviewService
- func (s *SimpleEarnLockedSubscriptionPreviewService) Amount(amount string) *SimpleEarnLockedSubscriptionPreviewService
- func (s *SimpleEarnLockedSubscriptionPreviewService) AutoSubscribe(autoSubscribe bool) *SimpleEarnLockedSubscriptionPreviewService
- func (s *SimpleEarnLockedSubscriptionPreviewService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnLockedSubscriptionPreviewResp, err error)
- func (s *SimpleEarnLockedSubscriptionPreviewService) ProjectId(projectId string) *SimpleEarnLockedSubscriptionPreviewService
- type SimpleEarnRedeemFlexibleProductResp
- type SimpleEarnRedeemFlexibleProductService
- func (s *SimpleEarnRedeemFlexibleProductService) Amount(amount string) *SimpleEarnRedeemFlexibleProductService
- func (s *SimpleEarnRedeemFlexibleProductService) DestAccount(destAccount string) *SimpleEarnRedeemFlexibleProductService
- func (s *SimpleEarnRedeemFlexibleProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnRedeemFlexibleProductResp, err error)
- func (s *SimpleEarnRedeemFlexibleProductService) ProductId(productId string) *SimpleEarnRedeemFlexibleProductService
- func (s *SimpleEarnRedeemFlexibleProductService) RedeemAll(redeemAll bool) *SimpleEarnRedeemFlexibleProductService
- type SimpleEarnRedeemLockedProductResp
- type SimpleEarnRedeemLockedProductService
- type SimpleEarnService
- type SimpleEarnSetAutoSubscribeFlexibleProductResp
- type SimpleEarnSetAutoSubscribeFlexibleProductService
- func (s *SimpleEarnSetAutoSubscribeFlexibleProductService) AutoSubscribe(autoSubscribe bool) *SimpleEarnSetAutoSubscribeFlexibleProductService
- func (s *SimpleEarnSetAutoSubscribeFlexibleProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnSetAutoSubscribeFlexibleProductResp, err error)
- func (s *SimpleEarnSetAutoSubscribeFlexibleProductService) ProductId(productId string) *SimpleEarnSetAutoSubscribeFlexibleProductService
- type SimpleEarnSetAutoSubscribeLockedProductResp
- type SimpleEarnSetAutoSubscribeLockedProductService
- func (s *SimpleEarnSetAutoSubscribeLockedProductService) AutoSubscribe(autoSubscribe bool) *SimpleEarnSetAutoSubscribeLockedProductService
- func (s *SimpleEarnSetAutoSubscribeLockedProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnSetAutoSubscribeLockedProductResp, err error)
- func (s *SimpleEarnSetAutoSubscribeLockedProductService) PositionId(positionId int) *SimpleEarnSetAutoSubscribeLockedProductService
- type SimpleEarnSetRedeemOptionResp
- type SimpleEarnSetRedeemOptionService
- func (s *SimpleEarnSetRedeemOptionService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnSetRedeemOptionResp, err error)
- func (s *SimpleEarnSetRedeemOptionService) PositionId(positionId string) *SimpleEarnSetRedeemOptionService
- func (s *SimpleEarnSetRedeemOptionService) RedeemTo(redeemTo RedeemTo) *SimpleEarnSetRedeemOptionService
- type SimpleEarnSubscribeFlexibleProductResp
- type SimpleEarnSubscribeFlexibleProductService
- func (s *SimpleEarnSubscribeFlexibleProductService) Amount(amount string) *SimpleEarnSubscribeFlexibleProductService
- func (s *SimpleEarnSubscribeFlexibleProductService) AutoSubscribe(autoSubscribe bool) *SimpleEarnSubscribeFlexibleProductService
- func (s *SimpleEarnSubscribeFlexibleProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnSubscribeFlexibleProductResp, err error)
- func (s *SimpleEarnSubscribeFlexibleProductService) ProductId(productId string) *SimpleEarnSubscribeFlexibleProductService
- func (s *SimpleEarnSubscribeFlexibleProductService) SourceAccount(sourceAccount SimpleEarnSubscribeSourceAccount) *SimpleEarnSubscribeFlexibleProductService
- type SimpleEarnSubscribeLockedProductResp
- type SimpleEarnSubscribeLockedProductService
- func (s *SimpleEarnSubscribeLockedProductService) Amount(amount string) *SimpleEarnSubscribeLockedProductService
- func (s *SimpleEarnSubscribeLockedProductService) AutoSubscribe(autoSubscribe bool) *SimpleEarnSubscribeLockedProductService
- func (s *SimpleEarnSubscribeLockedProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnSubscribeLockedProductResp, err error)
- func (s *SimpleEarnSubscribeLockedProductService) ProjectId(projectId string) *SimpleEarnSubscribeLockedProductService
- func (s *SimpleEarnSubscribeLockedProductService) RedeemTo(redeemTo string) *SimpleEarnSubscribeLockedProductService
- func (s *SimpleEarnSubscribeLockedProductService) SourceAccount(sourceAccount SimpleEarnSubscribeSourceAccount) *SimpleEarnSubscribeLockedProductService
- type SimpleEarnSubscribeSourceAccount
- type SnapShotSpotBalance
- type Snapshot
- type SnapshotAssets
- type SnapshotBalances
- type SnapshotData
- type SnapshotPositions
- type SnapshotUserAssets
- type SnapshotVo
- type SnapshotVoData
- type SnapshotVos
- type SpotRebateHistory
- type SpotRebateHistoryData
- type SpotRebateHistoryDataItem
- type SpotRebateHistoryService
- func (s *SpotRebateHistoryService) Do(ctx context.Context, opts ...RequestOption) (*SpotRebateHistory, error)
- func (s *SpotRebateHistoryService) EndTime(endTime int64) *SpotRebateHistoryService
- func (s *SpotRebateHistoryService) Page(page int32) *SpotRebateHistoryService
- func (s *SpotRebateHistoryService) StartTime(startTime int64) *SpotRebateHistoryService
- type SpotSubUserAssetBtcVoList
- type StakingHistory
- type StakingHistoryService
- func (s *StakingHistoryService) Asset(asset string) *StakingHistoryService
- func (s *StakingHistoryService) Current(current int32) *StakingHistoryService
- func (s *StakingHistoryService) Do(ctx context.Context) (*StakingHistory, error)
- func (s *StakingHistoryService) EndTime(endTime int64) *StakingHistoryService
- func (s *StakingHistoryService) Product(product StakingProduct) *StakingHistoryService
- func (s *StakingHistoryService) Size(size int32) *StakingHistoryService
- func (s *StakingHistoryService) StartTime(startTime int64) *StakingHistoryService
- func (s *StakingHistoryService) TransactionType(transactionType StakingTransactionType) *StakingHistoryService
- type StakingHistoryTransaction
- type StakingProduct
- type StakingProductPosition
- type StakingProductPositionService
- func (s *StakingProductPositionService) Asset(asset string) *StakingProductPositionService
- func (s *StakingProductPositionService) Current(current int32) *StakingProductPositionService
- func (s *StakingProductPositionService) Do(ctx context.Context) (*StakingProductPositions, error)
- func (s *StakingProductPositionService) Product(product StakingProduct) *StakingProductPositionService
- func (s *StakingProductPositionService) ProductId(productId string) *StakingProductPositionService
- func (s *StakingProductPositionService) Size(size int32) *StakingProductPositionService
- type StakingProductPositions
- type StakingTransactionType
- type StartIsolatedMarginUserStreamService
- type StartMarginUserStreamService
- type StartUserStreamService
- type SubAccUniversalTransferHistoryService
- func (s *SubAccUniversalTransferHistoryService) ClientTranId(clientTranId string) *SubAccUniversalTransferHistoryService
- func (s *SubAccUniversalTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountUniversalTransferHistoryServiceResponse, err error)
- func (s *SubAccUniversalTransferHistoryService) EndTime(endTime int64) *SubAccUniversalTransferHistoryService
- func (s *SubAccUniversalTransferHistoryService) FromEmail(fromEmail string) *SubAccUniversalTransferHistoryService
- func (s *SubAccUniversalTransferHistoryService) Limit(limit int32) *SubAccUniversalTransferHistoryService
- func (s *SubAccUniversalTransferHistoryService) Page(page int32) *SubAccUniversalTransferHistoryService
- func (s *SubAccUniversalTransferHistoryService) RecvWindow(recvWindow int64) *SubAccUniversalTransferHistoryService
- func (s *SubAccUniversalTransferHistoryService) StartTime(startTime int64) *SubAccUniversalTransferHistoryService
- func (s *SubAccUniversalTransferHistoryService) ToEmail(toEmail string) *SubAccUniversalTransferHistoryService
- type SubAccount
- type SubAccountApiAddIpRestrictServiceResponse
- type SubAccountApiAddIpRestrictionService
- func (s *SubAccountApiAddIpRestrictionService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountApiAddIpRestrictServiceResponse, err error)
- func (s *SubAccountApiAddIpRestrictionService) Email(email string) *SubAccountApiAddIpRestrictionService
- func (s *SubAccountApiAddIpRestrictionService) IpAddress(ipAddress string) *SubAccountApiAddIpRestrictionService
- func (s *SubAccountApiAddIpRestrictionService) RecvWindow(recvWindow int64) *SubAccountApiAddIpRestrictionService
- func (s *SubAccountApiAddIpRestrictionService) Status(status string) *SubAccountApiAddIpRestrictionService
- func (s *SubAccountApiAddIpRestrictionService) SubAccountApiKey(subAccountApiKey string) *SubAccountApiAddIpRestrictionService
- type SubAccountApiDeleteIpRestrictServiceResponse
- type SubAccountApiDeleteIpRestrictionService
- func (s *SubAccountApiDeleteIpRestrictionService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountApiDeleteIpRestrictServiceResponse, err error)
- func (s *SubAccountApiDeleteIpRestrictionService) Email(email string) *SubAccountApiDeleteIpRestrictionService
- func (s *SubAccountApiDeleteIpRestrictionService) IpAddress(ipAddress string) *SubAccountApiDeleteIpRestrictionService
- func (s *SubAccountApiDeleteIpRestrictionService) RecvWindow(recvWindow int64) *SubAccountApiDeleteIpRestrictionService
- func (s *SubAccountApiDeleteIpRestrictionService) SubAccountApiKey(subAccountApiKey string) *SubAccountApiDeleteIpRestrictionService
- type SubAccountApiIpRestrictServiceResponse
- type SubAccountApiIpRestrictionService
- func (s *SubAccountApiIpRestrictionService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountApiIpRestrictServiceResponse, err error)
- func (s *SubAccountApiIpRestrictionService) Email(email string) *SubAccountApiIpRestrictionService
- func (s *SubAccountApiIpRestrictionService) RecvWindow(recvWindow int64) *SubAccountApiIpRestrictionService
- func (s *SubAccountApiIpRestrictionService) SubAccountApiKey(subAccountApiKey string) *SubAccountApiIpRestrictionService
- type SubAccountAssetBalance
- type SubAccountAssetService
- type SubAccountAssetServiceResponse
- type SubAccountBlvtEnableService
- func (s *SubAccountBlvtEnableService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountBlvtEnableServiceResponse, err error)
- func (s *SubAccountBlvtEnableService) Email(email string) *SubAccountBlvtEnableService
- func (s *SubAccountBlvtEnableService) EnableBlvt(enableBlvt bool) *SubAccountBlvtEnableService
- func (s *SubAccountBlvtEnableService) RecvWindow(recvWindow int64) *SubAccountBlvtEnableService
- type SubAccountBlvtEnableServiceResponse
- type SubAccountDeliveryAccountSummary
- type SubAccountDeliveryAccountV2
- type SubAccountDeliveryPosition
- type SubAccountDepositRecord
- type SubAccountDepositRecordService
- func (s *SubAccountDepositRecordService) Coin(coin string) *SubAccountDepositRecordService
- func (s *SubAccountDepositRecordService) Do(ctx context.Context, opts ...RequestOption) (res []*SubAccountDepositRecord, err error)
- func (s *SubAccountDepositRecordService) Email(email string) *SubAccountDepositRecordService
- func (s *SubAccountDepositRecordService) EndTime(endTime int64) *SubAccountDepositRecordService
- func (s *SubAccountDepositRecordService) Limit(limit int) *SubAccountDepositRecordService
- func (s *SubAccountDepositRecordService) Offset(offset int) *SubAccountDepositRecordService
- func (s *SubAccountDepositRecordService) RecvWindow(recvWindow int64) *SubAccountDepositRecordService
- func (s *SubAccountDepositRecordService) StartTime(startTime int64) *SubAccountDepositRecordService
- func (s *SubAccountDepositRecordService) Status(status int32) *SubAccountDepositRecordService
- func (s *SubAccountDepositRecordService) TxId(txId string) *SubAccountDepositRecordService
- type SubAccountFuturesAccount
- type SubAccountFuturesAccountAsset
- type SubAccountFuturesAccountService
- type SubAccountFuturesAccountSummary
- type SubAccountFuturesAccountSummaryService
- func (s *SubAccountFuturesAccountSummaryService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesAccountSummaryServiceResponse, err error)
- func (s *SubAccountFuturesAccountSummaryService) FuturesType(futuresType int32) *SubAccountFuturesAccountSummaryService
- func (s *SubAccountFuturesAccountSummaryService) Limit(limit int32) *SubAccountFuturesAccountSummaryService
- func (s *SubAccountFuturesAccountSummaryService) Page(page int32) *SubAccountFuturesAccountSummaryService
- func (s *SubAccountFuturesAccountSummaryService) RecvWindow(recvWindow int64) *SubAccountFuturesAccountSummaryService
- type SubAccountFuturesAccountSummaryServiceResponse
- type SubAccountFuturesAccountV2
- type SubAccountFuturesAccountV2Service
- func (s *SubAccountFuturesAccountV2Service) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesAccountV2ServiceResponse, err error)
- func (s *SubAccountFuturesAccountV2Service) Email(email string) *SubAccountFuturesAccountV2Service
- func (s *SubAccountFuturesAccountV2Service) FuturesType(futuresType int32) *SubAccountFuturesAccountV2Service
- func (s *SubAccountFuturesAccountV2Service) RecvWindow(recvWindow int64) *SubAccountFuturesAccountV2Service
- type SubAccountFuturesAccountV2ServiceResponse
- type SubAccountFuturesEnableResponse
- type SubAccountFuturesEnableService
- func (s *SubAccountFuturesEnableService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesEnableResponse, err error)
- func (s *SubAccountFuturesEnableService) Email(email string) *SubAccountFuturesEnableService
- func (s *SubAccountFuturesEnableService) RecvWindow(recvWindow int64) *SubAccountFuturesEnableService
- type SubAccountFuturesInternalTransferResponse
- type SubAccountFuturesInternalTransferService
- func (s *SubAccountFuturesInternalTransferService) Amount(amount string) *SubAccountFuturesInternalTransferService
- func (s *SubAccountFuturesInternalTransferService) Asset(asset string) *SubAccountFuturesInternalTransferService
- func (s *SubAccountFuturesInternalTransferService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesInternalTransferResponse, err error)
- func (s *SubAccountFuturesInternalTransferService) FromEmail(fromEmail string) *SubAccountFuturesInternalTransferService
- func (s *SubAccountFuturesInternalTransferService) FuturesType(futuresType int64) *SubAccountFuturesInternalTransferService
- func (s *SubAccountFuturesInternalTransferService) RecvWindow(recvWindow int64) *SubAccountFuturesInternalTransferService
- func (s *SubAccountFuturesInternalTransferService) ToEmail(toEmail string) *SubAccountFuturesInternalTransferService
- type SubAccountFuturesPosition
- type SubAccountFuturesPositionsService
- func (s *SubAccountFuturesPositionsService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesPositionsServiceResponse, err error)
- func (s *SubAccountFuturesPositionsService) Email(email string) *SubAccountFuturesPositionsService
- func (s *SubAccountFuturesPositionsService) FuturesType(futuresType int32) *SubAccountFuturesPositionsService
- func (s *SubAccountFuturesPositionsService) RecvWindow(recvWindow int64) *SubAccountFuturesPositionsService
- type SubAccountFuturesPositionsServiceResponse
- type SubAccountFuturesSummaryCommon
- type SubAccountFuturesSummaryV1
- type SubAccountFuturesSummaryV1Service
- type SubAccountFuturesSummaryV1SubAccountList
- type SubAccountFuturesTransfer
- type SubAccountFuturesTransferHistoryResponse
- type SubAccountFuturesTransferHistoryService
- func (s *SubAccountFuturesTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesTransferHistoryResponse, err error)
- func (s *SubAccountFuturesTransferHistoryService) Email(email string) *SubAccountFuturesTransferHistoryService
- func (s *SubAccountFuturesTransferHistoryService) EndTime(endTime int64) *SubAccountFuturesTransferHistoryService
- func (s *SubAccountFuturesTransferHistoryService) FuturesType(futuresType int64) *SubAccountFuturesTransferHistoryService
- func (s *SubAccountFuturesTransferHistoryService) Limit(limit int32) *SubAccountFuturesTransferHistoryService
- func (s *SubAccountFuturesTransferHistoryService) Page(page int32) *SubAccountFuturesTransferHistoryService
- func (s *SubAccountFuturesTransferHistoryService) RecvWindow(recvWindow int64) *SubAccountFuturesTransferHistoryService
- func (s *SubAccountFuturesTransferHistoryService) StartTime(startTime int64) *SubAccountFuturesTransferHistoryService
- type SubAccountFuturesTransferResponse
- type SubAccountFuturesTransferV1Service
- func (s *SubAccountFuturesTransferV1Service) Amount(v float64) *SubAccountFuturesTransferV1Service
- func (s *SubAccountFuturesTransferV1Service) Asset(v string) *SubAccountFuturesTransferV1Service
- func (s *SubAccountFuturesTransferV1Service) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesTransferResponse, err error)
- func (s *SubAccountFuturesTransferV1Service) Email(v string) *SubAccountFuturesTransferV1Service
- func (s *SubAccountFuturesTransferV1Service) TransferType(v int) *SubAccountFuturesTransferV1Service
- type SubAccountList
- type SubAccountListService
- func (s *SubAccountListService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountList, err error)
- func (s *SubAccountListService) Email(v string) *SubAccountListService
- func (s *SubAccountListService) IsFreeze(v bool) *SubAccountListService
- func (s *SubAccountListService) Limit(v int) *SubAccountListService
- func (s *SubAccountListService) Page(v int) *SubAccountListService
- type SubAccountMarginAccountInfo
- type SubAccountMarginAccountInfoService
- func (s *SubAccountMarginAccountInfoService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountMarginAccountInfo, err error)
- func (s *SubAccountMarginAccountInfoService) Email(email string) *SubAccountMarginAccountInfoService
- func (s *SubAccountMarginAccountInfoService) RecvWindow(recvWindow int64) *SubAccountMarginAccountInfoService
- type SubAccountMarginAccountSummary
- type SubAccountMarginAccountSummaryService
- type SubAccountMarginEnableResponse
- type SubAccountMarginEnableService
- func (s *SubAccountMarginEnableService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountMarginEnableResponse, err error)
- func (s *SubAccountMarginEnableService) Email(email string) *SubAccountMarginEnableService
- func (s *SubAccountMarginEnableService) RecvWindow(recvWindow int64) *SubAccountMarginEnableService
- type SubAccountMarginFuturesStatus
- type SubAccountMarginFuturesStatusService
- func (s *SubAccountMarginFuturesStatusService) Do(ctx context.Context, opts ...RequestOption) (res []*SubAccountMarginFuturesStatus, err error)
- func (s *SubAccountMarginFuturesStatusService) Email(email string) *SubAccountMarginFuturesStatusService
- func (s *SubAccountMarginFuturesStatusService) RecvWindow(recvWindow int64) *SubAccountMarginFuturesStatusService
- type SubAccountMarginTransferResponse
- type SubAccountMarginTransferService
- func (s *SubAccountMarginTransferService) Amount(amount string) *SubAccountMarginTransferService
- func (s *SubAccountMarginTransferService) Asset(asset string) *SubAccountMarginTransferService
- func (s *SubAccountMarginTransferService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountMarginTransferResponse, err error)
- func (s *SubAccountMarginTransferService) Email(email string) *SubAccountMarginTransferService
- func (s *SubAccountMarginTransferService) RecvWindow(recvWindow int64) *SubAccountMarginTransferService
- func (s *SubAccountMarginTransferService) TransferType(transferType int32) *SubAccountMarginTransferService
- type SubAccountOptionsEnableService
- func (s *SubAccountOptionsEnableService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountOptionsEnableServiceResponse, err error)
- func (s *SubAccountOptionsEnableService) Email(email string) *SubAccountOptionsEnableService
- func (s *SubAccountOptionsEnableService) RecvWindow(recvWindow int64) *SubAccountOptionsEnableService
- type SubAccountOptionsEnableServiceResponse
- type SubAccountSpotTransfer
- type SubAccountSpotTransferHistoryService
- func (s *SubAccountSpotTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res []*SubAccountSpotTransfer, err error)
- func (s *SubAccountSpotTransferHistoryService) EndTime(endTime uint64) *SubAccountSpotTransferHistoryService
- func (s *SubAccountSpotTransferHistoryService) FromEmail(fromEmail string) *SubAccountSpotTransferHistoryService
- func (s *SubAccountSpotTransferHistoryService) Limit(limit int32) *SubAccountSpotTransferHistoryService
- func (s *SubAccountSpotTransferHistoryService) Page(page int32) *SubAccountSpotTransferHistoryService
- func (s *SubAccountSpotTransferHistoryService) RecvWindow(recvWindow int64) *SubAccountSpotTransferHistoryService
- func (s *SubAccountSpotTransferHistoryService) StartTime(startTime uint64) *SubAccountSpotTransferHistoryService
- func (s *SubAccountSpotTransferHistoryService) ToEmail(toEmail string) *SubAccountSpotTransferHistoryService
- type SubAccountTransactionStatisticServiceResponse
- type SubAccountTransactionStatisticsService
- func (s *SubAccountTransactionStatisticsService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountTransactionStatisticServiceResponse, err error)
- func (s *SubAccountTransactionStatisticsService) Email(email string) *SubAccountTransactionStatisticsService
- func (s *SubAccountTransactionStatisticsService) RecvWindow(recvWindow int64) *SubAccountTransactionStatisticsService
- type SubAccountTransferHistory
- type SubAccountTransferHistoryService
- func (s *SubAccountTransferHistoryService) Asset(v string) *SubAccountTransferHistoryService
- func (s *SubAccountTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res []*SubAccountTransferHistory, err error)
- func (s *SubAccountTransferHistoryService) EndTime(v int64) *SubAccountTransferHistoryService
- func (s *SubAccountTransferHistoryService) Limit(v int) *SubAccountTransferHistoryService
- func (s *SubAccountTransferHistoryService) ReturnFailHistory(v bool) *SubAccountTransferHistoryService
- func (s *SubAccountTransferHistoryService) StartTime(v int64) *SubAccountTransferHistoryService
- func (s *SubAccountTransferHistoryService) TransferType(v SubAccountTransferType) *SubAccountTransferHistoryService
- type SubAccountTransferSubToMasterResponse
- type SubAccountTransferSubToMasterService
- func (s *SubAccountTransferSubToMasterService) Amount(amount string) *SubAccountTransferSubToMasterService
- func (s *SubAccountTransferSubToMasterService) Asset(asset string) *SubAccountTransferSubToMasterService
- func (s *SubAccountTransferSubToMasterService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountTransferSubToMasterResponse, err error)
- func (s *SubAccountTransferSubToMasterService) RecvWindow(recvWindow int64) *SubAccountTransferSubToMasterService
- type SubAccountTransferType
- type SubAccountUniversalTransferHistoryServiceResponse
- type SubAccountUniversalTransferRecord
- type SubAccountUniversalTransferResponse
- type SubAccountUniversalTransferService
- func (s *SubAccountUniversalTransferService) Amount(amount string) *SubAccountUniversalTransferService
- func (s *SubAccountUniversalTransferService) Asset(asset string) *SubAccountUniversalTransferService
- func (s *SubAccountUniversalTransferService) ClientTranId(clientTranId string) *SubAccountUniversalTransferService
- func (s *SubAccountUniversalTransferService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountUniversalTransferResponse, err error)
- func (s *SubAccountUniversalTransferService) FromAccountType(fromAccountType string) *SubAccountUniversalTransferService
- func (s *SubAccountUniversalTransferService) FromEmail(fromEmail string) *SubAccountUniversalTransferService
- func (s *SubAccountUniversalTransferService) RecvWindow(recvWindow int64) *SubAccountUniversalTransferService
- func (s *SubAccountUniversalTransferService) Symbol(symbol string) *SubAccountUniversalTransferService
- func (s *SubAccountUniversalTransferService) ToAccountType(toAccountType string) *SubAccountUniversalTransferService
- func (s *SubAccountUniversalTransferService) ToEmail(toEmail string) *SubAccountUniversalTransferService
- type SubTransfer
- type SubTransferHistoryService
- func (s *SubTransferHistoryService) Asset(v string) *SubTransferHistoryService
- func (s *SubTransferHistoryService) Do(ctx context.Context) (res []*SubTransfer, err error)
- func (s *SubTransferHistoryService) EndTime(v int64) *SubTransferHistoryService
- func (s *SubTransferHistoryService) Limit(v int) *SubTransferHistoryService
- func (s *SubTransferHistoryService) StartTime(v int64) *SubTransferHistoryService
- func (s *SubTransferHistoryService) TransferType(v int) *SubTransferHistoryService
- type SubaccountAssetsResponse
- type SubaccountAssetsService
- type SubaccountDepositAddressResponse
- type SubaccountDepositAddressService
- func (s *SubaccountDepositAddressService) Coin(coin string) *SubaccountDepositAddressService
- func (s *SubaccountDepositAddressService) Do(ctx context.Context, opts ...RequestOption) (res *SubaccountDepositAddressResponse, err error)
- func (s *SubaccountDepositAddressService) Email(email string) *SubaccountDepositAddressService
- func (s *SubaccountDepositAddressService) Network(network string) *SubaccountDepositAddressService
- type SubaccountSpotSummaryResponse
- type SubaccountSpotSummaryService
- func (s *SubaccountSpotSummaryService) Do(ctx context.Context, opts ...RequestOption) (res *SubaccountSpotSummaryResponse, err error)
- func (s *SubaccountSpotSummaryService) Email(email string) *SubaccountSpotSummaryService
- func (s *SubaccountSpotSummaryService) Page(page int32) *SubaccountSpotSummaryService
- func (s *SubaccountSpotSummaryService) Size(size int32) *SubaccountSpotSummaryService
- type SwapRecord
- type SwapResponse
- type SwapService
- type SwappingStatus
- type Symbol
- func (s *Symbol) IcebergPartsFilter() *IcebergPartsFilter
- func (s *Symbol) LotSizeFilter() *LotSizeFilter
- func (s *Symbol) MarketLotSizeFilter() *MarketLotSizeFilter
- func (s *Symbol) MaxNumAlgoOrdersFilter() *MaxNumAlgoOrdersFilter
- func (s *Symbol) MaxNumOrdersFilter() *MaxNumOrdersFilter
- func (s *Symbol) NotionalFilter() *NotionalFilter
- func (s *Symbol) PercentPriceBySideFilter() *PercentPriceBySideFilter
- func (s *Symbol) PriceFilter() *PriceFilter
- func (s *Symbol) TrailingDeltaFilter() *TrailingDeltaFilter
- type SymbolFilterType
- type SymbolPrice
- type SymbolStatusType
- type SymbolTicker
- type SymbolType
- type TimeInForceType
- type ToggleBNBBurnService
- type Trade
- type TradeFeeDetails
- type TradeFeeService
- type TradeInfoVo
- type TradeV3
- type TradingDayTicker
- type TradingDayTickerService
- func (s *TradingDayTickerService) Do(ctx context.Context, opts ...RequestOption) (res []*TradingDayTicker, err error)
- func (s *TradingDayTickerService) Symbol(symbol string) *TradingDayTickerService
- func (s *TradingDayTickerService) Symbols(symbols []string) *TradingDayTickerService
- func (s *TradingDayTickerService) TickerType(tickerType string) *TradingDayTickerService
- func (s *TradingDayTickerService) TimeZone(timeZone string) *TradingDayTickerService
- type TrailingDeltaFilter
- type TransactionResponse
- type TransactionType
- type TransferToSubAccountResponse
- type TransferToSubAccountService
- func (s *TransferToSubAccountService) Amount(amount string) *TransferToSubAccountService
- func (s *TransferToSubAccountService) Asset(asset string) *TransferToSubAccountService
- func (s *TransferToSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *TransferToSubAccountResponse, err error)
- func (s *TransferToSubAccountService) ToEmail(toEmail string) *TransferToSubAccountService
- type UiKline
- type UiKlinesService
- func (s *UiKlinesService) Do(ctx context.Context, opts ...RequestOption) (res []*UiKline, err error)
- func (s *UiKlinesService) EndTime(endTime uint64) *UiKlinesService
- func (s *UiKlinesService) Interval(interval string) *UiKlinesService
- func (s *UiKlinesService) Limit(limit uint32) *UiKlinesService
- func (s *UiKlinesService) StartTime(startTime uint64) *UiKlinesService
- func (s *UiKlinesService) Symbol(symbol string) *UiKlinesService
- func (s *UiKlinesService) TimeZone(timeZone string) *UiKlinesService
- type UpdateMarginSpecialKeyService
- func (s *UpdateMarginSpecialKeyService) APIName(apiName string) *UpdateMarginSpecialKeyService
- func (s *UpdateMarginSpecialKeyService) Do(ctx context.Context, opts ...RequestOption) (err error)
- func (s *UpdateMarginSpecialKeyService) IP(ips string) *UpdateMarginSpecialKeyService
- func (s *UpdateMarginSpecialKeyService) RecvWindow(recvWindow int64) *UpdateMarginSpecialKeyService
- func (s *UpdateMarginSpecialKeyService) Symbol(symbol string) *UpdateMarginSpecialKeyService
- type UserAsset
- type UserAssetDribblet
- type UserAssetDribbletDetail
- type UserAssetRecord
- type UserDataEventType
- type UserMarginStreamSubscriptionResponse
- type UserStreamSubscriptionResponse
- type UserUniversalTransfer
- type UserUniversalTransferResponse
- type UserUniversalTransferStatusType
- type UserUniversalTransferType
- type VIPLoanAsset
- type VipLoanService
- type VipLoanableAssets
- type WSGenericClientSession
- func (s *WSGenericClientSession) Run()
- func (s *WSGenericClientSession) SendRequestAsync(method string, params map[string]interface{}) (*Future, error)
- func (s *WSGenericClientSession) SendRequestAsyncWithAccount(apiKey, apiSecret, keyType, method string, params map[string]interface{}) (*Future, error)
- type WalletBalance
- type WalletBalanceService
- type Withdraw
- type WsAccountUpdate
- type WsAccountUpdateList
- type WsAggTradeEvent
- type WsAggTradeHandler
- type WsAllMarketsStatEvent
- type WsAllMarketsStatHandler
- type WsAllMiniMarketsStatEvent
- type WsAllMiniMarketsStatServeHandler
- type WsApiService
- type WsBalanceUpdate
- type WsBookTickerEvent
- type WsBookTickerHandler
- type WsCombinedBookTickerEvent
- type WsCombinedTradeEvent
- type WsCombinedTradeHandler
- type WsConfig
- type WsDepthEvent
- type WsDepthHandler
- type WsHandler
- type WsKline
- type WsKlineEvent
- type WsKlineHandler
- type WsMarketStatEvent
- type WsMarketStatHandler
- type WsMiniMarketsStatEvent
- type WsOCOOrder
- type WsOCOOrderList
- type WsOCOUpdate
- type WsOrderUpdate
- type WsPartialDepthEvent
- type WsPartialDepthHandler
- type WsTradeEvent
- type WsTradeHandler
- type WsUserDataEvent
- type WsUserDataHandler
Constants ¶
const ( SideTypeBuy SideType = "BUY" SideTypeSell SideType = "SELL" OrderTypeLimit OrderType = "LIMIT" OrderTypeMarket OrderType = "MARKET" OrderTypeLimitMaker OrderType = "LIMIT_MAKER" OrderTypeStopLoss OrderType = "STOP_LOSS" OrderTypeStopLossLimit OrderType = "STOP_LOSS_LIMIT" OrderTypeTakeProfit OrderType = "TAKE_PROFIT" OrderTypeTakeProfitLimit OrderType = "TAKE_PROFIT_LIMIT" TimeInForceTypeGTC TimeInForceType = "GTC" TimeInForceTypeIOC TimeInForceType = "IOC" TimeInForceTypeFOK TimeInForceType = "FOK" NewOrderRespTypeACK NewOrderRespType = "ACK" NewOrderRespTypeRESULT NewOrderRespType = "RESULT" NewOrderRespTypeFULL NewOrderRespType = "FULL" OrderStatusTypeNew OrderStatusType = "NEW" OrderStatusTypePartiallyFilled OrderStatusType = "PARTIALLY_FILLED" OrderStatusTypeFilled OrderStatusType = "FILLED" OrderStatusTypeCanceled OrderStatusType = "CANCELED" OrderStatusTypePendingCancel OrderStatusType = "PENDING_CANCEL" OrderStatusTypeRejected OrderStatusType = "REJECTED" OrderStatusTypeExpired OrderStatusType = "EXPIRED" OrderStatusExpiredInMatch OrderStatusType = "EXPIRED_IN_MATCH" // STP Expired SymbolTypeSpot SymbolType = "SPOT" SymbolStatusTypePreTrading SymbolStatusType = "PRE_TRADING" SymbolStatusTypeTrading SymbolStatusType = "TRADING" SymbolStatusTypePostTrading SymbolStatusType = "POST_TRADING" SymbolStatusTypeEndOfDay SymbolStatusType = "END_OF_DAY" SymbolStatusTypeHalt SymbolStatusType = "HALT" SymbolStatusTypeAuctionMatch SymbolStatusType = "AUCTION_MATCH" SymbolStatusTypeBreak SymbolStatusType = "BREAK" SymbolFilterTypeLotSize SymbolFilterType = "LOT_SIZE" SymbolFilterTypePriceFilter SymbolFilterType = "PRICE_FILTER" SymbolFilterTypePercentPriceBySide SymbolFilterType = "PERCENT_PRICE_BY_SIDE" SymbolFilterTypeMinNotional SymbolFilterType = "MIN_NOTIONAL" SymbolFilterTypeNotional SymbolFilterType = "NOTIONAL" SymbolFilterTypeIcebergParts SymbolFilterType = "ICEBERG_PARTS" SymbolFilterTypeMarketLotSize SymbolFilterType = "MARKET_LOT_SIZE" SymbolFilterTypeMaxNumOrders SymbolFilterType = "MAX_NUM_ORDERS" SymbolFilterTypeMaxNumAlgoOrders SymbolFilterType = "MAX_NUM_ALGO_ORDERS" SymbolFilterTypeTrailingDelta SymbolFilterType = "TRAILING_DELTA" UserDataEventTypeOutboundAccountPosition UserDataEventType = "outboundAccountPosition" UserDataEventTypeBalanceUpdate UserDataEventType = "balanceUpdate" UserDataEventTypeExecutionReport UserDataEventType = "executionReport" UserDataEventTypeListStatus UserDataEventType = "ListStatus" EventStreamTerminated = "eventStreamTerminated" MarginTransferTypeToMargin MarginTransferType = 1 MarginTransferTypeToMain MarginTransferType = 2 FuturesTransferTypeToFutures FuturesTransferType = 1 FuturesTransferTypeToMain FuturesTransferType = 2 FuturesTransferTypeToFuturesCM FuturesTransferType = 3 FuturesTransferTypeFuturesCMToMain FuturesTransferType = 4 MarginLoanStatusTypePending MarginLoanStatusType = "PENDING" MarginLoanStatusTypeConfirmed MarginLoanStatusType = "CONFIRMED" MarginLoanStatusTypeFailed MarginLoanStatusType = "FAILED" MarginRepayStatusTypePending MarginRepayStatusType = "PENDING" MarginRepayStatusTypeConfirmed MarginRepayStatusType = "CONFIRMED" MarginRepayStatusTypeFailed MarginRepayStatusType = "FAILED" FuturesTransferStatusTypePending FuturesTransferStatusType = "PENDING" FuturesTransferStatusTypeConfirmed FuturesTransferStatusType = "CONFIRMED" FuturesTransferStatusTypeFailed FuturesTransferStatusType = "FAILED" SideEffectTypeNoSideEffect SideEffectType = "NO_SIDE_EFFECT" SideEffectTypeMarginBuy SideEffectType = "MARGIN_BUY" SideEffectTypeAutoRepay SideEffectType = "AUTO_REPAY" SideEffectTypeAutoBorrowRepay SideEffectType = "AUTO_BORROW_REPAY" TransactionTypeDeposit TransactionType = "0" TransactionTypeWithdraw TransactionType = "1" TransactionTypeBuy TransactionType = "0" TransactionTypeSell TransactionType = "1" LendingTypeFlexible LendingType = "DAILY" LendingTypeFixed LendingType = "CUSTOMIZED_FIXED" LendingTypeActivity LendingType = "ACTIVITY" LiquidityOperationTypeCombination LiquidityOperationType = "COMBINATION" LiquidityOperationTypeSingle LiquidityOperationType = "SINGLE" StakingProductLockedStaking = "STAKING" StakingProductFlexibleDeFiStaking = "F_DEFI" StakingProductLockedDeFiStaking = "L_DEFI" StakingTransactionTypeSubscription = "SUBSCRIPTION" StakingTransactionTypeRedemption = "REDEMPTION" StakingTransactionTypeInterest = "INTEREST" SwappingStatusPending SwappingStatus = 0 SwappingStatusDone SwappingStatus = 1 SwappingStatusFailed SwappingStatus = 2 RewardTypeTrading LiquidityRewardType = 0 RewardTypeLiquidity LiquidityRewardType = 1 RewardClaimPending RewardClaimStatus = 0 RewardClaimDone RewardClaimStatus = 1 RateLimitTypeRequestWeight RateLimitType = "REQUEST_WEIGHT" RateLimitTypeOrders RateLimitType = "ORDERS" RateLimitTypeRawRequests RateLimitType = "RAW_REQUESTS" RateLimitIntervalSecond RateLimitInterval = "SECOND" RateLimitIntervalMinute RateLimitInterval = "MINUTE" RateLimitIntervalDay RateLimitInterval = "DAY" AccountTypeSpot AccountType = "SPOT" AccountTypeMargin AccountType = "MARGIN" AccountTypeIsolatedMargin AccountType = "ISOLATED_MARGIN" AccountTypeUSDTFuture AccountType = "USDT_FUTURE" AccountTypeCoinFuture AccountType = "COIN_FUTURE" SubAccountTransferTypeTransferIn SubAccountTransferType = 1 SubAccountTransferTypeTransferOut SubAccountTransferType = 2 UserUniversalTransferTypeMainToUmFutures UserUniversalTransferType = "MAIN_UMFUTURE" UserUniversalTransferTypeMainToCmFutures UserUniversalTransferType = "MAIN_CMFUTURE" UserUniversalTransferTypeMainToMargin UserUniversalTransferType = "MAIN_MARGIN" UserUniversalTransferTypeUmFuturesToMain UserUniversalTransferType = "UMFUTURE_MAIN" UserUniversalTransferTypeUmFuturesToMargin UserUniversalTransferType = "UMFUTURE_MARGIN" UserUniversalTransferTypeCmFuturesToMain UserUniversalTransferType = "CMFUTURE_MAIN" UserUniversalTransferTypeMarginToMain UserUniversalTransferType = "MARGIN_MAIN" UserUniversalTransferTypeMarginToUmFutures UserUniversalTransferType = "MARGIN_UMFUTURE" UserUniversalTransferTypeMarginToCmFutures UserUniversalTransferType = "MARGIN_CMFUTURE" UserUniversalTransferTypeCmFuturesToMargin UserUniversalTransferType = "CMFUTURE_MARGIN" UserUniversalTransferTypeIsolatedMarginToMargin UserUniversalTransferType = "ISOLATEDMARGIN_MARGIN" UserUniversalTransferTypeMarginToIsolatedMargin UserUniversalTransferType = "MARGIN_ISOLATEDMARGIN" UserUniversalTransferTypeIsolatedMarginToIsolatedMargin UserUniversalTransferType = "ISOLATEDMARGIN_ISOLATEDMARGIN" UserUniversalTransferTypeMainToFunding UserUniversalTransferType = "MAIN_FUNDING" UserUniversalTransferTypeFundingToMain UserUniversalTransferType = "FUNDING_MAIN" UserUniversalTransferTypeFundingToUmFutures UserUniversalTransferType = "FUNDING_UMFUTURE" UserUniversalTransferTypeUmFuturesToFunding UserUniversalTransferType = "UMFUTURE_FUNDING" UserUniversalTransferTypeMarginToFunding UserUniversalTransferType = "MARGIN_FUNDING" UserUniversalTransferTypeFundingToMargin UserUniversalTransferType = "FUNDING_MARGIN" UserUniversalTransferTypeFundingToCmFutures UserUniversalTransferType = "FUNDING_CMFUTURE" UserUniversalTransferTypeCmFuturesToFunding UserUniversalTransferType = "CMFUTURE_FUNDING" UserUniversalTransferTypeMainToOption UserUniversalTransferType = "MAIN_OPTION" UserUniversalTransferTypeOptionToMain UserUniversalTransferType = "OPTION_MAIN" UserUniversalTransferTypeUmFuturesToOption UserUniversalTransferType = "UMFUTURE_OPTION" UserUniversalTransferTypeOptionToUmFutures UserUniversalTransferType = "OPTION_UMFUTURE" UserUniversalTransferTypeMarginToOption UserUniversalTransferType = "MARGIN_OPTION" UserUniversalTransferTypeOptionToMargin UserUniversalTransferType = "OPTION_MARGIN" UserUniversalTransferTypeFundingToOption UserUniversalTransferType = "FUNDING_OPTION" UserUniversalTransferTypeOptionToFunding UserUniversalTransferType = "OPTION_FUNDING" UserUniversalTransferTypeMainToPortfolioMargin UserUniversalTransferType = "MAIN_PORTFOLIO_MARGIN" UserUniversalTransferTypePortfolioMarginToMain UserUniversalTransferType = "PORTFOLIO_MARGIN_MAIN" UserUniversalTransferTypeMainToIsolatedMargin UserUniversalTransferType = "MAIN_ISOLATED_MARGIN" UserUniversalTransferTypeIsolatedMarginToMain UserUniversalTransferType = "ISOLATED_MARGIN_MAIN" UserUniversalTransferStatusTypePending UserUniversalTransferStatusType = "PENDING" UserUniversalTransferStatusTypeConfirmed UserUniversalTransferStatusType = "CONFIRMED" UserUniversalTransferStatusTypeFailed UserUniversalTransferStatusType = "FAILED" FuturesOrderBookHistoryDataTypeTDepth FuturesOrderBookHistoryDataType = "T_DEPTH" FuturesOrderBookHistoryDataTypeSDepth FuturesOrderBookHistoryDataType = "S_DEPTH" FuturesAlgoTypeVp FuturesAlgoType = "VP" FuturesAlgoTypeTwap FuturesAlgoType = "TWAP" FuturesAlgoUrgencyTypeLow FuturesAlgoUrgencyType = "LOW" FuturesAlgoUrgencyTypeMedium FuturesAlgoUrgencyType = "MEDIUM" FuturesAlgoUrgencyTypeHigh FuturesAlgoUrgencyType = "HIGH" FuturesAlgoOrderStatusTypeWorking FuturesAlgoOrderStatusType = "WORKING" FuturesAlgoOrderStatusTypeFinished FuturesAlgoOrderStatusType = "FINISHED" FuturesAlgoOrderStatusTypeCancelled FuturesAlgoOrderStatusType = "CANCELLED" SelfTradePreventionModeNone SelfTradePreventionMode = "NONE" SelfTradePreventionModeExpireTaker SelfTradePreventionMode = "EXPIRE_TAKER" SelfTradePreventionModeExpireBoth SelfTradePreventionMode = "EXPIRE_BOTH" SelfTradePreventionModeExpireMaker SelfTradePreventionMode = "EXPIRE_MAKER" MarginAccountBorrow MarginAccountBorrowRepayType = "BORROW" MarginAccountRepay MarginAccountBorrowRepayType = "REPAY" MarginAccountBorrowRepayStatusPending string = "PENDING" MarginAccountBorrowRepayStatusConfirmed string = "CONFIRMED" MarginAccountBorrowRepayStatusFailed string = "FAILED" )
Global enums
Variables ¶
var ( BaseAPIMainURL = "https://api.binance.com" BaseAPITestnetURL = "https://testnet.binance.vision" )
Endpoints
var ( ErrNoConnection = errors.New("no connection") ErrTimeout = errors.New("timeout") )
var ( ErrorLogonStatusNotOK = errors.New("error logon status") ErrorSubscribeUserDataStatusNotOK = errors.New("error subscribe user data status") )
var ( // Endpoints BaseWsMainURL = "wss://stream.binance.com:9443/ws" BaseWsTestnetURL = "wss://testnet.binance.vision/ws" BaseCombinedMainURL = "wss://stream.binance.com:9443/stream?streams=" BaseCombinedTestnetURL = "wss://testnet.binance.vision/stream?streams=" BaseWsApiMainURL = "wss://ws-api.binance.com:443/ws-api/v3" BaseWsApiTestnetURL = "wss://testnet.binance.vision/ws-api/v3" // WebsocketTimeout is an interval for sending ping/pong messages if WebsocketKeepalive is enabled WebsocketTimeout = time.Second * 60 KeepAlivePingDeadline = time.Second * 10 // WebsocketPongTimeout is an interval for sending a PONG frame in response to PING frame from server WebsocketPongTimeout = time.Second * 10 // WebsocketKeepalive enables sending ping/pong messages to check the connection stability WebsocketKeepalive = true // WebsocketTimeoutReadWriteConnection is an interval for sending ping/pong messages if WebsocketKeepalive is enabled // using for websocket API (read/write) WebsocketTimeoutReadWriteConnection = time.Second * 10 ProxyUrl = "" )
var UseTestnet = false
UseTestnet switch all the API endpoints from production to the testnet
var WsGetReadWriteConnection = func(cfg *WsConfig) (*websocket.Conn, error) { proxy := http.ProxyFromEnvironment if cfg.Proxy != nil { u, err := url.Parse(*cfg.Proxy) if err != nil { return nil, err } proxy = http.ProxyURL(u) } Dialer := websocket.Dialer{ Proxy: proxy, HandshakeTimeout: 45 * time.Second, EnableCompression: false, } c, _, err := Dialer.Dial(cfg.Endpoint, nil) if err != nil { return nil, err } return c, nil }
Functions ¶
func FormatTimestamp ¶
FormatTimestamp formats a time into Unix timestamp in milliseconds, as requested by Binance.
func GetRetryAfter ¶ added in v2.0.6
func NewDeliveryClient ¶
NewDeliveryClient initialize client for coin-M futures API
func NewFuturesClient ¶
NewFuturesClient initialize client for futures API
func NewOptionsClient ¶ added in v2.0.1
NewOptionsClient initialize client for options API
func SetWsProxyUrl ¶ added in v2.0.4
func SetWsProxyUrl(url string)
func WsAggTradeServe ¶
func WsAggTradeServe(symbol string, handler WsAggTradeHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsAggTradeServe serve websocket aggregate handler with a symbol
func WsAllBookTickerServe ¶
func WsAllBookTickerServe(handler WsBookTickerHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsAllBookTickerServe serve websocket that pushes updates to the best bid or ask price or quantity in real-time for all symbols.
func WsAllMarketsStatServe ¶
func WsAllMarketsStatServe(handler WsAllMarketsStatHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsAllMarketsStatServe serve websocket that push 24hr statistics for all market every second
func WsAllMiniMarketsStatServe ¶
func WsAllMiniMarketsStatServe(handler WsAllMiniMarketsStatServeHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsAllMiniMarketsStatServe serve websocket that push mini version of 24hr statistics for all market every second
func WsApiInitReadWriteConn ¶ added in v2.0.4
WsApiInitReadWriteConn create and serve connection
func WsApiMarginUserDataServe ¶ added in v2.0.8
func WsApiMarginUserDataServe(apiKey, secretKey string, createSubscription CreateSubscriptionToken, logger Logger, handler WsUserDataHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsApiMarginUserDataServe only accepts Ed25519 key type.
func WsApiUserDataServe ¶ added in v2.0.4
func WsApiUserDataServe(apiKey, secretKey string, handler WsUserDataHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsApiUserDataServe only accepts Ed25519 key type.
func WsBookTickerServe ¶
func WsBookTickerServe(symbol string, handler WsBookTickerHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsBookTickerServe serve websocket that pushes updates to the best bid or ask price or quantity in real-time for a specified symbol.
func WsCombinedAggTradeServe ¶
func WsCombinedAggTradeServe(symbols []string, handler WsAggTradeHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsCombinedAggTradeServe is similar to WsAggTradeServe, but it handles multiple symbolx
func WsCombinedBookTickerServe ¶
func WsCombinedBookTickerServe(symbols []string, handler WsBookTickerHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsCombinedBookTickerServe is similar to WsBookTickerServe, but it is for multiple symbols
func WsCombinedDepthServe ¶
func WsCombinedDepthServe(symbols []string, handler WsDepthHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsCombinedDepthServe is similar to WsDepthServe, but it for multiple symbols
func WsCombinedDepthServe100Ms ¶
func WsCombinedDepthServe100Ms(symbols []string, handler WsDepthHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
func WsCombinedKlineServe ¶
func WsCombinedKlineServe(symbolIntervalPair map[string]string, handler WsKlineHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsCombinedKlineServe is similar to WsKlineServe, but it handles multiple symbols with it interval
func WsCombinedMarketStatServe ¶
func WsCombinedMarketStatServe(symbols []string, handler WsMarketStatHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsCombinedMarketStatServe is similar to WsMarketStatServe, but it handles multiple symbolx
func WsCombinedPartialDepthServe ¶
func WsCombinedPartialDepthServe(symbolLevels map[string]string, handler WsPartialDepthHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsCombinedPartialDepthServe is similar to WsPartialDepthServe, but it for multiple symbols
func WsCombinedTradeServe ¶
func WsCombinedTradeServe(symbols []string, handler WsCombinedTradeHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
func WsDepthServe ¶
func WsDepthServe(symbol string, handler WsDepthHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsDepthServe serve websocket depth handler with a symbol, using 1sec updates
func WsDepthServe100Ms ¶
func WsDepthServe100Ms(symbol string, handler WsDepthHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsDepthServe100Ms serve websocket depth handler with a symbol, using 100msec updates
func WsKlineServe ¶
func WsKlineServe(symbol string, interval string, handler WsKlineHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsKlineServe serve websocket kline handler with a symbol and interval like 15m, 30s
func WsMarketStatServe ¶
func WsMarketStatServe(symbol string, handler WsMarketStatHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsMarketStatServe serve websocket that push 24hr statistics for single market every second
func WsPartialDepthServe ¶
func WsPartialDepthServe(symbol string, levels string, handler WsPartialDepthHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsPartialDepthServe serve websocket partial depth handler with a symbol, using 1sec updates
func WsPartialDepthServe100Ms ¶
func WsPartialDepthServe100Ms(symbol string, levels string, handler WsPartialDepthHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsPartialDepthServe100Ms serve websocket partial depth handler with a symbol, using 100msec updates
func WsTradeServe ¶
func WsTradeServe(symbol string, handler WsTradeHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsTradeServe serve websocket handler with a symbol
func WsUserDataServe ¶
func WsUserDataServe(listenKey string, handler WsUserDataHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error)
WsUserDataServe serve user data handler with listen key
Types ¶
type APIKeyPermission ¶
type APIKeyPermission struct {
IPRestrict bool `json:"ipRestrict"`
CreateTime uint64 `json:"createTime"`
EnableWithdrawals bool `json:"enableWithdrawals"`
EnableInternalTransfer bool `json:"enableInternalTransfer"`
PermitsUniversalTransfer bool `json:"permitsUniversalTransfer"`
EnableVanillaOptions bool `json:"enableVanillaOptions"`
EnableReading bool `json:"enableReading"`
EnableFutures bool `json:"enableFutures"`
EnableMargin bool `json:"enableMargin"`
EnableSpotAndMarginTrading bool `json:"enableSpotAndMarginTrading"`
TradingAuthorityExpirationTime uint64 `json:"tradingAuthorityExpirationTime"`
}
APIKeyPermission define API key permission
type Account ¶
type Account struct {
MakerCommission int64 `json:"makerCommission"`
TakerCommission int64 `json:"takerCommission"`
BuyerCommission int64 `json:"buyerCommission"`
SellerCommission int64 `json:"sellerCommission"`
CommissionRates CommissionRates `json:"commissionRates"`
CanTrade bool `json:"canTrade"`
CanWithdraw bool `json:"canWithdraw"`
CanDeposit bool `json:"canDeposit"`
UpdateTime uint64 `json:"updateTime"`
AccountType string `json:"accountType"`
Balances []Balance `json:"balances"`
Permissions []string `json:"permissions"`
UID int64 `json:"uid"`
}
Account define account info
type AddLiquidityPreviewResponse ¶
type AddLiquidityPreviewResponse struct {
QuoteAsset string `json:"quoteAsset"`
BaseAsset string `json:"baseAsset"` // only existed when type is COMBINATION
QuoteAmt string `json:"quoteAmt"`
BaseAmt string `json:"baseAmt"` // only existed when type is COMBINATION
Price string `json:"price"`
Slippage string `json:"slippage"`
Fee string `json:"fee"`
}
type AddLiquidityPreviewService ¶
type AddLiquidityPreviewService struct {
// contains filtered or unexported fields
}
AddLiquidityPreviewService to preview the quote/base qty needed when adding assets to a liquidity pool with an estimated share after adding the liquidity
func (*AddLiquidityPreviewService) Do ¶
func (s *AddLiquidityPreviewService) Do(ctx context.Context) (*AddLiquidityPreviewResponse, error)
Do sends the request.
func (*AddLiquidityPreviewService) OperationType ¶
func (s *AddLiquidityPreviewService) OperationType(operationType LiquidityOperationType) *AddLiquidityPreviewService
OperationType set operationType
func (*AddLiquidityPreviewService) PoolId ¶
func (s *AddLiquidityPreviewService) PoolId(poolId int64) *AddLiquidityPreviewService
PoolId set poolId
func (*AddLiquidityPreviewService) QuoteAsset ¶
func (s *AddLiquidityPreviewService) QuoteAsset(quoteAsset string) *AddLiquidityPreviewService
QuoteAsset set quoteAsset
func (*AddLiquidityPreviewService) QuoteQty ¶
func (s *AddLiquidityPreviewService) QuoteQty(quoteQty float64) *AddLiquidityPreviewService
QuoteQty set quoteQty
type AddLiquidityResponse ¶
type AddLiquidityResponse struct {
OperationId int64 `json:"operationId"`
}
type AddLiquidityService ¶
type AddLiquidityService struct {
// contains filtered or unexported fields
}
AddLiquidityService to add liquidity
func (*AddLiquidityService) Do ¶
func (s *AddLiquidityService) Do(ctx context.Context) (*AddLiquidityResponse, error)
Do sends the request.
func (*AddLiquidityService) OperationType ¶
func (s *AddLiquidityService) OperationType(operationType LiquidityOperationType) *AddLiquidityService
OperationType set operationType
func (*AddLiquidityService) PoolId ¶
func (s *AddLiquidityService) PoolId(poolId int64) *AddLiquidityService
PoolId set poolId
func (*AddLiquidityService) QuoteAsset ¶
func (s *AddLiquidityService) QuoteAsset(quoteAsset string) *AddLiquidityService
QuoteAsset set quoteAsset
func (*AddLiquidityService) QuoteQty ¶
func (s *AddLiquidityService) QuoteQty(quoteQty float64) *AddLiquidityService
QuoteQty set quoteQty
type AggTrade ¶
type AggTrade struct {
AggTradeID int64 `json:"a"`
Price string `json:"p"`
Quantity string `json:"q"`
FirstTradeID int64 `json:"f"`
LastTradeID int64 `json:"l"`
Timestamp int64 `json:"T"`
IsBuyerMaker bool `json:"m"`
IsBestPriceMatch bool `json:"M"`
}
AggTrade define aggregate trade info
type AggTradesService ¶
type AggTradesService struct {
// contains filtered or unexported fields
}
AggTradesService list aggregate trades
func (*AggTradesService) Do ¶
func (s *AggTradesService) Do(ctx context.Context, opts ...RequestOption) (res []*AggTrade, err error)
Do send request
func (*AggTradesService) EndTime ¶
func (s *AggTradesService) EndTime(endTime int64) *AggTradesService
EndTime set endTime
func (*AggTradesService) FromID ¶
func (s *AggTradesService) FromID(fromID int64) *AggTradesService
FromID set fromID
func (*AggTradesService) Limit ¶
func (s *AggTradesService) Limit(limit int) *AggTradesService
Limit set limit
func (*AggTradesService) StartTime ¶
func (s *AggTradesService) StartTime(startTime int64) *AggTradesService
StartTime set startTime
func (*AggTradesService) Symbol ¶
func (s *AggTradesService) Symbol(symbol string) *AggTradesService
Symbol set symbol
type AllCoinResponse ¶
type AllCoinService ¶
type AllCoinService struct {
// contains filtered or unexported fields
}
type AssetBalance ¶
type AssetDetail ¶
type AssetDetail struct {
MinWithdrawAmount string `json:"minWithdrawAmount"`
DepositStatus bool `json:"depositStatus"`
WithdrawFee string `json:"withdrawFee"`
WithdrawStatus bool `json:"withdrawStatus"`
DepositTip string `json:"depositTip"`
}
AssetDetail represents the detail of an asset
type AssetDividendService ¶
type AssetDividendService struct {
// contains filtered or unexported fields
}
AssetDividendService fetches the saving purchases
func (*AssetDividendService) Asset ¶
func (s *AssetDividendService) Asset(asset string) *AssetDividendService
Asset sets the asset parameter.
func (*AssetDividendService) Do ¶
func (s *AssetDividendService) Do(ctx context.Context) (*DividendResponseWrapper, error)
Do sends the request.
func (*AssetDividendService) EndTime ¶
func (s *AssetDividendService) EndTime(endTime int64) *AssetDividendService
EndTime sets the endTime parameter. If present, StartTime MUST be specified. The difference between EndTime - StartTime MUST be between 0-90 days.
func (*AssetDividendService) Limit ¶
func (s *AssetDividendService) Limit(limit int) *AssetDividendService
Limit sets the limit parameter.
func (*AssetDividendService) StartTime ¶
func (s *AssetDividendService) StartTime(startTime int64) *AssetDividendService
StartTime sets the startTime parameter. If present, EndTime MUST be specified. The difference between EndTime - StartTime MUST be between 0-90 days.
type AveragePriceService ¶
type AveragePriceService struct {
// contains filtered or unexported fields
}
AveragePriceService show current average price for a symbol
func (*AveragePriceService) Do ¶
func (s *AveragePriceService) Do(ctx context.Context, opts ...RequestOption) (res *AvgPrice, err error)
Do send request
func (*AveragePriceService) Symbol ¶
func (s *AveragePriceService) Symbol(symbol string) *AveragePriceService
Symbol set symbol
type BNBBurn ¶
type BNBBurn struct {
SpotBNBBurn bool `json:"spotBNBBurn"`
InterestBNBBurn bool `json:"interestBNBBurn"`
}
BNBBurn response
type Balance ¶
type Balance struct {
Asset string `json:"asset"`
Free string `json:"free"`
Locked string `json:"locked"`
}
Balance define user balance of your account
type BookTicker ¶
type BookTicker struct {
Symbol string `json:"symbol"`
BidPrice string `json:"bidPrice"`
BidQuantity string `json:"bidQty"`
AskPrice string `json:"askPrice"`
AskQuantity string `json:"askQty"`
}
BookTicker define book ticker info
type C2CRecord ¶
type C2CRecord struct {
OrderNumber string `json:"orderNumber"`
AdvNo string `json:"advNo"`
TradeType string `json:"tradeType"`
Asset string `json:"asset"`
Fiat string `json:"fiat"`
FiatSymbol string `json:"fiatSymbol"`
Amount string `json:"amount"`
TotalPrice string `json:"totalPrice"`
UnitPrice string `json:"unitPrice"`
OrderStatus string `json:"orderStatus"`
CreateTime int64 `json:"createTime"`
Commission string `json:"commission"`
CounterPartNickName string `json:"counterPartNickName"`
AdvertisementRole string `json:"advertisementRole"`
}
C2CRecord a record of c2c
type C2CTradeHistory ¶
type C2CTradeHistory struct {
Code string `json:"code"`
Message string `json:"message"`
Data []C2CRecord `json:"data"`
Total int64 `json:"total"`
Success bool `json:"success"`
}
C2CTradeHistory response
type C2CTradeHistoryService ¶
type C2CTradeHistoryService struct {
// contains filtered or unexported fields
}
C2CTradeHistoryService retrieve c2c trade history
func (*C2CTradeHistoryService) Do ¶
func (s *C2CTradeHistoryService) Do(ctx context.Context, opts ...RequestOption) (*C2CTradeHistory, error)
Do send request
func (*C2CTradeHistoryService) EndTime ¶
func (s *C2CTradeHistoryService) EndTime(endTimestamp int64) *C2CTradeHistoryService
EndTime set endTime
func (*C2CTradeHistoryService) Page ¶
func (s *C2CTradeHistoryService) Page(page int32) *C2CTradeHistoryService
Page set page
func (*C2CTradeHistoryService) Rows ¶
func (s *C2CTradeHistoryService) Rows(rows int32) *C2CTradeHistoryService
Rows set rows
func (*C2CTradeHistoryService) StartTimestamp ¶
func (s *C2CTradeHistoryService) StartTimestamp(startTimestamp int64) *C2CTradeHistoryService
BeginTime set beginTime
func (*C2CTradeHistoryService) TradeType ¶
func (s *C2CTradeHistoryService) TradeType(tradeType SideType) *C2CTradeHistoryService
TransactionType set transaction type
type CancelFuturesAlgoOrderResponse ¶ added in v2.0.4
type CancelFuturesAlgoOrderResponse struct {
AlgoId int64 `json:"algoId"`
Success bool `json:"success"`
Code int `json:"code"`
Msg string `json:"msg"`
}
CancelFuturesAlgoOrderResponse define response of cancel future algo twap order
type CancelFuturesAlgoOrderService ¶ added in v2.0.4
type CancelFuturesAlgoOrderService struct {
// contains filtered or unexported fields
}
CancelFuturesAlgoOrderService cancel future algo twap order
func (*CancelFuturesAlgoOrderService) AlgoId ¶ added in v2.0.4
func (s *CancelFuturesAlgoOrderService) AlgoId(algoId int64) *CancelFuturesAlgoOrderService
func (*CancelFuturesAlgoOrderService) Do ¶ added in v2.0.4
func (s *CancelFuturesAlgoOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CancelFuturesAlgoOrderResponse, err error)
Do send request
type CancelMarginOCOResponse ¶
type CancelMarginOCOResponse struct {
OrderListID int64 `json:"orderListId"`
ContingencyType string `json:"contingencyType"`
ListStatusType string `json:"listStatusType"`
ListOrderStatus string `json:"listOrderStatus"`
ListClientOrderID string `json:"listClientOrderId"`
TransactionTime int64 `json:"transactionTime"`
Symbol string `json:"symbol"`
IsIsolated bool `json:"isIsolated"`
Orders []*MarginOCOOrder `json:"orders"`
OrderReports []*MarginOCOOrderReport `json:"orderReports"`
}
CancelMarginOCOResponse define create cancelled oco response.
type CancelMarginOCOService ¶
type CancelMarginOCOService struct {
// contains filtered or unexported fields
}
CancelMarginOCOService cancel an entire Order List for a margin account
func (*CancelMarginOCOService) Do ¶
func (s *CancelMarginOCOService) Do(ctx context.Context, opts ...RequestOption) (res *CancelMarginOCOResponse, err error)
Do send request
func (*CancelMarginOCOService) IsIsolated ¶
func (s *CancelMarginOCOService) IsIsolated(isIsolated bool) *CancelMarginOCOService
IsIsolated set isIsolated
func (*CancelMarginOCOService) ListClientOrderID ¶
func (s *CancelMarginOCOService) ListClientOrderID(listClientOrderID string) *CancelMarginOCOService
ListClientOrderID sets listClientOrderId
func (*CancelMarginOCOService) NewClientOrderID ¶
func (s *CancelMarginOCOService) NewClientOrderID(newClientOrderID string) *CancelMarginOCOService
NewClientOrderID sets newClientOrderId
func (*CancelMarginOCOService) OrderListID ¶
func (s *CancelMarginOCOService) OrderListID(orderListID int64) *CancelMarginOCOService
OrderListID sets orderListId
func (*CancelMarginOCOService) Symbol ¶
func (s *CancelMarginOCOService) Symbol(symbol string) *CancelMarginOCOService
Symbol set symbol
type CancelMarginOrderResponse ¶
type CancelMarginOrderResponse struct {
Symbol string `json:"symbol"`
OrigClientOrderID string `json:"origClientOrderId"`
OrderID string `json:"orderId"`
ClientOrderID string `json:"clientOrderId"`
TransactTime int64 `json:"transactTime"`
Price string `json:"price"`
OrigQuantity string `json:"origQty"`
ExecutedQuantity string `json:"executedQty"`
CummulativeQuoteQuantity string `json:"cummulativeQuoteQty"`
Status OrderStatusType `json:"status"`
TimeInForce TimeInForceType `json:"timeInForce"`
Type OrderType `json:"type"`
Side SideType `json:"side"`
}
CancelMarginOrderResponse define response of canceling order
type CancelMarginOrderService ¶
type CancelMarginOrderService struct {
// contains filtered or unexported fields
}
CancelMarginOrderService cancel an order
func (*CancelMarginOrderService) Do ¶
func (s *CancelMarginOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CancelMarginOrderResponse, err error)
Do send request
func (*CancelMarginOrderService) IsIsolated ¶
func (s *CancelMarginOrderService) IsIsolated(isIsolated bool) *CancelMarginOrderService
IsIsolated set isIsolated
func (*CancelMarginOrderService) NewClientOrderID ¶
func (s *CancelMarginOrderService) NewClientOrderID(newClientOrderID string) *CancelMarginOrderService
NewClientOrderID set newClientOrderID
func (*CancelMarginOrderService) OrderID ¶
func (s *CancelMarginOrderService) OrderID(orderID int64) *CancelMarginOrderService
OrderID set orderID
func (*CancelMarginOrderService) OrigClientOrderID ¶
func (s *CancelMarginOrderService) OrigClientOrderID(origClientOrderID string) *CancelMarginOrderService
OrigClientOrderID set origClientOrderID
func (*CancelMarginOrderService) Symbol ¶
func (s *CancelMarginOrderService) Symbol(symbol string) *CancelMarginOrderService
Symbol set symbol
type CancelOCOResponse ¶
type CancelOCOResponse struct {
OrderListID int64 `json:"orderListId"`
ContingencyType string `json:"contingencyType"`
ListStatusType string `json:"listStatusType"`
ListOrderStatus string `json:"listOrderStatus"`
ListClientOrderID string `json:"listClientOrderId"`
TransactionTime int64 `json:"transactionTime"`
Symbol string `json:"symbol"`
Orders []*OCOOrder `json:"orders"`
OrderReports []*OCOOrderReport `json:"orderReports"`
}
CancelOCOResponse may be returned included in a CancelOpenOrdersResponse.
type CancelOCOService ¶
type CancelOCOService struct {
// contains filtered or unexported fields
}
CancelOCOService cancel all active orders on the list order.
func (*CancelOCOService) Do ¶
func (s *CancelOCOService) Do(ctx context.Context, opts ...RequestOption) (res *CancelOCOResponse, err error)
Do send request
func (*CancelOCOService) ListClientOrderID ¶
func (s *CancelOCOService) ListClientOrderID(listClientOrderID string) *CancelOCOService
ListClientOrderID sets listClientOrderId
func (*CancelOCOService) NewClientOrderID ¶
func (s *CancelOCOService) NewClientOrderID(newClientOrderID string) *CancelOCOService
NewClientOrderID sets newClientOrderId
func (*CancelOCOService) OrderListID ¶
func (s *CancelOCOService) OrderListID(orderListID int64) *CancelOCOService
OrderListID sets orderListId
func (*CancelOCOService) Symbol ¶
func (s *CancelOCOService) Symbol(symbol string) *CancelOCOService
Symbol set symbol
type CancelOpenOrdersResponse ¶
type CancelOpenOrdersResponse struct {
Orders []*CancelOrderResponse
OCOOrders []*CancelOCOResponse
}
CancelOpenOrdersResponse defines cancel open orders response.
type CancelOpenOrdersService ¶
type CancelOpenOrdersService struct {
// contains filtered or unexported fields
}
CancelOpenOrdersService cancel all active orders on a symbol.
func (*CancelOpenOrdersService) Do ¶
func (s *CancelOpenOrdersService) Do(ctx context.Context, opts ...RequestOption) (res *CancelOpenOrdersResponse, err error)
Do send request
func (*CancelOpenOrdersService) Symbol ¶
func (s *CancelOpenOrdersService) Symbol(symbol string) *CancelOpenOrdersService
Symbol set symbol
type CancelOrderResponse ¶
type CancelOrderResponse struct {
Symbol string `json:"symbol"`
OrigClientOrderID string `json:"origClientOrderId"`
OrderID int64 `json:"orderId"`
OrderListID int64 `json:"orderListId"`
ClientOrderID string `json:"clientOrderId"`
TransactTime int64 `json:"transactTime"`
Price string `json:"price"`
OrigQuantity string `json:"origQty"`
OrigQuoteOrderQuantity string `json:"origQuoteOrderQty"`
ExecutedQuantity string `json:"executedQty"`
CummulativeQuoteQuantity string `json:"cummulativeQuoteQty"`
Status OrderStatusType `json:"status"`
TimeInForce TimeInForceType `json:"timeInForce"`
Type OrderType `json:"type"`
Side SideType `json:"side"`
SelfTradePreventionMode SelfTradePreventionMode `json:"selfTradePreventionMode"`
}
CancelOrderResponse may be returned included in a CancelOpenOrdersResponse.
type CancelOrderService ¶
type CancelOrderService struct {
// contains filtered or unexported fields
}
CancelOrderService cancel an order
func (*CancelOrderService) Do ¶
func (s *CancelOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CancelOrderResponse, err error)
Do send request
func (*CancelOrderService) NewClientOrderID ¶
func (s *CancelOrderService) NewClientOrderID(newClientOrderID string) *CancelOrderService
NewClientOrderID set newClientOrderID
func (*CancelOrderService) OrderID ¶
func (s *CancelOrderService) OrderID(orderID int64) *CancelOrderService
OrderID set orderID
func (*CancelOrderService) OrigClientOrderID ¶
func (s *CancelOrderService) OrigClientOrderID(origClientOrderID string) *CancelOrderService
OrigClientOrderID set origClientOrderID
func (*CancelOrderService) Symbol ¶
func (s *CancelOrderService) Symbol(symbol string) *CancelOrderService
Symbol set symbol
type ClaimRewardResponse ¶
type ClaimRewardResponse struct {
Success bool `json:"success"`
}
type ClaimRewardService ¶
type ClaimRewardService struct {
// contains filtered or unexported fields
}
ClaimRewardService to claim reward
func (*ClaimRewardService) Do ¶
func (s *ClaimRewardService) Do(ctx context.Context) (*ClaimRewardResponse, error)
Do sends the request.
func (*ClaimRewardService) RewardType ¶
func (s *ClaimRewardService) RewardType(t LiquidityRewardType) *ClaimRewardService
RewardType set rewardType
type ClaimedRewardHistory ¶
type Client ¶
type Client struct {
APIKey string
SecretKey string
KeyType string
BaseURL string
UserAgent string
HTTPClient *http.Client
Debug bool
Logger *log.Logger
TimeOffset int64
// contains filtered or unexported fields
}
Client define API client
func NewClient ¶
NewClient initialize an API client instance with API key and secret key. You should always call this function before using this SDK. Services will be created by the form client.NewXXXService().
func NewProxiedClient ¶
NewProxiedClient passing a proxy url
func (*Client) NewAddLiquidityPreviewService ¶
func (c *Client) NewAddLiquidityPreviewService() *AddLiquidityPreviewService
NewAddLiquidityPreviewService init the add liquidity preview service
func (*Client) NewAddLiquidityService ¶
func (c *Client) NewAddLiquidityService() *AddLiquidityService
NewAddLiquidityService init the add liquidity service
func (*Client) NewAggTradesService ¶
func (c *Client) NewAggTradesService() *AggTradesService
NewAggTradesService init aggregate trades service
func (*Client) NewAllCoinService ¶
func (c *Client) NewAllCoinService() *AllCoinService
func (*Client) NewAssetDividendService ¶
func (c *Client) NewAssetDividendService() *AssetDividendService
NewAssetDividendService init the asset dividend list service
func (*Client) NewAveragePriceService ¶
func (c *Client) NewAveragePriceService() *AveragePriceService
NewAveragePriceService init average price service
func (*Client) NewC2CTradeHistoryService ¶
func (c *Client) NewC2CTradeHistoryService() *C2CTradeHistoryService
NewC2CTradeHistoryService init the c2c trade history service
func (*Client) NewCancelFuturesAlgoOrderService ¶ added in v2.0.4
func (c *Client) NewCancelFuturesAlgoOrderService() *CancelFuturesAlgoOrderService
NewCancelFuturesAlgoOrderService cancel future algo order
func (*Client) NewCancelMarginOCOService ¶
func (c *Client) NewCancelMarginOCOService() *CancelMarginOCOService
NewCancelMarginOCOService init cancel order service
func (*Client) NewCancelMarginOrderService ¶
func (c *Client) NewCancelMarginOrderService() *CancelMarginOrderService
NewCancelMarginOrderService init cancel order service
func (*Client) NewCancelOCOService ¶
func (c *Client) NewCancelOCOService() *CancelOCOService
NewCancelOCOService init cancel OCO service
func (*Client) NewCancelOpenOrdersService ¶
func (c *Client) NewCancelOpenOrdersService() *CancelOpenOrdersService
NewCancelOpenOrdersService init cancel open orders service
func (*Client) NewCancelOrderService ¶
func (c *Client) NewCancelOrderService() *CancelOrderService
NewCancelOrderService init cancel order service
func (*Client) NewClaimRewardService ¶
func (c *Client) NewClaimRewardService() *ClaimRewardService
NewClaimRewardService init the service for liquidity pool rewarding
func (*Client) NewCloseIsolatedMarginUserStreamService ¶
func (c *Client) NewCloseIsolatedMarginUserStreamService() *CloseIsolatedMarginUserStreamService
NewCloseIsolatedMarginUserStreamService init closing margin user stream service
func (*Client) NewCloseMarginUserStreamService ¶
func (c *Client) NewCloseMarginUserStreamService() *CloseMarginUserStreamService
NewCloseMarginUserStreamService init closing margin user stream service
func (*Client) NewCloseUserStreamService ¶
func (c *Client) NewCloseUserStreamService() *CloseUserStreamService
NewCloseUserStreamService init closing user stream service
func (*Client) NewConvertAcceptQuoteService ¶ added in v2.0.4
func (c *Client) NewConvertAcceptQuoteService() *ConvertAcceptQuoteService
NewConvertAcceptQuoteService init the convert accept quote service
func (*Client) NewConvertAssetInfoService ¶ added in v2.0.4
func (c *Client) NewConvertAssetInfoService() *ConvertAssetInfoService
NewConvertAssetInfoService init the convert asset info service
func (*Client) NewConvertExchangeInfoService ¶ added in v2.0.4
func (c *Client) NewConvertExchangeInfoService() *ConvertExchangeInfoService
NewConvertExchangeInfoService init the convert exchange info service
func (*Client) NewConvertOrderStatusService ¶ added in v2.0.4
func (c *Client) NewConvertOrderStatusService() *ConvertOrderStatusService
NewConvertOrderStatusService init the convert order status service
func (*Client) NewConvertQuoteService ¶ added in v2.0.4
func (c *Client) NewConvertQuoteService() *ConvertGetQuoteService
NewConvertQuoteService init the convert quote service
func (*Client) NewConvertTradeHistoryService ¶
func (c *Client) NewConvertTradeHistoryService() *ConvertTradeHistoryService
NewConvertTradeHistoryService init the convert trade history service
func (*Client) NewCreateFuturesAlgoTwapOrderService ¶ added in v2.0.4
func (c *Client) NewCreateFuturesAlgoTwapOrderService() *CreateFuturesAlgoTwapOrderService
NewCreateFuturesAlgoTwapOrderService create futures algo twap order
func (*Client) NewCreateFuturesAlgoVpOrderService ¶ added in v2.0.4
func (c *Client) NewCreateFuturesAlgoVpOrderService() *CreateFuturesAlgoVpOrderService
NewCreateFuturesAlgoVpOrderService create futures algo vp order
func (*Client) NewCreateMarginOCOService ¶
func (c *Client) NewCreateMarginOCOService() *CreateMarginOCOService
NewCreateMarginOCOService init creating margin order service
func (*Client) NewCreateMarginOrderService ¶
func (c *Client) NewCreateMarginOrderService() *CreateMarginOrderService
NewCreateMarginOrderService init creating margin order service
func (*Client) NewCreateMarginSpecialKeyService ¶ added in v2.0.6
func (c *Client) NewCreateMarginSpecialKeyService(apiName string) *CreateMarginSpecialKeyService
func (*Client) NewCreateOCOService ¶
func (c *Client) NewCreateOCOService() *CreateOCOService
NewCreateOCOService init creating OCO service
func (*Client) NewCreateOrderService ¶
func (c *Client) NewCreateOrderService() *CreateOrderService
NewCreateOrderService init creating order service
func (*Client) NewCreateVirtualSubAccountService ¶ added in v2.0.4
func (c *Client) NewCreateVirtualSubAccountService() *CreateVirtualSubAccountService
Create virtual sub-account
func (*Client) NewCreateWithdrawService ¶
func (c *Client) NewCreateWithdrawService() *CreateWithdrawService
NewCreateWithdrawService init creating withdraw service
func (*Client) NewCrossMarginDataService ¶
func (c *Client) NewCrossMarginDataService() *CrossMarginDataService
func (*Client) NewCryptoLoanService ¶
func (c *Client) NewCryptoLoanService() *CryptoLoanService
func (*Client) NewDeleteMarginSpecialKeyService ¶ added in v2.0.6
func (c *Client) NewDeleteMarginSpecialKeyService() *DeleteMarginSpecialKeyService
func (*Client) NewDepthService ¶
func (c *Client) NewDepthService() *DepthService
NewDepthService init depth service
func (*Client) NewDustTransferService ¶
func (c *Client) NewDustTransferService() *DustTransferService
NewDustTransferService init dust transfer service
func (*Client) NewExchangeInfoService ¶
func (c *Client) NewExchangeInfoService() *ExchangeInfoService
NewExchangeInfoService init exchange info service
func (*Client) NewFiatDepositWithdrawHistoryService ¶
func (c *Client) NewFiatDepositWithdrawHistoryService() *FiatDepositWithdrawHistoryService
NewFiatDepositWithdrawHistoryService init the fiat deposit/withdraw history service
func (*Client) NewFiatPaymentsHistoryService ¶
func (c *Client) NewFiatPaymentsHistoryService() *FiatPaymentsHistoryService
NewFiatPaymentsHistoryService init the fiat payments history service
func (*Client) NewFlexibleLoanAdjustLTVService ¶
func (c *Client) NewFlexibleLoanAdjustLTVService() *FlexibleLoanAdjustLTVService
func (*Client) NewFlexibleLoanBorrowService ¶
func (c *Client) NewFlexibleLoanBorrowService() *FlexibleLoanBorrowService
func (*Client) NewFlexibleLoanRepayService ¶
func (c *Client) NewFlexibleLoanRepayService() *FlexibleLoanRepayService
func (*Client) NewFuturesOrderBookHistoryService ¶ added in v2.0.4
func (c *Client) NewFuturesOrderBookHistoryService() *FuturesOrderBookHistoryService
Futures order book history service
func (*Client) NewFuturesTransferService ¶
func (c *Client) NewFuturesTransferService() *FuturesTransferService
NewFuturesTransferService init futures transfer service
func (*Client) NewGetAPIKeyPermission ¶
func (c *Client) NewGetAPIKeyPermission() *GetAPIKeyPermission
NewGetAPIKeyPermission init getting API key permission
func (*Client) NewGetAccountService ¶
func (c *Client) NewGetAccountService() *GetAccountService
NewGetAccountService init getting account service
func (*Client) NewGetAccountSnapshotService ¶
func (c *Client) NewGetAccountSnapshotService() *GetAccountSnapshotService
NewGetAccountSnapshotService init getting account snapshot service
func (*Client) NewGetAllCoinsInfoService ¶
func (c *Client) NewGetAllCoinsInfoService() *GetAllCoinsInfoService
NewAllCoinsInformation
func (*Client) NewGetAllLiquidityPoolService ¶
func (c *Client) NewGetAllLiquidityPoolService() *GetAllLiquidityPoolService
NewGetAllLiquidityPoolService init the get all swap pool service
func (*Client) NewGetAllMarginAssetsService ¶
func (c *Client) NewGetAllMarginAssetsService() *GetAllMarginAssetsService
NewDustTransferService init Get All Margin Assets service
func (*Client) NewGetAssetDetailService ¶
func (c *Client) NewGetAssetDetailService() *GetAssetDetailService
NewGetAssetDetailService init get asset detail service
func (*Client) NewGetBNBBurnService ¶
func (c *Client) NewGetBNBBurnService() *GetBNBBurnService
NewGetBNBBurnService init the service to get BNB Burn on spot trade and margin interest
func (*Client) NewGetCommissionRatesService ¶ added in v2.0.6
func (c *Client) NewGetCommissionRatesService() *GetCommissionRatesService
func (*Client) NewGetDepositAddressService ¶
func (c *Client) NewGetDepositAddressService() *GetDepositsAddressService
NewGetDepositAddressService init getting deposit address service
func (*Client) NewGetFlexibleLoanAssetsDataService ¶
func (c *Client) NewGetFlexibleLoanAssetsDataService() *GetFlexibleLoanAssetsDataService
func (*Client) NewGetFlexibleLoanBorrowHistoryService ¶
func (c *Client) NewGetFlexibleLoanBorrowHistoryService() *GetFlexibleLoanBorrowHistoryService
func (*Client) NewGetFlexibleLoanOngoingOrdersService ¶
func (c *Client) NewGetFlexibleLoanOngoingOrdersService() *GetFlexibleLoanOngoingOrdersService
func (*Client) NewGetFlexibleLoanRepayHistoryService ¶
func (c *Client) NewGetFlexibleLoanRepayHistoryService() *GetFlexibleLoanRepayHistoryService
func (*Client) NewGetFlexibleProductPosition ¶ added in v2.0.1
func (c *Client) NewGetFlexibleProductPosition() *GetFlexibleProductPositionService
func (*Client) NewGetFlexibleRewardHistory ¶ added in v2.0.1
func (c *Client) NewGetFlexibleRewardHistory() *FlexibleRewardHistoryService
func (*Client) NewGetFuturesAlgoSubOrdersService ¶ added in v2.0.4
func (c *Client) NewGetFuturesAlgoSubOrdersService() *GetFuturesAlgoSubOrdersService
NewGetFuturesAlgoSubOrdersService get futures algo sub orders
func (*Client) NewGetIsolatedMarginAccountService ¶
func (c *Client) NewGetIsolatedMarginAccountService() *GetIsolatedMarginAccountService
NewGetIsolatedMarginAccountService init get isolated margin asset service
func (*Client) NewGetIsolatedMarginAllPairsService ¶
func (c *Client) NewGetIsolatedMarginAllPairsService() *GetIsolatedMarginAllPairsService
NewGetIsolatedMarginAllPairsService init get isolated margin all pairs service
func (*Client) NewGetLiquidityPoolDetailService ¶
func (c *Client) NewGetLiquidityPoolDetailService() *GetLiquidityPoolDetailService
NewGetLiquidityPoolDetailService init the get liquidity pool detail service
func (*Client) NewGetLockedProductPosition ¶ added in v2.0.1
func (c *Client) NewGetLockedProductPosition() *GetLockedProductPositionService
func (*Client) NewGetMarginAccountService ¶
func (c *Client) NewGetMarginAccountService() *GetMarginAccountService
NewGetMarginAccountService init get margin account service
func (*Client) NewGetMarginAllPairsService ¶
func (c *Client) NewGetMarginAllPairsService() *GetMarginAllPairsService
NewGetMarginAllPairsService init get margin all pairs service
func (*Client) NewGetMarginAssetService ¶
func (c *Client) NewGetMarginAssetService() *GetMarginAssetService
NewGetMarginAssetService init get margin asset service
func (*Client) NewGetMarginOrderService ¶
func (c *Client) NewGetMarginOrderService() *GetMarginOrderService
NewGetMarginOrderService init get order service
func (*Client) NewGetMarginPairService ¶
func (c *Client) NewGetMarginPairService() *GetMarginPairService
NewGetMarginPairService init get margin pair service
func (*Client) NewGetMarginPriceIndexService ¶
func (c *Client) NewGetMarginPriceIndexService() *GetMarginPriceIndexService
NewGetMarginPriceIndexService init get margin price index service
func (*Client) NewGetMaxBorrowableService ¶
func (c *Client) NewGetMaxBorrowableService() *GetMaxBorrowableService
NewGetMaxBorrowableService init get max borrowable service
func (*Client) NewGetMaxTransferableService ¶
func (c *Client) NewGetMaxTransferableService() *GetMaxTransferableService
NewGetMaxTransferableService init get max transferable service
func (*Client) NewGetOrderService ¶
func (c *Client) NewGetOrderService() *GetOrderService
NewGetOrderService init get order service
func (*Client) NewGetSwapQuoteService ¶
func (c *Client) NewGetSwapQuoteService() *GetSwapQuoteService
NewGetSwapQuoteService init the add liquidity preview service
func (*Client) NewGetUserAsset ¶
func (c *Client) NewGetUserAsset() *GetUserAssetService
NewGetUserAsset Get user assets, just for positive data
func (*Client) NewGetUserSwapRecordsService ¶
func (c *Client) NewGetUserSwapRecordsService() *GetUserSwapRecordsService
NewGetUserSwapRecordsService init the service for listing the swap records
func (*Client) NewHistoricalTradesService ¶
func (c *Client) NewHistoricalTradesService() *HistoricalTradesService
NewHistoricalTradesService init listing trades service
func (*Client) NewInterestHistoryService ¶
func (c *Client) NewInterestHistoryService() *InterestHistoryService
NewInterestHistoryService init the interest history service
func (*Client) NewInternalUniversalTransferHistoryService ¶
func (c *Client) NewInternalUniversalTransferHistoryService() *InternalUniversalTransferHistoryService
NewInternalUniversalTransferHistoryService Query Universal Transfer History (For Master Account)
func (*Client) NewInternalUniversalTransferService ¶
func (c *Client) NewInternalUniversalTransferService() *InternalUniversalTransferService
NewInternalUniversalTransferService Universal Transfer (For Master Account)
func (*Client) NewIsolatedMarginDataService ¶
func (c *Client) NewIsolatedMarginDataService() *IsolatedMarginDataService
func (*Client) NewIsolatedMarginTransferService ¶
func (c *Client) NewIsolatedMarginTransferService() *IsolatedMarginTransferService
func (*Client) NewKeepaliveIsolatedMarginUserStreamService ¶
func (c *Client) NewKeepaliveIsolatedMarginUserStreamService() *KeepaliveIsolatedMarginUserStreamService
NewKeepaliveIsolatedMarginUserStreamService init keep alive margin user stream service
func (*Client) NewKeepaliveMarginUserStreamService ¶
func (c *Client) NewKeepaliveMarginUserStreamService() *KeepaliveMarginUserStreamService
NewKeepaliveMarginUserStreamService init keep alive margin user stream service
func (*Client) NewKeepaliveUserStreamService ¶
func (c *Client) NewKeepaliveUserStreamService() *KeepaliveUserStreamService
NewKeepaliveUserStreamService init keep alive user stream service
func (*Client) NewKlinesService ¶
func (c *Client) NewKlinesService() *KlinesService
NewKlinesService init klines service
func (*Client) NewListBookTickersService ¶
func (c *Client) NewListBookTickersService() *ListBookTickersService
NewListBookTickersService init listing booking tickers service
func (*Client) NewListDepositsService ¶
func (c *Client) NewListDepositsService() *ListDepositsService
NewListDepositsService init listing deposits service
func (*Client) NewListDustLogService ¶
func (c *Client) NewListDustLogService() *ListDustLogService
NewListDustLogService init list dust log service
func (*Client) NewListDustService ¶
func (c *Client) NewListDustService() *ListDustService
NewListDustService init dust list service
func (*Client) NewListFuturesTransferService ¶
func (c *Client) NewListFuturesTransferService() *ListFuturesTransferService
NewListFuturesTransferService init list futures transfer service
func (*Client) NewListHistoryFuturesAlgoOrdersService ¶ added in v2.0.4
func (c *Client) NewListHistoryFuturesAlgoOrdersService() *ListHistoryFuturesAlgoOrdersService
NewListHistoryFuturesAlgoOrdersService list history futures algo orders
func (*Client) NewListMarginBorrowRepayService ¶ added in v2.0.4
func (c *Client) NewListMarginBorrowRepayService() *ListMarginBorrowRepayService
func (*Client) NewListMarginLoansService ¶
func (c *Client) NewListMarginLoansService() *ListMarginLoansService
NewListMarginLoansService init list margin loan service Deprecated: use NewListMarginBorrowRepayService instead
func (*Client) NewListMarginOpenOrdersService ¶
func (c *Client) NewListMarginOpenOrdersService() *ListMarginOpenOrdersService
NewListMarginOpenOrdersService init list margin open orders service
func (*Client) NewListMarginOrdersService ¶
func (c *Client) NewListMarginOrdersService() *ListMarginOrdersService
NewListMarginOrdersService init list margin all orders service
func (*Client) NewListMarginRepaysService ¶
func (c *Client) NewListMarginRepaysService() *ListMarginRepaysService
NewListMarginRepaysService init list margin repay service Deprecated: use NewListMarginBorrowRepayService instead
func (*Client) NewListMarginSpecialKeyService ¶ added in v2.0.6
func (c *Client) NewListMarginSpecialKeyService() *ListMarginSpecialKeyService
func (*Client) NewListMarginTradesService ¶
func (c *Client) NewListMarginTradesService() *ListMarginTradesService
NewListMarginTradesService init list margin trades service
func (*Client) NewListOpenFuturesAlgoOrdersService ¶ added in v2.0.4
func (c *Client) NewListOpenFuturesAlgoOrdersService() *ListOpenFuturesAlgoOrdersService
NewListOpenFuturesAlgoOrdersService list open futures algo orders
func (*Client) NewListOpenOcoService ¶
func (c *Client) NewListOpenOcoService() *ListOpenOcoService
NewListOpenOcoService init list open oco service
func (*Client) NewListOpenOrdersService ¶
func (c *Client) NewListOpenOrdersService() *ListOpenOrdersService
NewListOpenOrdersService init list open orders service
func (*Client) NewListOrdersService ¶
func (c *Client) NewListOrdersService() *ListOrdersService
NewListOrdersService init listing orders service
func (*Client) NewListPriceChangeStatsService ¶
func (c *Client) NewListPriceChangeStatsService() *ListPriceChangeStatsService
NewListPriceChangeStatsService init list prices change stats service
func (*Client) NewListPricesService ¶
func (c *Client) NewListPricesService() *ListPricesService
NewListPricesService init listing prices service
func (*Client) NewListSavingsFixedAndActivityProductsService ¶
func (c *Client) NewListSavingsFixedAndActivityProductsService() *ListSavingsFixedAndActivityProductsService
NewListSavingsFixedAndActivityProductsService get fixed and activity product list (Savings)
func (*Client) NewListSavingsFlexibleProductsService ¶
func (c *Client) NewListSavingsFlexibleProductsService() *ListSavingsFlexibleProductsService
NewListSavingsFlexibleProductsService get flexible products list (Savings)
func (*Client) NewListSymbolTickerService ¶
func (c *Client) NewListSymbolTickerService() *ListSymbolTickerService
NewListSymbolTickerService init listing symbols tickers
func (*Client) NewListTradesService ¶
func (c *Client) NewListTradesService() *ListTradesService
NewListTradesService init listing trades service
func (*Client) NewListUserUniversalTransferService ¶ added in v2.0.4
func (c *Client) NewListUserUniversalTransferService() *ListUserUniversalTransferService
NewListUserUniversalTransferService Query User Universal Transfer History
func (*Client) NewListWithdrawsService ¶
func (c *Client) NewListWithdrawsService() *ListWithdrawsService
NewListWithdrawsService init listing withdraw service
func (*Client) NewManagedSubAccountAssetsService ¶
func (c *Client) NewManagedSubAccountAssetsService() *ManagedSubAccountAssetsService
NewManagedSubAccountAssetsService Withdrawal Assets From The Managed Sub-account(For Investor Master Account)
func (*Client) NewManagedSubAccountDepositAddressService ¶ added in v2.0.4
func (c *Client) NewManagedSubAccountDepositAddressService() *ManagedSubAccountDepositAddressService
Obtain the recharge address for the custody account
func (*Client) NewManagedSubAccountDepositService ¶
func (c *Client) NewManagedSubAccountDepositService() *ManagedSubAccountDepositService
NewManagedSubAccountDepositService Deposit Assets Into The Managed Sub-account(For Investor Master Account)
func (*Client) NewManagedSubAccountInfoService ¶ added in v2.0.4
func (c *Client) NewManagedSubAccountInfoService() *ManagedSubAccountInfoService
Query the list of managed-accounts
func (*Client) NewManagedSubAccountQueryFuturesAssetService ¶ added in v2.0.4
func (c *Client) NewManagedSubAccountQueryFuturesAssetService() *ManagedSubAccountQueryFuturesAssetService
Investor account inquiry custody account futures assets
func (*Client) NewManagedSubAccountQueryMarginAssetService ¶ added in v2.0.4
func (c *Client) NewManagedSubAccountQueryMarginAssetService() *ManagedSubAccountQueryMarginAssetService
Investor account inquiry for leveraged assets in custodial accounts
func (*Client) NewManagedSubAccountQueryTransferLogForInvestorService ¶ added in v2.0.4
func (c *Client) NewManagedSubAccountQueryTransferLogForInvestorService() *ManagedSubAccountQueryTransferLogForInvestorService
managed-sub account query transfer log, this interface is for investor
func (*Client) NewManagedSubAccountQueryTransferLogForTradeParentService ¶ added in v2.0.4
func (c *Client) NewManagedSubAccountQueryTransferLogForTradeParentService() *ManagedSubAccountQueryTransferLogForTradeParentService
func (*Client) NewManagedSubAccountQueryTransferLogService ¶ added in v2.0.4
func (c *Client) NewManagedSubAccountQueryTransferLogService() *ManagedSubAccountQueryTransferLogService
Query transfer records of managed-sub accounts
func (*Client) NewManagedSubAccountSnapshotService ¶ added in v2.0.4
func (c *Client) NewManagedSubAccountSnapshotService() *ManagedSubAccountSnapshotService
Query asset snapshot of managed-sub account
func (*Client) NewManagedSubAccountWithdrawService ¶ added in v2.0.4
func (c *Client) NewManagedSubAccountWithdrawService() *ManagedSubAccountWithdrawService
func (*Client) NewManagedSubAccountWithdrawalService ¶
func (c *Client) NewManagedSubAccountWithdrawalService() *ManagedSubAccountWithdrawalService
NewManagedSubAccountWithdrawalService Withdrawal Assets From The Managed Sub-account(For Investor Master Account)
func (*Client) NewMarginBorrowRepayService ¶ added in v2.0.4
func (c *Client) NewMarginBorrowRepayService() *MarginBorrowRepayService
NewMarginBorrowRepayService init margin account borrow/repay service
func (*Client) NewMarginInterestHistoryService ¶ added in v2.0.4
func (c *Client) NewMarginInterestHistoryService() *MarginInterestHistoryService
NewMarginInterestHistoryService init margin interest history service
func (*Client) NewMarginLoanService ¶
func (c *Client) NewMarginLoanService() *MarginLoanService
NewMarginLoanService init margin account loan service Deprecated: use NewMarginBorrowRepayService instead
func (*Client) NewMarginRepayService ¶
func (c *Client) NewMarginRepayService() *MarginRepayService
NewMarginRepayService init margin account repay service Deprecated: use NewMarginBorrowRepayService instead
func (*Client) NewMarginSubscriptionToken ¶ added in v2.0.8
func (c *Client) NewMarginSubscriptionToken() *MarginSubscriptionTokenService
func (*Client) NewMarginTransferService ¶
func (c *Client) NewMarginTransferService() *MarginTransferService
NewMarginTransferService init margin account transfer service
func (*Client) NewPayTradeHistoryService ¶
func (c *Client) NewPayTradeHistoryService() *PayTradeHistoryService
NewPayTransactionService init the pay transaction service
func (*Client) NewPingService ¶
func (c *Client) NewPingService() *PingService
NewPingService init ping service
func (*Client) NewPurchaseSavingsFlexibleProductService ¶
func (c *Client) NewPurchaseSavingsFlexibleProductService() *PurchaseSavingsFlexibleProductService
NewPurchaseSavingsFlexibleProductService purchase a flexible product (Savings)
func (*Client) NewQueryClaimedRewardHistoryService ¶
func (c *Client) NewQueryClaimedRewardHistoryService() *QueryClaimedRewardHistoryService
NewQueryClaimedRewardHistoryService init the service to query reward claiming history
func (*Client) NewRateLimitService ¶
func (c *Client) NewRateLimitService() *RateLimitService
NewRateLimitService init rate limit service
func (*Client) NewRecentTradesService ¶
func (c *Client) NewRecentTradesService() *RecentTradesService
NewRecentTradesService init recent trades service
func (*Client) NewRedeemSavingsFlexibleProductService ¶
func (c *Client) NewRedeemSavingsFlexibleProductService() *RedeemSavingsFlexibleProductService
NewRedeemSavingsFlexibleProductService redeem a flexible product (Savings)
func (*Client) NewRemoveLiquidityService ¶
func (c *Client) NewRemoveLiquidityService() *RemoveLiquidityService
NewRemoveLiquidityService init the service to remove liquidity
func (*Client) NewSavingFixedProjectPositionsService ¶
func (c *Client) NewSavingFixedProjectPositionsService() *SavingFixedProjectPositionsService
NewSavingFixedProjectPositionsService get fixed project positions (Savings)
func (*Client) NewSavingFlexibleProductPositionsService ¶
func (c *Client) NewSavingFlexibleProductPositionsService() *SavingFlexibleProductPositionsService
NewSavingFlexibleProductPositionsService get flexible products positions (Savings)
func (*Client) NewServerTimeService ¶
func (c *Client) NewServerTimeService() *ServerTimeService
NewServerTimeService init server time service
func (*Client) NewSetServerTimeService ¶
func (c *Client) NewSetServerTimeService() *SetServerTimeService
NewSetServerTimeService init set server time service
func (*Client) NewSimpleEarnService ¶
func (c *Client) NewSimpleEarnService() *SimpleEarnService
----- simple earn service -----
func (*Client) NewSpotRebateHistoryService ¶
func (c *Client) NewSpotRebateHistoryService() *SpotRebateHistoryService
NewFiatPaymentsHistoryService init the spot rebate history service
func (*Client) NewStakingHistoryService ¶
func (c *Client) NewStakingHistoryService() *StakingHistoryService
NewStakingHistoryService init the staking history service
func (*Client) NewStakingProductPositionService ¶
func (c *Client) NewStakingProductPositionService() *StakingProductPositionService
NewStakingProductPositionService init the staking product position service
func (*Client) NewStartIsolatedMarginUserStreamService ¶
func (c *Client) NewStartIsolatedMarginUserStreamService() *StartIsolatedMarginUserStreamService
NewStartIsolatedMarginUserStreamService init starting margin user stream service
func (*Client) NewStartMarginUserStreamService ¶
func (c *Client) NewStartMarginUserStreamService() *StartMarginUserStreamService
NewStartMarginUserStreamService init starting margin user stream service
func (*Client) NewStartUserStreamService ¶
func (c *Client) NewStartUserStreamService() *StartUserStreamService
NewStartUserStreamService init starting user stream service
func (*Client) NewSubAccUniversalTransferHistoryService ¶ added in v2.0.4
func (c *Client) NewSubAccUniversalTransferHistoryService() *SubAccUniversalTransferHistoryService
Query the universal transfer history of sub and master accounts
func (*Client) NewSubAccountApiAddIpRestrictionService ¶ added in v2.0.4
func (c *Client) NewSubAccountApiAddIpRestrictionService() *SubAccountApiAddIpRestrictionService
add sub-account ip restriction
func (*Client) NewSubAccountApiDeleteIpRestrictionService ¶ added in v2.0.4
func (c *Client) NewSubAccountApiDeleteIpRestrictionService() *SubAccountApiDeleteIpRestrictionService
delete sub-account ip restriction
func (*Client) NewSubAccountApiIpRestrictionService ¶ added in v2.0.4
func (c *Client) NewSubAccountApiIpRestrictionService() *SubAccountApiIpRestrictionService
query sub-account api ip restriction
func (*Client) NewSubAccountAssetService ¶ added in v2.0.4
func (c *Client) NewSubAccountAssetService() *SubAccountAssetService
Query sub account assets, v4 interface.
func (*Client) NewSubAccountBlvtEnableService ¶ added in v2.0.4
func (c *Client) NewSubAccountBlvtEnableService() *SubAccountBlvtEnableService
Binance Leveraged Tokens enable
func (*Client) NewSubAccountDepositRecordService ¶ added in v2.0.4
func (c *Client) NewSubAccountDepositRecordService() *SubAccountDepositRecordService
Get sub account deposit record
func (*Client) NewSubAccountFuturesAccountService ¶
func (c *Client) NewSubAccountFuturesAccountService() *SubAccountFuturesAccountService
NewSubAccountFuturesAccountService Get Detail on Sub-account's Futures Account (For Master Account)
func (*Client) NewSubAccountFuturesAccountSummaryService ¶ added in v2.0.4
func (c *Client) NewSubAccountFuturesAccountSummaryService() *SubAccountFuturesAccountSummaryService
get sub-account futures account summary, include U-M and C-M, v2 interface
func (*Client) NewSubAccountFuturesAccountV2Service ¶ added in v2.0.4
func (c *Client) NewSubAccountFuturesAccountV2Service() *SubAccountFuturesAccountV2Service
get the target sub-account futures account detail, v2 interface.
func (*Client) NewSubAccountFuturesEnableService ¶ added in v2.0.4
func (c *Client) NewSubAccountFuturesEnableService() *SubAccountFuturesEnableService
func (*Client) NewSubAccountFuturesInternalTransferService ¶ added in v2.0.4
func (c *Client) NewSubAccountFuturesInternalTransferService() *SubAccountFuturesInternalTransferService
Execute sub account futures balance transfer
func (*Client) NewSubAccountFuturesPositionsService ¶ added in v2.0.4
func (c *Client) NewSubAccountFuturesPositionsService() *SubAccountFuturesPositionsService
get target sub-account futures position information, include U-M and C-M, v2 interface.
func (*Client) NewSubAccountFuturesSummaryV1Service ¶ added in v2.0.1
func (c *Client) NewSubAccountFuturesSummaryV1Service() *SubAccountFuturesSummaryV1Service
NewSubAccountFuturesSummaryV1Service Get Summary of Sub-account's Futures Account (For Master Account)
func (*Client) NewSubAccountFuturesTransferHistoryService ¶ added in v2.0.4
func (c *Client) NewSubAccountFuturesTransferHistoryService() *SubAccountFuturesTransferHistoryService
Sub-Account futures transfer history
func (*Client) NewSubAccountFuturesTransferV1Service ¶ added in v2.0.1
func (c *Client) NewSubAccountFuturesTransferV1Service() *SubAccountFuturesTransferV1Service
NewSubAccountFuturesTransferV1Service Futures Transfer for Sub-account (For Master Account)
func (*Client) NewSubAccountListService ¶
func (c *Client) NewSubAccountListService() *SubAccountListService
NewSubAccountListService Query Sub-account List (For Master Account)
func (*Client) NewSubAccountMarginAccountInfoService ¶ added in v2.0.4
func (c *Client) NewSubAccountMarginAccountInfoService() *SubAccountMarginAccountInfoService
get sub-account margin account detail
func (*Client) NewSubAccountMarginAccountSummaryService ¶ added in v2.0.4
func (c *Client) NewSubAccountMarginAccountSummaryService() *SubAccountMarginAccountSummaryService
get sub-account margin account summary
func (*Client) NewSubAccountMarginEnableService ¶ added in v2.0.4
func (c *Client) NewSubAccountMarginEnableService() *SubAccountMarginEnableService
sub account margin enable
func (*Client) NewSubAccountMarginFuturesStatusService ¶ added in v2.0.4
func (c *Client) NewSubAccountMarginFuturesStatusService() *SubAccountMarginFuturesStatusService
Get sub account margin futures status
func (*Client) NewSubAccountMarginTransferService ¶ added in v2.0.4
func (c *Client) NewSubAccountMarginTransferService() *SubAccountMarginTransferService
execute sub-account margin account transfer
func (*Client) NewSubAccountOptionsEnableService ¶ added in v2.0.4
func (c *Client) NewSubAccountOptionsEnableService() *SubAccountOptionsEnableService
func (*Client) NewSubAccountSpotTransferHistoryService ¶ added in v2.0.4
func (c *Client) NewSubAccountSpotTransferHistoryService() *SubAccountSpotTransferHistoryService
Sub-Account spot transfer history
func (*Client) NewSubAccountTransactionStatisticsService ¶ added in v2.0.4
func (c *Client) NewSubAccountTransactionStatisticsService() *SubAccountTransactionStatisticsService
Query sub account transaction volume statistics list
func (*Client) NewSubAccountTransferHistoryService ¶ added in v2.0.4
func (c *Client) NewSubAccountTransferHistoryService() *SubAccountTransferHistoryService
NewSubAccountTransferHistoryService Transfer History for Sub-account (For Sub-account)
func (*Client) NewSubAccountTransferSubToMasterService ¶ added in v2.0.4
func (c *Client) NewSubAccountTransferSubToMasterService() *SubAccountTransferSubToMasterService
sub-account transfer balance to master-account
func (*Client) NewSubAccountUniversalTransferService ¶ added in v2.0.4
func (c *Client) NewSubAccountUniversalTransferService() *SubAccountUniversalTransferService
Universal transfer of master and sub accounts
func (*Client) NewSubTransferHistoryService ¶
func (c *Client) NewSubTransferHistoryService() *SubTransferHistoryService
NewSubTransferHistoryService query transfer history (for sub-account)
func (*Client) NewSubaccountAssetsService ¶
func (c *Client) NewSubaccountAssetsService() *SubaccountAssetsService
NewSubaccountAssetsService init list subaccount assets
func (*Client) NewSubaccountDepositAddressService ¶
func (c *Client) NewSubaccountDepositAddressService() *SubaccountDepositAddressService
NewSubaccountDepositAddressService init subaccount deposit address service
func (*Client) NewSubaccountSpotSummaryService ¶
func (c *Client) NewSubaccountSpotSummaryService() *SubaccountSpotSummaryService
NewSubaccountSpotSummaryService init subaccount spot summary
func (*Client) NewSwapService ¶
func (c *Client) NewSwapService() *SwapService
NewSwapService init the swap service
func (*Client) NewToggleBNBBurnService ¶
func (c *Client) NewToggleBNBBurnService() *ToggleBNBBurnService
NewToggleBNBBurnService init the service to toggle BNB Burn on spot trade and margin interest
func (*Client) NewTradeFeeService ¶
func (c *Client) NewTradeFeeService() *TradeFeeService
NewTradeFeeService init the trade fee service
func (*Client) NewTradingDayTickerService ¶ added in v2.0.4
func (c *Client) NewTradingDayTickerService() *TradingDayTickerService
func (*Client) NewTransferToSubAccountService ¶
func (c *Client) NewTransferToSubAccountService() *TransferToSubAccountService
NewTransferToSubAccountService transfer to subaccount service
func (*Client) NewUiKlinesService ¶ added in v2.0.4
func (c *Client) NewUiKlinesService() *UiKlinesService
func (*Client) NewUpdateMarginSpecialKeyService ¶ added in v2.0.6
func (c *Client) NewUpdateMarginSpecialKeyService(apiKey string) *UpdateMarginSpecialKeyService
func (*Client) NewUserUniversalTransferService ¶
func (c *Client) NewUserUniversalTransferService() *CreateUserUniversalTransferService
NewUserUniversalTransferService
func (*Client) NewVipLoanService ¶
func (c *Client) NewVipLoanService() *VipLoanService
func (*Client) NewWalletBalanceService ¶ added in v2.0.4
func (c *Client) NewWalletBalanceService() *WalletBalanceService
func (*Client) SetApiEndpoint ¶
SetApiEndpoint set api Endpoint
type CloseIsolatedMarginUserStreamService ¶
type CloseIsolatedMarginUserStreamService struct {
// contains filtered or unexported fields
}
CloseIsolatedMarginUserStreamService delete listen key
func (*CloseIsolatedMarginUserStreamService) Do ¶
func (s *CloseIsolatedMarginUserStreamService) Do(ctx context.Context, opts ...RequestOption) (err error)
Do send request
func (*CloseIsolatedMarginUserStreamService) ListenKey ¶
func (s *CloseIsolatedMarginUserStreamService) ListenKey(listenKey string) *CloseIsolatedMarginUserStreamService
ListenKey set listen key
func (*CloseIsolatedMarginUserStreamService) Symbol ¶
func (s *CloseIsolatedMarginUserStreamService) Symbol(symbol string) *CloseIsolatedMarginUserStreamService
Symbol set symbol to the isolated margin user stream close request
type CloseMarginUserStreamService ¶
type CloseMarginUserStreamService struct {
// contains filtered or unexported fields
}
CloseMarginUserStreamService delete listen key
func (*CloseMarginUserStreamService) Do ¶
func (s *CloseMarginUserStreamService) Do(ctx context.Context, opts ...RequestOption) (err error)
Do send request
func (*CloseMarginUserStreamService) ListenKey ¶
func (s *CloseMarginUserStreamService) ListenKey(listenKey string) *CloseMarginUserStreamService
ListenKey set listen key
type CloseUserStreamService ¶
type CloseUserStreamService struct {
// contains filtered or unexported fields
}
CloseUserStreamService delete listen key
func (*CloseUserStreamService) Do ¶
func (s *CloseUserStreamService) Do(ctx context.Context, opts ...RequestOption) (err error)
Do send request
func (*CloseUserStreamService) ListenKey ¶
func (s *CloseUserStreamService) ListenKey(listenKey string) *CloseUserStreamService
ListenKey set listen key
type CoinInfo ¶
type CoinInfo struct {
Coin string `json:"coin"`
DepositAllEnable bool `json:"depositAllEnable"`
Free string `json:"free"`
Freeze string `json:"freeze"`
Ipoable string `json:"ipoable"`
Ipoing string `json:"ipoing"`
IsLegalMoney bool `json:"isLegalMoney"`
Locked string `json:"locked"`
Name string `json:"name"`
NetworkList []Network `json:"networkList"`
Storage string `json:"storage"`
Trading bool `json:"trading"`
WithdrawAllEnable bool `json:"withdrawAllEnable"`
Withdrawing string `json:"withdrawing"`
}
type CommissionGroup ¶ added in v2.0.4
type CommissionGroup struct {
Maker string `json:"maker"`
Taker string `json:"taker"`
Buyer string `json:"buyer"`
Seller string `json:"seller"`
}
CommissionGroup defines a group of commission rates
type CommissionRates ¶
type CommissionRatesResponse ¶ added in v2.0.4
type CommissionRatesResponse struct {
Symbol string `json:"symbol"`
StandardCommission CommissionGroup `json:"standardCommission"`
TaxCommission CommissionGroup `json:"taxCommission"`
Discount DiscountInfo `json:"discount"`
}
CommissionRatesResponse holds the full response for commission rates
type ConvertAcceptQuote ¶ added in v2.0.4
type ConvertAcceptQuote struct {
OrderId string `json:"orderId"`
CreateTime int64 `json:"createTime"`
OrderStatus string `json:"orderStatus"`
}
ConvertAcceptQuote define the convert accept quote
type ConvertAcceptQuoteService ¶ added in v2.0.4
type ConvertAcceptQuoteService struct {
// contains filtered or unexported fields
}
func (*ConvertAcceptQuoteService) Do ¶ added in v2.0.4
func (s *ConvertAcceptQuoteService) Do(ctx context.Context, opts ...RequestOption) (*ConvertAcceptQuote, error)
Do send request
func (*ConvertAcceptQuoteService) QuoteId ¶ added in v2.0.4
func (s *ConvertAcceptQuoteService) QuoteId(quoteId string) *ConvertAcceptQuoteService
QuoteId set quoteId
type ConvertAssetInfo ¶ added in v2.0.4
ConvertAssetInfo define the convert asset info
type ConvertAssetInfoService ¶ added in v2.0.4
type ConvertAssetInfoService struct {
// contains filtered or unexported fields
}
ConvertAssetInfoService create a new convert asset info service
func (*ConvertAssetInfoService) Do ¶ added in v2.0.4
func (s *ConvertAssetInfoService) Do(ctx context.Context, opts ...RequestOption) ([]*ConvertAssetInfo, error)
Do send request
type ConvertExchangeInfo ¶ added in v2.0.4
type ConvertExchangeInfo struct {
FromAsset string `json:"fromAsset"`
ToAsset string `json:"toAsset"`
FromAssetMinAmount string `json:"fromAssetMinAmount"`
FromAssetMaxAmount string `json:"fromAssetMaxAmount"`
ToAssetMinAmount string `json:"toAssetMinAmount"`
ToAssetMaxAmount string `json:"toAssetMaxAmount"`
}
ConvertExchangeInfo define the convert exchange info
type ConvertExchangeInfoService ¶ added in v2.0.4
type ConvertExchangeInfoService struct {
// contains filtered or unexported fields
}
ConvertExchangeInfoService create a new convert exchange info service
func (*ConvertExchangeInfoService) Do ¶ added in v2.0.4
func (s *ConvertExchangeInfoService) Do(ctx context.Context, opts ...RequestOption) ([]*ConvertExchangeInfo, error)
Do send request
func (*ConvertExchangeInfoService) FromAsset ¶ added in v2.0.4
func (s *ConvertExchangeInfoService) FromAsset(fromAsset string) *ConvertExchangeInfoService
FromAsset set fromAsset
func (*ConvertExchangeInfoService) ToAsset ¶ added in v2.0.4
func (s *ConvertExchangeInfoService) ToAsset(toAsset string) *ConvertExchangeInfoService
ToAsset set toAsset
type ConvertGetQuoteService ¶ added in v2.0.4
type ConvertGetQuoteService struct {
// contains filtered or unexported fields
}
ConvertGetQuoteService create a new convert quote service
func (*ConvertGetQuoteService) Do ¶ added in v2.0.4
func (s *ConvertGetQuoteService) Do(ctx context.Context, opts ...RequestOption) (*ConvertQuote, error)
Do send request
func (*ConvertGetQuoteService) FromAmount ¶ added in v2.0.4
func (s *ConvertGetQuoteService) FromAmount(fromAmount string) *ConvertGetQuoteService
FromAmount set fromAmount
func (*ConvertGetQuoteService) FromAsset ¶ added in v2.0.4
func (s *ConvertGetQuoteService) FromAsset(fromAsset string) *ConvertGetQuoteService
FromAsset set fromAsset
func (*ConvertGetQuoteService) ToAmount ¶ added in v2.0.4
func (s *ConvertGetQuoteService) ToAmount(toAmount string) *ConvertGetQuoteService
ToAmount set toAmount
func (*ConvertGetQuoteService) ToAsset ¶ added in v2.0.4
func (s *ConvertGetQuoteService) ToAsset(toAsset string) *ConvertGetQuoteService
ToAsset set fromAsset
func (*ConvertGetQuoteService) ValidTime ¶ added in v2.0.4
func (s *ConvertGetQuoteService) ValidTime(validTime string) *ConvertGetQuoteService
ValidTime set validTime 10s, 30s, 1m, 2m, default 10s
func (*ConvertGetQuoteService) WalletType ¶ added in v2.0.4
func (s *ConvertGetQuoteService) WalletType(walletType string) *ConvertGetQuoteService
WalletType set walletType SPOT or FUNDING. Default is SPOT
type ConvertOrderStatus ¶ added in v2.0.4
type ConvertOrderStatus struct {
OrderId int64 `json:"orderId"`
OrderStatus string `json:"orderStatus"`
FromAsset string `json:"fromAsset"`
FromAmount string `json:"fromAmount"`
ToAsset string `json:"toAsset"`
ToAmount string `json:"toAmount"`
Ratio string `json:"ratio"`
InverseRatio string `json:"inverseRatio"`
CreateTime int64 `json:"createTime"`
}
ConvertOrderStatus define the convert order status
type ConvertOrderStatusService ¶ added in v2.0.4
type ConvertOrderStatusService struct {
// contains filtered or unexported fields
}
ConvertOrderStatusService check order status
func (*ConvertOrderStatusService) Do ¶ added in v2.0.4
func (s *ConvertOrderStatusService) Do(ctx context.Context, opts ...RequestOption) (*ConvertOrderStatus, error)
Do send request
func (*ConvertOrderStatusService) OrderId ¶ added in v2.0.4
func (s *ConvertOrderStatusService) OrderId(orderId string) *ConvertOrderStatusService
OrderId set orderId
func (*ConvertOrderStatusService) QuoteId ¶ added in v2.0.4
func (s *ConvertOrderStatusService) QuoteId(quoteId string) *ConvertOrderStatusService
QuoteId set quoteId
type ConvertQuote ¶ added in v2.0.4
type ConvertQuote struct {
QuoteId string `json:"quoteId"`
Ratio string `json:"ratio"`
InverseRatio string `json:"inverseRatio"`
ValidTime int64 `json:"validTime"`
ToAmount string `json:"toAmount"`
FromAmount string `json:"fromAmount"`
}
ConvertQuote define the convert quote
type ConvertTradeHistory ¶
type ConvertTradeHistory struct {
List []ConvertTradeHistoryItem `json:"list"`
StartTime int64 `json:"startTime"`
EndTime int64 `json:"endTime"`
Limit int32 `json:"limit"`
MoreData bool `json:"moreData"`
}
ConvertTradeHistory define the convert trade history
type ConvertTradeHistoryItem ¶
type ConvertTradeHistoryItem struct {
QuoteId string `json:"quoteId"`
OrderId int64 `json:"orderId"`
OrderStatus string `json:"orderStatus"`
FromAsset string `json:"fromAsset"`
FromAmount string `json:"fromAmount"`
ToAsset string `json:"toAsset"`
ToAmount string `json:"toAmount"`
Ratio string `json:"ratio"`
InverseRatio string `json:"inverseRatio"`
CreateTime int64 `json:"createTime"`
}
ConvertTradeHistoryItem define a convert trade history item
type ConvertTradeHistoryService ¶
type ConvertTradeHistoryService struct {
// contains filtered or unexported fields
}
func (*ConvertTradeHistoryService) Do ¶
func (s *ConvertTradeHistoryService) Do(ctx context.Context, opts ...RequestOption) (*ConvertTradeHistory, error)
Do send request
func (*ConvertTradeHistoryService) EndTime ¶
func (s *ConvertTradeHistoryService) EndTime(endTime int64) *ConvertTradeHistoryService
EndTime set endTime
func (*ConvertTradeHistoryService) Limit ¶
func (s *ConvertTradeHistoryService) Limit(limit int32) *ConvertTradeHistoryService
Limit set limit
func (*ConvertTradeHistoryService) StartTime ¶
func (s *ConvertTradeHistoryService) StartTime(startTime int64) *ConvertTradeHistoryService
StartTime set startTime
type CreateFuturesAlgoOrderResponse ¶ added in v2.0.4
type CreateFuturesAlgoOrderResponse struct {
ClientAlgoId string `json:"clientAlgoId"`
Success bool `json:"success"`
Code int `json:"code"`
Msg string `json:"msg"`
}
CreateFutureAlgoOrderResponse define create future algo order response
type CreateFuturesAlgoTwapOrderService ¶ added in v2.0.4
type CreateFuturesAlgoTwapOrderService struct {
// contains filtered or unexported fields
}
CreateFuturesAlgoTwapOrderService create future algo order
func (*CreateFuturesAlgoTwapOrderService) ClientAlgoId ¶ added in v2.0.4
func (s *CreateFuturesAlgoTwapOrderService) ClientAlgoId(clientAlgoId string) *CreateFuturesAlgoTwapOrderService
ClientAlgoId set clientAlgoId
func (*CreateFuturesAlgoTwapOrderService) Do ¶ added in v2.0.4
func (s *CreateFuturesAlgoTwapOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CreateFuturesAlgoOrderResponse, err error)
Do send request
func (*CreateFuturesAlgoTwapOrderService) Duration ¶ added in v2.0.4
func (s *CreateFuturesAlgoTwapOrderService) Duration(duration int64) *CreateFuturesAlgoTwapOrderService
Duration set duration
func (*CreateFuturesAlgoTwapOrderService) LimitPrice ¶ added in v2.0.4
func (s *CreateFuturesAlgoTwapOrderService) LimitPrice(limitPrice float64) *CreateFuturesAlgoTwapOrderService
LimitPrice set limitPrice
func (*CreateFuturesAlgoTwapOrderService) PositionSide ¶ added in v2.0.4
func (s *CreateFuturesAlgoTwapOrderService) PositionSide(positionSide futures.PositionSideType) *CreateFuturesAlgoTwapOrderService
PositionSide set side
func (*CreateFuturesAlgoTwapOrderService) Quantity ¶ added in v2.0.4
func (s *CreateFuturesAlgoTwapOrderService) Quantity(quantity float64) *CreateFuturesAlgoTwapOrderService
Quantity set quantity
func (*CreateFuturesAlgoTwapOrderService) ReduceOnly ¶ added in v2.0.4
func (s *CreateFuturesAlgoTwapOrderService) ReduceOnly(reduceOnly bool) *CreateFuturesAlgoTwapOrderService
ReduceOnly set reduceOnly
func (*CreateFuturesAlgoTwapOrderService) Side ¶ added in v2.0.4
func (s *CreateFuturesAlgoTwapOrderService) Side(side SideType) *CreateFuturesAlgoTwapOrderService
Side set side
func (*CreateFuturesAlgoTwapOrderService) Symbol ¶ added in v2.0.4
func (s *CreateFuturesAlgoTwapOrderService) Symbol(symbol string) *CreateFuturesAlgoTwapOrderService
Symbol set symbol
type CreateFuturesAlgoVpOrderService ¶ added in v2.0.4
type CreateFuturesAlgoVpOrderService struct {
// contains filtered or unexported fields
}
CreateFuturesAlgoTwapOrderService create future algo order
func (*CreateFuturesAlgoVpOrderService) ClientAlgoId ¶ added in v2.0.4
func (s *CreateFuturesAlgoVpOrderService) ClientAlgoId(clientAlgoId string) *CreateFuturesAlgoVpOrderService
ClientAlgoId set clientAlgoId
func (*CreateFuturesAlgoVpOrderService) Do ¶ added in v2.0.4
func (s *CreateFuturesAlgoVpOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CreateFuturesAlgoOrderResponse, err error)
Do send request
func (*CreateFuturesAlgoVpOrderService) LimitPrice ¶ added in v2.0.4
func (s *CreateFuturesAlgoVpOrderService) LimitPrice(limitPrice float64) *CreateFuturesAlgoVpOrderService
LimitPrice set limitPrice
func (*CreateFuturesAlgoVpOrderService) PositionSide ¶ added in v2.0.4
func (s *CreateFuturesAlgoVpOrderService) PositionSide(positionSide futures.PositionSideType) *CreateFuturesAlgoVpOrderService
PositionSide set side
func (*CreateFuturesAlgoVpOrderService) Quantity ¶ added in v2.0.4
func (s *CreateFuturesAlgoVpOrderService) Quantity(quantity float64) *CreateFuturesAlgoVpOrderService
Quantity set quantity
func (*CreateFuturesAlgoVpOrderService) ReduceOnly ¶ added in v2.0.4
func (s *CreateFuturesAlgoVpOrderService) ReduceOnly(reduceOnly bool) *CreateFuturesAlgoVpOrderService
ReduceOnly set reduceOnly
func (*CreateFuturesAlgoVpOrderService) Side ¶ added in v2.0.4
func (s *CreateFuturesAlgoVpOrderService) Side(side SideType) *CreateFuturesAlgoVpOrderService
Side set side
func (*CreateFuturesAlgoVpOrderService) Symbol ¶ added in v2.0.4
func (s *CreateFuturesAlgoVpOrderService) Symbol(symbol string) *CreateFuturesAlgoVpOrderService
Symbol set symbol
func (*CreateFuturesAlgoVpOrderService) Urgency ¶ added in v2.0.4
func (s *CreateFuturesAlgoVpOrderService) Urgency(urgency FuturesAlgoUrgencyType) *CreateFuturesAlgoVpOrderService
Urgency set urgency
type CreateMarginOCOResponse ¶
type CreateMarginOCOResponse struct {
OrderListID int64 `json:"orderListId"`
ContingencyType string `json:"contingencyType"`
ListStatusType string `json:"listStatusType"`
ListOrderStatus string `json:"listOrderStatus"`
ListClientOrderID string `json:"listClientOrderId"`
TransactionTime int64 `json:"transactionTime"`
Symbol string `json:"symbol"`
MarginBuyBorrowAmount string `json:"marginBuyBorrowAmount"`
MarginBuyBorrowAsset string `json:"marginBuyBorrowAsset"`
IsIsolated bool `json:"isIsolated"`
Orders []*MarginOCOOrder `json:"orders"`
OrderReports []*MarginOCOOrderReport `json:"orderReports"`
}
CreateMarginOCOResponse define create order response
type CreateMarginOCOService ¶
type CreateMarginOCOService struct {
// contains filtered or unexported fields
}
CreateMarginOCOService create a new OCO for a margin account
func (*CreateMarginOCOService) Do ¶
func (s *CreateMarginOCOService) Do(ctx context.Context, opts ...RequestOption) (res *CreateMarginOCOResponse, err error)
Do send request
func (*CreateMarginOCOService) IsIsolated ¶
func (s *CreateMarginOCOService) IsIsolated(isIsolated bool) *CreateMarginOCOService
IsIsolated set isIsolated
func (*CreateMarginOCOService) LimitClientOrderID ¶
func (s *CreateMarginOCOService) LimitClientOrderID(limitClientOrderID string) *CreateMarginOCOService
LimitClientOrderID set limitClientOrderID
func (*CreateMarginOCOService) LimitIcebergQuantity ¶
func (s *CreateMarginOCOService) LimitIcebergQuantity(limitIcebergQty string) *CreateMarginOCOService
LimitIcebergQuantity set limitIcebergQuantity
func (*CreateMarginOCOService) ListClientOrderID ¶
func (s *CreateMarginOCOService) ListClientOrderID(listClientOrderID string) *CreateMarginOCOService
ListClientOrderID set listClientOrderID
func (*CreateMarginOCOService) NewOrderRespType ¶
func (s *CreateMarginOCOService) NewOrderRespType(newOrderRespType NewOrderRespType) *CreateMarginOCOService
NewOrderRespType set icebergQuantity
func (*CreateMarginOCOService) Price ¶
func (s *CreateMarginOCOService) Price(price string) *CreateMarginOCOService
Price set price
func (*CreateMarginOCOService) Quantity ¶
func (s *CreateMarginOCOService) Quantity(quantity string) *CreateMarginOCOService
Quantity set quantity
func (*CreateMarginOCOService) Side ¶
func (s *CreateMarginOCOService) Side(side SideType) *CreateMarginOCOService
Side set side
func (*CreateMarginOCOService) SideEffectType ¶
func (s *CreateMarginOCOService) SideEffectType(sideEffectType SideEffectType) *CreateMarginOCOService
SideEffectType set sideEffectType
func (*CreateMarginOCOService) StopClientOrderID ¶
func (s *CreateMarginOCOService) StopClientOrderID(stopClientOrderID string) *CreateMarginOCOService
StopClientOrderID set stopClientOrderID
func (*CreateMarginOCOService) StopIcebergQty ¶
func (s *CreateMarginOCOService) StopIcebergQty(stopIcebergQty string) *CreateMarginOCOService
StopIcebergQty set stop limit price
func (*CreateMarginOCOService) StopLimitPrice ¶
func (s *CreateMarginOCOService) StopLimitPrice(stopLimitPrice string) *CreateMarginOCOService
StopLimitPrice set stop limit price
func (*CreateMarginOCOService) StopLimitTimeInForce ¶
func (s *CreateMarginOCOService) StopLimitTimeInForce(stopLimitTimeInForce TimeInForceType) *CreateMarginOCOService
StopLimitTimeInForce set stopLimitTimeInForce
func (*CreateMarginOCOService) StopPrice ¶
func (s *CreateMarginOCOService) StopPrice(stopPrice string) *CreateMarginOCOService
StopPrice set stop price
func (*CreateMarginOCOService) Symbol ¶
func (s *CreateMarginOCOService) Symbol(symbol string) *CreateMarginOCOService
Symbol set symbol
type CreateMarginOrderService ¶
type CreateMarginOrderService struct {
// contains filtered or unexported fields
}
CreateMarginOrderService create order
func (*CreateMarginOrderService) Do ¶
func (s *CreateMarginOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CreateOrderResponse, err error)
Do send request
func (*CreateMarginOrderService) IcebergQuantity ¶
func (s *CreateMarginOrderService) IcebergQuantity(icebergQuantity string) *CreateMarginOrderService
IcebergQuantity set icebergQuantity
func (*CreateMarginOrderService) IsIsolated ¶
func (s *CreateMarginOrderService) IsIsolated(isIsolated bool) *CreateMarginOrderService
IsIsolated sets the order to isolated margin
func (*CreateMarginOrderService) NewClientOrderID ¶
func (s *CreateMarginOrderService) NewClientOrderID(newClientOrderID string) *CreateMarginOrderService
NewClientOrderID set newClientOrderID
func (*CreateMarginOrderService) NewOrderRespType ¶
func (s *CreateMarginOrderService) NewOrderRespType(newOrderRespType NewOrderRespType) *CreateMarginOrderService
NewOrderRespType set icebergQuantity
func (*CreateMarginOrderService) Price ¶
func (s *CreateMarginOrderService) Price(price string) *CreateMarginOrderService
Price set price
func (*CreateMarginOrderService) Quantity ¶
func (s *CreateMarginOrderService) Quantity(quantity string) *CreateMarginOrderService
Quantity set quantity
func (*CreateMarginOrderService) QuoteOrderQty ¶
func (s *CreateMarginOrderService) QuoteOrderQty(quoteOrderQty string) *CreateMarginOrderService
QuoteOrderQty set quoteOrderQty
func (*CreateMarginOrderService) Side ¶
func (s *CreateMarginOrderService) Side(side SideType) *CreateMarginOrderService
Side set side
func (*CreateMarginOrderService) SideEffectType ¶
func (s *CreateMarginOrderService) SideEffectType(sideEffectType SideEffectType) *CreateMarginOrderService
SideEffectType set sideEffectType
func (*CreateMarginOrderService) StopPrice ¶
func (s *CreateMarginOrderService) StopPrice(stopPrice string) *CreateMarginOrderService
StopPrice set stopPrice
func (*CreateMarginOrderService) Symbol ¶
func (s *CreateMarginOrderService) Symbol(symbol string) *CreateMarginOrderService
Symbol set symbol
func (*CreateMarginOrderService) TimeInForce ¶
func (s *CreateMarginOrderService) TimeInForce(timeInForce TimeInForceType) *CreateMarginOrderService
TimeInForce set timeInForce
func (*CreateMarginOrderService) Type ¶
func (s *CreateMarginOrderService) Type(orderType OrderType) *CreateMarginOrderService
Type set type
type CreateMarginSpecialKeyService ¶ added in v2.0.6
type CreateMarginSpecialKeyService struct {
// contains filtered or unexported fields
}
func (*CreateMarginSpecialKeyService) APIName ¶ added in v2.0.6
func (s *CreateMarginSpecialKeyService) APIName(apiName string) *CreateMarginSpecialKeyService
APIName sets the quoteAsset parameter.
func (*CreateMarginSpecialKeyService) Do ¶ added in v2.0.6
func (s *CreateMarginSpecialKeyService) Do(ctx context.Context, opts ...RequestOption) (res MarginSpecialKey, err error)
Do sends the request.
func (*CreateMarginSpecialKeyService) Ips ¶ added in v2.0.6
func (s *CreateMarginSpecialKeyService) Ips(ips string) *CreateMarginSpecialKeyService
Ips sets the ips parameter (comma-separated IP list).
func (*CreateMarginSpecialKeyService) PermissionMode ¶ added in v2.0.6
func (s *CreateMarginSpecialKeyService) PermissionMode(permissionMode string) *CreateMarginSpecialKeyService
PermissionMode sets the permissionMode parameter.
func (*CreateMarginSpecialKeyService) PublicKey ¶ added in v2.0.6
func (s *CreateMarginSpecialKeyService) PublicKey(publicKey string) *CreateMarginSpecialKeyService
PublicKey sets the publicKey parameter.
func (*CreateMarginSpecialKeyService) RecvWindow ¶ added in v2.0.6
func (s *CreateMarginSpecialKeyService) RecvWindow(recvWindow int64) *CreateMarginSpecialKeyService
RecvWindow sets the recvWindow parameter.
func (*CreateMarginSpecialKeyService) Symbol ¶ added in v2.0.6
func (s *CreateMarginSpecialKeyService) Symbol(symbol string) *CreateMarginSpecialKeyService
Symbol sets the symbol parameter.
type CreateOCOResponse ¶
type CreateOCOResponse struct {
OrderListID int64 `json:"orderListId"`
ContingencyType string `json:"contingencyType"`
ListStatusType string `json:"listStatusType"`
ListOrderStatus string `json:"listOrderStatus"`
ListClientOrderID string `json:"listClientOrderId"`
TransactionTime int64 `json:"transactionTime"`
Symbol string `json:"symbol"`
Orders []*OCOOrder `json:"orders"`
OrderReports []*OCOOrderReport `json:"orderReports"`
}
CreateOCOResponse define create order response
type CreateOCOService ¶
type CreateOCOService struct {
// contains filtered or unexported fields
}
CreateOCOService create order
func (*CreateOCOService) Do ¶
func (s *CreateOCOService) Do(ctx context.Context, opts ...RequestOption) (res *CreateOCOResponse, err error)
Do send request
func (*CreateOCOService) LimitClientOrderID ¶
func (s *CreateOCOService) LimitClientOrderID(limitClientOrderID string) *CreateOCOService
LimitClientOrderID set limitClientOrderID
func (*CreateOCOService) LimitIcebergQuantity ¶
func (s *CreateOCOService) LimitIcebergQuantity(limitIcebergQty string) *CreateOCOService
LimitIcebergQuantity set limitIcebergQuantity
func (*CreateOCOService) ListClientOrderID ¶
func (s *CreateOCOService) ListClientOrderID(listClientOrderID string) *CreateOCOService
ListClientOrderID set listClientOrderID
func (*CreateOCOService) NewOrderRespType ¶
func (s *CreateOCOService) NewOrderRespType(newOrderRespType NewOrderRespType) *CreateOCOService
NewOrderRespType set icebergQuantity
func (*CreateOCOService) Price ¶
func (s *CreateOCOService) Price(price string) *CreateOCOService
Price set price
func (*CreateOCOService) Quantity ¶
func (s *CreateOCOService) Quantity(quantity string) *CreateOCOService
Quantity set quantity
func (*CreateOCOService) Side ¶
func (s *CreateOCOService) Side(side SideType) *CreateOCOService
Side set side
func (*CreateOCOService) StopClientOrderID ¶
func (s *CreateOCOService) StopClientOrderID(stopClientOrderID string) *CreateOCOService
StopClientOrderID set stopClientOrderID
func (*CreateOCOService) StopIcebergQty ¶
func (s *CreateOCOService) StopIcebergQty(stopIcebergQty string) *CreateOCOService
StopIcebergQty set stop limit price
func (*CreateOCOService) StopLimitPrice ¶
func (s *CreateOCOService) StopLimitPrice(stopLimitPrice string) *CreateOCOService
StopLimitPrice set stop limit price
func (*CreateOCOService) StopLimitTimeInForce ¶
func (s *CreateOCOService) StopLimitTimeInForce(stopLimitTimeInForce TimeInForceType) *CreateOCOService
StopLimitTimeInForce set stopLimitTimeInForce
func (*CreateOCOService) StopPrice ¶
func (s *CreateOCOService) StopPrice(stopPrice string) *CreateOCOService
StopPrice set stop price
func (*CreateOCOService) Symbol ¶
func (s *CreateOCOService) Symbol(symbol string) *CreateOCOService
Symbol set symbol
type CreateOrderResponse ¶
type CreateOrderResponse struct {
Symbol string `json:"symbol"`
OrderID int64 `json:"orderId"`
ClientOrderID string `json:"clientOrderId"`
TransactTime int64 `json:"transactTime"`
Price string `json:"price"`
OrigQuantity string `json:"origQty"`
OrigQuoteOrderQuantity string `json:"origQuoteOrderQty"`
ExecutedQuantity string `json:"executedQty"`
CummulativeQuoteQuantity string `json:"cummulativeQuoteQty"`
IsIsolated bool `json:"isIsolated"` // for isolated margin
Status OrderStatusType `json:"status"`
TimeInForce TimeInForceType `json:"timeInForce"`
Type OrderType `json:"type"`
Side SideType `json:"side"`
// for order response is set to FULL
Fills []*Fill `json:"fills"`
MarginBuyBorrowAmount string `json:"marginBuyBorrowAmount"` // for margin
MarginBuyBorrowAsset string `json:"marginBuyBorrowAsset"`
SelfTradePreventionMode SelfTradePreventionMode `json:"selfTradePreventionMode"`
}
CreateOrderResponse define create order response
type CreateOrderResult ¶ added in v2.0.4
type CreateOrderResult struct {
CreateOrderResponse
}
CreateOrderResult define order creation result
type CreateOrderService ¶
type CreateOrderService struct {
// contains filtered or unexported fields
}
CreateOrderService create order
func (*CreateOrderService) Do ¶
func (s *CreateOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CreateOrderResponse, err error)
Do send request
func (*CreateOrderService) IcebergQuantity ¶
func (s *CreateOrderService) IcebergQuantity(icebergQuantity string) *CreateOrderService
IcebergQuantity set icebergQuantity
func (*CreateOrderService) NewClientOrderID ¶
func (s *CreateOrderService) NewClientOrderID(newClientOrderID string) *CreateOrderService
NewClientOrderID set newClientOrderID
func (*CreateOrderService) NewOrderRespType ¶
func (s *CreateOrderService) NewOrderRespType(newOrderRespType NewOrderRespType) *CreateOrderService
NewOrderRespType set icebergQuantity
func (*CreateOrderService) Price ¶
func (s *CreateOrderService) Price(price string) *CreateOrderService
Price set price
func (*CreateOrderService) Quantity ¶
func (s *CreateOrderService) Quantity(quantity string) *CreateOrderService
Quantity set quantity
func (*CreateOrderService) QuoteOrderQty ¶
func (s *CreateOrderService) QuoteOrderQty(quoteOrderQty string) *CreateOrderService
QuoteOrderQty set quoteOrderQty
func (*CreateOrderService) SelfTradePreventionMode ¶ added in v2.0.4
func (s *CreateOrderService) SelfTradePreventionMode(selfTradePreventionMode SelfTradePreventionMode) *CreateOrderService
SelfTradePreventionMode set selfTradePreventionMode
func (*CreateOrderService) Side ¶
func (s *CreateOrderService) Side(side SideType) *CreateOrderService
Side set side
func (*CreateOrderService) StopPrice ¶
func (s *CreateOrderService) StopPrice(stopPrice string) *CreateOrderService
StopPrice set stopPrice
func (*CreateOrderService) Symbol ¶
func (s *CreateOrderService) Symbol(symbol string) *CreateOrderService
Symbol set symbol
func (*CreateOrderService) Test ¶
func (s *CreateOrderService) Test(ctx context.Context, opts ...RequestOption) (err error)
Test send test api to check if the request is valid
func (*CreateOrderService) TimeInForce ¶
func (s *CreateOrderService) TimeInForce(timeInForce TimeInForceType) *CreateOrderService
TimeInForce set timeInForce
func (*CreateOrderService) TrailingDelta ¶
func (s *CreateOrderService) TrailingDelta(trailingDelta string) *CreateOrderService
TrailingDelta set trailingDelta
func (*CreateOrderService) Type ¶
func (s *CreateOrderService) Type(orderType OrderType) *CreateOrderService
Type set type
type CreateOrderWsResponse ¶ added in v2.0.4
type CreateOrderWsResponse struct {
Id string `json:"id"`
Status int `json:"status"`
Result CreateOrderResult `json:"result"`
// error response
Error *common.APIError `json:"error,omitempty"`
}
CreateOrderWsResponse define 'order.place' websocket API response
type CreateSubscriptionToken ¶ added in v2.0.8
type CreateSubscriptionToken func() (*MarginSubscriptionToken, error)
type CreateUserUniversalTransferResponse ¶
type CreateUserUniversalTransferResponse struct {
ID int64 `json:"tranId"`
}
CreateUserUniversalTransferResponse represents a response from CreateUserUniversalTransferResponse.
type CreateUserUniversalTransferService ¶
type CreateUserUniversalTransferService struct {
// contains filtered or unexported fields
}
CreateUserUniversalTransferService submits a transfer request.
See https://developers.binance.com/docs/wallet/asset/user-universal-transfer
func (*CreateUserUniversalTransferService) Amount ¶
func (s *CreateUserUniversalTransferService) Amount(v string) *CreateUserUniversalTransferService
Amount sets the Amount parameter (MANDATORY).
func (*CreateUserUniversalTransferService) Asset ¶
func (s *CreateUserUniversalTransferService) Asset(v string) *CreateUserUniversalTransferService
Asset sets the Asset parameter (MANDATORY).
func (*CreateUserUniversalTransferService) Do ¶
func (s *CreateUserUniversalTransferService) Do(ctx context.Context) (*CreateUserUniversalTransferResponse, error)
Do sends the request.
func (*CreateUserUniversalTransferService) FromSymbol ¶
func (s *CreateUserUniversalTransferService) FromSymbol(v string) *CreateUserUniversalTransferService
FromSymbol sets the fromSymbol parameter
func (*CreateUserUniversalTransferService) ToSymbol ¶
func (s *CreateUserUniversalTransferService) ToSymbol(v string) *CreateUserUniversalTransferService
ToSymbol sets the toSymbol parameter
func (*CreateUserUniversalTransferService) Type ¶
func (s *CreateUserUniversalTransferService) Type(v UserUniversalTransferType) *CreateUserUniversalTransferService
Coin sets the coin parameter (MANDATORY).
type CreateVirtualSubAccountResponse ¶ added in v2.0.4
type CreateVirtualSubAccountResponse struct {
Email string `json:"email"`
}
type CreateVirtualSubAccountService ¶ added in v2.0.4
type CreateVirtualSubAccountService struct {
// contains filtered or unexported fields
}
Create virtual sub-account
func (*CreateVirtualSubAccountService) Do ¶ added in v2.0.4
func (s *CreateVirtualSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *CreateVirtualSubAccountResponse, err error)
func (*CreateVirtualSubAccountService) RecvWindow ¶ added in v2.0.4
func (s *CreateVirtualSubAccountService) RecvWindow(recvWindow int64) *CreateVirtualSubAccountService
func (*CreateVirtualSubAccountService) SubAccountString ¶ added in v2.0.4
func (s *CreateVirtualSubAccountService) SubAccountString(subAccountString string) *CreateVirtualSubAccountService
type CreateWithdrawResponse ¶
type CreateWithdrawResponse struct {
ID string `json:"id"`
}
CreateWithdrawResponse represents a response from CreateWithdrawService.
type CreateWithdrawService ¶
type CreateWithdrawService struct {
// contains filtered or unexported fields
}
CreateWithdrawService submits a withdraw request.
See https://developers.binance.com/docs/wallet/capital/withdraw
func (*CreateWithdrawService) Address ¶
func (s *CreateWithdrawService) Address(v string) *CreateWithdrawService
Address sets the address parameter (MANDATORY).
func (*CreateWithdrawService) AddressTag ¶
func (s *CreateWithdrawService) AddressTag(v string) *CreateWithdrawService
AddressTag sets the addressTag parameter.
func (*CreateWithdrawService) Amount ¶
func (s *CreateWithdrawService) Amount(v string) *CreateWithdrawService
Amount sets the amount parameter (MANDATORY).
func (*CreateWithdrawService) Coin ¶
func (s *CreateWithdrawService) Coin(v string) *CreateWithdrawService
Coin sets the coin parameter (MANDATORY).
func (*CreateWithdrawService) Do ¶
func (s *CreateWithdrawService) Do(ctx context.Context, opts ...RequestOption) (*CreateWithdrawResponse, error)
Do sends the request.
func (*CreateWithdrawService) Name ¶
func (s *CreateWithdrawService) Name(v string) *CreateWithdrawService
Name sets the name parameter.
func (*CreateWithdrawService) Network ¶
func (s *CreateWithdrawService) Network(v string) *CreateWithdrawService
Network sets the network parameter.
func (*CreateWithdrawService) TransactionFeeFlag ¶
func (s *CreateWithdrawService) TransactionFeeFlag(v bool) *CreateWithdrawService
TransactionFeeFlag sets the transactionFeeFlag parameter.
func (*CreateWithdrawService) WalletType ¶ added in v2.0.4
func (s *CreateWithdrawService) WalletType(walletType int) *CreateWithdrawService
func (*CreateWithdrawService) WithdrawOrderID ¶
func (s *CreateWithdrawService) WithdrawOrderID(v string) *CreateWithdrawService
WithdrawOrderID sets the withdrawOrderID parameter.
type CrossMarginData ¶
type CrossMarginData struct {
VipLevel int64 `json:"vipLevel"`
Coin string `json:"coin"`
TransferIn bool `json:"transferIn"`
Borrowable bool `json:"borrowable"`
DailyInterest string `json:"dailyInterest"`
YearlyInterest string `json:"yearlyInterest"`
BorrowLimit string `json:"borrowLimit"`
MarginablePairs []string `json:"marginablePairs"` //nolint
}
type CrossMarginDataService ¶
type CrossMarginDataService struct {
// contains filtered or unexported fields
}
func (*CrossMarginDataService) Do ¶
func (s *CrossMarginDataService) Do(ctx context.Context, opts ...RequestOption) (res *[]CrossMarginData, err error)
Do send request
type CryptoLoanAsset ¶
type CryptoLoanAsset struct {
LoanCoin string `json:"loanCoin"`
D7HourlyInterestRate string `json:"_7dHourlyInterestRate"`
D7DailyInterestRate string `json:"_7dDailyInterestRate"`
D14HourlyInterestRate string `json:"_14dHourlyInterestRate"`
D14DailyInterestRate string `json:"_14dDailyInterestRate"`
D30HourlyInterestRate string `json:"_30dHourlyInterestRate"`
D30DailyInterestRate string `json:"_30dDailyInterestRate"`
D90HourlyInterestRate string `json:"_90dHourlyInterestRate"`
D90DailyInterestRate string `json:"_90dDailyInterestRate"`
D180HourlyInterestRate string `json:"_180dHourlyInterestRate"`
D180DailyInterestRate string `json:"_180dDailyInterestRate"`
MinLimit string `json:"minLimit"`
MaxLimit string `json:"maxLimit"`
VipLevel int64 `json:"vipLevel"`
}
type CryptoLoanService ¶
type CryptoLoanService struct {
// contains filtered or unexported fields
}
func (*CryptoLoanService) Do ¶
func (s *CryptoLoanService) Do(ctx context.Context, opts ...RequestOption) (res *CryptoLoanableAssets, err error)
Do send request
type CryptoLoanableAssets ¶
type CryptoLoanableAssets struct {
Rows []CryptoLoanAsset `json:"rows"`
Total int64 `json:"total"`
}
type DeleteMarginSpecialKeyService ¶ added in v2.0.6
type DeleteMarginSpecialKeyService struct {
// contains filtered or unexported fields
}
func (*DeleteMarginSpecialKeyService) APIKey ¶ added in v2.0.6
func (s *DeleteMarginSpecialKeyService) APIKey(apiKey string) *DeleteMarginSpecialKeyService
APIKey sets the APIKey parameter.
func (*DeleteMarginSpecialKeyService) APIName ¶ added in v2.0.6
func (s *DeleteMarginSpecialKeyService) APIName(apiName string) *DeleteMarginSpecialKeyService
APIName sets the quoteAsset parameter.
func (*DeleteMarginSpecialKeyService) Do ¶ added in v2.0.6
func (s *DeleteMarginSpecialKeyService) Do(ctx context.Context, opts ...RequestOption) (err error)
Do sends the request.
func (*DeleteMarginSpecialKeyService) RecvWindow ¶ added in v2.0.6
func (s *DeleteMarginSpecialKeyService) RecvWindow(recvWindow int64) *DeleteMarginSpecialKeyService
RecvWindow sets the recvWindow parameter.
func (*DeleteMarginSpecialKeyService) Symbol ¶ added in v2.0.6
func (s *DeleteMarginSpecialKeyService) Symbol(symbol string) *DeleteMarginSpecialKeyService
Symbol sets the symbol parameter.
type DeliverySubAccount ¶ added in v2.0.4
type Deposit ¶
type Deposit struct {
Amount string `json:"amount"`
Coin string `json:"coin"`
Network string `json:"network"`
Status int `json:"status"`
Address string `json:"address"`
AddressTag string `json:"addressTag"`
TxID string `json:"txId"`
InsertTime int64 `json:"insertTime"`
TransferType int64 `json:"transferType"`
UnlockConfirm int64 `json:"unlockConfirm"`
ConfirmTimes string `json:"confirmTimes"`
}
Deposit represents a single deposit entry.
type DepthResponse ¶
type DepthResponse struct {
LastUpdateID int64 `json:"lastUpdateId"`
Bids []Bid `json:"bids"`
Asks []Ask `json:"asks"`
}
DepthResponse define depth info with bids and asks
type DepthService ¶
type DepthService struct {
// contains filtered or unexported fields
}
DepthService show depth info
func (*DepthService) Do ¶
func (s *DepthService) Do(ctx context.Context, opts ...RequestOption) (res *DepthResponse, err error)
Do send request
func (*DepthService) Symbol ¶
func (s *DepthService) Symbol(symbol string) *DepthService
Symbol set symbol
type DiscountInfo ¶ added in v2.0.4
type DiscountInfo struct {
EnabledForAccount bool `json:"enabledForAccount"`
EnabledForSymbol bool `json:"enabledForSymbol"`
DiscountAsset string `json:"discountAsset"`
Discount string `json:"discount"`
}
DiscountInfo defines BNB discount info
type DividendResponse ¶
type DividendResponse struct {
ID int64 `json:"id"`
Amount string `json:"amount"`
Asset string `json:"asset"`
Info string `json:"enInfo"`
Time int64 `json:"divTime"`
TranID int64 `json:"tranId"`
}
DividendResponse represents a response from AssetDividendService.
type DividendResponseWrapper ¶
type DividendResponseWrapper struct {
Rows *[]DividendResponse `json:"rows"`
Total int32 `json:"total"`
}
DividendResponseWrapper represents a wrapper around a AssetDividendService.
type DustResult ¶
type DustResult struct {
Total uint8 `json:"total"` //Total counts of exchange
UserAssetDribblets []UserAssetDribblet `json:"userAssetDribblets"`
}
DustResult represents the result of a DustLog API Call.
type DustTransferResponse ¶
type DustTransferResponse struct {
TotalServiceCharge string `json:"totalServiceCharge"`
TotalTransfered string `json:"totalTransfered"`
TransferResult []*DustTransferResult `json:"transferResult"`
}
DustTransferResponse represents the response from DustTransferService.
type DustTransferResult ¶
type DustTransferResult struct {
Amount string `json:"amount"`
FromAsset string `json:"fromAsset"`
OperateTime int64 `json:"operateTime"`
ServiceChargeAmount string `json:"serviceChargeAmount"`
TranID int64 `json:"tranId"`
TransferedAmount string `json:"transferedAmount"`
}
DustTransferResult represents the result of a dust transfer.
type DustTransferService ¶
type DustTransferService struct {
// contains filtered or unexported fields
}
DustTransferService convert dust assets to BNB. See https://binance-docs.github.io/apidocs/spot/en/#dust-transfer-user_data
func (*DustTransferService) Asset ¶
func (s *DustTransferService) Asset(asset []string) *DustTransferService
Asset set asset.
func (*DustTransferService) Do ¶
func (s *DustTransferService) Do(ctx context.Context) (withdraws *DustTransferResponse, err error)
Do sends the request.
type ExchangeInfo ¶
type ExchangeInfo struct {
Timezone string `json:"timezone"`
ServerTime int64 `json:"serverTime"`
RateLimits []RateLimit `json:"rateLimits"`
ExchangeFilters []interface{} `json:"exchangeFilters"`
Symbols []Symbol `json:"symbols"`
}
ExchangeInfo exchange info
type ExchangeInfoService ¶
type ExchangeInfoService struct {
// contains filtered or unexported fields
}
ExchangeInfoService exchange info service
func (*ExchangeInfoService) Do ¶
func (s *ExchangeInfoService) Do(ctx context.Context, opts ...RequestOption) (res *ExchangeInfo, err error)
Do send request
func (*ExchangeInfoService) Permissions ¶
func (s *ExchangeInfoService) Permissions(permissions ...string) *ExchangeInfoService
Permissions set permission
func (*ExchangeInfoService) ShowPermissionSets ¶ added in v2.0.4
func (s *ExchangeInfoService) ShowPermissionSets(showPermissionSets *bool) *ExchangeInfoService
ShowPermissionSets set showPermissionSets
func (*ExchangeInfoService) Symbol ¶
func (s *ExchangeInfoService) Symbol(symbol string) *ExchangeInfoService
Symbol set symbol
func (*ExchangeInfoService) Symbols ¶
func (s *ExchangeInfoService) Symbols(symbols ...string) *ExchangeInfoService
Symbols set symbol
type FLAdjustLTVDirection ¶
type FLAdjustLTVDirection string
const ( FLAdjustLTVAdditional FLAdjustLTVDirection = "ADDITIONAL" FLAdjustLTVReduced FLAdjustLTVDirection = "REDUCED" )
type FLAdjustLTVStatus ¶
type FLAdjustLTVStatus string
const ( FLAdjustLTVSucceeds FLAdjustLTVStatus = "Succeeds" FLAdjustLTVFailed FLAdjustLTVStatus = "Failed" FLAdjustLTVProcessing FLAdjustLTVStatus = "Processing" )
type FiatDepositWithdrawHistory ¶
type FiatDepositWithdrawHistory struct {
Code string `json:"code"`
Message string `json:"message"`
Data []FiatDepositWithdrawHistoryItem `json:"data"`
Total int32 `json:"total"`
Success bool `json:"success"`
}
FiatDepositWithdrawHistory define the fiat deposit/withdraw history
type FiatDepositWithdrawHistoryItem ¶
type FiatDepositWithdrawHistoryItem struct {
OrderNo string `json:"orderNo"`
FiatCurrency string `json:"fiatCurrency"`
IndicatedAmount string `json:"indicatedAmount"`
Amount string `json:"amount"`
TotalFee string `json:"totalFee"`
Method string `json:"method"`
Status string `json:"status"`
CreateTime int64 `json:"createTime"`
UpdateTime int64 `json:"updateTime"`
}
FiatDepositWithdrawHistoryItem define a fiat deposit/withdraw history item
type FiatDepositWithdrawHistoryService ¶
type FiatDepositWithdrawHistoryService struct {
// contains filtered or unexported fields
}
FiatDepositWithdrawHistoryService retrieve the fiat deposit/withdraw history
func (*FiatDepositWithdrawHistoryService) BeginTime ¶
func (s *FiatDepositWithdrawHistoryService) BeginTime(beginTime int64) *FiatDepositWithdrawHistoryService
BeginTime set beginTime
func (*FiatDepositWithdrawHistoryService) Do ¶
func (s *FiatDepositWithdrawHistoryService) Do(ctx context.Context, opts ...RequestOption) (*FiatDepositWithdrawHistory, error)
Do send request
func (*FiatDepositWithdrawHistoryService) EndTime ¶
func (s *FiatDepositWithdrawHistoryService) EndTime(endTime int64) *FiatDepositWithdrawHistoryService
EndTime set endTime
func (*FiatDepositWithdrawHistoryService) Page ¶
func (s *FiatDepositWithdrawHistoryService) Page(page int32) *FiatDepositWithdrawHistoryService
Page set page
func (*FiatDepositWithdrawHistoryService) Rows ¶
func (s *FiatDepositWithdrawHistoryService) Rows(rows int32) *FiatDepositWithdrawHistoryService
Rows set rows
func (*FiatDepositWithdrawHistoryService) TransactionType ¶
func (s *FiatDepositWithdrawHistoryService) TransactionType(transactionType TransactionType) *FiatDepositWithdrawHistoryService
TransactionType set transactionType
type FiatPaymentsHistory ¶
type FiatPaymentsHistory struct {
Code string `json:"code"`
Message string `json:"message"`
Data []FiatPaymentsHistoryItem `json:"data"`
Total int32 `json:"total"`
Success bool `json:"success"`
}
FiatPaymentsHistory define the fiat payments history
type FiatPaymentsHistoryItem ¶
type FiatPaymentsHistoryItem struct {
OrderNo string `json:"orderNo"`
SourceAmount string `json:"sourceAmount"`
FiatCurrency string `json:"fiatCurrency"`
ObtainAmount string `json:"obtainAmount"`
CryptoCurrency string `json:"cryptoCurrency"`
TotalFee string `json:"totalFee"`
Price string `json:"price"`
Status string `json:"status"`
CreateTime int64 `json:"createTime"`
UpdateTime int64 `json:"updateTime"`
}
FiatPaymentsHistoryItem define a fiat payments history item
type FiatPaymentsHistoryService ¶
type FiatPaymentsHistoryService struct {
// contains filtered or unexported fields
}
FiatPaymentsHistoryService retrieve the fiat payments history
func (*FiatPaymentsHistoryService) BeginTime ¶
func (s *FiatPaymentsHistoryService) BeginTime(beginTime int64) *FiatPaymentsHistoryService
BeginTime set beginTime
func (*FiatPaymentsHistoryService) Do ¶
func (s *FiatPaymentsHistoryService) Do(ctx context.Context, opts ...RequestOption) (*FiatPaymentsHistory, error)
Do send request
func (*FiatPaymentsHistoryService) EndTime ¶
func (s *FiatPaymentsHistoryService) EndTime(endTime int64) *FiatPaymentsHistoryService
EndTime set endTime
func (*FiatPaymentsHistoryService) Page ¶
func (s *FiatPaymentsHistoryService) Page(page int32) *FiatPaymentsHistoryService
Page set page
func (*FiatPaymentsHistoryService) Rows ¶
func (s *FiatPaymentsHistoryService) Rows(rows int32) *FiatPaymentsHistoryService
Rows set rows
func (*FiatPaymentsHistoryService) TransactionType ¶
func (s *FiatPaymentsHistoryService) TransactionType(transactionType TransactionType) *FiatPaymentsHistoryService
TransactionType set transactionType
type Fill ¶
type Fill struct {
TradeID int64 `json:"tradeId"`
Price string `json:"price"`
Quantity string `json:"qty"`
Commission string `json:"commission"`
CommissionAsset string `json:"commissionAsset"`
}
Fill may be returned in an array of fills in a CreateOrderResponse.
type FlexibleBorrowStatus ¶
type FlexibleBorrowStatus string
const ( FlexibleBorrowStatusSucceeds FlexibleBorrowStatus = "Succeeds" FlexibleBorrowStatusFailed FlexibleBorrowStatus = "Failed" FlexibleBorrowStatusProcessing FlexibleBorrowStatus = "Processing" )
type FlexibleLoanAdjustLTVService ¶
type FlexibleLoanAdjustLTVService struct {
// contains filtered or unexported fields
}
func (*FlexibleLoanAdjustLTVService) AdjustmentAmount ¶
func (s *FlexibleLoanAdjustLTVService) AdjustmentAmount(amt float64) *FlexibleLoanAdjustLTVService
AdjustmentAmount set adjustmentAmount
func (*FlexibleLoanAdjustLTVService) CollateralCoin ¶
func (s *FlexibleLoanAdjustLTVService) CollateralCoin(coll string) *FlexibleLoanAdjustLTVService
CollateralCoin set collateralCoin
func (*FlexibleLoanAdjustLTVService) Direction ¶
func (s *FlexibleLoanAdjustLTVService) Direction(direction FLAdjustLTVDirection) *FlexibleLoanAdjustLTVService
Direction set direction
func (*FlexibleLoanAdjustLTVService) Do ¶
func (s *FlexibleLoanAdjustLTVService) Do(ctx context.Context, opts ...RequestOption) (res *FlexibleLoanAdjustLTVResp, err error)
Do send request
func (*FlexibleLoanAdjustLTVService) LoanCoin ¶
func (s *FlexibleLoanAdjustLTVService) LoanCoin(loanCoin string) *FlexibleLoanAdjustLTVService
LoanCoin set loanCoin
type FlexibleLoanAsset ¶
type FlexibleLoanBorrowHistory ¶
type FlexibleLoanBorrowHistory struct {
LoanCoin string `json:"loanCoin"`
InitialLoanAmount string `json:"initialLoanAmount"`
CollateralCoin string `json:"collateralCoin"`
InitialCollateralAmount string `json:"initialCollateralAmount"`
BorrowTime interface{} `json:"borrowTime"`
Status FlexibleBorrowStatus `json:"status"`
}
type FlexibleLoanBorrowResp ¶
type FlexibleLoanBorrowResp struct {
LoanCoin string `json:"loanCoin"`
LoanAmount string `json:"loanAmount"`
CollateralCoin string `json:"collateralCoin"`
CollateralAmount string `json:"collateralAmount"`
Status FlexibleBorrowStatus `json:"status"`
}
type FlexibleLoanBorrowService ¶
type FlexibleLoanBorrowService struct {
// contains filtered or unexported fields
}
func (*FlexibleLoanBorrowService) CollateralAmount ¶
func (s *FlexibleLoanBorrowService) CollateralAmount(collAmt float64) *FlexibleLoanBorrowService
CollateralAmount set collateralAmount
func (*FlexibleLoanBorrowService) CollateralCoin ¶
func (s *FlexibleLoanBorrowService) CollateralCoin(coll string) *FlexibleLoanBorrowService
CollateralCoin set collateralCoin
func (*FlexibleLoanBorrowService) Do ¶
func (s *FlexibleLoanBorrowService) Do(ctx context.Context, opts ...RequestOption) (res *FlexibleLoanBorrowResp, err error)
Do send request
func (*FlexibleLoanBorrowService) LoanAmount ¶
func (s *FlexibleLoanBorrowService) LoanAmount(loanAmount float64) *FlexibleLoanBorrowService
LoanAmount set loanAmount
func (*FlexibleLoanBorrowService) LoanCoin ¶
func (s *FlexibleLoanBorrowService) LoanCoin(loanCoin string) *FlexibleLoanBorrowService
LoanCoin set loanCoin
type FlexibleLoanRepayHistory ¶
type FlexibleLoanRepayHistory struct {
LoanCoin string `json:"loanCoin"`
RepayAmount string `json:"repayAmount"`
CollateralCoin string `json:"collateralCoin"`
CollateralReturn string `json:"collateralReturn"`
RepayTime interface{} `json:"repayTime"`
RepayStatus FlexibleLoanRepayStatus `json:"repayStatus"`
}
type FlexibleLoanRepayResp ¶
type FlexibleLoanRepayResp struct {
LoanCoin string `json:"loanCoin"`
CollateralCoin string `json:"collateralCoin"`
RemainingDebt string `json:"remainingDebt"`
RemainingCollateral string `json:"remainingCollateral"`
FullRepayment bool `json:"fullRepayment"`
CurrentLTV string `json:"currentLTV"`
RepayStatus FlexibleLoanRepayStatus `json:"repayStatus"`
}
type FlexibleLoanRepayService ¶
type FlexibleLoanRepayService struct {
// contains filtered or unexported fields
}
func (*FlexibleLoanRepayService) CollateralCoin ¶
func (s *FlexibleLoanRepayService) CollateralCoin(coll string) *FlexibleLoanRepayService
CollateralCoin set collateralCoin
func (*FlexibleLoanRepayService) CollateralReturn ¶
func (s *FlexibleLoanRepayService) CollateralReturn(collReturn bool) *FlexibleLoanRepayService
CollateralReturn set collateralReturn
func (*FlexibleLoanRepayService) Do ¶
func (s *FlexibleLoanRepayService) Do(ctx context.Context, opts ...RequestOption) (res *FlexibleLoanRepayResp, err error)
Do send request
func (*FlexibleLoanRepayService) FullRepayment ¶
func (s *FlexibleLoanRepayService) FullRepayment(fullRepayment bool) *FlexibleLoanRepayService
FullRepayment set fullRepayment
func (*FlexibleLoanRepayService) LoanCoin ¶
func (s *FlexibleLoanRepayService) LoanCoin(loanCoin string) *FlexibleLoanRepayService
LoanCoin set loanCoin
func (*FlexibleLoanRepayService) RepayAmount ¶
func (s *FlexibleLoanRepayService) RepayAmount(amt float64) *FlexibleLoanRepayService
RepayAmount set repayAmount
type FlexibleLoanRepayStatus ¶
type FlexibleLoanRepayStatus string
const ( FlexibleLoanRepaid FlexibleLoanRepayStatus = "Repaid" FlexibleLoanRepaying FlexibleLoanRepayStatus = "Repaying" FlexibleLoanFailed FlexibleLoanRepayStatus = "Failed" )
type FlexibleLoanableAssets ¶
type FlexibleLoanableAssets struct {
Rows []FlexibleLoanAsset `json:"rows"`
Total int64 `json:"total"`
}
type FlexibleProductPosition ¶ added in v2.0.1
type FlexibleProductPosition struct {
TotalAmount string `json:"totalAmount,omitempty"`
TierAnnualPercentageRate map[string]float64 `json:"tierAnnualPercentageRate,omitempty"`
LatestAnnualPercentageRate string `json:"latestAnnualPercentageRate,omitempty"`
YesterdayAirdropPercentageRate string `json:"yesterdayAirdropPercentageRate,omitempty"`
Asset string `json:"asset,omitempty"`
AirDropAsset string `json:"airDropAsset,omitempty"`
CanRedeem bool `json:"canRedeem,omitempty"`
CollateralAmount string `json:"collateralAmount,omitempty"`
ProductID string `json:"productId,omitempty"`
YesterdayRealTimeRewards string `json:"yesterdayRealTimeRewards,omitempty"`
CumulativeBonusRewards string `json:"cumulativeBonusRewards,omitempty"`
CumulativeRealTimeRewards string `json:"cumulativeRealTimeRewards,omitempty"`
CumulativeTotalRewards string `json:"cumulativeTotalRewards,omitempty"`
AutoSubscribe bool `json:"autoSubscribe,omitempty"`
}
type FlexibleRewardHistory ¶ added in v2.0.1
type FlexibleRewardHistoryResponse ¶ added in v2.0.1
type FlexibleRewardHistoryResponse struct {
Rows []FlexibleRewardHistory `json:"rows,omitempty"`
Total int `json:"total,omitempty"`
}
type FlexibleRewardHistoryService ¶ added in v2.0.1
type FlexibleRewardHistoryService struct {
// contains filtered or unexported fields
}
https://binance-docs.github.io/apidocs/spot/en/#get-flexible-rewards-history-user_data
func (*FlexibleRewardHistoryService) Asset ¶ added in v2.0.1
func (s *FlexibleRewardHistoryService) Asset(asset string) *FlexibleRewardHistoryService
func (*FlexibleRewardHistoryService) Current ¶ added in v2.0.1
func (s *FlexibleRewardHistoryService) Current(current int64) *FlexibleRewardHistoryService
func (*FlexibleRewardHistoryService) Do ¶ added in v2.0.1
func (s *FlexibleRewardHistoryService) Do(ctx context.Context, opts ...RequestOption) (FlexibleRewardHistoryResponse, error)
func (*FlexibleRewardHistoryService) EndTime ¶ added in v2.0.1
func (s *FlexibleRewardHistoryService) EndTime(endTime int64) *FlexibleRewardHistoryService
func (*FlexibleRewardHistoryService) ProductID ¶ added in v2.0.1
func (s *FlexibleRewardHistoryService) ProductID(productID string) *FlexibleRewardHistoryService
func (*FlexibleRewardHistoryService) Size ¶ added in v2.0.1
func (s *FlexibleRewardHistoryService) Size(size int64) *FlexibleRewardHistoryService
func (*FlexibleRewardHistoryService) StartTime ¶ added in v2.0.1
func (s *FlexibleRewardHistoryService) StartTime(startTime int64) *FlexibleRewardHistoryService
func (*FlexibleRewardHistoryService) Type ¶ added in v2.0.2
func (s *FlexibleRewardHistoryService) Type(typ string) *FlexibleRewardHistoryService
type FundsDetail ¶
type Future ¶ added in v2.0.6
type Future struct {
Response <-chan GenericWSResponse // receive exactly one value
}
Future holds the response channel for an outstanding request.
type FuturesAlgoOrder ¶ added in v2.0.4
type FuturesAlgoOrder struct {
//策略订单ID
AlgoId int64 `json:"algoId"`
Symbol string `json:"symbol"`
Side SideType `json:"side"`
PositionSide futures.PositionSideType `json:"positionSide"`
TotalQuantity string `json:"totalQty"`
ExecutedQuantity string `json:"executedQty"`
ExecutedAmount string `json:"executedAmt"`
AvgPrice string `json:"avgPrice"`
ClientAlgoId string `json:"clientAlgoId"`
BookTime int64 `json:"bookTime"`
EndTime int64 `json:"endTime"`
AlgoStatus FuturesAlgoOrderStatusType `json:"algoStatus"`
AlgoType FuturesAlgoType `json:"algoType"`
Urgency FuturesAlgoUrgencyType `json:"urgency"`
}
type FuturesAlgoOrderStatusType ¶ added in v2.0.4
type FuturesAlgoOrderStatusType string
FutureAlgoOrderStatusType define future algo order status
type FuturesAlgoSubOrder ¶ added in v2.0.4
type FuturesAlgoSubOrder struct {
AlgoId int64 `json:"algoId"`
OrderId int64 `json:"orderId"`
Symbol string `json:"symbol"`
Side SideType `json:"side"`
OrderStatus OrderStatusType `json:"orderStatus"`
ExecutedQuantity string `json:"executedQty"`
ExecutedAmount string `json:"executedAmt"`
FeeAmount string `json:"feeAmt"`
FeeAsset string `json:"feeAsset"`
AvgPrice string `json:"avgPrice"`
BookTime int64 `json:"bookTime"`
SubId int64 `json:"subId"`
TimeInForce TimeInForceType `json:"timeInForce"`
OriginQuantity string `json:"origQty"`
}
FutureAlgoSubOrder definen sub order of future algo order
type FuturesAlgoType ¶ added in v2.0.4
type FuturesAlgoType string
FutureAlgoType define future algo types
type FuturesAlgoUrgencyType ¶ added in v2.0.4
type FuturesAlgoUrgencyType string
FutureAlgoUrgencyType define future algo urgency type
type FuturesAsset ¶ added in v2.0.4
type FuturesAsset struct {
Asset string `json:"asset"`
InitialMargin string `json:"initialMargin"`
MaintenanceMargin string `json:"maintenanceMargin"`
MarginBalance string `json:"marginBalance"`
MaxWithdrawAmount string `json:"maxWithdrawAmount"`
OpenOrderInitialMargin string `json:"openOrderInitialMargin"`
PositionInitialMargin string `json:"positionInitialMargin"`
UnrealizedProfit string `json:"unrealizedProfit"`
WalletBalance string `json:"walletBalance"`
}
type FuturesOrderBookHistory ¶ added in v2.0.4
type FuturesOrderBookHistory struct {
Data []*FuturesOrderBookHistoryItem `json:"data"`
}
type FuturesOrderBookHistoryDataType ¶ added in v2.0.4
type FuturesOrderBookHistoryDataType string
FuturesOrderBookHistoryDataType define the futures order book history data types
type FuturesOrderBookHistoryItem ¶ added in v2.0.4
type FuturesOrderBookHistoryService ¶ added in v2.0.4
type FuturesOrderBookHistoryService struct {
// contains filtered or unexported fields
}
func (*FuturesOrderBookHistoryService) DataType ¶ added in v2.0.4
func (s *FuturesOrderBookHistoryService) DataType(dataType FuturesOrderBookHistoryDataType) *FuturesOrderBookHistoryService
func (*FuturesOrderBookHistoryService) Do ¶ added in v2.0.4
func (s *FuturesOrderBookHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *FuturesOrderBookHistory, err error)
func (*FuturesOrderBookHistoryService) EndTime ¶ added in v2.0.4
func (s *FuturesOrderBookHistoryService) EndTime(endTime int64) *FuturesOrderBookHistoryService
func (*FuturesOrderBookHistoryService) StartTime ¶ added in v2.0.4
func (s *FuturesOrderBookHistoryService) StartTime(startTime int64) *FuturesOrderBookHistoryService
func (*FuturesOrderBookHistoryService) Symbol ¶ added in v2.0.4
func (s *FuturesOrderBookHistoryService) Symbol(symbol string) *FuturesOrderBookHistoryService
type FuturesSubAccount ¶ added in v2.0.4
type FuturesSubAccount struct {
Email string `json:"email"`
TotalInitialMargin string `json:"totalInitialMargin"`
TotalMaintenanceMargin string `json:"totalMaintenanceMargin"`
TotalMarginBalance string `json:"totalMarginBalance"`
TotalOpenOrderInitialMargin string `json:"totalOpenOrderInitialMargin"`
TotalPositionInitialMargin string `json:"totalPositionInitialMargin"`
TotalUnrealizedProfit string `json:"totalUnrealizedProfit"`
TotalWalletBalance string `json:"totalWalletBalance"`
Asset string `json:"asset"`
}
type FuturesTransfer ¶
type FuturesTransfer struct {
Asset string `json:"asset"`
TranID int64 `json:"tranId"`
Amount string `json:"amount"`
Type int64 `json:"type"`
Timestamp int64 `json:"timestamp"`
Status FuturesTransferStatusType `json:"status"`
}
FuturesTransfer define futures transfer history item
type FuturesTransferHistory ¶
type FuturesTransferHistory struct {
Rows []FuturesTransfer `json:"rows"`
Total int64 `json:"total"`
}
FuturesTransferHistory define futures transfer history
type FuturesTransferService ¶
type FuturesTransferService struct {
// contains filtered or unexported fields
}
FuturesTransferService transfer asset between spot account and futures account
func (*FuturesTransferService) Amount ¶
func (s *FuturesTransferService) Amount(amount string) *FuturesTransferService
Amount the amount to be transferred
func (*FuturesTransferService) Asset ¶
func (s *FuturesTransferService) Asset(asset string) *FuturesTransferService
Asset set asset being transferred, e.g., BTC
func (*FuturesTransferService) Do ¶
func (s *FuturesTransferService) Do(ctx context.Context, opts ...RequestOption) (res *TransactionResponse, err error)
Do send request
func (*FuturesTransferService) Type ¶
func (s *FuturesTransferService) Type(transferType FuturesTransferType) *FuturesTransferService
Type 1: transfer from spot account to futures account 2: transfer from futures account to spot account
type FuturesTransferStatusType ¶
type FuturesTransferStatusType string
FuturesTransferStatusType define futures transfer status type
type FuturesTransferType ¶
type FuturesTransferType int
FuturesTransferType define futures transfer type
type FuturesUserAsset ¶ added in v2.0.4
type FuturesUserPosition ¶ added in v2.0.4
type GenericWSClient ¶ added in v2.0.6
type GenericWSClient struct {
// contains filtered or unexported fields
}
func NewGenericWSClient ¶ added in v2.0.6
func NewGenericWSClient(wsURL string, header http.Header, logger Logger, blocker *RateLimitBlocker) (*GenericWSClient, error)
func (*GenericWSClient) Close ¶ added in v2.0.6
func (c *GenericWSClient) Close() error
func (*GenericWSClient) SendRequestAsync ¶ added in v2.0.6
func (c *GenericWSClient) SendRequestAsync(apiKey, apiSecret, keyType, method string, params map[string]interface{}) (*Future, error)
SendRequestAsync returns a Future you can wait on later. The future will deliver exactly one GenericWSResponse.
func (*GenericWSClient) Wait ¶ added in v2.0.6
func (c *GenericWSClient) Wait()
type GenericWSResponse ¶ added in v2.0.6
type GenericWSResponse struct {
ID string `json:"id"`
Status int `json:"status"`
Result json.RawMessage `json:"result,omitempty"`
RateLimits []RateLimit `json:"rateLimits,omitempty"`
Error *RPCError `json:"error,omitempty"`
}
func (GenericWSResponse) ParseJSON ¶ added in v2.0.6
func (r GenericWSResponse) ParseJSON(out interface{}) error
type GetAPIKeyPermission ¶
type GetAPIKeyPermission struct {
// contains filtered or unexported fields
}
GetAPIKeyPermission get API Key permission info
func (*GetAPIKeyPermission) Do ¶
func (s *GetAPIKeyPermission) Do(ctx context.Context, opts ...RequestOption) (res *APIKeyPermission, err error)
Do send request
type GetAccountService ¶
type GetAccountService struct {
// contains filtered or unexported fields
}
GetAccountService get account info
func (*GetAccountService) Do ¶
func (s *GetAccountService) Do(ctx context.Context, opts ...RequestOption) (res *Account, err error)
Do send request
func (*GetAccountService) OmitZeroBalances ¶ added in v2.0.4
func (s *GetAccountService) OmitZeroBalances(v bool) *GetAccountService
OmitZeroBalances sets the omitZeroBalances parameter on the request. When set to true, the API will return the non-zero balances of an account.
type GetAccountSnapshotService ¶
type GetAccountSnapshotService struct {
// contains filtered or unexported fields
}
GetAccountSnapshotService all account orders; active, canceled, or filled
func (*GetAccountSnapshotService) Do ¶
func (s *GetAccountSnapshotService) Do(ctx context.Context, opts ...RequestOption) (res *Snapshot, err error)
Do send request
func (*GetAccountSnapshotService) EndTime ¶
func (s *GetAccountSnapshotService) EndTime(endTime int64) *GetAccountSnapshotService
EndTime set endtime
func (*GetAccountSnapshotService) Limit ¶
func (s *GetAccountSnapshotService) Limit(limit int) *GetAccountSnapshotService
Limit set limit
func (*GetAccountSnapshotService) StartTime ¶
func (s *GetAccountSnapshotService) StartTime(startTime int64) *GetAccountSnapshotService
StartTime set starttime
func (*GetAccountSnapshotService) Type ¶
func (s *GetAccountSnapshotService) Type(accountType string) *GetAccountSnapshotService
Type set account type ("SPOT", "MARGIN", "FUTURES")
type GetAllCoinsInfoService ¶
type GetAllCoinsInfoService struct {
// contains filtered or unexported fields
}
type GetAllLiquidityPoolService ¶
type GetAllLiquidityPoolService struct {
// contains filtered or unexported fields
}
GetAllSwapPoolService get swap pool market data
func (*GetAllLiquidityPoolService) Do ¶
func (s *GetAllLiquidityPoolService) Do(ctx context.Context, opts ...RequestOption) ([]*LiquidityPool, error)
Do send request
type GetAllMarginAssetsService ¶
type GetAllMarginAssetsService struct {
// contains filtered or unexported fields
}
GetAllMarginAssetsService get margin pair info
func (*GetAllMarginAssetsService) Do ¶
func (s *GetAllMarginAssetsService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginAsset, err error)
Do send request
type GetAssetDetailService ¶
type GetAssetDetailService struct {
// contains filtered or unexported fields
}
GetAssetDetailService fetches all asset detail.
See https://binance-docs.github.io/apidocs/spot/en/#asset-detail-user_data
func (*GetAssetDetailService) Asset ¶
func (s *GetAssetDetailService) Asset(asset string) *GetAssetDetailService
Asset sets the asset parameter.
func (*GetAssetDetailService) Do ¶
func (s *GetAssetDetailService) Do(ctx context.Context) (res map[string]AssetDetail, err error)
Do sends the request.
type GetBNBBurnService ¶
type GetBNBBurnService struct {
// contains filtered or unexported fields
}
GetBNBBurnService get BNB Burn on spot trade and margin interest
func (*GetBNBBurnService) Do ¶
func (s *GetBNBBurnService) Do(ctx context.Context, opts ...RequestOption) (*BNBBurn, error)
Do send request
type GetCommissionRatesService ¶ added in v2.0.4
type GetCommissionRatesService struct {
// contains filtered or unexported fields
}
GetCommissionRatesService queries user's commission rates for a given symbol
func (*GetCommissionRatesService) Do ¶ added in v2.0.4
func (s *GetCommissionRatesService) Do(ctx context.Context, opts ...RequestOption) (res *CommissionRatesResponse, err error)
Do sends the request
func (*GetCommissionRatesService) Symbol ¶ added in v2.0.4
func (s *GetCommissionRatesService) Symbol(symbol string) *GetCommissionRatesService
Symbol sets the trading symbol (e.g., BTCUSDT)
type GetDepositAddressResponse ¶
type GetDepositAddressResponse struct {
Address string `json:"address"`
Tag string `json:"tag"`
Coin string `json:"coin"`
URL string `json:"url"`
}
GetDepositAddressResponse represents a response from GetDepositsAddressService.
type GetDepositsAddressService ¶
type GetDepositsAddressService struct {
// contains filtered or unexported fields
}
GetDepositsAddressService retrieves the details of a deposit address.
See https://binance-docs.github.io/apidocs/spot/en/#deposit-address-supporting-network-user_data
func (*GetDepositsAddressService) Coin ¶
func (s *GetDepositsAddressService) Coin(coin string) *GetDepositsAddressService
Coin sets the coin parameter (MANDATORY).
func (*GetDepositsAddressService) Do ¶
func (s *GetDepositsAddressService) Do(ctx context.Context, opts ...RequestOption) (*GetDepositAddressResponse, error)
Do sends the request.
func (*GetDepositsAddressService) Network ¶
func (s *GetDepositsAddressService) Network(network string) *GetDepositsAddressService
Network sets the network parameter.
type GetFlexibleLoanAssetsDataService ¶
type GetFlexibleLoanAssetsDataService struct {
// contains filtered or unexported fields
}
func (*GetFlexibleLoanAssetsDataService) Do ¶
func (s *GetFlexibleLoanAssetsDataService) Do(ctx context.Context, opts ...RequestOption) (res *FlexibleLoanableAssets, err error)
Do send request
type GetFlexibleLoanBorrowHistoryResp ¶
type GetFlexibleLoanBorrowHistoryResp struct {
Rows []FlexibleLoanBorrowHistory `json:"rows"`
Total int64 `json:"total"`
}
type GetFlexibleLoanBorrowHistoryService ¶
type GetFlexibleLoanBorrowHistoryService struct {
// contains filtered or unexported fields
}
func (*GetFlexibleLoanBorrowHistoryService) CollateralCoin ¶
func (s *GetFlexibleLoanBorrowHistoryService) CollateralCoin(coll string) *GetFlexibleLoanBorrowHistoryService
CollateralCoin set collateralCoin
func (*GetFlexibleLoanBorrowHistoryService) Current ¶
func (s *GetFlexibleLoanBorrowHistoryService) Current(current int64) *GetFlexibleLoanBorrowHistoryService
Current set current
func (*GetFlexibleLoanBorrowHistoryService) Do ¶
func (s *GetFlexibleLoanBorrowHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *GetFlexibleLoanBorrowHistoryResp, err error)
Do send request
func (*GetFlexibleLoanBorrowHistoryService) EndTime ¶
func (s *GetFlexibleLoanBorrowHistoryService) EndTime(endTime int64) *GetFlexibleLoanBorrowHistoryService
EndTime set endTime
func (*GetFlexibleLoanBorrowHistoryService) Limit ¶
func (s *GetFlexibleLoanBorrowHistoryService) Limit(limit int64) *GetFlexibleLoanBorrowHistoryService
Limit set limit
func (*GetFlexibleLoanBorrowHistoryService) LoanCoin ¶
func (s *GetFlexibleLoanBorrowHistoryService) LoanCoin(loanCoin string) *GetFlexibleLoanBorrowHistoryService
LoanCoin set loanCoin
func (*GetFlexibleLoanBorrowHistoryService) StartTime ¶
func (s *GetFlexibleLoanBorrowHistoryService) StartTime(startTime int64) *GetFlexibleLoanBorrowHistoryService
StartTime set startTime
type GetFlexibleLoanOngoingOrdersResp ¶
type GetFlexibleLoanOngoingOrdersResp struct {
Rows []FlexibleLoanOngoingOrder `json:"rows"`
Total int64 `json:"total"`
}
type GetFlexibleLoanOngoingOrdersService ¶
type GetFlexibleLoanOngoingOrdersService struct {
// contains filtered or unexported fields
}
func (*GetFlexibleLoanOngoingOrdersService) CollateralCoin ¶
func (s *GetFlexibleLoanOngoingOrdersService) CollateralCoin(coll string) *GetFlexibleLoanOngoingOrdersService
CollateralCoin set collateralCoin
func (*GetFlexibleLoanOngoingOrdersService) Current ¶
func (s *GetFlexibleLoanOngoingOrdersService) Current(current int64) *GetFlexibleLoanOngoingOrdersService
Current set current
func (*GetFlexibleLoanOngoingOrdersService) Do ¶
func (s *GetFlexibleLoanOngoingOrdersService) Do(ctx context.Context, opts ...RequestOption) (res *GetFlexibleLoanOngoingOrdersResp, err error)
Do send request
func (*GetFlexibleLoanOngoingOrdersService) Limit ¶
func (s *GetFlexibleLoanOngoingOrdersService) Limit(limit int64) *GetFlexibleLoanOngoingOrdersService
Limit set limit
func (*GetFlexibleLoanOngoingOrdersService) LoanCoin ¶
func (s *GetFlexibleLoanOngoingOrdersService) LoanCoin(loanCoin string) *GetFlexibleLoanOngoingOrdersService
LoanCoin set loanCoin
type GetFlexibleLoanRepayHistoryResp ¶
type GetFlexibleLoanRepayHistoryResp struct {
Rows []FlexibleLoanRepayHistory `json:"rows"`
Total int64 `json:"total"`
}
type GetFlexibleLoanRepayHistoryService ¶
type GetFlexibleLoanRepayHistoryService struct {
// contains filtered or unexported fields
}
func (*GetFlexibleLoanRepayHistoryService) CollateralCoin ¶
func (s *GetFlexibleLoanRepayHistoryService) CollateralCoin(coll string) *GetFlexibleLoanRepayHistoryService
CollateralCoin set collateralCoin
func (*GetFlexibleLoanRepayHistoryService) Current ¶
func (s *GetFlexibleLoanRepayHistoryService) Current(current int64) *GetFlexibleLoanRepayHistoryService
Current set current
func (*GetFlexibleLoanRepayHistoryService) Do ¶
func (s *GetFlexibleLoanRepayHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *GetFlexibleLoanRepayHistoryResp, err error)
Do send request
func (*GetFlexibleLoanRepayHistoryService) EndTime ¶
func (s *GetFlexibleLoanRepayHistoryService) EndTime(endTime int64) *GetFlexibleLoanRepayHistoryService
EndTime set endTime
func (*GetFlexibleLoanRepayHistoryService) Limit ¶
func (s *GetFlexibleLoanRepayHistoryService) Limit(limit int64) *GetFlexibleLoanRepayHistoryService
Limit set limit
func (*GetFlexibleLoanRepayHistoryService) LoanCoin ¶
func (s *GetFlexibleLoanRepayHistoryService) LoanCoin(loanCoin string) *GetFlexibleLoanRepayHistoryService
LoanCoin set loanCoin
func (*GetFlexibleLoanRepayHistoryService) StartTime ¶
func (s *GetFlexibleLoanRepayHistoryService) StartTime(startTime int64) *GetFlexibleLoanRepayHistoryService
StartTime set startTime
type GetFlexibleProductPositionResponse ¶ added in v2.0.1
type GetFlexibleProductPositionResponse struct {
Rows []FlexibleProductPosition `json:"rows,omitempty"`
Total int `json:"total,omitempty"`
}
type GetFlexibleProductPositionService ¶ added in v2.0.1
type GetFlexibleProductPositionService struct {
// contains filtered or unexported fields
}
GetFlexibleProductPositionService: https://binance-docs.github.io/apidocs/spot/en/#get-flexible-product-position-user_data
func (*GetFlexibleProductPositionService) Current ¶ added in v2.0.1
func (s *GetFlexibleProductPositionService) Current(current int64) *GetFlexibleProductPositionService
Currently querying the page. Start from 1. Default:1
func (*GetFlexibleProductPositionService) Do ¶ added in v2.0.1
func (s *GetFlexibleProductPositionService) Do(ctx context.Context, opts ...RequestOption) (GetFlexibleProductPositionResponse, error)
func (*GetFlexibleProductPositionService) ProductId ¶ added in v2.0.1
func (s *GetFlexibleProductPositionService) ProductId(productId string) *GetFlexibleProductPositionService
func (*GetFlexibleProductPositionService) Size ¶ added in v2.0.1
func (s *GetFlexibleProductPositionService) Size(size int64) *GetFlexibleProductPositionService
Default:10, Max:100
type GetFuturesAlgoSubOrdersResponse ¶ added in v2.0.4
type GetFuturesAlgoSubOrdersResponse struct {
Total int64 `json:"total"`
ExecutedQuantity string `json:"executedQty"`
ExecutedAmount string `json:"executedAmt"`
SubOrders []*FuturesAlgoSubOrder `json:"subOrders"`
}
type GetFuturesAlgoSubOrdersService ¶ added in v2.0.4
type GetFuturesAlgoSubOrdersService struct {
// contains filtered or unexported fields
}
GetFuturesAlgoSubOrdersService get future algo sub orders
func (*GetFuturesAlgoSubOrdersService) AlgoId ¶ added in v2.0.4
func (s *GetFuturesAlgoSubOrdersService) AlgoId(algoId int64) *GetFuturesAlgoSubOrdersService
AlgoId set algoId
func (*GetFuturesAlgoSubOrdersService) Do ¶ added in v2.0.4
func (s *GetFuturesAlgoSubOrdersService) Do(ctx context.Context, opts ...RequestOption) (res *GetFuturesAlgoSubOrdersResponse, err error)
Do send request
func (*GetFuturesAlgoSubOrdersService) Page ¶ added in v2.0.4
func (s *GetFuturesAlgoSubOrdersService) Page(page int) *GetFuturesAlgoSubOrdersService
Page set page
func (*GetFuturesAlgoSubOrdersService) PageSize ¶ added in v2.0.4
func (s *GetFuturesAlgoSubOrdersService) PageSize(pageSize int) *GetFuturesAlgoSubOrdersService
PageSize set pageSize
type GetIsolatedMarginAccountService ¶
type GetIsolatedMarginAccountService struct {
// contains filtered or unexported fields
}
GetIsolatedMarginAccountService gets isolated margin account info
func (*GetIsolatedMarginAccountService) Do ¶
func (s *GetIsolatedMarginAccountService) Do(ctx context.Context, opts ...RequestOption) (res *IsolatedMarginAccount, err error)
Do send request
func (*GetIsolatedMarginAccountService) Symbols ¶
func (s *GetIsolatedMarginAccountService) Symbols(symbols ...string) *GetIsolatedMarginAccountService
Symbols set symbols to the isolated margin account
type GetIsolatedMarginAllPairsService ¶
type GetIsolatedMarginAllPairsService struct {
// contains filtered or unexported fields
}
GetIsolatedMarginAllPairsService get isolated margin pair info
func (*GetIsolatedMarginAllPairsService) Do ¶
func (s *GetIsolatedMarginAllPairsService) Do(ctx context.Context, opts ...RequestOption) (res []*IsolatedMarginAllPair, err error)
Do send request
type GetLiquidityPoolDetailService ¶
type GetLiquidityPoolDetailService struct {
// contains filtered or unexported fields
}
GetLiquidityPoolDetailService get swap pool detail by pool id
func (*GetLiquidityPoolDetailService) Do ¶
func (s *GetLiquidityPoolDetailService) Do(ctx context.Context) ([]*LiquidityPoolDetail, error)
Do sends the request.
func (*GetLiquidityPoolDetailService) PoolId ¶
func (s *GetLiquidityPoolDetailService) PoolId(poolId int64) *GetLiquidityPoolDetailService
PoolId set poolId
type GetLockedProductPositionResponse ¶ added in v2.0.1
type GetLockedProductPositionResponse struct {
Rows []LockedProductPosition `json:"rows,omitempty"`
Total int `json:"total,omitempty"`
}
type GetLockedProductPositionService ¶ added in v2.0.1
type GetLockedProductPositionService struct {
// contains filtered or unexported fields
}
https://binance-docs.github.io/apidocs/spot/en/#get-locked-product-position-user_data
func (*GetLockedProductPositionService) Asset ¶ added in v2.0.1
func (s *GetLockedProductPositionService) Asset(asset string) *GetLockedProductPositionService
func (*GetLockedProductPositionService) Current ¶ added in v2.0.1
func (s *GetLockedProductPositionService) Current(current int64) *GetLockedProductPositionService
Currently querying the page. Start from 1. Default:1
func (*GetLockedProductPositionService) Do ¶ added in v2.0.1
func (s *GetLockedProductPositionService) Do(ctx context.Context, opts ...RequestOption) (GetLockedProductPositionResponse, error)
func (*GetLockedProductPositionService) PositionID ¶ added in v2.0.1
func (s *GetLockedProductPositionService) PositionID(positionId string) *GetLockedProductPositionService
func (*GetLockedProductPositionService) ProductId ¶ added in v2.0.1
func (s *GetLockedProductPositionService) ProductId(productId string) *GetLockedProductPositionService
func (*GetLockedProductPositionService) Size ¶ added in v2.0.1
func (s *GetLockedProductPositionService) Size(size int64) *GetLockedProductPositionService
Default:10, Max:100
type GetMarginAccountService ¶
type GetMarginAccountService struct {
// contains filtered or unexported fields
}
GetMarginAccountService get margin account info
func (*GetMarginAccountService) Do ¶
func (s *GetMarginAccountService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccount, err error)
Do send request
type GetMarginAllPairsService ¶
type GetMarginAllPairsService struct {
// contains filtered or unexported fields
}
GetMarginAllPairsService get margin pair info
func (*GetMarginAllPairsService) Do ¶
func (s *GetMarginAllPairsService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginAllPair, err error)
Do send request
type GetMarginAssetService ¶
type GetMarginAssetService struct {
// contains filtered or unexported fields
}
GetMarginAssetService get margin asset info
func (*GetMarginAssetService) Asset ¶
func (s *GetMarginAssetService) Asset(asset string) *GetMarginAssetService
Asset set asset
func (*GetMarginAssetService) Do ¶
func (s *GetMarginAssetService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAsset, err error)
Do send request
type GetMarginOrderService ¶
type GetMarginOrderService struct {
// contains filtered or unexported fields
}
GetMarginOrderService get an order
func (*GetMarginOrderService) Do ¶
func (s *GetMarginOrderService) Do(ctx context.Context, opts ...RequestOption) (res *Order, err error)
Do send request
func (*GetMarginOrderService) IsIsolated ¶
func (s *GetMarginOrderService) IsIsolated(isIsolated bool) *GetMarginOrderService
IsIsolated set isIsolated
func (*GetMarginOrderService) OrderID ¶
func (s *GetMarginOrderService) OrderID(orderID int64) *GetMarginOrderService
OrderID set orderID
func (*GetMarginOrderService) OrigClientOrderID ¶
func (s *GetMarginOrderService) OrigClientOrderID(origClientOrderID string) *GetMarginOrderService
OrigClientOrderID set origClientOrderID
func (*GetMarginOrderService) Symbol ¶
func (s *GetMarginOrderService) Symbol(symbol string) *GetMarginOrderService
Symbol set symbol
type GetMarginPairService ¶
type GetMarginPairService struct {
// contains filtered or unexported fields
}
GetMarginPairService get margin pair info
func (*GetMarginPairService) Do ¶
func (s *GetMarginPairService) Do(ctx context.Context, opts ...RequestOption) (res *MarginPair, err error)
Do send request
func (*GetMarginPairService) Symbol ¶
func (s *GetMarginPairService) Symbol(symbol string) *GetMarginPairService
Symbol set symbol
type GetMarginPriceIndexService ¶
type GetMarginPriceIndexService struct {
// contains filtered or unexported fields
}
GetMarginPriceIndexService get margin price index
func (*GetMarginPriceIndexService) Do ¶
func (s *GetMarginPriceIndexService) Do(ctx context.Context, opts ...RequestOption) (res *MarginPriceIndex, err error)
Do send request
func (*GetMarginPriceIndexService) Symbol ¶
func (s *GetMarginPriceIndexService) Symbol(symbol string) *GetMarginPriceIndexService
Symbol set symbol
type GetMaxBorrowableService ¶
type GetMaxBorrowableService struct {
// contains filtered or unexported fields
}
GetMaxBorrowableService get max borrowable of asset https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Max-Borrow
func (*GetMaxBorrowableService) Asset ¶
func (s *GetMaxBorrowableService) Asset(asset string) *GetMaxBorrowableService
Asset set asset
func (*GetMaxBorrowableService) Do ¶
func (s *GetMaxBorrowableService) Do(ctx context.Context, opts ...RequestOption) (res *MaxBorrowable, err error)
Do send request
func (*GetMaxBorrowableService) IsolatedSymbol ¶
func (s *GetMaxBorrowableService) IsolatedSymbol(isolatedSymbol string) *GetMaxBorrowableService
IsolatedSymbol set isolatedSymbol
type GetMaxTransferableService ¶
type GetMaxTransferableService struct {
// contains filtered or unexported fields
}
GetMaxTransferableService get max transferable of asset
func (*GetMaxTransferableService) Asset ¶
func (s *GetMaxTransferableService) Asset(asset string) *GetMaxTransferableService
Asset set asset
func (*GetMaxTransferableService) Do ¶
func (s *GetMaxTransferableService) Do(ctx context.Context, opts ...RequestOption) (res *MaxTransferable, err error)
Do send request
type GetOrderService ¶
type GetOrderService struct {
// contains filtered or unexported fields
}
GetOrderService get an order
func (*GetOrderService) Do ¶
func (s *GetOrderService) Do(ctx context.Context, opts ...RequestOption) (res *Order, err error)
Do send request
func (*GetOrderService) OrderID ¶
func (s *GetOrderService) OrderID(orderID int64) *GetOrderService
OrderID set orderID
func (*GetOrderService) OrigClientOrderID ¶
func (s *GetOrderService) OrigClientOrderID(origClientOrderID string) *GetOrderService
OrigClientOrderID set origClientOrderID
func (*GetOrderService) Symbol ¶
func (s *GetOrderService) Symbol(symbol string) *GetOrderService
Symbol set symbol
type GetSwapQuoteResponse ¶
type GetSwapQuoteService ¶
type GetSwapQuoteService struct {
// contains filtered or unexported fields
}
GetSwapQuoteService get the quote
func (*GetSwapQuoteService) BaseAsset ¶
func (s *GetSwapQuoteService) BaseAsset(baseAsset string) *GetSwapQuoteService
BaseAsset set baseAsset
func (*GetSwapQuoteService) Do ¶
func (s *GetSwapQuoteService) Do(ctx context.Context) (*GetSwapQuoteResponse, error)
Do sends the request.
func (*GetSwapQuoteService) QuoteAsset ¶
func (s *GetSwapQuoteService) QuoteAsset(quoteAsset string) *GetSwapQuoteService
QuoteAsset set quoteAsset
func (*GetSwapQuoteService) QuoteQty ¶
func (s *GetSwapQuoteService) QuoteQty(quoteQty float64) *GetSwapQuoteService
QuoteQty set quoteQty
type GetUserAssetService ¶
type GetUserAssetService struct {
// contains filtered or unexported fields
}
GetUserAssetService Get user assets See https://binance-docs.github.io/apidocs/spot/en/#user-asset-user_data
func (*GetUserAssetService) Asset ¶
func (s *GetUserAssetService) Asset(asset string) *GetUserAssetService
func (*GetUserAssetService) Do ¶
func (s *GetUserAssetService) Do(ctx context.Context) (res []UserAssetRecord, err error)
func (*GetUserAssetService) NeedBtcValuation ¶
func (s *GetUserAssetService) NeedBtcValuation(val bool) *GetUserAssetService
type GetUserSwapRecordsService ¶
type GetUserSwapRecordsService struct {
// contains filtered or unexported fields
}
func (*GetUserSwapRecordsService) BaseAsset ¶
func (s *GetUserSwapRecordsService) BaseAsset(baseAsset string) *GetUserSwapRecordsService
SwapId set base asset
func (*GetUserSwapRecordsService) Do ¶
func (s *GetUserSwapRecordsService) Do(ctx context.Context) ([]*SwapRecord, error)
Do sends the request.
func (*GetUserSwapRecordsService) EndTime ¶
func (s *GetUserSwapRecordsService) EndTime(endTime int64) *GetUserSwapRecordsService
EndTime set end time when swapping
func (*GetUserSwapRecordsService) QuoteAsset ¶
func (s *GetUserSwapRecordsService) QuoteAsset(quoteAsset string) *GetUserSwapRecordsService
QuoteAsset set quote asset
func (*GetUserSwapRecordsService) ResultSize ¶
func (s *GetUserSwapRecordsService) ResultSize(resultSize int64) *GetUserSwapRecordsService
ResultSize set the size will be returned, max to 100
func (*GetUserSwapRecordsService) StartTime ¶
func (s *GetUserSwapRecordsService) StartTime(startTime int64) *GetUserSwapRecordsService
StartTime set start time when swapping
func (*GetUserSwapRecordsService) Status ¶
func (s *GetUserSwapRecordsService) Status(status SwappingStatus) *GetUserSwapRecordsService
Status set status we are query for
func (*GetUserSwapRecordsService) SwapId ¶
func (s *GetUserSwapRecordsService) SwapId(swapId int64) *GetUserSwapRecordsService
SwapId set swapId
type HistoricalTradesService ¶
type HistoricalTradesService struct {
// contains filtered or unexported fields
}
HistoricalTradesService trades
func (*HistoricalTradesService) Do ¶
func (s *HistoricalTradesService) Do(ctx context.Context, opts ...RequestOption) (res []*Trade, err error)
Do send request
func (*HistoricalTradesService) FromID ¶
func (s *HistoricalTradesService) FromID(fromID int64) *HistoricalTradesService
FromID set fromID
func (*HistoricalTradesService) Limit ¶
func (s *HistoricalTradesService) Limit(limit int) *HistoricalTradesService
Limit set limit
func (*HistoricalTradesService) Symbol ¶
func (s *HistoricalTradesService) Symbol(symbol string) *HistoricalTradesService
Symbol set symbol
type IcebergPartsFilter ¶
type IcebergPartsFilter struct {
Limit int `json:"limit"`
}
IcebergPartsFilter define iceberg part filter of symbol
type InterestHistory ¶
type InterestHistory []InterestHistoryElement
InterestHistory represents a response from InterestHistoryService.
type InterestHistoryElement ¶
type InterestHistoryElement struct {
Asset string `json:"asset"`
Interest string `json:"interest"`
LendingType LendingType `json:"lendingType"`
ProductName string `json:"productName"`
Time int64 `json:"time"`
}
type InterestHistoryService ¶
type InterestHistoryService struct {
// contains filtered or unexported fields
}
InterestHistoryService fetches the interest history
func (*InterestHistoryService) Asset ¶
func (s *InterestHistoryService) Asset(asset string) *InterestHistoryService
Asset sets the asset parameter.
func (*InterestHistoryService) Current ¶
func (s *InterestHistoryService) Current(current int32) *InterestHistoryService
Current sets the current parameter.
func (*InterestHistoryService) Do ¶
func (s *InterestHistoryService) Do(ctx context.Context) (*InterestHistory, error)
Do sends the request.
func (*InterestHistoryService) EndTime ¶
func (s *InterestHistoryService) EndTime(endTime int64) *InterestHistoryService
EndTime sets the endTime parameter. If present, StartTime MUST be specified. The difference between EndTime - StartTime MUST be between 0-90 days.
func (*InterestHistoryService) LendingType ¶
func (s *InterestHistoryService) LendingType(lendingType LendingType) *InterestHistoryService
LendingType sets the lendingType parameter.
func (*InterestHistoryService) Size ¶
func (s *InterestHistoryService) Size(size int32) *InterestHistoryService
Size sets the size parameter.
func (*InterestHistoryService) StartTime ¶
func (s *InterestHistoryService) StartTime(startTime int64) *InterestHistoryService
StartTime sets the startTime parameter. If present, EndTime MUST be specified. The difference between EndTime - StartTime MUST be between 0-30 days.
type InternalUniversalTransfer ¶
type InternalUniversalTransfer struct {
TranId int64 `json:"tranId"`
ClientTranId string `json:"clientTranId"`
FromEmail string `json:"fromEmail"`
ToEmail string `json:"toEmail"`
Asset string `json:"asset"`
Amount string `json:"amount"`
FromAccountType string `json:"fromAccountType"`
ToAccountType string `json:"toAccountType"`
Status string `json:"status"`
CreateTimeStamp uint64 `json:"createTimeStamp"`
}
type InternalUniversalTransferHistoryResponse ¶
type InternalUniversalTransferHistoryResponse struct {
Result []*InternalUniversalTransfer `json:"result"`
TotalCount int `json:"totalCount"`
}
type InternalUniversalTransferHistoryService ¶
type InternalUniversalTransferHistoryService struct {
// contains filtered or unexported fields
}
InternalUniversalTransferHistoryService Query Universal Transfer History (For Master Account) https://binance-docs.github.io/apidocs/spot/en/#query-universal-transfer-history-for-master-account
func (*InternalUniversalTransferHistoryService) ClientTranId ¶
func (s *InternalUniversalTransferHistoryService) ClientTranId(v string) *InternalUniversalTransferHistoryService
func (*InternalUniversalTransferHistoryService) Do ¶
func (s *InternalUniversalTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res InternalUniversalTransferHistoryResponse, err error)
func (*InternalUniversalTransferHistoryService) EndTime ¶
func (s *InternalUniversalTransferHistoryService) EndTime(v int64) *InternalUniversalTransferHistoryService
func (*InternalUniversalTransferHistoryService) FromEmail ¶
func (s *InternalUniversalTransferHistoryService) FromEmail(v string) *InternalUniversalTransferHistoryService
func (*InternalUniversalTransferHistoryService) Limit ¶
func (s *InternalUniversalTransferHistoryService) Limit(v int) *InternalUniversalTransferHistoryService
func (*InternalUniversalTransferHistoryService) Page ¶
func (s *InternalUniversalTransferHistoryService) Page(v int) *InternalUniversalTransferHistoryService
func (*InternalUniversalTransferHistoryService) StartTime ¶
func (s *InternalUniversalTransferHistoryService) StartTime(v int64) *InternalUniversalTransferHistoryService
func (*InternalUniversalTransferHistoryService) ToEmail ¶
func (s *InternalUniversalTransferHistoryService) ToEmail(v string) *InternalUniversalTransferHistoryService
type InternalUniversalTransferService ¶
type InternalUniversalTransferService struct {
// contains filtered or unexported fields
}
InternalUniversalTransferService Universal Transfer (For Master Account) https://developers.binance.com/docs/sub_account/asset-management/Universal-Transfer
func (*InternalUniversalTransferService) Amount ¶
func (s *InternalUniversalTransferService) Amount(v string) *InternalUniversalTransferService
func (*InternalUniversalTransferService) Asset ¶
func (s *InternalUniversalTransferService) Asset(v string) *InternalUniversalTransferService
func (*InternalUniversalTransferService) ClientTranId ¶
func (s *InternalUniversalTransferService) ClientTranId(v string) *InternalUniversalTransferService
func (*InternalUniversalTransferService) Do ¶
func (s *InternalUniversalTransferService) Do(ctx context.Context, opts ...RequestOption) (*InternalUniversalTransferResponse, error)
func (*InternalUniversalTransferService) FromAccountType ¶
func (s *InternalUniversalTransferService) FromAccountType(v string) *InternalUniversalTransferService
func (*InternalUniversalTransferService) FromEmail ¶
func (s *InternalUniversalTransferService) FromEmail(v string) *InternalUniversalTransferService
func (*InternalUniversalTransferService) Symbol ¶
func (s *InternalUniversalTransferService) Symbol(v string) *InternalUniversalTransferService
func (*InternalUniversalTransferService) ToAccountType ¶
func (s *InternalUniversalTransferService) ToAccountType(v string) *InternalUniversalTransferService
func (*InternalUniversalTransferService) ToEmail ¶
func (s *InternalUniversalTransferService) ToEmail(v string) *InternalUniversalTransferService
type IsolatedMarginAccount ¶
type IsolatedMarginAccount struct {
TotalAssetOfBTC string `json:"totalAssetOfBtc"`
TotalLiabilityOfBTC string `json:"totalLiabilityOfBtc"`
TotalNetAssetOfBTC string `json:"totalNetAssetOfBtc"`
Assets []IsolatedMarginAsset `json:"assets"`
}
IsolatedMarginAccount defines isolated user assets of margin account
type IsolatedMarginAllPair ¶
type IsolatedMarginAllPair struct {
Symbol string `json:"symbol"`
Base string `json:"base"`
Quote string `json:"quote"`
IsMarginTrade bool `json:"isMarginTrade"`
IsBuyAllowed bool `json:"isBuyAllowed"`
IsSellAllowed bool `json:"isSellAllowed"`
}
IsolatedMarginAllPair define isolated margin pair info
type IsolatedMarginAsset ¶
type IsolatedMarginAsset struct {
Symbol string `json:"symbol"`
QuoteAsset IsolatedUserAsset `json:"quoteAsset"`
BaseAsset IsolatedUserAsset `json:"baseAsset"`
IsolatedCreated bool `json:"isolatedCreated"`
Enabled bool `json:"enabled"`
MarginLevel string `json:"marginLevel"`
MarginLevelStatus string `json:"marginLevelStatus"`
MarginRatio string `json:"marginRatio"`
IndexPrice string `json:"indexPrice"`
LiquidatePrice string `json:"liquidatePrice"`
LiquidateRate string `json:"liquidateRate"`
TradeEnabled bool `json:"tradeEnabled"`
}
IsolatedMarginAsset defines isolated margin asset information, like margin level, liquidation price... etc
type IsolatedMarginData ¶
type IsolatedMarginDataService ¶
type IsolatedMarginDataService struct {
// contains filtered or unexported fields
}
func (*IsolatedMarginDataService) Do ¶
func (s *IsolatedMarginDataService) Do(ctx context.Context, opts ...RequestOption) (res *[]IsolatedMarginData, err error)
Do send request
type IsolatedMarginTransferService ¶
type IsolatedMarginTransferService struct {
// contains filtered or unexported fields
}
IsolatedMarginTransferService transfer assets between spot and isolated margin.
func (*IsolatedMarginTransferService) Amount ¶
func (s *IsolatedMarginTransferService) Amount(amount string) *IsolatedMarginTransferService
func (*IsolatedMarginTransferService) Asset ¶
func (s *IsolatedMarginTransferService) Asset(asset string) *IsolatedMarginTransferService
func (*IsolatedMarginTransferService) Do ¶
func (s *IsolatedMarginTransferService) Do(ctx context.Context, opts ...RequestOption) (res *TransactionResponse, err error)
Do send request
func (*IsolatedMarginTransferService) Symbol ¶
func (s *IsolatedMarginTransferService) Symbol(symbol string) *IsolatedMarginTransferService
func (*IsolatedMarginTransferService) TransFrom ¶
func (s *IsolatedMarginTransferService) TransFrom(transFrom AccountType) *IsolatedMarginTransferService
TransFrom supports account types: "SPOT", "ISOLATED_MARGIN"
func (*IsolatedMarginTransferService) TransTo ¶
func (s *IsolatedMarginTransferService) TransTo(transTo AccountType) *IsolatedMarginTransferService
TransTo supports account types: "SPOT", "ISOLATED_MARGIN"
type IsolatedUserAsset ¶
type IsolatedUserAsset struct {
Asset string `json:"asset"`
Borrowed string `json:"borrowed"`
Free string `json:"free"`
Interest string `json:"interest"`
Locked string `json:"locked"`
NetAsset string `json:"netAsset"`
NetAssetOfBtc string `json:"netAssetOfBtc"`
BorrowEnabled bool `json:"borrowEnabled"`
RepayEnabled bool `json:"repayEnabled"`
TotalAsset string `json:"totalAsset"`
}
IsolatedUserAsset defines isolated user assets of the margin account
type KeepaliveIsolatedMarginUserStreamService ¶
type KeepaliveIsolatedMarginUserStreamService struct {
// contains filtered or unexported fields
}
KeepaliveIsolatedMarginUserStreamService updates listen key for isolated margin user data stream
func (*KeepaliveIsolatedMarginUserStreamService) Do ¶
func (s *KeepaliveIsolatedMarginUserStreamService) Do(ctx context.Context, opts ...RequestOption) (err error)
Do send request
func (*KeepaliveIsolatedMarginUserStreamService) ListenKey ¶
func (s *KeepaliveIsolatedMarginUserStreamService) ListenKey(listenKey string) *KeepaliveIsolatedMarginUserStreamService
ListenKey set listen key
func (*KeepaliveIsolatedMarginUserStreamService) Symbol ¶
func (s *KeepaliveIsolatedMarginUserStreamService) Symbol(symbol string) *KeepaliveIsolatedMarginUserStreamService
Symbol set symbol to the isolated margin keepalive request
type KeepaliveMarginUserStreamService ¶
type KeepaliveMarginUserStreamService struct {
// contains filtered or unexported fields
}
KeepaliveMarginUserStreamService update listen key
func (*KeepaliveMarginUserStreamService) Do ¶
func (s *KeepaliveMarginUserStreamService) Do(ctx context.Context, opts ...RequestOption) (err error)
Do send request
func (*KeepaliveMarginUserStreamService) ListenKey ¶
func (s *KeepaliveMarginUserStreamService) ListenKey(listenKey string) *KeepaliveMarginUserStreamService
ListenKey set listen key
type KeepaliveUserStreamService ¶
type KeepaliveUserStreamService struct {
// contains filtered or unexported fields
}
KeepaliveUserStreamService update listen key
func (*KeepaliveUserStreamService) Do ¶
func (s *KeepaliveUserStreamService) Do(ctx context.Context, opts ...RequestOption) (err error)
Do send request
func (*KeepaliveUserStreamService) ListenKey ¶
func (s *KeepaliveUserStreamService) ListenKey(listenKey string) *KeepaliveUserStreamService
ListenKey set listen key
type Kline ¶
type Kline struct {
OpenTime int64 `json:"openTime"`
Open string `json:"open"`
High string `json:"high"`
Low string `json:"low"`
Close string `json:"close"`
Volume string `json:"volume"`
CloseTime int64 `json:"closeTime"`
QuoteAssetVolume string `json:"quoteAssetVolume"`
TradeNum int64 `json:"tradeNum"`
TakerBuyBaseAssetVolume string `json:"takerBuyBaseAssetVolume"`
TakerBuyQuoteAssetVolume string `json:"takerBuyQuoteAssetVolume"`
}
Kline define kline info
type KlinesService ¶
type KlinesService struct {
// contains filtered or unexported fields
}
KlinesService list klines
func (*KlinesService) Do ¶
func (s *KlinesService) Do(ctx context.Context, opts ...RequestOption) (res []*Kline, err error)
Do send request
func (*KlinesService) EndTime ¶
func (s *KlinesService) EndTime(endTime int64) *KlinesService
EndTime set endTime
func (*KlinesService) Interval ¶
func (s *KlinesService) Interval(interval string) *KlinesService
Interval set interval
func (*KlinesService) Limit ¶
func (s *KlinesService) Limit(limit int) *KlinesService
Limit set limit
func (*KlinesService) StartTime ¶
func (s *KlinesService) StartTime(startTime int64) *KlinesService
StartTime set startTime
func (*KlinesService) Symbol ¶
func (s *KlinesService) Symbol(symbol string) *KlinesService
Symbol set symbol
type LendingType ¶
type LendingType string
LendingType define the type of lending (flexible saving, activity, ...)
type LiquidityOperationType ¶
type LiquidityOperationType string
LiquidityOperationType define the type of adding/removing liquidity to a liquidity pool(COMBINATION, SINGLE)
type LiquidityPool ¶
type LiquidityPoolDetail ¶
type LiquidityRewardType ¶
type LiquidityRewardType int
LiquidityRewardType define the type of reward we'd claim
type ListBookTickersService ¶
type ListBookTickersService struct {
// contains filtered or unexported fields
}
ListBookTickersService list best price/qty on the order book for a symbol or symbols
func (*ListBookTickersService) Do ¶
func (s *ListBookTickersService) Do(ctx context.Context, opts ...RequestOption) (res []*BookTicker, err error)
Do send request
func (*ListBookTickersService) Symbol ¶
func (s *ListBookTickersService) Symbol(symbol string) *ListBookTickersService
Symbol set symbol
type ListDepositsService ¶
type ListDepositsService struct {
// contains filtered or unexported fields
}
ListDepositsService fetches deposit history.
See https://binance-docs.github.io/apidocs/spot/en/#deposit-history-user_data
func (*ListDepositsService) Coin ¶
func (s *ListDepositsService) Coin(coin string) *ListDepositsService
Coin sets the coin parameter.
func (*ListDepositsService) Do ¶
func (s *ListDepositsService) Do(ctx context.Context, opts ...RequestOption) (res []*Deposit, err error)
Do sends the request.
func (*ListDepositsService) EndTime ¶
func (s *ListDepositsService) EndTime(endTime int64) *ListDepositsService
EndTime sets the endTime parameter. If present, StartTime MUST be specified. The difference between EndTime - StartTime MUST be between 0-90 days.
func (*ListDepositsService) Limit ¶
func (s *ListDepositsService) Limit(limit int) *ListDepositsService
Limit set limit
func (*ListDepositsService) Offset ¶
func (s *ListDepositsService) Offset(offset int) *ListDepositsService
Offset set offset
func (*ListDepositsService) StartTime ¶
func (s *ListDepositsService) StartTime(startTime int64) *ListDepositsService
StartTime sets the startTime parameter. If present, EndTime MUST be specified. The difference between EndTime - StartTime MUST be between 0-90 days.
func (*ListDepositsService) Status ¶
func (s *ListDepositsService) Status(status int) *ListDepositsService
Status sets the status parameter.
func (*ListDepositsService) TxID ¶
func (s *ListDepositsService) TxID(id string) *ListDepositsService
type ListDustDetail ¶
type ListDustLogService ¶
type ListDustLogService struct {
// contains filtered or unexported fields
}
ListDustLogService fetch small amounts of assets exchanged versus BNB See https://binance-docs.github.io/apidocs/spot/en/#dustlog-user_data
func (*ListDustLogService) Do ¶
func (s *ListDustLogService) Do(ctx context.Context) (withdraws *DustResult, err error)
Do sends the request.
func (*ListDustLogService) EndTime ¶
func (s *ListDustLogService) EndTime(endTime int64) *ListDustLogService
EndTime sets the endTime parameter. If present, StartTime MUST be specified. The difference between EndTime - StartTime MUST be between 0-90 days.
func (*ListDustLogService) StartTime ¶
func (s *ListDustLogService) StartTime(startTime int64) *ListDustLogService
StartTime sets the startTime parameter. If present, EndTime MUST be specified. The difference between EndTime - StartTime MUST be between 0-90 days.
type ListDustResponse ¶
type ListDustResponse struct {
Details []ListDustDetail `json:"details"`
TotalTransferBtc string `json:"totalTransferBtc"`
TotalTransferBNB string `json:"totalTransferBNB"`
DribbletPercentage string `json:"dribbletPercentage"`
}
type ListDustService ¶
type ListDustService struct {
// contains filtered or unexported fields
}
ListDustService get list of dust to BNB. See https://binance-docs.github.io/apidocs/spot/en/#get-assets-that-can-be-converted-into-bnb-user_data
func (*ListDustService) Do ¶
func (s *ListDustService) Do(ctx context.Context) (res *ListDustResponse, err error)
Do sends the request.
type ListFuturesTransferService ¶
type ListFuturesTransferService struct {
// contains filtered or unexported fields
}
ListFuturesTransferService list futures transfer
func (*ListFuturesTransferService) Asset ¶
func (s *ListFuturesTransferService) Asset(asset string) *ListFuturesTransferService
Asset set asset
func (*ListFuturesTransferService) Current ¶
func (s *ListFuturesTransferService) Current(current int64) *ListFuturesTransferService
Current currently querying page. Start from 1. Default:1
func (*ListFuturesTransferService) Do ¶
func (s *ListFuturesTransferService) Do(ctx context.Context, opts ...RequestOption) (res *FuturesTransferHistory, err error)
Do send request
func (*ListFuturesTransferService) EndTime ¶
func (s *ListFuturesTransferService) EndTime(endTime int64) *ListFuturesTransferService
EndTime set end time
func (*ListFuturesTransferService) Size ¶
func (s *ListFuturesTransferService) Size(size int64) *ListFuturesTransferService
Size default:10 max:100
func (*ListFuturesTransferService) StartTime ¶
func (s *ListFuturesTransferService) StartTime(startTime int64) *ListFuturesTransferService
StartTime set start time
type ListHistoryFuturesAlgoOrdersResponse ¶ added in v2.0.4
type ListHistoryFuturesAlgoOrdersResponse struct {
Total int64 `json:"total"`
Orders []*FuturesAlgoOrder `json:"orders"`
}
ListFutureAlgoOrderHistoryResponse defines response of list future algo historical orders
type ListHistoryFuturesAlgoOrdersService ¶ added in v2.0.4
type ListHistoryFuturesAlgoOrdersService struct {
// contains filtered or unexported fields
}
ListHistoryFuturesAlgoOrdersService list future algo historical orders
func (*ListHistoryFuturesAlgoOrdersService) Do ¶ added in v2.0.4
func (s *ListHistoryFuturesAlgoOrdersService) Do(ctx context.Context, opts ...RequestOption) (res *ListHistoryFuturesAlgoOrdersResponse, err error)
Do send request
func (*ListHistoryFuturesAlgoOrdersService) EndTime ¶ added in v2.0.4
func (s *ListHistoryFuturesAlgoOrdersService) EndTime(endTime int64) *ListHistoryFuturesAlgoOrdersService
EndTime set endTime
func (*ListHistoryFuturesAlgoOrdersService) Page ¶ added in v2.0.4
func (s *ListHistoryFuturesAlgoOrdersService) Page(page int) *ListHistoryFuturesAlgoOrdersService
Page set page
func (*ListHistoryFuturesAlgoOrdersService) PageSize ¶ added in v2.0.4
func (s *ListHistoryFuturesAlgoOrdersService) PageSize(pageSize int) *ListHistoryFuturesAlgoOrdersService
PageSize set pageSize
func (*ListHistoryFuturesAlgoOrdersService) Side ¶ added in v2.0.4
func (s *ListHistoryFuturesAlgoOrdersService) Side(side SideType) *ListHistoryFuturesAlgoOrdersService
Side set side
func (*ListHistoryFuturesAlgoOrdersService) StartTime ¶ added in v2.0.4
func (s *ListHistoryFuturesAlgoOrdersService) StartTime(startTime int64) *ListHistoryFuturesAlgoOrdersService
StartTime set startTime
func (*ListHistoryFuturesAlgoOrdersService) Symbol ¶ added in v2.0.4
func (s *ListHistoryFuturesAlgoOrdersService) Symbol(symbol string) *ListHistoryFuturesAlgoOrdersService
Symbol set symbol
type ListMarginBorrowRepayService ¶ added in v2.0.4
type ListMarginBorrowRepayService struct {
// contains filtered or unexported fields
}
ListMarginBorrowRepayService Query borrow/repay records in Margin account 1. txId or startTime must be sent. txId takes precedence. Response in descending order 2. If an asset is sent, data within 30 days before endTime; If an asset is not sent, data within 7 days before endTime 3. If neither startTime nor endTime is sent, the recent 7-day data will be returned. 4. startTime set as endTime - 7days by default, endTime set as current time by default
func (*ListMarginBorrowRepayService) Asset ¶ added in v2.0.4
func (s *ListMarginBorrowRepayService) Asset(asset string) *ListMarginBorrowRepayService
Asset set asset being transferred, e.g., BTC
func (*ListMarginBorrowRepayService) Current ¶ added in v2.0.4
func (s *ListMarginBorrowRepayService) Current(current int64) *ListMarginBorrowRepayService
Current currently querying page. Start from 1. Default:1
func (*ListMarginBorrowRepayService) Do ¶ added in v2.0.4
func (s *ListMarginBorrowRepayService) Do(ctx context.Context, opts ...RequestOption) (res *MarginBorrowRepayResponse, err error)
Do send request
func (*ListMarginBorrowRepayService) EndTime ¶ added in v2.0.4
func (s *ListMarginBorrowRepayService) EndTime(endTime int64) *ListMarginBorrowRepayService
func (*ListMarginBorrowRepayService) IsolatedSymbol ¶ added in v2.0.4
func (s *ListMarginBorrowRepayService) IsolatedSymbol(isolatedSymbol string) *ListMarginBorrowRepayService
func (*ListMarginBorrowRepayService) Size ¶ added in v2.0.4
func (s *ListMarginBorrowRepayService) Size(size int64) *ListMarginBorrowRepayService
Size default:10 max:100
func (*ListMarginBorrowRepayService) StartTime ¶ added in v2.0.4
func (s *ListMarginBorrowRepayService) StartTime(startTime int64) *ListMarginBorrowRepayService
func (*ListMarginBorrowRepayService) TxId ¶ added in v2.0.4
func (s *ListMarginBorrowRepayService) TxId(txId int64) *ListMarginBorrowRepayService
func (*ListMarginBorrowRepayService) Type ¶ added in v2.0.4
func (s *ListMarginBorrowRepayService) Type(marginBorrowRepayType MarginAccountBorrowRepayType) *ListMarginBorrowRepayService
type ListMarginLoansService ¶
type ListMarginLoansService struct {
// contains filtered or unexported fields
}
ListMarginLoansService list loan record Deprecated: use ListMarginBorrowRepayService instead
func (*ListMarginLoansService) Asset ¶
func (s *ListMarginLoansService) Asset(asset string) *ListMarginLoansService
Asset set asset
func (*ListMarginLoansService) Current ¶
func (s *ListMarginLoansService) Current(current int64) *ListMarginLoansService
Current currently querying page. Start from 1. Default:1
func (*ListMarginLoansService) Do ¶
func (s *ListMarginLoansService) Do(ctx context.Context, opts ...RequestOption) (res *MarginLoanResponse, err error)
Do send request
func (*ListMarginLoansService) EndTime ¶
func (s *ListMarginLoansService) EndTime(endTime int64) *ListMarginLoansService
EndTime set end time
func (*ListMarginLoansService) Size ¶
func (s *ListMarginLoansService) Size(size int64) *ListMarginLoansService
Size default:10 max:100
func (*ListMarginLoansService) StartTime ¶
func (s *ListMarginLoansService) StartTime(startTime int64) *ListMarginLoansService
StartTime set start time
func (*ListMarginLoansService) TxID ¶
func (s *ListMarginLoansService) TxID(txID int64) *ListMarginLoansService
TxID set transaction id
type ListMarginOpenOrdersService ¶
type ListMarginOpenOrdersService struct {
// contains filtered or unexported fields
}
ListMarginOpenOrdersService list margin open orders
func (*ListMarginOpenOrdersService) Do ¶
func (s *ListMarginOpenOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*Order, err error)
Do send request
func (*ListMarginOpenOrdersService) IsIsolated ¶
func (s *ListMarginOpenOrdersService) IsIsolated(isIsolated bool) *ListMarginOpenOrdersService
IsIsolated set isIsolated
func (*ListMarginOpenOrdersService) Symbol ¶
func (s *ListMarginOpenOrdersService) Symbol(symbol string) *ListMarginOpenOrdersService
Symbol set symbol
type ListMarginOrdersService ¶
type ListMarginOrdersService struct {
// contains filtered or unexported fields
}
ListMarginOrdersService all account orders; active, canceled, or filled
func (*ListMarginOrdersService) Do ¶
func (s *ListMarginOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*Order, err error)
Do send request
func (*ListMarginOrdersService) EndTime ¶
func (s *ListMarginOrdersService) EndTime(endTime int64) *ListMarginOrdersService
EndTime set endtime
func (*ListMarginOrdersService) IsIsolated ¶
func (s *ListMarginOrdersService) IsIsolated(isIsolated bool) *ListMarginOrdersService
IsIsolated set isIsolated
func (*ListMarginOrdersService) Limit ¶
func (s *ListMarginOrdersService) Limit(limit int) *ListMarginOrdersService
Limit set limit
func (*ListMarginOrdersService) OrderID ¶
func (s *ListMarginOrdersService) OrderID(orderID int64) *ListMarginOrdersService
OrderID set orderID
func (*ListMarginOrdersService) StartTime ¶
func (s *ListMarginOrdersService) StartTime(startTime int64) *ListMarginOrdersService
StartTime set starttime
func (*ListMarginOrdersService) Symbol ¶
func (s *ListMarginOrdersService) Symbol(symbol string) *ListMarginOrdersService
Symbol set symbol
type ListMarginRepaysService ¶
type ListMarginRepaysService struct {
// contains filtered or unexported fields
}
ListMarginRepaysService list repay record Deprecated: use ListMarginBorrowRepayService instead
func (*ListMarginRepaysService) Asset ¶
func (s *ListMarginRepaysService) Asset(asset string) *ListMarginRepaysService
Asset set asset
func (*ListMarginRepaysService) Current ¶
func (s *ListMarginRepaysService) Current(current int64) *ListMarginRepaysService
Current currently querying page. Start from 1. Default:1
func (*ListMarginRepaysService) Do ¶
func (s *ListMarginRepaysService) Do(ctx context.Context, opts ...RequestOption) (res *MarginRepayResponse, err error)
Do send request
func (*ListMarginRepaysService) EndTime ¶
func (s *ListMarginRepaysService) EndTime(endTime int64) *ListMarginRepaysService
EndTime set end time
func (*ListMarginRepaysService) Size ¶
func (s *ListMarginRepaysService) Size(size int64) *ListMarginRepaysService
Size default:10 max:100
func (*ListMarginRepaysService) StartTime ¶
func (s *ListMarginRepaysService) StartTime(startTime int64) *ListMarginRepaysService
StartTime set start time
func (*ListMarginRepaysService) TxID ¶
func (s *ListMarginRepaysService) TxID(txID int64) *ListMarginRepaysService
TxID set transaction id
type ListMarginSpecialKeyService ¶ added in v2.0.6
type ListMarginSpecialKeyService struct {
// contains filtered or unexported fields
}
func (*ListMarginSpecialKeyService) Do ¶ added in v2.0.6
func (s *ListMarginSpecialKeyService) Do(ctx context.Context, opts ...RequestOption) (res []MarginAPIKey, err error)
Do sends the request.
func (*ListMarginSpecialKeyService) RecvWindow ¶ added in v2.0.6
func (s *ListMarginSpecialKeyService) RecvWindow(recvWindow int64) *ListMarginSpecialKeyService
RecvWindow sets the recvWindow parameter.
func (*ListMarginSpecialKeyService) Symbol ¶ added in v2.0.6
func (s *ListMarginSpecialKeyService) Symbol(symbol string) *ListMarginSpecialKeyService
Symbol sets the symbol parameter.
type ListMarginTradesService ¶
type ListMarginTradesService struct {
// contains filtered or unexported fields
}
ListMarginTradesService list trades
func (*ListMarginTradesService) Do ¶
func (s *ListMarginTradesService) Do(ctx context.Context, opts ...RequestOption) (res []*TradeV3, err error)
Do send request
func (*ListMarginTradesService) EndTime ¶
func (s *ListMarginTradesService) EndTime(endTime int64) *ListMarginTradesService
EndTime set endtime
func (*ListMarginTradesService) FromID ¶
func (s *ListMarginTradesService) FromID(fromID int64) *ListMarginTradesService
FromID set fromID
func (*ListMarginTradesService) IsIsolated ¶
func (s *ListMarginTradesService) IsIsolated(isIsolated bool) *ListMarginTradesService
IsIsolated set isIsolated
func (*ListMarginTradesService) Limit ¶
func (s *ListMarginTradesService) Limit(limit int) *ListMarginTradesService
Limit set limit
func (*ListMarginTradesService) StartTime ¶
func (s *ListMarginTradesService) StartTime(startTime int64) *ListMarginTradesService
StartTime set starttime
func (*ListMarginTradesService) Symbol ¶
func (s *ListMarginTradesService) Symbol(symbol string) *ListMarginTradesService
Symbol set symbol
type ListOpenFuturesAlgoOrdersResponse ¶ added in v2.0.4
type ListOpenFuturesAlgoOrdersResponse struct {
Total int64 `json:"total"`
Orders []*FuturesAlgoOrder `json:"orders"`
}
ListOpenFuturesAlgoOrdersResponse define response of list open future algo orders
type ListOpenFuturesAlgoOrdersService ¶ added in v2.0.4
type ListOpenFuturesAlgoOrdersService struct {
// contains filtered or unexported fields
}
ListOpenFuturesAlgoOrdersService list current open futures algo orders
func (*ListOpenFuturesAlgoOrdersService) Do ¶ added in v2.0.4
func (s *ListOpenFuturesAlgoOrdersService) Do(ctx context.Context, opts ...RequestOption) (res *ListOpenFuturesAlgoOrdersResponse, err error)
Do send request
type ListOpenOcoService ¶
type ListOpenOcoService struct {
// contains filtered or unexported fields
}
ListOpenOcoService list opened oco
func (*ListOpenOcoService) Do ¶
func (s *ListOpenOcoService) Do(ctx context.Context, opts ...RequestOption) (res []*Oco, err error)
Do send request
type ListOpenOrdersService ¶
type ListOpenOrdersService struct {
// contains filtered or unexported fields
}
ListOpenOrdersService list opened orders
func (*ListOpenOrdersService) Do ¶
func (s *ListOpenOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*Order, err error)
Do send request
func (*ListOpenOrdersService) Symbol ¶
func (s *ListOpenOrdersService) Symbol(symbol string) *ListOpenOrdersService
Symbol set symbol
type ListOrdersService ¶
type ListOrdersService struct {
// contains filtered or unexported fields
}
ListOrdersService all account orders; active, canceled, or filled
func (*ListOrdersService) Do ¶
func (s *ListOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*Order, err error)
Do send request
func (*ListOrdersService) EndTime ¶
func (s *ListOrdersService) EndTime(endTime int64) *ListOrdersService
EndTime set endtime
func (*ListOrdersService) Limit ¶
func (s *ListOrdersService) Limit(limit int) *ListOrdersService
Limit set limit
func (*ListOrdersService) OrderID ¶
func (s *ListOrdersService) OrderID(orderID int64) *ListOrdersService
OrderID set orderID
func (*ListOrdersService) StartTime ¶
func (s *ListOrdersService) StartTime(startTime int64) *ListOrdersService
StartTime set starttime
func (*ListOrdersService) Symbol ¶
func (s *ListOrdersService) Symbol(symbol string) *ListOrdersService
Symbol set symbol
type ListPriceChangeStatsService ¶
type ListPriceChangeStatsService struct {
// contains filtered or unexported fields
}
ListPriceChangeStatsService show stats of price change in last 24 hours for all symbols
func (*ListPriceChangeStatsService) Do ¶
func (s *ListPriceChangeStatsService) Do(ctx context.Context, opts ...RequestOption) (res []*PriceChangeStats, err error)
Do send request
func (*ListPriceChangeStatsService) Symbol ¶
func (s *ListPriceChangeStatsService) Symbol(symbol string) *ListPriceChangeStatsService
Symbol set symbol
func (*ListPriceChangeStatsService) Symbols ¶
func (s *ListPriceChangeStatsService) Symbols(symbols []string) *ListPriceChangeStatsService
Symbols set symbols
type ListPricesService ¶
type ListPricesService struct {
// contains filtered or unexported fields
}
ListPricesService list latest price for a symbol or symbols
func (*ListPricesService) Do ¶
func (s *ListPricesService) Do(ctx context.Context, opts ...RequestOption) (res []*SymbolPrice, err error)
Do send request
func (*ListPricesService) Symbol ¶
func (s *ListPricesService) Symbol(symbol string) *ListPricesService
Symbol set symbol
func (*ListPricesService) Symbols ¶
func (s *ListPricesService) Symbols(symbols []string) *ListPricesService
Symbols set symbols
type ListSavingsFixedAndActivityProductsService ¶
type ListSavingsFixedAndActivityProductsService struct {
// contains filtered or unexported fields
}
ListSavingsFixedAndActivityProductsService https://binance-docs.github.io/apidocs/spot/en/#get-fixed-and-activity-project-list-user_data
func (*ListSavingsFixedAndActivityProductsService) Asset ¶
func (s *ListSavingsFixedAndActivityProductsService) Asset(asset string) *ListSavingsFixedAndActivityProductsService
Asset desired asset
func (*ListSavingsFixedAndActivityProductsService) Current ¶
func (s *ListSavingsFixedAndActivityProductsService) Current(current int64) *ListSavingsFixedAndActivityProductsService
Current Currently querying page. Start from 1. Default:1
func (*ListSavingsFixedAndActivityProductsService) Do ¶
func (s *ListSavingsFixedAndActivityProductsService) Do(ctx context.Context, opts ...RequestOption) ([]*SavingsFixedProduct, error)
Do send request
func (*ListSavingsFixedAndActivityProductsService) IsSortAsc ¶
func (s *ListSavingsFixedAndActivityProductsService) IsSortAsc(isSortAsc bool) *ListSavingsFixedAndActivityProductsService
IsSortAsc default "true"
func (*ListSavingsFixedAndActivityProductsService) Size ¶
func (s *ListSavingsFixedAndActivityProductsService) Size(size int64) *ListSavingsFixedAndActivityProductsService
Size Default:10, Max:100
func (*ListSavingsFixedAndActivityProductsService) SortBy ¶
func (s *ListSavingsFixedAndActivityProductsService) SortBy(sortBy string) *ListSavingsFixedAndActivityProductsService
SortBy ("START_TIME", "LOT_SIZE", "INTEREST_RATE", "DURATION") - default "START_TIME"
func (*ListSavingsFixedAndActivityProductsService) Status ¶
func (s *ListSavingsFixedAndActivityProductsService) Status(status string) *ListSavingsFixedAndActivityProductsService
Status ("ALL", "SUBSCRIBABLE", "UNSUBSCRIBABLE") - default "ALL"
func (*ListSavingsFixedAndActivityProductsService) Type ¶
func (s *ListSavingsFixedAndActivityProductsService) Type(projectType string) *ListSavingsFixedAndActivityProductsService
Type set project type ("ACTIVITY", "CUSTOMIZED_FIXED")
type ListSavingsFlexibleProductsService ¶
type ListSavingsFlexibleProductsService struct {
// contains filtered or unexported fields
}
ListSavingsFlexibleProductsService https://binance-docs.github.io/apidocs/spot/en/#get-flexible-product-list-user_data
func (*ListSavingsFlexibleProductsService) Current ¶
func (s *ListSavingsFlexibleProductsService) Current(current int64) *ListSavingsFlexibleProductsService
Current query page. Default: 1, Min: 1
func (*ListSavingsFlexibleProductsService) Do ¶
func (s *ListSavingsFlexibleProductsService) Do(ctx context.Context, opts ...RequestOption) ([]*SavingsFlexibleProduct, error)
Do send request
func (*ListSavingsFlexibleProductsService) Featured ¶
func (s *ListSavingsFlexibleProductsService) Featured(featured string) *ListSavingsFlexibleProductsService
Featured ("ALL", "TRUE") - Default: "ALL"
func (*ListSavingsFlexibleProductsService) Size ¶
func (s *ListSavingsFlexibleProductsService) Size(size int64) *ListSavingsFlexibleProductsService
Size Default: 50, Max: 100
func (*ListSavingsFlexibleProductsService) Status ¶
func (s *ListSavingsFlexibleProductsService) Status(status string) *ListSavingsFlexibleProductsService
Status represent the product status ("ALL", "SUBSCRIBABLE", "UNSUBSCRIBABLE") - Default: "ALL"
type ListSymbolTickerService ¶
type ListSymbolTickerService struct {
// contains filtered or unexported fields
}
func (*ListSymbolTickerService) Do ¶
func (s *ListSymbolTickerService) Do(ctx context.Context, opts ...RequestOption) (res []*SymbolTicker, err error)
func (*ListSymbolTickerService) Symbol ¶
func (s *ListSymbolTickerService) Symbol(symbol string) *ListSymbolTickerService
func (*ListSymbolTickerService) Symbols ¶
func (s *ListSymbolTickerService) Symbols(symbols []string) *ListSymbolTickerService
func (*ListSymbolTickerService) WindowSize ¶
func (s *ListSymbolTickerService) WindowSize(windowSize string) *ListSymbolTickerService
Defaults to 1d if no parameter provided
Supported windowSize values:
- 1m,2m....59m for minutes
- 1h, 2h....23h - for hours
- 1d...7d - for days
Units cannot be combined (e.g. 1d2h is not allowed).
Reference: https://binance-docs.github.io/apidocs/spot/en/#rolling-window-price-change-statistics
type ListTradesService ¶
type ListTradesService struct {
// contains filtered or unexported fields
}
ListTradesService list trades
func (*ListTradesService) Do ¶
func (s *ListTradesService) Do(ctx context.Context, opts ...RequestOption) (res []*TradeV3, err error)
Do send request
func (*ListTradesService) EndTime ¶
func (s *ListTradesService) EndTime(endTime int64) *ListTradesService
EndTime set endtime
func (*ListTradesService) FromID ¶
func (s *ListTradesService) FromID(fromID int64) *ListTradesService
FromID set fromID
func (*ListTradesService) Limit ¶
func (s *ListTradesService) Limit(limit int) *ListTradesService
Limit set limit
func (*ListTradesService) OrderId ¶
func (s *ListTradesService) OrderId(OrderId int64) *ListTradesService
OrderId set OrderId
func (*ListTradesService) StartTime ¶
func (s *ListTradesService) StartTime(startTime int64) *ListTradesService
StartTime set starttime
func (*ListTradesService) Symbol ¶
func (s *ListTradesService) Symbol(symbol string) *ListTradesService
Symbol set symbol
type ListUserUniversalTransferService ¶ added in v2.0.4
type ListUserUniversalTransferService struct {
// contains filtered or unexported fields
}
ListUserUniversalTransfer fetches transfer history.
See https://binance-docs.github.io/apidocs/spot/en/#query-user-universal-transfer-history-user_data
func (*ListUserUniversalTransferService) Current ¶ added in v2.0.4
func (s *ListUserUniversalTransferService) Current(v int) *ListUserUniversalTransferService
Current sets the current parameter.
func (*ListUserUniversalTransferService) Do ¶ added in v2.0.4
func (s *ListUserUniversalTransferService) Do(ctx context.Context) (res *UserUniversalTransferResponse, err error)
// Do sends the request.
func (*ListUserUniversalTransferService) EndTime ¶ added in v2.0.4
func (s *ListUserUniversalTransferService) EndTime(v int64) *ListUserUniversalTransferService
EndTime sets the startTime parameter.
func (*ListUserUniversalTransferService) FromSymbol ¶ added in v2.0.4
func (s *ListUserUniversalTransferService) FromSymbol(v string) *ListUserUniversalTransferService
FromSymbol set fromSymbol
func (*ListUserUniversalTransferService) Size ¶ added in v2.0.4
func (s *ListUserUniversalTransferService) Size(v int) *ListUserUniversalTransferService
Size sets the size parameter.
func (*ListUserUniversalTransferService) StartTime ¶ added in v2.0.4
func (s *ListUserUniversalTransferService) StartTime(v int64) *ListUserUniversalTransferService
StartTime sets the startTime parameter.
func (*ListUserUniversalTransferService) ToSymbol ¶ added in v2.0.4
func (s *ListUserUniversalTransferService) ToSymbol(v string) *ListUserUniversalTransferService
ToSymbol set toSymbol
func (*ListUserUniversalTransferService) Type ¶ added in v2.0.4
func (s *ListUserUniversalTransferService) Type(v UserUniversalTransferType) *ListUserUniversalTransferService
Type sets the type parameter.
type ListWithdrawsService ¶
type ListWithdrawsService struct {
// contains filtered or unexported fields
}
ListWithdrawsService fetches withdraw history.
See https://developers.binance.com/docs/wallet/capital/withdraw-history
- network may not be in the response for old withdraw.
- Please notice the default startTime and endTime to make sure that time interval is within 0-90 days.
- If both startTime and endTimeare sent, time between startTimeand endTimemust be less than 90 days.
- If withdrawOrderId is sent, time between startTime and endTime must be less than 7 days.
- If withdrawOrderId is sent, startTime and endTime are not sent, will return last 7 days records by default.
- Maximum support idList number is 45.
func (*ListWithdrawsService) Coin ¶
func (s *ListWithdrawsService) Coin(coin string) *ListWithdrawsService
Coin sets the coin parameter.
func (*ListWithdrawsService) Do ¶
func (s *ListWithdrawsService) Do(ctx context.Context, opts ...RequestOption) (res []*Withdraw, err error)
Do sends the request.
func (*ListWithdrawsService) EndTime ¶
func (s *ListWithdrawsService) EndTime(endTime int64) *ListWithdrawsService
EndTime sets the endTime parameter. If present, StartTime MUST be specified. The difference between EndTime - StartTime MUST be between 0-90 days.
func (*ListWithdrawsService) IdList ¶ added in v2.0.4
func (s *ListWithdrawsService) IdList(ids string) *ListWithdrawsService
IdList id list returned in the response of POST /sapi/v1/capital/withdraw/apply, separated by ,
func (*ListWithdrawsService) Limit ¶
func (s *ListWithdrawsService) Limit(limit int) *ListWithdrawsService
Limit set limit
func (*ListWithdrawsService) Offset ¶
func (s *ListWithdrawsService) Offset(offset int) *ListWithdrawsService
Offset set offset
func (*ListWithdrawsService) StartTime ¶
func (s *ListWithdrawsService) StartTime(startTime int64) *ListWithdrawsService
StartTime sets the startTime parameter. If present, EndTime MUST be specified. The difference between EndTime - StartTime MUST be between 0-90 days.
func (*ListWithdrawsService) Status ¶
func (s *ListWithdrawsService) Status(status int) *ListWithdrawsService
Status sets the status parameter.
func (*ListWithdrawsService) WithdrawOrderId ¶
func (s *ListWithdrawsService) WithdrawOrderId(withdrawOrderId string) *ListWithdrawsService
WithdrawOrderId sets the withdrawOrderId parameter.
type LockedProductPosition ¶ added in v2.0.1
type LockedProductPosition struct {
PositionID string `json:"positionId,omitempty"`
ProjectID string `json:"projectId,omitempty"`
Asset string `json:"asset,omitempty"`
Amount string `json:"amount,omitempty"`
PurchaseTime string `json:"purchaseTime,omitempty"`
Duration string `json:"duration,omitempty"`
AccrualDays string `json:"accrualDays,omitempty"`
RewardAsset string `json:"rewardAsset,omitempty"`
Apy string `json:"APY,omitempty"`
IsRenewable bool `json:"isRenewable,omitempty"`
IsAutoRenew bool `json:"isAutoRenew,omitempty"`
RedeemDate string `json:"redeemDate,omitempty"`
}
type LotSizeFilter ¶
type LotSizeFilter struct {
MaxQuantity string `json:"maxQty"`
MinQuantity string `json:"minQty"`
StepSize string `json:"stepSize"`
}
LotSizeFilter define lot size filter of symbol
type ManagedSubAccountAsset ¶
type ManagedSubAccountAssetsService ¶
type ManagedSubAccountAssetsService struct {
// contains filtered or unexported fields
}
ManagedSubAccountAssetsService Query Managed Sub-account Asset Details(For Investor Master Account) https://binance-docs.github.io/apidocs/spot/en/#query-managed-sub-account-asset-details-for-investor-master-account
func (*ManagedSubAccountAssetsService) Do ¶
func (s *ManagedSubAccountAssetsService) Do(ctx context.Context, opts ...RequestOption) ([]*ManagedSubAccountAsset, error)
func (*ManagedSubAccountAssetsService) Email ¶
func (s *ManagedSubAccountAssetsService) Email(email string) *ManagedSubAccountAssetsService
type ManagedSubAccountDepositAddressService ¶ added in v2.0.4
type ManagedSubAccountDepositAddressService struct {
// contains filtered or unexported fields
}
Obtain the recharge address for the custody account
func (*ManagedSubAccountDepositAddressService) Coin ¶ added in v2.0.4
func (s *ManagedSubAccountDepositAddressService) Coin(coin string) *ManagedSubAccountDepositAddressService
func (*ManagedSubAccountDepositAddressService) Do ¶ added in v2.0.4
func (s *ManagedSubAccountDepositAddressService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountDepositAddressServiceResponse, err error)
func (*ManagedSubAccountDepositAddressService) Email ¶ added in v2.0.4
func (s *ManagedSubAccountDepositAddressService) Email(email string) *ManagedSubAccountDepositAddressService
func (*ManagedSubAccountDepositAddressService) Network ¶ added in v2.0.4
func (s *ManagedSubAccountDepositAddressService) Network(network string) *ManagedSubAccountDepositAddressService
func (*ManagedSubAccountDepositAddressService) RecvWindow ¶ added in v2.0.4
func (s *ManagedSubAccountDepositAddressService) RecvWindow(recvWindow int64) *ManagedSubAccountDepositAddressService
type ManagedSubAccountDepositAddressServiceResponse ¶ added in v2.0.4
type ManagedSubAccountDepositResponse ¶
type ManagedSubAccountDepositResponse struct {
ID int64 `json:"tranId"`
}
type ManagedSubAccountDepositService ¶
type ManagedSubAccountDepositService struct {
// contains filtered or unexported fields
}
ManagedSubAccountDepositService Deposit Assets Into The Managed Sub-account(For Investor Master Account) https://developers.binance.com/docs/sub_account/managed-sub-account
func (*ManagedSubAccountDepositService) Amount ¶
func (s *ManagedSubAccountDepositService) Amount(amount string) *ManagedSubAccountDepositService
func (*ManagedSubAccountDepositService) Asset ¶
func (s *ManagedSubAccountDepositService) Asset(asset string) *ManagedSubAccountDepositService
func (*ManagedSubAccountDepositService) Do ¶
func (s *ManagedSubAccountDepositService) Do(ctx context.Context, opts ...RequestOption) (*ManagedSubAccountDepositResponse, error)
Do send request
func (*ManagedSubAccountDepositService) ToEmail ¶
func (s *ManagedSubAccountDepositService) ToEmail(email string) *ManagedSubAccountDepositService
type ManagedSubAccountInfoService ¶ added in v2.0.4
type ManagedSubAccountInfoService struct {
// contains filtered or unexported fields
}
Query the list of managed-accounts
func (*ManagedSubAccountInfoService) Do ¶ added in v2.0.4
func (s *ManagedSubAccountInfoService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountInfoServiceResponse, err error)
func (*ManagedSubAccountInfoService) Email ¶ added in v2.0.4
func (s *ManagedSubAccountInfoService) Email(email string) *ManagedSubAccountInfoService
func (*ManagedSubAccountInfoService) Limit ¶ added in v2.0.4
func (s *ManagedSubAccountInfoService) Limit(limit int32) *ManagedSubAccountInfoService
func (*ManagedSubAccountInfoService) Page ¶ added in v2.0.4
func (s *ManagedSubAccountInfoService) Page(page int32) *ManagedSubAccountInfoService
func (*ManagedSubAccountInfoService) RecvWindow ¶ added in v2.0.4
func (s *ManagedSubAccountInfoService) RecvWindow(recvWindow int64) *ManagedSubAccountInfoService
type ManagedSubAccountInfoServiceResponse ¶ added in v2.0.4
type ManagedSubAccountInfoServiceResponse struct {
Total int32 `json:"total"`
ManagerSubUserInfoVoList []*ManagedSubAccountUserInfoVo `json:"managerSubUserInfoVoList"`
}
type ManagedSubAccountMarginAsset ¶ added in v2.0.4
type ManagedSubAccountQueryFuturesAssetService ¶ added in v2.0.4
type ManagedSubAccountQueryFuturesAssetService struct {
// contains filtered or unexported fields
}
Investor account inquiry custody account futures assets
func (*ManagedSubAccountQueryFuturesAssetService) Do ¶ added in v2.0.4
func (s *ManagedSubAccountQueryFuturesAssetService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountQueryFuturesAssetServiceResponse, err error)
func (*ManagedSubAccountQueryFuturesAssetService) Email ¶ added in v2.0.4
func (s *ManagedSubAccountQueryFuturesAssetService) Email(email string) *ManagedSubAccountQueryFuturesAssetService
type ManagedSubAccountQueryFuturesAssetServiceResponse ¶ added in v2.0.4
type ManagedSubAccountQueryFuturesAssetServiceResponse struct {
Code int32 `json:"code"`
Message string `json:"message"`
SnapshotVos []*ManagedSubFuturesAccountSnapVo `json:"snapshotVos"`
}
type ManagedSubAccountQueryMarginAssetService ¶ added in v2.0.4
type ManagedSubAccountQueryMarginAssetService struct {
// contains filtered or unexported fields
}
Investor account inquiry for leveraged assets in custodial accounts
func (*ManagedSubAccountQueryMarginAssetService) Do ¶ added in v2.0.4
func (s *ManagedSubAccountQueryMarginAssetService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountQueryMarginAssetServiceResponse, err error)
func (*ManagedSubAccountQueryMarginAssetService) Email ¶ added in v2.0.4
func (s *ManagedSubAccountQueryMarginAssetService) Email(email string) *ManagedSubAccountQueryMarginAssetService
type ManagedSubAccountQueryMarginAssetServiceResponse ¶ added in v2.0.4
type ManagedSubAccountQueryMarginAssetServiceResponse struct {
MarginLevel string `json:"marginLevel"`
TotalAssetOfBtc string `json:"totalAssetOfBtc"`
TotalLiabilityOfBtc string `json:"totalLiabilityOfBtc"`
TotalNetAssetOfBtc string `json:"totalNetAssetOfBtc"`
UserAssets []*ManagedSubAccountMarginAsset `json:"userAssets"`
}
type ManagedSubAccountQueryTransferLogForInvestorService ¶ added in v2.0.4
type ManagedSubAccountQueryTransferLogForInvestorService struct {
// contains filtered or unexported fields
}
managed-sub account query transfer log, this interface is for investor
func (*ManagedSubAccountQueryTransferLogForInvestorService) Do ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogForInvestorService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountQueryTransferLogForInvestorServiceResponse, err error)
func (*ManagedSubAccountQueryTransferLogForInvestorService) EndTime ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogForInvestorService) EndTime(endTime int64) *ManagedSubAccountQueryTransferLogForInvestorService
func (*ManagedSubAccountQueryTransferLogForInvestorService) StartTime ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogForInvestorService) StartTime(startTime int64) *ManagedSubAccountQueryTransferLogForInvestorService
func (*ManagedSubAccountQueryTransferLogForInvestorService) TransferFunctionAccountType ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogForInvestorService) TransferFunctionAccountType(transferFunctionAccountType string) *ManagedSubAccountQueryTransferLogForInvestorService
func (*ManagedSubAccountQueryTransferLogForInvestorService) Transfers ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogForInvestorService) Transfers(transfers string) *ManagedSubAccountQueryTransferLogForInvestorService
type ManagedSubAccountQueryTransferLogForInvestorServiceResponse ¶ added in v2.0.4
type ManagedSubAccountQueryTransferLogForInvestorServiceResponse struct {
ManagerSubTransferHistoryVos []*ManagedSubTransferHistoryVo `json:"managerSubTransferHistoryVos"`
Count int32 `json:"count"`
}
type ManagedSubAccountQueryTransferLogForTradeParentService ¶ added in v2.0.4
type ManagedSubAccountQueryTransferLogForTradeParentService struct {
// contains filtered or unexported fields
}
func (*ManagedSubAccountQueryTransferLogForTradeParentService) Do ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogForTradeParentService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountQueryTransferLogForTradeParentServiceResponse, err error)
func (*ManagedSubAccountQueryTransferLogForTradeParentService) EndTime ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogForTradeParentService) EndTime(endTime int64) *ManagedSubAccountQueryTransferLogForTradeParentService
func (*ManagedSubAccountQueryTransferLogForTradeParentService) StartTime ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogForTradeParentService) StartTime(startTime int64) *ManagedSubAccountQueryTransferLogForTradeParentService
func (*ManagedSubAccountQueryTransferLogForTradeParentService) TransferFunctionAccountType ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogForTradeParentService) TransferFunctionAccountType(transferFunctionAccountType string) *ManagedSubAccountQueryTransferLogForTradeParentService
func (*ManagedSubAccountQueryTransferLogForTradeParentService) Transfers ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogForTradeParentService) Transfers(transfers string) *ManagedSubAccountQueryTransferLogForTradeParentService
type ManagedSubAccountQueryTransferLogForTradeParentServiceResponse ¶ added in v2.0.4
type ManagedSubAccountQueryTransferLogForTradeParentServiceResponse struct {
ManagerSubTransferHistoryVos []*ManagedSubTransferHistoryVo `json:"managerSubTransferHistoryVos"`
Count int32 `json:"count"`
}
type ManagedSubAccountQueryTransferLogService ¶ added in v2.0.4
type ManagedSubAccountQueryTransferLogService struct {
// contains filtered or unexported fields
}
Query transfer records of managed-sub accounts
func (*ManagedSubAccountQueryTransferLogService) Do ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountQueryTransferLogServiceResponse, err error)
func (*ManagedSubAccountQueryTransferLogService) EndTime ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogService) EndTime(endTime int64) *ManagedSubAccountQueryTransferLogService
func (*ManagedSubAccountQueryTransferLogService) Limit ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogService) Limit(limit int32) *ManagedSubAccountQueryTransferLogService
func (*ManagedSubAccountQueryTransferLogService) Page ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogService) Page(page int32) *ManagedSubAccountQueryTransferLogService
func (*ManagedSubAccountQueryTransferLogService) RecvWindow ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogService) RecvWindow(recvWindow int64) *ManagedSubAccountQueryTransferLogService
func (*ManagedSubAccountQueryTransferLogService) StartTime ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogService) StartTime(startTime int64) *ManagedSubAccountQueryTransferLogService
func (*ManagedSubAccountQueryTransferLogService) TransferFunctionAccountType ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogService) TransferFunctionAccountType(transferFunctionAccountType string) *ManagedSubAccountQueryTransferLogService
func (*ManagedSubAccountQueryTransferLogService) Transfers ¶ added in v2.0.4
func (s *ManagedSubAccountQueryTransferLogService) Transfers(transfers string) *ManagedSubAccountQueryTransferLogService
type ManagedSubAccountQueryTransferLogServiceResponse ¶ added in v2.0.4
type ManagedSubAccountQueryTransferLogServiceResponse struct {
ManagerSubTransferHistoryVos []*ManagedSubTransferHistoryVo `json:"managerSubTransferHistoryVos"`
Count int32 `json:"count"`
}
type ManagedSubAccountSnapshotService ¶ added in v2.0.4
type ManagedSubAccountSnapshotService struct {
// contains filtered or unexported fields
}
Query asset snapshot of managed-sub account
func (*ManagedSubAccountSnapshotService) AccType ¶ added in v2.0.4
func (s *ManagedSubAccountSnapshotService) AccType(accType string) *ManagedSubAccountSnapshotService
func (*ManagedSubAccountSnapshotService) Do ¶ added in v2.0.4
func (s *ManagedSubAccountSnapshotService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountSnapshotServiceResponse, err error)
func (*ManagedSubAccountSnapshotService) Email ¶ added in v2.0.4
func (s *ManagedSubAccountSnapshotService) Email(email string) *ManagedSubAccountSnapshotService
func (*ManagedSubAccountSnapshotService) EndTime ¶ added in v2.0.4
func (s *ManagedSubAccountSnapshotService) EndTime(endTime int64) *ManagedSubAccountSnapshotService
func (*ManagedSubAccountSnapshotService) Limit ¶ added in v2.0.4
func (s *ManagedSubAccountSnapshotService) Limit(limit int32) *ManagedSubAccountSnapshotService
func (*ManagedSubAccountSnapshotService) RecvWindow ¶ added in v2.0.4
func (s *ManagedSubAccountSnapshotService) RecvWindow(recvWindow int64) *ManagedSubAccountSnapshotService
func (*ManagedSubAccountSnapshotService) StartTime ¶ added in v2.0.4
func (s *ManagedSubAccountSnapshotService) StartTime(startTime int64) *ManagedSubAccountSnapshotService
type ManagedSubAccountSnapshotServiceResponse ¶ added in v2.0.4
type ManagedSubAccountSnapshotServiceResponse struct {
Code int64 `json:"code"`
Msg string `json:"msg"`
SnapshotVos []*SnapshotVo `json:"snapshotVos"`
}
type ManagedSubAccountUserInfoVo ¶ added in v2.0.4
type ManagedSubAccountUserInfoVo struct {
RootUserId int64 `json:"rootUserId"`
ManagersubUserId int64 `json:"managersubUserId"`
BindParentUserId int64 `json:"bindParentUserId"`
Email string `json:"email"`
InsertTimeStamp int64 `json:"insertTimeStamp"`
BindParentEmail string `json:"bindParentEmail"`
IsSubUserEnabled bool `json:"isSubUserEnabled"`
IsUserActive bool `json:"isUserActive"`
IsMarginEnabled bool `json:"isMarginEnabled"`
IsFutureEnabled bool `json:"isFutureEnabled"`
IsSignedLVTRiskAgreement bool `json:"isSignedLVTRiskAgreement"`
}
type ManagedSubAccountWithdrawService ¶ added in v2.0.4
type ManagedSubAccountWithdrawService struct {
// contains filtered or unexported fields
}
func (*ManagedSubAccountWithdrawService) Amount ¶ added in v2.0.4
func (s *ManagedSubAccountWithdrawService) Amount(amount string) *ManagedSubAccountWithdrawService
func (*ManagedSubAccountWithdrawService) Asset ¶ added in v2.0.4
func (s *ManagedSubAccountWithdrawService) Asset(asset string) *ManagedSubAccountWithdrawService
func (*ManagedSubAccountWithdrawService) Do ¶ added in v2.0.4
func (s *ManagedSubAccountWithdrawService) Do(ctx context.Context, opts ...RequestOption) (res *ManagedSubAccountWithdrawServiceResponse, err error)
func (*ManagedSubAccountWithdrawService) FromEmail ¶ added in v2.0.4
func (s *ManagedSubAccountWithdrawService) FromEmail(fromEmail string) *ManagedSubAccountWithdrawService
func (*ManagedSubAccountWithdrawService) RecvWindow ¶ added in v2.0.4
func (s *ManagedSubAccountWithdrawService) RecvWindow(recvWindow int64) *ManagedSubAccountWithdrawService
func (*ManagedSubAccountWithdrawService) TransferDate ¶ added in v2.0.4
func (s *ManagedSubAccountWithdrawService) TransferDate(transferDate int64) *ManagedSubAccountWithdrawService
type ManagedSubAccountWithdrawServiceResponse ¶ added in v2.0.4
type ManagedSubAccountWithdrawServiceResponse struct {
TranId int64 `json:"tranId"`
}
type ManagedSubAccountWithdrawalResponse ¶
type ManagedSubAccountWithdrawalResponse struct {
ID int64 `json:"tranId"`
}
type ManagedSubAccountWithdrawalService ¶
type ManagedSubAccountWithdrawalService struct {
// contains filtered or unexported fields
}
ManagedSubAccountWithdrawalService Withdrawal Assets From The Managed Sub-account(For Investor Master Account) https://developers.binance.com/docs/sub_account/managed-sub-account/Withdrawl-Assets-From-The-Managed-Sub-account
func (*ManagedSubAccountWithdrawalService) Amount ¶
func (s *ManagedSubAccountWithdrawalService) Amount(amount string) *ManagedSubAccountWithdrawalService
func (*ManagedSubAccountWithdrawalService) Asset ¶
func (s *ManagedSubAccountWithdrawalService) Asset(asset string) *ManagedSubAccountWithdrawalService
func (*ManagedSubAccountWithdrawalService) Do ¶
func (s *ManagedSubAccountWithdrawalService) Do(ctx context.Context, opts ...RequestOption) (*ManagedSubAccountWithdrawalResponse, error)
Do send request
func (*ManagedSubAccountWithdrawalService) FromEmail ¶
func (s *ManagedSubAccountWithdrawalService) FromEmail(email string) *ManagedSubAccountWithdrawalService
func (*ManagedSubAccountWithdrawalService) TransferDate ¶
func (s *ManagedSubAccountWithdrawalService) TransferDate(val int64) *ManagedSubAccountWithdrawalService
type ManagedSubFuturesAccountSnapVo ¶ added in v2.0.4
type ManagedSubFuturesAccountSnapVo struct {
Type string `json:"type"`
UpdateTime int64 `json:"updateTime"`
Data *ManagedSubFuturesAccountSnapVoData `json:"data"`
}
type ManagedSubFuturesAccountSnapVoData ¶ added in v2.0.4
type ManagedSubFuturesAccountSnapVoData struct {
Assets []*ManagedSubFuturesAccountSnapVoDataAsset `json:"assets"`
Position []*ManagedSubFuturesAccountSnapVoDataPosition `json:"position"`
}
type ManagedSubFuturesAccountSnapVoDataAsset ¶ added in v2.0.4
type ManagedSubFuturesAccountSnapVoDataPosition ¶ added in v2.0.4
type ManagedSubTransferHistoryVo ¶ added in v2.0.4
type ManagedSubTransferHistoryVo struct {
FromEmail string `json:"fromEmail"`
FromAccountType string `json:"fromAccountType"`
ToEmail string `json:"toEmail"`
ToAccountType string `json:"toAccountType"`
Asset string `json:"asset"`
Amount string `json:"amount"`
ScheduledData int64 `json:"scheduledData"`
CreateTime int64 `json:"createTime"`
Status string `json:"status"`
TranId int64 `json:"tranId"`
}
type MarginAPIKey ¶ added in v2.0.6
type MarginAccount ¶
type MarginAccount struct {
Created bool `json:"created"`
BorrowEnabled bool `json:"borrowEnabled"`
MarginLevel string `json:"marginLevel"`
CollateralMarginLevel string `json:"collateralMarginLevel"`
TotalAssetOfBTC string `json:"totalAssetOfBtc"`
TotalLiabilityOfBTC string `json:"totalLiabilityOfBtc"`
TotalNetAssetOfBTC string `json:"totalNetAssetOfBtc"`
TotalCollateralValueInUSDT string `json:"totalCollateralValueInUSDT"`
TradeEnabled bool `json:"tradeEnabled"`
TransferInEnabled bool `json:"transferInEnabled"`
TransferOutEnabled bool `json:"transferOutEnabled"`
AccountType string `json:"accountType"`
UserAssets []UserAsset `json:"userAssets"`
}
MarginAccount define margin account info
type MarginAccountBorrowRepayType ¶ added in v2.0.4
type MarginAccountBorrowRepayType string
type MarginAllPair ¶
type MarginAllPair struct {
ID int64 `json:"id"`
Symbol string `json:"symbol"`
Base string `json:"base"`
Quote string `json:"quote"`
IsMarginTrade bool `json:"isMarginTrade"`
IsBuyAllowed bool `json:"isBuyAllowed"`
IsSellAllowed bool `json:"isSellAllowed"`
}
MarginAllPair define margin pair info
type MarginAsset ¶
type MarginAsset struct {
FullName string `json:"assetFullName"`
Name string `json:"assetName"`
Borrowable bool `json:"isBorrowable"`
Mortgageable bool `json:"isMortgageable"`
UserMinBorrow string `json:"userMinBorrow"`
UserMinRepay string `json:"userMinRepay"`
}
MarginAsset define margin asset info
type MarginBorrowRepay ¶ added in v2.0.4
type MarginBorrowRepay struct {
Type string `json:"type"` // AUTO,MANUAL for Cross Margin Borrow; MANUAL,AUTO,BNB_AUTO_REPAY,AUTO_BORROW_REPAY, POINT_AUTO_REPAY for Cross Margin Repay; AUTO,MANUAL for Isolated Margin Borrow/Repay;
IsolatedSymbol string `json:"isolatedSymbol"` // "BNBUSDT" isolated symbol, will not be returned for crossed margin
Amount string `json:"amount"`
Asset string `json:"asset"`
Interest string `json:"interest"` // Interest repaid
Principal string `json:"principal"` // Principal repaid
Status string `json:"status"` //one of PENDING (pending execution), CONFIRMED (successfully execution), FAILED (execution failed, nothing happened to your account);
Timestamp int64 `json:"timestamp"`
TxID int64 `json:"txId"`
ClientTag string `json:"clientTag"` // This field is not in the document
}
type MarginBorrowRepayResponse ¶ added in v2.0.4
type MarginBorrowRepayResponse struct {
Rows []MarginBorrowRepay `json:"rows"`
Total int64 `json:"total"`
}
type MarginBorrowRepayService ¶ added in v2.0.4
type MarginBorrowRepayService struct {
// contains filtered or unexported fields
}
MarginBorrowRepayService borrow/repay for margin account
func (*MarginBorrowRepayService) Amount ¶ added in v2.0.4
func (s *MarginBorrowRepayService) Amount(amount string) *MarginBorrowRepayService
Amount the amount to be transferred
func (*MarginBorrowRepayService) Asset ¶ added in v2.0.4
func (s *MarginBorrowRepayService) Asset(asset string) *MarginBorrowRepayService
Asset set asset being transferred, e.g., BTC
func (*MarginBorrowRepayService) Do ¶ added in v2.0.4
func (s *MarginBorrowRepayService) Do(ctx context.Context, opts ...RequestOption) (res *TransactionResponse, err error)
Do send request
func (*MarginBorrowRepayService) IsIsolated ¶ added in v2.0.4
func (s *MarginBorrowRepayService) IsIsolated(isIsolated bool) *MarginBorrowRepayService
IsIsolated is for isolated margin or not, "TRUE", "FALSE",default "FALSE"
func (*MarginBorrowRepayService) Symbol ¶ added in v2.0.4
func (s *MarginBorrowRepayService) Symbol(symbol string) *MarginBorrowRepayService
Symbol set isolated symbol
func (*MarginBorrowRepayService) Type ¶ added in v2.0.4
func (s *MarginBorrowRepayService) Type(marginBorrowRepayType MarginAccountBorrowRepayType) *MarginBorrowRepayService
type MarginInterestHistory ¶ added in v2.0.4
type MarginInterestHistory struct {
Rows []MarginInterestHistoryRow `json:"rows"`
Total int64 `json:"total"`
}
MarginInterestHistory represents the response
type MarginInterestHistoryRow ¶ added in v2.0.4
type MarginInterestHistoryRow struct {
TxId int64 `json:"txId"`
InterestAccuredTime int64 `json:"interestAccuredTime"`
Asset string `json:"asset"`
RawAsset string `json:"rawAsset,omitempty"`
Principal string `json:"principal"`
Interest string `json:"interest"`
InterestRate string `json:"interestRate"`
Type string `json:"type"`
IsolatedSymbol string `json:"isolatedSymbol,omitempty"`
}
type MarginInterestHistoryService ¶ added in v2.0.4
type MarginInterestHistoryService struct {
// contains filtered or unexported fields
}
MarginInterestHistoryService fetches the margin interest history
func (*MarginInterestHistoryService) Asset ¶ added in v2.0.4
func (s *MarginInterestHistoryService) Asset(asset string) *MarginInterestHistoryService
Asset sets the asset parameter.
func (*MarginInterestHistoryService) Current ¶ added in v2.0.4
func (s *MarginInterestHistoryService) Current(current int64) *MarginInterestHistoryService
Current sets the current parameter.
func (*MarginInterestHistoryService) Do ¶ added in v2.0.4
func (s *MarginInterestHistoryService) Do(ctx context.Context) (*MarginInterestHistory, error)
Do sends the request.
func (*MarginInterestHistoryService) EndTime ¶ added in v2.0.4
func (s *MarginInterestHistoryService) EndTime(endTime int64) *MarginInterestHistoryService
EndTime sets the endTime parameter.
func (*MarginInterestHistoryService) IsolatedSymbol ¶ added in v2.0.4
func (s *MarginInterestHistoryService) IsolatedSymbol(symbol string) *MarginInterestHistoryService
IsolatedSymbol sets the isolatedSymbol parameter.
func (*MarginInterestHistoryService) Size ¶ added in v2.0.4
func (s *MarginInterestHistoryService) Size(size int64) *MarginInterestHistoryService
Size sets the size parameter.
func (*MarginInterestHistoryService) StartTime ¶ added in v2.0.4
func (s *MarginInterestHistoryService) StartTime(startTime int64) *MarginInterestHistoryService
StartTime sets the startTime parameter.
type MarginLoan ¶
type MarginLoan struct {
Asset string `json:"asset"`
Principal string `json:"principal"`
Timestamp int64 `json:"timestamp"`
Status MarginLoanStatusType `json:"status"`
}
MarginLoan define margin loan
type MarginLoanResponse ¶
type MarginLoanResponse struct {
Rows []MarginLoan `json:"rows"`
Total int64 `json:"total"`
}
MarginLoanResponse define margin loan response
type MarginLoanService ¶
type MarginLoanService struct {
// contains filtered or unexported fields
}
MarginLoanService apply for a loan Deprecated: use MarginBorrowRepayService instead
func (*MarginLoanService) Amount ¶
func (s *MarginLoanService) Amount(amount string) *MarginLoanService
Amount the amount to be transferred
func (*MarginLoanService) Asset ¶
func (s *MarginLoanService) Asset(asset string) *MarginLoanService
Asset set asset being transferred, e.g., BTC
func (*MarginLoanService) Do ¶
func (s *MarginLoanService) Do(ctx context.Context, opts ...RequestOption) (res *TransactionResponse, err error)
Do send request
func (*MarginLoanService) IsIsolated ¶
func (s *MarginLoanService) IsIsolated(isIsolated bool) *MarginLoanService
IsIsolated is for isolated margin or not, "TRUE", "FALSE",default "FALSE"
func (*MarginLoanService) Symbol ¶
func (s *MarginLoanService) Symbol(symbol string) *MarginLoanService
Symbol set isolated symbol
type MarginLoanStatusType ¶
type MarginLoanStatusType string
MarginLoanStatusType define margin loan status type
type MarginOCOOrder ¶
type MarginOCOOrder struct {
Symbol string `json:"symbol"`
OrderID int64 `json:"orderId"`
ClientOrderID string `json:"clientOrderId"`
}
MarginOCOOrder may be returned in an array of MarginOCOOrder in a CreateMarginOCOResponse
type MarginOCOOrderReport ¶
type MarginOCOOrderReport struct {
Symbol string `json:"symbol"`
OrderID int64 `json:"orderId"`
OrderListID int64 `json:"orderListId"`
ClientOrderID string `json:"clientOrderId"`
TransactionTime int64 `json:"transactionTime"`
Price string `json:"price"`
OrigQuantity string `json:"origQty"`
ExecutedQuantity string `json:"executedQty"`
CummulativeQuoteQuantity string `json:"cummulativeQuoteQty"`
Status OrderStatusType `json:"status"`
TimeInForce TimeInForceType `json:"timeInForce"`
Type OrderType `json:"type"`
Side SideType `json:"side"`
StopPrice string `json:"stopPrice"`
}
MarginOCOOrderReport may be returned in an array of MarginOCOOrderReport in a CreateMarginOCOResponse
type MarginPair ¶
type MarginPair struct {
ID int64 `json:"id"`
Symbol string `json:"symbol"`
Base string `json:"base"`
Quote string `json:"quote"`
IsMarginTrade bool `json:"isMarginTrade"`
IsBuyAllowed bool `json:"isBuyAllowed"`
IsSellAllowed bool `json:"isSellAllowed"`
}
MarginPair define margin pair info
type MarginPriceIndex ¶
type MarginPriceIndex struct {
CalcTime int64 `json:"calcTime"`
Price string `json:"price"`
Symbol string `json:"symbol"`
}
MarginPriceIndex define margin price index
type MarginRepay ¶
type MarginRepay struct {
Asset string `json:"asset"`
Amount string `json:"amount"`
Interest string `json:"interest"`
Principal string `json:"principal"`
Timestamp int64 `json:"timestamp"`
Status MarginRepayStatusType `json:"status"`
TxID int64 `json:"txId"`
}
MarginRepay define margin repay
type MarginRepayResponse ¶
type MarginRepayResponse struct {
Rows []MarginRepay `json:"rows"`
Total int64 `json:"total"`
}
MarginRepayResponse define margin repay response
type MarginRepayService ¶
type MarginRepayService struct {
// contains filtered or unexported fields
}
MarginRepayService repay loan for margin account Deprecated: use MarginBorrowRepayService instead
func (*MarginRepayService) Amount ¶
func (s *MarginRepayService) Amount(amount string) *MarginRepayService
Amount the amount to be transferred
func (*MarginRepayService) Asset ¶
func (s *MarginRepayService) Asset(asset string) *MarginRepayService
Asset set asset being transferred, e.g., BTC
func (*MarginRepayService) Do ¶
func (s *MarginRepayService) Do(ctx context.Context, opts ...RequestOption) (res *TransactionResponse, err error)
Do send request
func (*MarginRepayService) IsIsolated ¶
func (s *MarginRepayService) IsIsolated(isIsolated bool) *MarginRepayService
IsIsolated is for isolated margin or not, "TRUE", "FALSE",default "FALSE"
func (*MarginRepayService) Symbol ¶
func (s *MarginRepayService) Symbol(symbol string) *MarginRepayService
Symbol set isolated symbol
type MarginRepayStatusType ¶
type MarginRepayStatusType string
MarginRepayStatusType define margin repay status type
type MarginSpecialKey ¶ added in v2.0.6
type MarginSpecialKey struct {
APIKey string `json:"apiKey"`
SecretKey string `json:"secretKey"`
Type string `json:"type"`
}
MarginSpecialKey defines the response of CreateMarginSpecialKeyService
type MarginSubAccount ¶ added in v2.0.4
type MarginSubscriptionResponse ¶ added in v2.0.8
type MarginSubscriptionToken ¶ added in v2.0.8
type MarginSubscriptionTokenService ¶ added in v2.0.8
type MarginSubscriptionTokenService struct {
// contains filtered or unexported fields
}
PayTransactionService retrieve the fiat deposit/withdraw history
func (*MarginSubscriptionTokenService) Do ¶ added in v2.0.8
func (s *MarginSubscriptionTokenService) Do(ctx context.Context, opts ...RequestOption) (*MarginSubscriptionToken, error)
Do send request
func (*MarginSubscriptionTokenService) IsIsolated ¶ added in v2.0.8
func (s *MarginSubscriptionTokenService) IsIsolated(isIsolated bool) *MarginSubscriptionTokenService
IsIsolated set IsIsolated
func (*MarginSubscriptionTokenService) Symbol ¶ added in v2.0.8
func (s *MarginSubscriptionTokenService) Symbol(symbol string) *MarginSubscriptionTokenService
Symbol set Symbol
func (*MarginSubscriptionTokenService) Validity ¶ added in v2.0.8
func (s *MarginSubscriptionTokenService) Validity(validity int64) *MarginSubscriptionTokenService
Validity set Validity
type MarginTradeCoeffVo ¶ added in v2.0.4
type MarginTransferService ¶
type MarginTransferService struct {
// contains filtered or unexported fields
}
MarginTransferService transfer between spot account and margin account
func (*MarginTransferService) Amount ¶
func (s *MarginTransferService) Amount(amount string) *MarginTransferService
Amount the amount to be transferred
func (*MarginTransferService) Asset ¶
func (s *MarginTransferService) Asset(asset string) *MarginTransferService
Asset set asset being transferred, e.g., BTC
func (*MarginTransferService) Do ¶
func (s *MarginTransferService) Do(ctx context.Context, opts ...RequestOption) (res *TransactionResponse, err error)
Do send request
func (*MarginTransferService) Type ¶
func (s *MarginTransferService) Type(transferType MarginTransferType) *MarginTransferService
Type 1: transfer from main account to margin account 2: transfer from margin account to main account
type MarginTransferType ¶
type MarginTransferType int
MarginTransferType define margin transfer type
type MarginUserAsset ¶ added in v2.0.4
type MarginUserAssetVo ¶ added in v2.0.4
type MarketLotSizeFilter ¶
type MarketLotSizeFilter struct {
MaxQuantity string `json:"maxQty"`
MinQuantity string `json:"minQty"`
StepSize string `json:"stepSize"`
}
MarketLotSizeFilter define market lot size filter of symbol
type MaxBorrowable ¶
type MaxBorrowable struct {
Amount string `json:"amount"` // account's currently max borrowable amount with sufficient system availability
BorrowLimit string `json:"borrowLimit"` // max borrowable amount limited by the account level
}
MaxBorrowable define max borrowable response
type MaxNumAlgoOrdersFilter ¶
type MaxNumAlgoOrdersFilter struct {
MaxNumAlgoOrders int `json:"maxNumAlgoOrders"`
}
MaxNumAlgoOrdersFilter define max num algo orders filter of symbol
type MaxNumOrdersFilter ¶ added in v2.0.1
type MaxNumOrdersFilter struct {
MaxNumOrders int `json:"maxNumOrders"`
}
The "Algo" order is STOP_ LOSS, STOP_ LOS_ LIMITED, TAKE_ PROFIT and TAKE_ PROFIT_ Limit Stop Loss Order. Therefore, orders other than the above types are non conditional(Algo) orders, and MaxNumOrders defines the maximum number of orders placed for these types of orders
type MaxTransferable ¶
type MaxTransferable struct {
Amount string `json:"amount"`
}
MaxTransferable define max transferable response
type Network ¶
type Network struct {
AddressRegex string `json:"addressRegex"`
Coin string `json:"coin"`
DepositDesc string `json:"depositDesc,omitempty"` // 仅在充值关闭时返回
DepositEnable bool `json:"depositEnable"`
DepositDust string `json:"depositDust"`
IsDefault bool `json:"isDefault"`
MemoRegex string `json:"memoRegex"`
MinConfirm int `json:"minConfirm"` // 上账所需的最小确认数
Name string `json:"name"`
Network string `json:"network"`
ResetAddressStatus bool `json:"resetAddressStatus"`
SpecialTips string `json:"specialTips"`
UnLockConfirm int `json:"unLockConfirm"` // 解锁需要的确认数
WithdrawDesc string `json:"withdrawDesc,omitempty"` // 仅在提现关闭时返回
WithdrawEnable bool `json:"withdrawEnable"`
WithdrawFee string `json:"withdrawFee"`
WithdrawIntegerMultiple string `json:"withdrawIntegerMultiple"`
WithdrawMax string `json:"withdrawMax"`
WithdrawMin string `json:"withdrawMin"`
SameAddress bool `json:"sameAddress"` // 是否需要memo
EstimatedArrivalTime int `json:"estimatedArrivalTime"`
Busy bool `json:"busy"`
ContractAddressUrl string `json:"contractAddressUrl"`
ContractAddress string `json:"contractAddress"`
}
type NewOrderRespType ¶
type NewOrderRespType string
NewOrderRespType define response JSON verbosity
type NotionalFilter ¶
type NotionalFilter struct {
MinNotional string `json:"minNotional"`
ApplyMinToMarket bool `json:"applyMinToMarket"`
MaxNotional string `json:"maxNotional"`
ApplyMaxToMarket bool `json:"applyMaxToMarket"`
AvgPriceMins int `json:"avgPriceMins"`
}
NotionalFilter define notional filter of symbol
type OCOOrder ¶
type OCOOrder struct {
Symbol string `json:"symbol"`
OrderID int64 `json:"orderId"`
ClientOrderID string `json:"clientOrderId"`
}
OCOOrder may be returned in an array of OCOOrder in a CreateOCOResponse.
type OCOOrderReport ¶
type OCOOrderReport struct {
Symbol string `json:"symbol"`
OrderID int64 `json:"orderId"`
OrderListID int64 `json:"orderListId"`
ClientOrderID string `json:"clientOrderId"`
OrigClientOrderID string `json:"origClientOrderId"`
TransactionTime int64 `json:"transactionTime"`
Price string `json:"price"`
OrigQuantity string `json:"origQty"`
ExecutedQuantity string `json:"executedQty"`
CummulativeQuoteQuantity string `json:"cummulativeQuoteQty"`
Status OrderStatusType `json:"status"`
TimeInForce TimeInForceType `json:"timeInForce"`
Type OrderType `json:"type"`
Side SideType `json:"side"`
StopPrice string `json:"stopPrice"`
IcebergQuantity string `json:"icebergQty"`
}
OCOOrderReport may be returned in an array of OCOOrderReport in a CreateOCOResponse.
type Oco ¶
type Oco struct {
Symbol string `json:"symbol"`
OrderListId int64 `json:"orderListId"`
ContingencyType string `json:"contingencyType"`
ListStatusType string `json:"listStatusType"`
ListOrderStatus string `json:"listOrderStatus"`
ListClientOrderID string `json:"listClientOrderId"`
TransactionTime int64 `json:"transactionTime"`
Orders []*Order `json:"orders"`
}
oco define oco info
type Order ¶
type Order struct {
Symbol string `json:"symbol"`
OrderID int64 `json:"orderId"`
OrderListId int64 `json:"orderListId"`
ClientOrderID string `json:"clientOrderId"`
Price string `json:"price"`
OrigQuantity string `json:"origQty"`
ExecutedQuantity string `json:"executedQty"`
CummulativeQuoteQuantity string `json:"cummulativeQuoteQty"`
Status OrderStatusType `json:"status"`
TimeInForce TimeInForceType `json:"timeInForce"`
Type OrderType `json:"type"`
Side SideType `json:"side"`
StopPrice string `json:"stopPrice"`
IcebergQuantity string `json:"icebergQty"`
Time int64 `json:"time"`
UpdateTime int64 `json:"updateTime"`
IsWorking bool `json:"isWorking"`
IsIsolated bool `json:"isIsolated"`
OrigQuoteOrderQuantity string `json:"origQuoteOrderQty"`
}
Order define order info
type OrderCreateWsRequest ¶ added in v2.0.4
type OrderCreateWsRequest struct {
// contains filtered or unexported fields
}
OrderCreateWsRequest parameters for 'order.place' websocket API
func NewOrderCreateWsRequest ¶ added in v2.0.4
func NewOrderCreateWsRequest() *OrderCreateWsRequest
NewOrderCreateWsRequest init OrderCreateWsRequest
func (*OrderCreateWsRequest) GetParams ¶ added in v2.0.4
func (s *OrderCreateWsRequest) GetParams() map[string]interface{}
func (*OrderCreateWsRequest) IcebergQty ¶ added in v2.0.4
func (s *OrderCreateWsRequest) IcebergQty(icebergQty string) *OrderCreateWsRequest
IcebergQty set icebergQty
func (*OrderCreateWsRequest) NewClientOrderID ¶ added in v2.0.4
func (s *OrderCreateWsRequest) NewClientOrderID(newClientOrderID string) *OrderCreateWsRequest
NewClientOrderID set newClientOrderID
func (*OrderCreateWsRequest) NewOrderRespType ¶ added in v2.0.4
func (s *OrderCreateWsRequest) NewOrderRespType(newOrderRespType NewOrderRespType) *OrderCreateWsRequest
NewOrderRespType set newOrderRespType
func (*OrderCreateWsRequest) Price ¶ added in v2.0.4
func (s *OrderCreateWsRequest) Price(price string) *OrderCreateWsRequest
Price set price
func (*OrderCreateWsRequest) Quantity ¶ added in v2.0.4
func (s *OrderCreateWsRequest) Quantity(quantity string) *OrderCreateWsRequest
Quantity set quantity
func (*OrderCreateWsRequest) QuoteOrderQty ¶ added in v2.0.4
func (s *OrderCreateWsRequest) QuoteOrderQty(quoteOrderQty string) *OrderCreateWsRequest
QuoteOrderQty set quoteOrderQty
func (*OrderCreateWsRequest) RecvWindow ¶ added in v2.0.4
func (s *OrderCreateWsRequest) RecvWindow(recvWindow uint16) *OrderCreateWsRequest
RecvWindow set recvWindow
func (*OrderCreateWsRequest) Side ¶ added in v2.0.4
func (s *OrderCreateWsRequest) Side(side SideType) *OrderCreateWsRequest
Side set side
func (*OrderCreateWsRequest) StopPrice ¶ added in v2.0.4
func (s *OrderCreateWsRequest) StopPrice(stopPrice string) *OrderCreateWsRequest
StopPrice set stopPrice
func (*OrderCreateWsRequest) StrategyId ¶ added in v2.0.4
func (s *OrderCreateWsRequest) StrategyId(strategyId uint64) *OrderCreateWsRequest
StrategyId set strategyId
func (*OrderCreateWsRequest) StrategyType ¶ added in v2.0.4
func (s *OrderCreateWsRequest) StrategyType(strategyType uint32) *OrderCreateWsRequest
StrategyType set strategyType
func (*OrderCreateWsRequest) Symbol ¶ added in v2.0.4
func (s *OrderCreateWsRequest) Symbol(symbol string) *OrderCreateWsRequest
Symbol set symbol
func (*OrderCreateWsRequest) TimeInForce ¶ added in v2.0.4
func (s *OrderCreateWsRequest) TimeInForce(timeInForce TimeInForceType) *OrderCreateWsRequest
TimeInForce set timeInForce
func (*OrderCreateWsRequest) TrailingDelta ¶ added in v2.0.4
func (s *OrderCreateWsRequest) TrailingDelta(trailingDelta int64) *OrderCreateWsRequest
TrailingDelta set trailingDelta
func (*OrderCreateWsRequest) Type ¶ added in v2.0.4
func (s *OrderCreateWsRequest) Type(orderType OrderType) *OrderCreateWsRequest
Type set type
type OrderCreateWsService ¶ added in v2.0.4
type OrderCreateWsService struct {
ApiKey string
SecretKey string
KeyType string
TimeOffset int64
// contains filtered or unexported fields
}
OrderCreateWsService creates order
func NewOrderCreateWsService ¶ added in v2.0.4
func NewOrderCreateWsService(apiKey, secretKey string) (*OrderCreateWsService, error)
NewOrderCreateWsService init OrderCreateWsService
func (*OrderCreateWsService) Do ¶ added in v2.0.4
func (s *OrderCreateWsService) Do(requestID string, request *OrderCreateWsRequest) error
Do - sends 'order.place' request
func (*OrderCreateWsService) GetReadChannel ¶ added in v2.0.4
func (s *OrderCreateWsService) GetReadChannel() <-chan []byte
GetReadChannel returns channel with API response data (including API errors)
func (*OrderCreateWsService) GetReadErrorChannel ¶ added in v2.0.4
func (s *OrderCreateWsService) GetReadErrorChannel() <-chan error
GetReadErrorChannel returns channel with errors which are occurred while reading websocket connection
func (*OrderCreateWsService) GetReconnectCount ¶ added in v2.0.4
func (s *OrderCreateWsService) GetReconnectCount() int64
GetReconnectCount returns count of reconnect attempts by client
func (*OrderCreateWsService) ReceiveAllDataBeforeStop ¶ added in v2.0.4
func (s *OrderCreateWsService) ReceiveAllDataBeforeStop(timeout time.Duration)
ReceiveAllDataBeforeStop waits until all responses will be received from websocket until timeout expired
func (*OrderCreateWsService) SyncDo ¶ added in v2.0.4
func (s *OrderCreateWsService) SyncDo(requestID string, request *OrderCreateWsRequest) (*CreateOrderWsResponse, error)
SyncDo - sends 'order.place' request and receives response
type PayTradeHistory ¶
type PayTradeHistory struct {
Code string `json:"code"`
Message string `json:"message"`
Data []PayTradeItem `json:"data"`
Success bool `json:"success"`
}
type PayTradeHistoryService ¶
type PayTradeHistoryService struct {
// contains filtered or unexported fields
}
PayTransactionService retrieve the fiat deposit/withdraw history
func (*PayTradeHistoryService) Do ¶
func (s *PayTradeHistoryService) Do(ctx context.Context, opts ...RequestOption) (*PayTradeHistory, error)
Do send request
func (*PayTradeHistoryService) EndTimestamp ¶
func (s *PayTradeHistoryService) EndTimestamp(endTimestamp int64) *PayTradeHistoryService
EndTimestamp set endTimestamp
func (*PayTradeHistoryService) Limit ¶
func (s *PayTradeHistoryService) Limit(limit int32) *PayTradeHistoryService
Rows set rows
func (*PayTradeHistoryService) StartTimestamp ¶
func (s *PayTradeHistoryService) StartTimestamp(startTimestamp int64) *PayTradeHistoryService
StartTimestamp set startTimestamp
type PayTradeItem ¶
type PayTradeItem struct {
OrderType string `json:"orderType"`
TransactionID string `json:"transactionId"`
TransactionTime int64 `json:"transactionTime"`
Amount string `json:"amount"`
Currency string `json:"currency"`
PayerInfo *PayerInfo `json:"payerInfo"`
ReceiverInfo *ReceiverInfo `json:"receiverInfo"`
FundsDetail []FundsDetail `json:"fundsDetail"`
}
type PayerInfo ¶
type PayerInfo struct {
Name string `json:"name"`
Type string `json:"type"`
Email string `json:"email"`
BinanceId int `json:"binanceId"`
AccountId int `json:"accountId"`
CountryCode int `json:"countryCode"`
PhoneNumber string `json:"phoneNumber"`
MobileCode string `json:"mobileCode"`
UnmaskData bool `json:"unmaskData"`
}
type PercentPriceBySideFilter ¶ added in v2.0.1
type PercentPriceBySideFilter struct {
AveragePriceMins int `json:"avgPriceMins"`
BidMultiplierUp string `json:"bidMultiplierUp"`
BidMultiplierDown string `json:"bidMultiplierDown"`
AskMultiplierUp string `json:"askMultiplierUp"`
AskMultiplierDown string `json:"askMultiplierDown"`
}
PERCENT_PRICE_BY_SIDE define percent price filter of symbol by side
type PingService ¶
type PingService struct {
// contains filtered or unexported fields
}
PingService ping server
func (*PingService) Do ¶
func (s *PingService) Do(ctx context.Context, opts ...RequestOption) (err error)
Do send request
type PoolShareInformation ¶
type PoolShareInformation struct {
}
type PriceChangeStats ¶
type PriceChangeStats struct {
Symbol string `json:"symbol"`
PriceChange string `json:"priceChange"`
PriceChangePercent string `json:"priceChangePercent"`
WeightedAvgPrice string `json:"weightedAvgPrice"`
PrevClosePrice string `json:"prevClosePrice"`
LastPrice string `json:"lastPrice"`
LastQty string `json:"lastQty"`
BidPrice string `json:"bidPrice"`
BidQty string `json:"bidQty"`
AskPrice string `json:"askPrice"`
AskQty string `json:"askQty"`
OpenPrice string `json:"openPrice"`
HighPrice string `json:"highPrice"`
LowPrice string `json:"lowPrice"`
Volume string `json:"volume"`
QuoteVolume string `json:"quoteVolume"`
OpenTime int64 `json:"openTime"`
CloseTime int64 `json:"closeTime"`
FirstID int64 `json:"firstId"`
LastID int64 `json:"lastId"`
Count int64 `json:"count"`
}
PriceChangeStats define price change stats
type PriceFilter ¶
type PriceFilter struct {
MaxPrice string `json:"maxPrice"`
MinPrice string `json:"minPrice"`
TickSize string `json:"tickSize"`
}
PriceFilter define price filter of symbol
type PurchaseSavingsFlexibleProductResponse ¶
type PurchaseSavingsFlexibleProductResponse struct {
PurchaseId uint64 `json:"purchaseId"`
}
type PurchaseSavingsFlexibleProductService ¶
type PurchaseSavingsFlexibleProductService struct {
// contains filtered or unexported fields
}
PurchaseSavingsFlexibleProductService https://binance-docs.github.io/apidocs/spot/en/#purchase-flexible-product-user_data
func (*PurchaseSavingsFlexibleProductService) Amount ¶
func (s *PurchaseSavingsFlexibleProductService) Amount(amount float64) *PurchaseSavingsFlexibleProductService
Amount is the quantity of the product to purchase
func (*PurchaseSavingsFlexibleProductService) Do ¶
func (s *PurchaseSavingsFlexibleProductService) Do(ctx context.Context, opts ...RequestOption) (uint64, error)
Do send request
func (*PurchaseSavingsFlexibleProductService) ProductId ¶
func (s *PurchaseSavingsFlexibleProductService) ProductId(productId string) *PurchaseSavingsFlexibleProductService
ProductId represent the id of the flexible product to purchase
type QueryClaimedRewardHistoryService ¶
type QueryClaimedRewardHistoryService struct {
// contains filtered or unexported fields
}
QueryClaimedRewardHistoryService to query history of user claimed reward
func (*QueryClaimedRewardHistoryService) AssetRewards ¶
func (s *QueryClaimedRewardHistoryService) AssetRewards(assetRewards string) *QueryClaimedRewardHistoryService
AssetRewards set expected rewarded asset name
func (*QueryClaimedRewardHistoryService) Do ¶
func (s *QueryClaimedRewardHistoryService) Do(ctx context.Context) ([]*ClaimedRewardHistory, error)
Do sends the request.
func (*QueryClaimedRewardHistoryService) EndTime ¶
func (s *QueryClaimedRewardHistoryService) EndTime(endTime int64) *QueryClaimedRewardHistoryService
EndTime set end time when reward
func (*QueryClaimedRewardHistoryService) PoolId ¶
func (s *QueryClaimedRewardHistoryService) PoolId(poolId int64) *QueryClaimedRewardHistoryService
PoolId set pool id
func (*QueryClaimedRewardHistoryService) ResultSize ¶
func (s *QueryClaimedRewardHistoryService) ResultSize(resultSize int64) *QueryClaimedRewardHistoryService
ResultSize set the size will be returned, max to 100
func (*QueryClaimedRewardHistoryService) RewardType ¶
func (s *QueryClaimedRewardHistoryService) RewardType(t LiquidityRewardType) *QueryClaimedRewardHistoryService
RewardType set rewardType
func (*QueryClaimedRewardHistoryService) StartTime ¶
func (s *QueryClaimedRewardHistoryService) StartTime(startTime int64) *QueryClaimedRewardHistoryService
StartTime set start time when reward
type RateLimit ¶
type RateLimit struct {
RateLimitType string `json:"rateLimitType"`
Interval string `json:"interval"`
IntervalNum int64 `json:"intervalNum"`
Limit int64 `json:"limit"`
Count int64 `json:"count"`
}
RateLimit struct
type RateLimitBlocker ¶ added in v2.0.6
type RateLimitBlocker struct {
// contains filtered or unexported fields
}
func NewRateLimitBlocker ¶ added in v2.0.6
func NewRateLimitBlocker() *RateLimitBlocker
func (*RateLimitBlocker) SetRetryAfter ¶ added in v2.0.6
func (r *RateLimitBlocker) SetRetryAfter(at time.Time)
func (*RateLimitBlocker) Try ¶ added in v2.0.6
func (r *RateLimitBlocker) Try() error
type RateLimitFull ¶
type RateLimitFull struct {
RateLimitType RateLimitType `json:"rateLimitType"`
Interval RateLimitInterval `json:"interval"`
IntervalNum int `json:"intervalNum"`
Limit int `json:"limit"`
Count int `json:"count"`
}
type RateLimitInterval ¶
type RateLimitInterval string
RateLimitInterval define the rate limitation intervals
type RateLimitService ¶
type RateLimitService struct {
// contains filtered or unexported fields
}
RateLimitService get rate limits
func (*RateLimitService) Do ¶
func (s *RateLimitService) Do(ctx context.Context, opts ...RequestOption) (res []*RateLimitFull, err error)
Do send request
type RateLimitType ¶
type RateLimitType string
RateLimitType define the rate limitation types see https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md#enum-definitions
type ReceiverInfo ¶
type ReceiverInfo struct {
Name string `json:"name"`
Type string `json:"type"`
Email string `json:"email,omitempty"`
BinanceId int `json:"binanceId,omitempty"`
AccountId int `json:"accountId"`
CountryCode int `json:"countryCode,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
MobileCode string `json:"mobileCode,omitempty"`
UnmaskData bool `json:"unmaskData"`
Extend struct {
PhoneOrEmailChanged bool `json:"phoneOrEmailChanged"`
} `json:"extend,omitempty"`
}
type RecentTradesService ¶
type RecentTradesService struct {
// contains filtered or unexported fields
}
RecentTradesService list recent trades
func (*RecentTradesService) Do ¶
func (s *RecentTradesService) Do(ctx context.Context, opts ...RequestOption) (res []*Trade, err error)
Do send request
func (*RecentTradesService) Limit ¶
func (s *RecentTradesService) Limit(limit int) *RecentTradesService
Limit set limit
func (*RecentTradesService) Symbol ¶
func (s *RecentTradesService) Symbol(symbol string) *RecentTradesService
Symbol set symbol
type RedeemSavingsFlexibleProductService ¶
type RedeemSavingsFlexibleProductService struct {
// contains filtered or unexported fields
}
RedeemSavingsFlexibleProductService https://binance-docs.github.io/apidocs/spot/en/#redeem-flexible-product-user_data
func (*RedeemSavingsFlexibleProductService) Amount ¶
func (s *RedeemSavingsFlexibleProductService) Amount(amount float64) *RedeemSavingsFlexibleProductService
Amount is the quantity of the product to redeem
func (*RedeemSavingsFlexibleProductService) Do ¶
func (s *RedeemSavingsFlexibleProductService) Do(ctx context.Context, opts ...RequestOption) error
Do send request
func (*RedeemSavingsFlexibleProductService) ProductId ¶
func (s *RedeemSavingsFlexibleProductService) ProductId(productId string) *RedeemSavingsFlexibleProductService
ProductId represent the id of the flexible product to redeem
func (*RedeemSavingsFlexibleProductService) Type ¶
func (s *RedeemSavingsFlexibleProductService) Type(redeemType string) *RedeemSavingsFlexibleProductService
Type ("FAST", "NORMAL")
type RemoveLiquidityResponse ¶
type RemoveLiquidityResponse struct {
OperationId int64 `json:"operationId"`
}
type RemoveLiquidityService ¶
type RemoveLiquidityService struct {
// contains filtered or unexported fields
}
RemoveLiquidityService to remove liquidity
func (*RemoveLiquidityService) AddAesst ¶
func (s *RemoveLiquidityService) AddAesst(asset string) *RemoveLiquidityService
QuoteQty set quoteQty
func (*RemoveLiquidityService) Do ¶
func (s *RemoveLiquidityService) Do(ctx context.Context) (*RemoveLiquidityResponse, error)
Do sends the request.
func (*RemoveLiquidityService) OperationType ¶
func (s *RemoveLiquidityService) OperationType(operationType LiquidityOperationType) *RemoveLiquidityService
OperationType set operationType
func (*RemoveLiquidityService) PoolId ¶
func (s *RemoveLiquidityService) PoolId(poolId int64) *RemoveLiquidityService
PoolId set poolId
func (*RemoveLiquidityService) ShareAmount ¶
func (s *RemoveLiquidityService) ShareAmount(amt float64) *RemoveLiquidityService
ShareAmount set shareAmount
type RequestOption ¶
type RequestOption func(*request)
RequestOption define option type for request
func WithHeader ¶
func WithHeader(key, value string, replace bool) RequestOption
WithHeader set or add a header value to the request
func WithHeaders ¶
func WithHeaders(header http.Header) RequestOption
WithHeaders set or replace the headers of the request
func WithRecvWindow ¶
func WithRecvWindow(recvWindow int64) RequestOption
WithRecvWindow set recvWindow param for the request
type RewardClaimStatus ¶
type RewardClaimStatus int
RewardClaimStatus define the status of claiming a reward
type SavingFixedProjectPosition ¶
type SavingFixedProjectPosition struct {
Asset string `json:"asset"`
CanTransfer bool `json:"canTransfer"`
CreateTimestamp int64 `json:"createTimestamp"`
Duration int64 `json:"duration"`
StartTime int64 `json:"startTime"`
EndTime int64 `json:"endTime"`
PurchaseTime int64 `json:"purchaseTime"`
RedeemDate string `json:"redeemDate"`
Interest string `json:"interest"`
InterestRate string `json:"interestRate"`
Lot int32 `json:"lot"`
PositionId int64 `json:"positionId"`
Principal string `json:"principal"`
ProjectId string `json:"projectId"`
ProjectName string `json:"projectName"`
Status string `json:"status"`
ProjectType string `json:"type"`
}
SavingFixedProjectPosition represents a saving flexible product position.
type SavingFixedProjectPositionsService ¶
type SavingFixedProjectPositionsService struct {
// contains filtered or unexported fields
}
SavingFixedProjectPositionsService fetches the saving flexible product positions
func (*SavingFixedProjectPositionsService) Asset ¶
func (s *SavingFixedProjectPositionsService) Asset(asset string) *SavingFixedProjectPositionsService
Asset sets the asset parameter.
func (*SavingFixedProjectPositionsService) Do ¶
func (s *SavingFixedProjectPositionsService) Do(ctx context.Context, opts ...RequestOption) ([]*SavingFixedProjectPosition, error)
Do send request
func (*SavingFixedProjectPositionsService) ProjectID ¶
func (s *SavingFixedProjectPositionsService) ProjectID(projectId string) *SavingFixedProjectPositionsService
Project ID of the fixed project/activity
func (*SavingFixedProjectPositionsService) Status ¶
func (s *SavingFixedProjectPositionsService) Status(status string) *SavingFixedProjectPositionsService
Status ("HOLDING", "REDEEMED"), default will fetch all
type SavingFlexibleProductPosition ¶
type SavingFlexibleProductPosition struct {
Asset string `json:"asset"`
ProductId string `json:"productId"`
ProductName string `json:"productName"`
AvgAnnualInterestRate string `json:"avgAnnualInterestRate"`
AnnualInterestRate string `json:"annualInterestRate"`
DailyInterestRate string `json:"dailyInterestRate"`
TotalInterest string `json:"totalInterest"`
TotalAmount string `json:"totalAmount"`
TotalPurchasedAmount string `json:"todayPurchasedAmount"`
RedeemingAmount string `json:"redeemingAmount"`
FreeAmount string `json:"freeAmount"`
FreezeAmount string `json:"freezeAmount,omitempty"`
LockedAmount string `json:"lockedAmount,omitempty"`
CanRedeem bool `json:"canRedeem"`
}
SavingFlexibleProductPosition represents a saving flexible product position.
type SavingFlexibleProductPositionsService ¶
type SavingFlexibleProductPositionsService struct {
// contains filtered or unexported fields
}
SavingFlexibleProductPositionsService fetches the saving flexible product positions
func (*SavingFlexibleProductPositionsService) Asset ¶
func (s *SavingFlexibleProductPositionsService) Asset(asset string) *SavingFlexibleProductPositionsService
Asset sets the asset parameter.
func (*SavingFlexibleProductPositionsService) Do ¶
func (s *SavingFlexibleProductPositionsService) Do(ctx context.Context, opts ...RequestOption) ([]*SavingFlexibleProductPosition, error)
Do send request
type SavingsFixedProduct ¶
type SavingsFixedProduct struct {
Asset string `json:"asset"`
DisplayPriority int `json:"displayPriority"`
Duration int `json:"duration"`
InterestPerLot string `json:"interestPerLot"`
InterestRate string `json:"interestRate"`
LotSize string `json:"lotSize"`
LotsLowLimit int `json:"lotsLowLimit"`
LotsPurchased int `json:"lotsPurchased"`
LotsUpLimit int `json:"lotsUpLimit"`
MaxLotsPerUser int `json:"maxLotsPerUser"`
NeedKyc bool `json:"needKyc"`
ProjectId string `json:"projectId"`
ProjectName string `json:"projectName"`
Status string `json:"status"`
Type string `json:"type"`
WithAreaLimitation bool `json:"withAreaLimitation"`
}
SavingsFixedProduct define a fixed product (Savings)
type SavingsFlexibleProduct ¶
type SavingsFlexibleProduct struct {
Asset string `json:"asset"`
AvgAnnualInterestRate string `json:"avgAnnualInterestRate"`
CanPurchase bool `json:"canPurchase"`
CanRedeem bool `json:"canRedeem"`
DailyInterestPerThousand string `json:"dailyInterestPerThousand"`
Featured bool `json:"featured"`
MinPurchaseAmount string `json:"minPurchaseAmount"`
ProductId string `json:"productId"`
PurchasedAmount string `json:"purchasedAmount"`
Status string `json:"status"`
UpLimit string `json:"upLimit"`
UpLimitPerUser string `json:"upLimitPerUser"`
}
SavingsFlexibleProduct define a flexible product (Savings)
type SelfTradePreventionMode ¶ added in v2.0.4
type SelfTradePreventionMode string
SelfTradePreventionMode define self trade prevention strategy
type ServerTimeService ¶
type ServerTimeService struct {
// contains filtered or unexported fields
}
ServerTimeService get server time
func (*ServerTimeService) Do ¶
func (s *ServerTimeService) Do(ctx context.Context, opts ...RequestOption) (serverTime int64, err error)
Do send request
type SessionWsResponse ¶ added in v2.0.4
type SessionWsResponse struct {
Id string `json:"id"`
Status int `json:"status"`
Result struct {
ApiKey string `json:"apiKey"`
AuthorizedSince int64 `json:"authorizedSince"`
ConnectedSince int64 `json:"connectedSince"`
ReturnRateLimits bool `json:"returnRateLimits"`
ServerTime int64 `json:"serverTime"`
UserDataStream bool `json:"userDataStream"`
} `json:"result"`
// error response
Error *common.APIError `json:"error,omitempty"`
}
type SetServerTimeService ¶
type SetServerTimeService struct {
// contains filtered or unexported fields
}
SetServerTimeService set server time
func (*SetServerTimeService) Do ¶
func (s *SetServerTimeService) Do(ctx context.Context, opts ...RequestOption) (timeOffset int64, err error)
Do send request
type SimpleEarnAccount ¶ added in v2.0.4
type SimpleEarnAccount struct {
TotalAmountInBTC string `json:"totalAmountInBTC"`
TotalAmountInUSDT string `json:"totalAmountInUSDT"`
TotalFlexibleAmountInBTC string `json:"totalFlexibleAmountInBTC"`
TotalFlexibleAmountInUSDT string `json:"totalFlexibleAmountInUSDT"`
TotalLockedInBTC string `json:"totalLockedInBTC"`
TotalLockedInUSDT string `json:"totalLockedInUSDT"`
}
type SimpleEarnFlexiblePersonalLeftQuotaResp ¶ added in v2.0.4
type SimpleEarnFlexiblePersonalLeftQuotaResp struct {
LeftPersonalQuota string `json:"leftPersonalQuota"`
}
type SimpleEarnFlexiblePosition ¶ added in v2.0.4
type SimpleEarnFlexiblePosition struct {
TotalAmount string `json:"totalAmount"`
TierAnnualPercentageRate map[string]string `json:"tierAnnualPercentageRate"`
LatestAnnualPercentageRate string `json:"latestAnnualPercentageRate"`
YesterdayAirdropPercentageRate string `json:"yesterdayAirdropPercentageRate"`
Asset string `json:"asset"`
AirDropAsset string `json:"airDropAsset"`
CanRedeem bool `json:"canRedeem"`
CollateralAmount string `json:"collateralAmount"`
ProductId string `json:"productId"`
YesterdayRealTimeRewards string `json:"yesterdayRealTimeRewards"`
CumulativeBonusRewards string `json:"cumulativeBonusRewards"`
CumulativeRealTimeRewards string `json:"cumulativeRealTimeRewards"`
CumulativeTotalRewards string `json:"cumulativeTotalRewards"`
AutoSubscribe bool `json:"autoSubscribe"`
}
type SimpleEarnFlexiblePositionResp ¶ added in v2.0.4
type SimpleEarnFlexiblePositionResp struct {
Rows []SimpleEarnFlexiblePosition `json:"rows"`
Total int `json:"total"`
}
type SimpleEarnFlexibleProduct ¶ added in v2.0.4
type SimpleEarnFlexibleProduct struct {
Asset string `json:"asset"`
LatestAnnualPercentageRate string `json:"latestAnnualPercentageRate"`
TierAnnualPercentageRate map[string]string `json:"tierAnnualPercentageRate"`
AirDropPercentageRate string `json:"airDropPercentageRate"`
CanPurchase bool `json:"canPurchase"`
CanRedeem bool `json:"canRedeem"`
IsSoldOut bool `json:"isSoldOut"`
Hot bool `json:"hot"`
MinPurchaseAmount string `json:"minPurchaseAmount"`
ProductId string `json:"productId"`
SubscriptionStartTime int64 `json:"subscriptionStartTime"`
Status string `json:"status"`
}
type SimpleEarnFlexibleProductResp ¶ added in v2.0.4
type SimpleEarnFlexibleProductResp struct {
Rows []SimpleEarnFlexibleProduct `json:"rows"`
Total int `json:"total"`
}
type SimpleEarnFlexibleService ¶ added in v2.0.4
type SimpleEarnFlexibleService struct {
// contains filtered or unexported fields
}
--
func (*SimpleEarnFlexibleService) GetLeftQuote ¶ added in v2.0.4
func (s *SimpleEarnFlexibleService) GetLeftQuote() *SimpleEarnGetFlexibleQuotaService
func (*SimpleEarnFlexibleService) GetPosition ¶ added in v2.0.4
func (s *SimpleEarnFlexibleService) GetPosition() *SimpleEarnGetFlexiblePositionService
func (*SimpleEarnFlexibleService) ListProduct ¶ added in v2.0.4
func (s *SimpleEarnFlexibleService) ListProduct() *SimpleEarnListFlexibleProductService
func (*SimpleEarnFlexibleService) PreviewSubscribe ¶ added in v2.0.4
func (s *SimpleEarnFlexibleService) PreviewSubscribe() *SimpleEarnFlexibleSubscriptionPreviewService
func (*SimpleEarnFlexibleService) Redeem ¶ added in v2.0.4
func (s *SimpleEarnFlexibleService) Redeem() *SimpleEarnRedeemFlexibleProductService
func (*SimpleEarnFlexibleService) SetAutoSubscribe ¶ added in v2.0.4
func (s *SimpleEarnFlexibleService) SetAutoSubscribe() *SimpleEarnSetAutoSubscribeFlexibleProductService
func (*SimpleEarnFlexibleService) Subscribe ¶ added in v2.0.4
func (s *SimpleEarnFlexibleService) Subscribe() *SimpleEarnSubscribeFlexibleProductService
type SimpleEarnFlexibleSubscriptionPreviewResp ¶ added in v2.0.4
type SimpleEarnFlexibleSubscriptionPreviewResp struct {
TotalAmount string `json:"totalAmount"`
RewardAsset string `json:"rewardAsset"`
AirDropAsset string `json:"airDropAsset"`
EstDailyBonusRewards string `json:"estDailyBonusRewards"`
EstDailyRealTimeRewards string `json:"estDailyRealTimeRewards"`
EstDailyAirdropRewards string `json:"estDailyAirdropRewards"`
}
type SimpleEarnFlexibleSubscriptionPreviewService ¶ added in v2.0.4
type SimpleEarnFlexibleSubscriptionPreviewService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnFlexibleSubscriptionPreviewService) Amount ¶ added in v2.0.4
func (s *SimpleEarnFlexibleSubscriptionPreviewService) Amount(amount string) *SimpleEarnFlexibleSubscriptionPreviewService
func (*SimpleEarnFlexibleSubscriptionPreviewService) Do ¶ added in v2.0.4
func (s *SimpleEarnFlexibleSubscriptionPreviewService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnFlexibleSubscriptionPreviewResp, err error)
func (*SimpleEarnFlexibleSubscriptionPreviewService) ProductId ¶ added in v2.0.4
func (s *SimpleEarnFlexibleSubscriptionPreviewService) ProductId(productId string) *SimpleEarnFlexibleSubscriptionPreviewService
type SimpleEarnGetAccountService ¶ added in v2.0.4
type SimpleEarnGetAccountService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnGetAccountService) Do ¶ added in v2.0.4
func (s *SimpleEarnGetAccountService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnAccount, err error)
type SimpleEarnGetFlexiblePositionService ¶ added in v2.0.4
type SimpleEarnGetFlexiblePositionService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnGetFlexiblePositionService) Asset ¶ added in v2.0.4
func (s *SimpleEarnGetFlexiblePositionService) Asset(asset string) *SimpleEarnGetFlexiblePositionService
func (*SimpleEarnGetFlexiblePositionService) Current ¶ added in v2.0.4
func (s *SimpleEarnGetFlexiblePositionService) Current(current int) *SimpleEarnGetFlexiblePositionService
func (*SimpleEarnGetFlexiblePositionService) Do ¶ added in v2.0.4
func (s *SimpleEarnGetFlexiblePositionService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnFlexiblePositionResp, err error)
func (*SimpleEarnGetFlexiblePositionService) ProductId ¶ added in v2.0.4
func (s *SimpleEarnGetFlexiblePositionService) ProductId(productId string) *SimpleEarnGetFlexiblePositionService
func (*SimpleEarnGetFlexiblePositionService) Size ¶ added in v2.0.4
func (s *SimpleEarnGetFlexiblePositionService) Size(size int) *SimpleEarnGetFlexiblePositionService
type SimpleEarnGetFlexibleQuotaService ¶ added in v2.0.4
type SimpleEarnGetFlexibleQuotaService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnGetFlexibleQuotaService) Do ¶ added in v2.0.4
func (s *SimpleEarnGetFlexibleQuotaService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnFlexiblePersonalLeftQuotaResp, err error)
func (*SimpleEarnGetFlexibleQuotaService) ProductId ¶ added in v2.0.4
func (s *SimpleEarnGetFlexibleQuotaService) ProductId(productId string) *SimpleEarnGetFlexibleQuotaService
type SimpleEarnGetLockedPositionService ¶ added in v2.0.4
type SimpleEarnGetLockedPositionService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnGetLockedPositionService) Asset ¶ added in v2.0.4
func (s *SimpleEarnGetLockedPositionService) Asset(asset string) *SimpleEarnGetLockedPositionService
func (*SimpleEarnGetLockedPositionService) Current ¶ added in v2.0.4
func (s *SimpleEarnGetLockedPositionService) Current(current int64) *SimpleEarnGetLockedPositionService
func (*SimpleEarnGetLockedPositionService) Do ¶ added in v2.0.4
func (s *SimpleEarnGetLockedPositionService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnLockedPositionResp, err error)
func (*SimpleEarnGetLockedPositionService) PositionId ¶ added in v2.0.4
func (s *SimpleEarnGetLockedPositionService) PositionId(positionId int) *SimpleEarnGetLockedPositionService
func (*SimpleEarnGetLockedPositionService) ProjectId ¶ added in v2.0.4
func (s *SimpleEarnGetLockedPositionService) ProjectId(projectId string) *SimpleEarnGetLockedPositionService
func (*SimpleEarnGetLockedPositionService) Size ¶ added in v2.0.4
func (s *SimpleEarnGetLockedPositionService) Size(size int64) *SimpleEarnGetLockedPositionService
type SimpleEarnGetLockedQuotaService ¶ added in v2.0.4
type SimpleEarnGetLockedQuotaService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnGetLockedQuotaService) Do ¶ added in v2.0.4
func (s *SimpleEarnGetLockedQuotaService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnLockedPersonalLeftQuotaResp, err error)
func (*SimpleEarnGetLockedQuotaService) ProjectId ¶ added in v2.0.4
func (s *SimpleEarnGetLockedQuotaService) ProjectId(projectId string) *SimpleEarnGetLockedQuotaService
type SimpleEarnListFlexibleProductService ¶ added in v2.0.4
type SimpleEarnListFlexibleProductService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnListFlexibleProductService) Asset ¶ added in v2.0.4
func (s *SimpleEarnListFlexibleProductService) Asset(asset string) *SimpleEarnListFlexibleProductService
func (*SimpleEarnListFlexibleProductService) Current ¶ added in v2.0.4
func (s *SimpleEarnListFlexibleProductService) Current(current int) *SimpleEarnListFlexibleProductService
func (*SimpleEarnListFlexibleProductService) Do ¶ added in v2.0.4
func (s *SimpleEarnListFlexibleProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnFlexibleProductResp, err error)
func (*SimpleEarnListFlexibleProductService) Size ¶ added in v2.0.4
func (s *SimpleEarnListFlexibleProductService) Size(size int) *SimpleEarnListFlexibleProductService
type SimpleEarnListLockedProductService ¶ added in v2.0.4
type SimpleEarnListLockedProductService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnListLockedProductService) Asset ¶ added in v2.0.4
func (s *SimpleEarnListLockedProductService) Asset(asset string) *SimpleEarnListLockedProductService
func (*SimpleEarnListLockedProductService) Current ¶ added in v2.0.4
func (s *SimpleEarnListLockedProductService) Current(current int) *SimpleEarnListLockedProductService
func (*SimpleEarnListLockedProductService) Do ¶ added in v2.0.4
func (s *SimpleEarnListLockedProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnLockedProductResp, err error)
func (*SimpleEarnListLockedProductService) Size ¶ added in v2.0.4
func (s *SimpleEarnListLockedProductService) Size(size int) *SimpleEarnListLockedProductService
type SimpleEarnLockedPersonalLeftQuotaResp ¶ added in v2.0.4
type SimpleEarnLockedPersonalLeftQuotaResp struct {
LeftPersonalQuota string `json:"leftPersonalQuota"`
}
type SimpleEarnLockedPosition ¶ added in v2.0.4
type SimpleEarnLockedPosition struct {
PositionId int `json:"positionId"`
ParentPositionId int `json:"parentPositionId"`
ProjectId string `json:"projectId"`
Asset string `json:"asset"`
Amount string `json:"amount"`
PurchaseTime int64 `json:"purchaseTime"`
Duration int `json:"duration"`
AccrualDays int `json:"accrualDays"`
RewardAsset string `json:"rewardAsset"`
APY string `json:"APY"`
RewardAmt string `json:"rewardAmt"`
ExtraRewardAsset string `json:"extraRewardAsset"`
ExtraRewardAPR string `json:"extraRewardAPR"`
EstExtraRewardAmt string `json:"estExtraRewardAmt"`
NextPay string `json:"nextPay"`
NextPayDate int64 `json:"nextPayDate"`
PayPeriod int `json:"payPeriod"`
RedeemAmountEarly string `json:"redeemAmountEarly"`
RewardsEndDate int64 `json:"rewardsEndDate"`
DeliverDate int64 `json:"deliverDate"`
RedeemPeriod int `json:"redeemPeriod"`
RedeemingAmt string `json:"redeemingAmt"`
RedeemTo string `json:"redeemTo"`
PartialAmtDeliverDate int64 `json:"partialAmtDeliverDate"`
CanRedeemEarly bool `json:"canRedeemEarly"`
CanFastRedemption bool `json:"canFastRedemption"`
AutoSubscribe bool `json:"autoSubscribe"`
Type string `json:"type"`
Status string `json:"status"`
CanReStake bool `json:"canReStake"`
}
type SimpleEarnLockedPositionResp ¶ added in v2.0.4
type SimpleEarnLockedPositionResp struct {
Rows []SimpleEarnLockedPosition `json:"rows"`
Total int `json:"total"`
}
type SimpleEarnLockedProduct ¶ added in v2.0.4
type SimpleEarnLockedProduct struct {
ProjectId string `json:"projectId"`
Detail struct {
Asset string `json:"asset"`
RewardAsset string `json:"rewardAsset"`
Duration int `json:"duration"`
Renewable bool `json:"renewable"`
IsSoldOut bool `json:"isSoldOut"`
Apr string `json:"apr"`
Status string `json:"status"`
SubscriptionStartTime int64 `json:"subscriptionStartTime"`
ExtraRewardAsset string `json:"extraRewardAsset"`
ExtraRewardAPR string `json:"extraRewardAPR"`
} `json:"detail"`
Quota struct {
TotalPersonalQuota string `json:"totalPersonalQuota"`
Minimum string `json:"minimum"`
} `json:"quota"`
}
type SimpleEarnLockedProductResp ¶ added in v2.0.4
type SimpleEarnLockedProductResp struct {
Rows []SimpleEarnLockedProduct `json:"rows"`
Total int `json:"total"`
}
type SimpleEarnLockedService ¶ added in v2.0.4
type SimpleEarnLockedService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnLockedService) GetLeftQuote ¶ added in v2.0.4
func (s *SimpleEarnLockedService) GetLeftQuote() *SimpleEarnGetLockedQuotaService
func (*SimpleEarnLockedService) GetPosition ¶ added in v2.0.4
func (s *SimpleEarnLockedService) GetPosition() *SimpleEarnGetLockedPositionService
func (*SimpleEarnLockedService) ListProduct ¶ added in v2.0.4
func (s *SimpleEarnLockedService) ListProduct() *SimpleEarnListLockedProductService
func (*SimpleEarnLockedService) PreviewSubscribe ¶ added in v2.0.4
func (s *SimpleEarnLockedService) PreviewSubscribe() *SimpleEarnLockedSubscriptionPreviewService
func (*SimpleEarnLockedService) Redeem ¶ added in v2.0.4
func (s *SimpleEarnLockedService) Redeem() *SimpleEarnRedeemLockedProductService
func (*SimpleEarnLockedService) SetAutoSubscribe ¶ added in v2.0.4
func (s *SimpleEarnLockedService) SetAutoSubscribe() *SimpleEarnSetAutoSubscribeLockedProductService
func (*SimpleEarnLockedService) SetRedeemOption ¶ added in v2.0.4
func (s *SimpleEarnLockedService) SetRedeemOption() *SimpleEarnSetRedeemOptionService
func (*SimpleEarnLockedService) Subscribe ¶ added in v2.0.4
func (s *SimpleEarnLockedService) Subscribe() *SimpleEarnSubscribeLockedProductService
type SimpleEarnLockedSubscriptionPreviewResp ¶ added in v2.0.4
type SimpleEarnLockedSubscriptionPreviewResp struct {
RewardAsset string `json:"rewardAsset"`
TotalRewardAmt string `json:"totalRewardAmt"`
ExtraRewardAsset string `json:"extraRewardAsset"`
EstTotalExtraRewardAmt string `json:"estTotalExtraRewardAmt"`
NextPay string `json:"nextPay"`
NextPayDate int64 `json:"nextPayDate"`
ValueDate int64 `json:"valueDate"`
RewardsEndDate int64 `json:"rewardsEndDate"`
DeliverDate int64 `json:"deliverDate"`
NextSubscriptionDate int64 `json:"nextSubscriptionDate"`
}
type SimpleEarnLockedSubscriptionPreviewService ¶ added in v2.0.4
type SimpleEarnLockedSubscriptionPreviewService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnLockedSubscriptionPreviewService) Amount ¶ added in v2.0.4
func (s *SimpleEarnLockedSubscriptionPreviewService) Amount(amount string) *SimpleEarnLockedSubscriptionPreviewService
func (*SimpleEarnLockedSubscriptionPreviewService) AutoSubscribe ¶ added in v2.0.4
func (s *SimpleEarnLockedSubscriptionPreviewService) AutoSubscribe(autoSubscribe bool) *SimpleEarnLockedSubscriptionPreviewService
func (*SimpleEarnLockedSubscriptionPreviewService) Do ¶ added in v2.0.4
func (s *SimpleEarnLockedSubscriptionPreviewService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnLockedSubscriptionPreviewResp, err error)
func (*SimpleEarnLockedSubscriptionPreviewService) ProjectId ¶ added in v2.0.4
func (s *SimpleEarnLockedSubscriptionPreviewService) ProjectId(projectId string) *SimpleEarnLockedSubscriptionPreviewService
type SimpleEarnRedeemFlexibleProductResp ¶ added in v2.0.4
type SimpleEarnRedeemFlexibleProductService ¶ added in v2.0.4
type SimpleEarnRedeemFlexibleProductService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnRedeemFlexibleProductService) Amount ¶ added in v2.0.4
func (s *SimpleEarnRedeemFlexibleProductService) Amount(amount string) *SimpleEarnRedeemFlexibleProductService
func (*SimpleEarnRedeemFlexibleProductService) DestAccount ¶ added in v2.0.4
func (s *SimpleEarnRedeemFlexibleProductService) DestAccount(destAccount string) *SimpleEarnRedeemFlexibleProductService
func (*SimpleEarnRedeemFlexibleProductService) Do ¶ added in v2.0.4
func (s *SimpleEarnRedeemFlexibleProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnRedeemFlexibleProductResp, err error)
func (*SimpleEarnRedeemFlexibleProductService) ProductId ¶ added in v2.0.4
func (s *SimpleEarnRedeemFlexibleProductService) ProductId(productId string) *SimpleEarnRedeemFlexibleProductService
func (*SimpleEarnRedeemFlexibleProductService) RedeemAll ¶ added in v2.0.4
func (s *SimpleEarnRedeemFlexibleProductService) RedeemAll(redeemAll bool) *SimpleEarnRedeemFlexibleProductService
type SimpleEarnRedeemLockedProductResp ¶ added in v2.0.4
type SimpleEarnRedeemLockedProductService ¶ added in v2.0.4
type SimpleEarnRedeemLockedProductService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnRedeemLockedProductService) Do ¶ added in v2.0.4
func (s *SimpleEarnRedeemLockedProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnRedeemLockedProductResp, err error)
func (*SimpleEarnRedeemLockedProductService) PositionId ¶ added in v2.0.4
func (s *SimpleEarnRedeemLockedProductService) PositionId(positionId int) *SimpleEarnRedeemLockedProductService
type SimpleEarnService ¶
type SimpleEarnService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnService) FlexibleService ¶ added in v2.0.4
func (s *SimpleEarnService) FlexibleService() *SimpleEarnFlexibleService
func (*SimpleEarnService) GetAccount ¶ added in v2.0.4
func (s *SimpleEarnService) GetAccount() *SimpleEarnGetAccountService
func (*SimpleEarnService) LockedService ¶ added in v2.0.4
func (s *SimpleEarnService) LockedService() *SimpleEarnLockedService
type SimpleEarnSetAutoSubscribeFlexibleProductResp ¶ added in v2.0.4
type SimpleEarnSetAutoSubscribeFlexibleProductResp struct {
Success bool `json:"success"`
}
type SimpleEarnSetAutoSubscribeFlexibleProductService ¶ added in v2.0.4
type SimpleEarnSetAutoSubscribeFlexibleProductService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnSetAutoSubscribeFlexibleProductService) AutoSubscribe ¶ added in v2.0.4
func (s *SimpleEarnSetAutoSubscribeFlexibleProductService) AutoSubscribe(autoSubscribe bool) *SimpleEarnSetAutoSubscribeFlexibleProductService
func (*SimpleEarnSetAutoSubscribeFlexibleProductService) Do ¶ added in v2.0.4
func (s *SimpleEarnSetAutoSubscribeFlexibleProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnSetAutoSubscribeFlexibleProductResp, err error)
func (*SimpleEarnSetAutoSubscribeFlexibleProductService) ProductId ¶ added in v2.0.4
func (s *SimpleEarnSetAutoSubscribeFlexibleProductService) ProductId(productId string) *SimpleEarnSetAutoSubscribeFlexibleProductService
type SimpleEarnSetAutoSubscribeLockedProductResp ¶ added in v2.0.4
type SimpleEarnSetAutoSubscribeLockedProductResp struct {
Success bool `json:"success"`
}
type SimpleEarnSetAutoSubscribeLockedProductService ¶ added in v2.0.4
type SimpleEarnSetAutoSubscribeLockedProductService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnSetAutoSubscribeLockedProductService) AutoSubscribe ¶ added in v2.0.4
func (s *SimpleEarnSetAutoSubscribeLockedProductService) AutoSubscribe(autoSubscribe bool) *SimpleEarnSetAutoSubscribeLockedProductService
func (*SimpleEarnSetAutoSubscribeLockedProductService) Do ¶ added in v2.0.4
func (s *SimpleEarnSetAutoSubscribeLockedProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnSetAutoSubscribeLockedProductResp, err error)
func (*SimpleEarnSetAutoSubscribeLockedProductService) PositionId ¶ added in v2.0.4
func (s *SimpleEarnSetAutoSubscribeLockedProductService) PositionId(positionId int) *SimpleEarnSetAutoSubscribeLockedProductService
type SimpleEarnSetRedeemOptionResp ¶ added in v2.0.4
type SimpleEarnSetRedeemOptionResp struct {
Success bool `json:"success"`
}
type SimpleEarnSetRedeemOptionService ¶ added in v2.0.4
type SimpleEarnSetRedeemOptionService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnSetRedeemOptionService) Do ¶ added in v2.0.4
func (s *SimpleEarnSetRedeemOptionService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnSetRedeemOptionResp, err error)
func (*SimpleEarnSetRedeemOptionService) PositionId ¶ added in v2.0.4
func (s *SimpleEarnSetRedeemOptionService) PositionId(positionId string) *SimpleEarnSetRedeemOptionService
func (*SimpleEarnSetRedeemOptionService) RedeemTo ¶ added in v2.0.4
func (s *SimpleEarnSetRedeemOptionService) RedeemTo(redeemTo RedeemTo) *SimpleEarnSetRedeemOptionService
type SimpleEarnSubscribeFlexibleProductResp ¶ added in v2.0.4
type SimpleEarnSubscribeFlexibleProductService ¶ added in v2.0.4
type SimpleEarnSubscribeFlexibleProductService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnSubscribeFlexibleProductService) Amount ¶ added in v2.0.4
func (s *SimpleEarnSubscribeFlexibleProductService) Amount(amount string) *SimpleEarnSubscribeFlexibleProductService
func (*SimpleEarnSubscribeFlexibleProductService) AutoSubscribe ¶ added in v2.0.4
func (s *SimpleEarnSubscribeFlexibleProductService) AutoSubscribe(autoSubscribe bool) *SimpleEarnSubscribeFlexibleProductService
func (*SimpleEarnSubscribeFlexibleProductService) Do ¶ added in v2.0.4
func (s *SimpleEarnSubscribeFlexibleProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnSubscribeFlexibleProductResp, err error)
func (*SimpleEarnSubscribeFlexibleProductService) ProductId ¶ added in v2.0.4
func (s *SimpleEarnSubscribeFlexibleProductService) ProductId(productId string) *SimpleEarnSubscribeFlexibleProductService
func (*SimpleEarnSubscribeFlexibleProductService) SourceAccount ¶ added in v2.0.4
func (s *SimpleEarnSubscribeFlexibleProductService) SourceAccount(sourceAccount SimpleEarnSubscribeSourceAccount) *SimpleEarnSubscribeFlexibleProductService
type SimpleEarnSubscribeLockedProductResp ¶ added in v2.0.4
type SimpleEarnSubscribeLockedProductService ¶ added in v2.0.4
type SimpleEarnSubscribeLockedProductService struct {
// contains filtered or unexported fields
}
func (*SimpleEarnSubscribeLockedProductService) Amount ¶ added in v2.0.4
func (s *SimpleEarnSubscribeLockedProductService) Amount(amount string) *SimpleEarnSubscribeLockedProductService
func (*SimpleEarnSubscribeLockedProductService) AutoSubscribe ¶ added in v2.0.4
func (s *SimpleEarnSubscribeLockedProductService) AutoSubscribe(autoSubscribe bool) *SimpleEarnSubscribeLockedProductService
func (*SimpleEarnSubscribeLockedProductService) Do ¶ added in v2.0.4
func (s *SimpleEarnSubscribeLockedProductService) Do(ctx context.Context, opts ...RequestOption) (res *SimpleEarnSubscribeLockedProductResp, err error)
func (*SimpleEarnSubscribeLockedProductService) ProjectId ¶ added in v2.0.4
func (s *SimpleEarnSubscribeLockedProductService) ProjectId(projectId string) *SimpleEarnSubscribeLockedProductService
func (*SimpleEarnSubscribeLockedProductService) RedeemTo ¶ added in v2.0.4
func (s *SimpleEarnSubscribeLockedProductService) RedeemTo(redeemTo string) *SimpleEarnSubscribeLockedProductService
func (*SimpleEarnSubscribeLockedProductService) SourceAccount ¶ added in v2.0.4
func (s *SimpleEarnSubscribeLockedProductService) SourceAccount(sourceAccount SimpleEarnSubscribeSourceAccount) *SimpleEarnSubscribeLockedProductService
type SimpleEarnSubscribeSourceAccount ¶ added in v2.0.4
type SimpleEarnSubscribeSourceAccount string
const ( SourceAccountSpot SimpleEarnSubscribeSourceAccount = "SPOT" SourceAccountFund SimpleEarnSubscribeSourceAccount = "FUND" SourceAccountAll SimpleEarnSubscribeSourceAccount = "ALL" )
type SnapShotSpotBalance ¶ added in v2.0.4
type Snapshot ¶
type Snapshot struct {
Code int `json:"code"`
Msg string `json:"msg"`
Snapshot []*SnapshotVos `json:"snapshotVos"`
}
Snapshot define snapshot
type SnapshotAssets ¶
type SnapshotAssets struct {
Asset string `json:"asset"`
MarginBalance string `json:"marginBalance"`
WalletBalance string `json:"walletBalance"`
}
SnapshotAssets define snapshot assets
type SnapshotBalances ¶
type SnapshotBalances struct {
Asset string `json:"asset"`
Free string `json:"free"`
Locked string `json:"locked"`
}
SnapshotBalances define snapshot balances
type SnapshotData ¶
type SnapshotData struct {
MarginLevel string `json:"marginLevel"`
TotalAssetOfBtc string `json:"totalAssetOfBtc"`
TotalLiabilityOfBtc string `json:"totalLiabilityOfBtc"`
TotalNetAssetOfBtc string `json:"totalNetAssetOfBtc"`
Balances []*SnapshotBalances `json:"balances"`
UserAssets []*SnapshotUserAssets `json:"userAssets"`
Assets []*SnapshotAssets `json:"assets"`
Positions []*SnapshotPositions `json:"position"`
}
SnapshotData define content of a snapshot
type SnapshotPositions ¶
type SnapshotPositions struct {
EntryPrice string `json:"entryPrice"`
MarkPrice string `json:"markPrice"`
PositionAmt string `json:"positionAmt"`
Symbol string `json:"symbol"`
UnRealizedProfit string `json:"unRealizedProfit"`
}
SnapshotPositions define snapshot positions
type SnapshotUserAssets ¶
type SnapshotUserAssets struct {
Asset string `json:"asset"`
Borrowed string `json:"borrowed"`
Free string `json:"free"`
Interest string `json:"interest"`
Locked string `json:"locked"`
NetAsset string `json:"netAsset"`
}
SnapshotUserAssets define snapshot user assets
type SnapshotVo ¶ added in v2.0.4
type SnapshotVo struct {
Data SnapshotVoData `json:"data"`
Type string `json:"type"`
UpdateTime int64 `json:"updateTime"`
}
type SnapshotVoData ¶ added in v2.0.4
type SnapshotVoData struct {
Balances []*SnapShotSpotBalance `json:"balances"` // set while SnapshotVo.type=spot
TotalAssetOfBtc string `json:"totalAssetOfBtc"` // set while SnapshotVo.type is one of spot and margin
MarginLevel string `json:"marginLevel"` // set while SnapshotVo.type=margin
TotalLiabilityOfBtc string `json:"totalLiabilityOfBtc"` // set while SnapshotVo.type=margin
TotalNetAssetOfBtc string `json:"totalNetAssetOfBtc"` // set while SnapshotVo.type=margin
UserAssets []*MarginUserAsset `json:"userAssets"` // set while SnapshotVo.type=margin
Assets []*FuturesUserAsset `json:"assets"` // set while SnapshotVo.type=futures
Position []*FuturesUserPosition `json:"position"` // set while SnapshotVo.type=futures
}
type SnapshotVos ¶
type SnapshotVos struct {
Data *SnapshotData `json:"data"`
Type string `json:"type"`
UpdateTime int64 `json:"updateTime"`
}
SnapshotVos define content of a snapshot
type SpotRebateHistory ¶
type SpotRebateHistory struct {
Status string `json:"status"`
Type string `json:"type"`
Code string `json:"code"`
Data SpotRebateHistoryData `json:"data"`
}
SpotRebateHistory define the spot rebate history
type SpotRebateHistoryData ¶
type SpotRebateHistoryData struct {
Page int32 `json:"page"`
TotalRecords int32 `json:"totalRecords"`
TotalPageNum int32 `json:"totalPageNum"`
Data []SpotRebateHistoryDataItem `json:"data"`
}
SpotRebateHistoryData define the data part of the spot rebate history
type SpotRebateHistoryDataItem ¶
type SpotRebateHistoryDataItem struct {
Asset string `json:"asset"`
Type int32 `json:"type"`
Amount string `json:"amount"`
UpdateTime int64 `json:"updateTime"`
}
SpotRebateHistoryDataItem define a spot rebate history data item
type SpotRebateHistoryService ¶
type SpotRebateHistoryService struct {
// contains filtered or unexported fields
}
func (*SpotRebateHistoryService) Do ¶
func (s *SpotRebateHistoryService) Do(ctx context.Context, opts ...RequestOption) (*SpotRebateHistory, error)
Do send request
func (*SpotRebateHistoryService) EndTime ¶
func (s *SpotRebateHistoryService) EndTime(endTime int64) *SpotRebateHistoryService
EndTime set endTime
func (*SpotRebateHistoryService) Page ¶
func (s *SpotRebateHistoryService) Page(page int32) *SpotRebateHistoryService
Page set page
func (*SpotRebateHistoryService) StartTime ¶
func (s *SpotRebateHistoryService) StartTime(startTime int64) *SpotRebateHistoryService
BeginTime set beginTime
type StakingHistory ¶
type StakingHistory []StakingHistoryTransaction
StakingHistory represents a list of staking history transactions.
type StakingHistoryService ¶
type StakingHistoryService struct {
// contains filtered or unexported fields
}
StakingHistoryService fetches the staking history
func (*StakingHistoryService) Asset ¶
func (s *StakingHistoryService) Asset(asset string) *StakingHistoryService
Asset sets the asset parameter.
func (*StakingHistoryService) Current ¶
func (s *StakingHistoryService) Current(current int32) *StakingHistoryService
Current sets the current parameter.
func (*StakingHistoryService) Do ¶
func (s *StakingHistoryService) Do(ctx context.Context) (*StakingHistory, error)
Do sends the request.
func (*StakingHistoryService) EndTime ¶
func (s *StakingHistoryService) EndTime(endTime int64) *StakingHistoryService
EndTime sets the endTime parameter.
func (*StakingHistoryService) Product ¶
func (s *StakingHistoryService) Product(product StakingProduct) *StakingHistoryService
Product sets the product parameter.
func (*StakingHistoryService) Size ¶
func (s *StakingHistoryService) Size(size int32) *StakingHistoryService
Size sets the size parameter.
func (*StakingHistoryService) StartTime ¶
func (s *StakingHistoryService) StartTime(startTime int64) *StakingHistoryService
StartTime sets the startTime parameter.
func (*StakingHistoryService) TransactionType ¶
func (s *StakingHistoryService) TransactionType(transactionType StakingTransactionType) *StakingHistoryService
TransactionType sets the txnType parameter.
type StakingHistoryTransaction ¶
type StakingHistoryTransaction struct {
PositionId int64 `json:"positionId"`
Time int64 `json:"time"`
Asset string `json:"asset"`
Project string `json:"project"`
Amount string `json:"amount"`
LockPeriod int64 `json:"lockPeriod"`
DeliverDate int64 `json:"deliverDate"`
Type string `json:"type"`
Status string `json:"status"`
}
StakingHistoryTransaction represents a staking history transaction.
type StakingProduct ¶
type StakingProduct string
StakingProduct define the staking product (locked staking, flexible defi staking, locked defi staking, ...)
type StakingProductPosition ¶
type StakingProductPosition struct {
PositionId int64 `json:"positionId"`
ProductId string `json:"productId"`
Asset string `json:"asset"`
Amount string `json:"amount"`
PurchaseTime int64 `json:"purchaseTime"`
Duration int64 `json:"duration"`
AccrualDays int64 `json:"accrualDays"`
RewardAsset string `json:"rewardAsset"`
APY string `json:"apy"`
RewardAmount string `json:"rewardAmt"`
ExtraRewardAsset string `json:"extraRewardAsset"`
ExtraRewardAPY string `json:"extraRewardAPY"`
EstimatedExtraRewardAmount string `json:"estExtraRewardAmt"`
NextInterestPay string `json:"nextInterestPay"`
NextInterestPayDate int64 `json:"nextInterestPayDate"`
PayInterestPeriod int64 `json:"payInterestPeriod"`
RedeemAmountEarly string `json:"redeemAmountEarly"`
InterestEndDate int64 `json:"interestEndDate"`
DeliverDate int64 `json:"deliverDate"`
RedeemPeriod int64 `json:"redeemPeriod"`
RedeemingAmount string `json:"redeemingAmt"`
PartialAmountDeliverDate int64 `json:"partialAmtDeliverDate"`
CanRedeemEarly bool `json:"canRedeemEarly"`
Renewable bool `json:"renewable"`
Type string `json:"type"`
Status string `json:"status"`
}
StakingProductPosition represents a staking product position.
type StakingProductPositionService ¶
type StakingProductPositionService struct {
// contains filtered or unexported fields
}
StakingProductPositionService fetches the staking product positions
func (*StakingProductPositionService) Asset ¶
func (s *StakingProductPositionService) Asset(asset string) *StakingProductPositionService
Asset sets the asset parameter.
func (*StakingProductPositionService) Current ¶
func (s *StakingProductPositionService) Current(current int32) *StakingProductPositionService
Current sets the current parameter.
func (*StakingProductPositionService) Do ¶
func (s *StakingProductPositionService) Do(ctx context.Context) (*StakingProductPositions, error)
Do sends the request.
func (*StakingProductPositionService) Product ¶
func (s *StakingProductPositionService) Product(product StakingProduct) *StakingProductPositionService
Product sets the product parameter.
func (*StakingProductPositionService) ProductId ¶
func (s *StakingProductPositionService) ProductId(productId string) *StakingProductPositionService
ProductId sets the productId parameter.
func (*StakingProductPositionService) Size ¶
func (s *StakingProductPositionService) Size(size int32) *StakingProductPositionService
Size sets the size parameter.
type StakingProductPositions ¶
type StakingProductPositions []StakingProductPosition
StakingProductPositions represents a list of staking product positions.
type StakingTransactionType ¶
type StakingTransactionType string
StakingTransactionType define the staking transaction type (subscription, redemption, interest)
type StartIsolatedMarginUserStreamService ¶
type StartIsolatedMarginUserStreamService struct {
// contains filtered or unexported fields
}
StartIsolatedMarginUserStreamService create listen key for margin user stream service
func (*StartIsolatedMarginUserStreamService) Do ¶
func (s *StartIsolatedMarginUserStreamService) Do(ctx context.Context, opts ...RequestOption) (listenKey string, err error)
Do send request
func (*StartIsolatedMarginUserStreamService) Symbol ¶
func (s *StartIsolatedMarginUserStreamService) Symbol(symbol string) *StartIsolatedMarginUserStreamService
Symbol sets the user stream to isolated margin user stream
type StartMarginUserStreamService ¶
type StartMarginUserStreamService struct {
// contains filtered or unexported fields
}
StartMarginUserStreamService create listen key for margin user stream service
func (*StartMarginUserStreamService) Do ¶
func (s *StartMarginUserStreamService) Do(ctx context.Context, opts ...RequestOption) (listenKey string, err error)
Do send request
type StartUserStreamService ¶
type StartUserStreamService struct {
// contains filtered or unexported fields
}
StartUserStreamService create listen key for user stream service
func (*StartUserStreamService) Do ¶
func (s *StartUserStreamService) Do(ctx context.Context, opts ...RequestOption) (listenKey string, err error)
Do send request
type SubAccUniversalTransferHistoryService ¶ added in v2.0.4
type SubAccUniversalTransferHistoryService struct {
// contains filtered or unexported fields
}
Query the universal transfer history of sub and master accounts
func (*SubAccUniversalTransferHistoryService) ClientTranId ¶ added in v2.0.4
func (s *SubAccUniversalTransferHistoryService) ClientTranId(clientTranId string) *SubAccUniversalTransferHistoryService
func (*SubAccUniversalTransferHistoryService) Do ¶ added in v2.0.4
func (s *SubAccUniversalTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountUniversalTransferHistoryServiceResponse, err error)
func (*SubAccUniversalTransferHistoryService) EndTime ¶ added in v2.0.4
func (s *SubAccUniversalTransferHistoryService) EndTime(endTime int64) *SubAccUniversalTransferHistoryService
func (*SubAccUniversalTransferHistoryService) FromEmail ¶ added in v2.0.4
func (s *SubAccUniversalTransferHistoryService) FromEmail(fromEmail string) *SubAccUniversalTransferHistoryService
func (*SubAccUniversalTransferHistoryService) Limit ¶ added in v2.0.4
func (s *SubAccUniversalTransferHistoryService) Limit(limit int32) *SubAccUniversalTransferHistoryService
func (*SubAccUniversalTransferHistoryService) Page ¶ added in v2.0.4
func (s *SubAccUniversalTransferHistoryService) Page(page int32) *SubAccUniversalTransferHistoryService
func (*SubAccUniversalTransferHistoryService) RecvWindow ¶ added in v2.0.4
func (s *SubAccUniversalTransferHistoryService) RecvWindow(recvWindow int64) *SubAccUniversalTransferHistoryService
func (*SubAccUniversalTransferHistoryService) StartTime ¶ added in v2.0.4
func (s *SubAccUniversalTransferHistoryService) StartTime(startTime int64) *SubAccUniversalTransferHistoryService
func (*SubAccUniversalTransferHistoryService) ToEmail ¶ added in v2.0.4
func (s *SubAccUniversalTransferHistoryService) ToEmail(toEmail string) *SubAccUniversalTransferHistoryService
type SubAccount ¶
type SubAccountApiAddIpRestrictServiceResponse ¶ added in v2.0.4
type SubAccountApiAddIpRestrictionService ¶ added in v2.0.4
type SubAccountApiAddIpRestrictionService struct {
// contains filtered or unexported fields
}
add sub-account ip restriction
func (*SubAccountApiAddIpRestrictionService) Do ¶ added in v2.0.4
func (s *SubAccountApiAddIpRestrictionService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountApiAddIpRestrictServiceResponse, err error)
func (*SubAccountApiAddIpRestrictionService) Email ¶ added in v2.0.4
func (s *SubAccountApiAddIpRestrictionService) Email(email string) *SubAccountApiAddIpRestrictionService
func (*SubAccountApiAddIpRestrictionService) IpAddress ¶ added in v2.0.4
func (s *SubAccountApiAddIpRestrictionService) IpAddress(ipAddress string) *SubAccountApiAddIpRestrictionService
func (*SubAccountApiAddIpRestrictionService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountApiAddIpRestrictionService) RecvWindow(recvWindow int64) *SubAccountApiAddIpRestrictionService
func (*SubAccountApiAddIpRestrictionService) Status ¶ added in v2.0.4
func (s *SubAccountApiAddIpRestrictionService) Status(status string) *SubAccountApiAddIpRestrictionService
func (*SubAccountApiAddIpRestrictionService) SubAccountApiKey ¶ added in v2.0.4
func (s *SubAccountApiAddIpRestrictionService) SubAccountApiKey(subAccountApiKey string) *SubAccountApiAddIpRestrictionService
type SubAccountApiDeleteIpRestrictServiceResponse ¶ added in v2.0.4
type SubAccountApiDeleteIpRestrictionService ¶ added in v2.0.4
type SubAccountApiDeleteIpRestrictionService struct {
// contains filtered or unexported fields
}
delete sub-account ip restriction
func (*SubAccountApiDeleteIpRestrictionService) Do ¶ added in v2.0.4
func (s *SubAccountApiDeleteIpRestrictionService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountApiDeleteIpRestrictServiceResponse, err error)
func (*SubAccountApiDeleteIpRestrictionService) Email ¶ added in v2.0.4
func (s *SubAccountApiDeleteIpRestrictionService) Email(email string) *SubAccountApiDeleteIpRestrictionService
func (*SubAccountApiDeleteIpRestrictionService) IpAddress ¶ added in v2.0.4
func (s *SubAccountApiDeleteIpRestrictionService) IpAddress(ipAddress string) *SubAccountApiDeleteIpRestrictionService
func (*SubAccountApiDeleteIpRestrictionService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountApiDeleteIpRestrictionService) RecvWindow(recvWindow int64) *SubAccountApiDeleteIpRestrictionService
func (*SubAccountApiDeleteIpRestrictionService) SubAccountApiKey ¶ added in v2.0.4
func (s *SubAccountApiDeleteIpRestrictionService) SubAccountApiKey(subAccountApiKey string) *SubAccountApiDeleteIpRestrictionService
type SubAccountApiIpRestrictServiceResponse ¶ added in v2.0.4
type SubAccountApiIpRestrictionService ¶ added in v2.0.4
type SubAccountApiIpRestrictionService struct {
// contains filtered or unexported fields
}
query sub-account api ip restriction
func (*SubAccountApiIpRestrictionService) Do ¶ added in v2.0.4
func (s *SubAccountApiIpRestrictionService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountApiIpRestrictServiceResponse, err error)
func (*SubAccountApiIpRestrictionService) Email ¶ added in v2.0.4
func (s *SubAccountApiIpRestrictionService) Email(email string) *SubAccountApiIpRestrictionService
func (*SubAccountApiIpRestrictionService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountApiIpRestrictionService) RecvWindow(recvWindow int64) *SubAccountApiIpRestrictionService
func (*SubAccountApiIpRestrictionService) SubAccountApiKey ¶ added in v2.0.4
func (s *SubAccountApiIpRestrictionService) SubAccountApiKey(subAccountApiKey string) *SubAccountApiIpRestrictionService
type SubAccountAssetBalance ¶ added in v2.0.4
type SubAccountAssetService ¶ added in v2.0.4
type SubAccountAssetService struct {
// contains filtered or unexported fields
}
Query sub account assets, v4 interface.
func (*SubAccountAssetService) Do ¶ added in v2.0.4
func (s *SubAccountAssetService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountAssetServiceResponse, err error)
func (*SubAccountAssetService) Email ¶ added in v2.0.4
func (s *SubAccountAssetService) Email(email string) *SubAccountAssetService
func (*SubAccountAssetService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountAssetService) RecvWindow(recvWindow int64) *SubAccountAssetService
type SubAccountAssetServiceResponse ¶ added in v2.0.4
type SubAccountAssetServiceResponse struct {
Balances []*SubAccountAssetBalance `json:"balances"`
}
type SubAccountBlvtEnableService ¶ added in v2.0.4
type SubAccountBlvtEnableService struct {
// contains filtered or unexported fields
}
Binance Leveraged Tokens enable
func (*SubAccountBlvtEnableService) Do ¶ added in v2.0.4
func (s *SubAccountBlvtEnableService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountBlvtEnableServiceResponse, err error)
func (*SubAccountBlvtEnableService) Email ¶ added in v2.0.4
func (s *SubAccountBlvtEnableService) Email(email string) *SubAccountBlvtEnableService
func (*SubAccountBlvtEnableService) EnableBlvt ¶ added in v2.0.4
func (s *SubAccountBlvtEnableService) EnableBlvt(enableBlvt bool) *SubAccountBlvtEnableService
func (*SubAccountBlvtEnableService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountBlvtEnableService) RecvWindow(recvWindow int64) *SubAccountBlvtEnableService
type SubAccountBlvtEnableServiceResponse ¶ added in v2.0.4
type SubAccountDeliveryAccountSummary ¶ added in v2.0.4
type SubAccountDeliveryAccountSummary struct {
TotalMarginBalanceOfBTC string `json:"totalMarginBalanceOfBTC"`
TotalUnrealizedProfitOfBTC string `json:"totalUnrealizedProfitOfBTC"`
TotalWalletBalanceOfBTC string `json:"totalWalletBalanceOfBTC"`
Asset string `json:"asset"`
SubAccountList []*DeliverySubAccount `json:"subAccountList"`
}
type SubAccountDeliveryAccountV2 ¶ added in v2.0.4
type SubAccountDeliveryPosition ¶ added in v2.0.4
type SubAccountDeliveryPosition struct {
EntryPrice string `json:"entryPrice"`
MarkPrice string `json:"markPrice"`
Leverage string `json:"leverage"`
Isolated string `json:"isolated"`
IsolatedWallet string `json:"isolatedWallet"`
IsolatedMargin string `json:"isolatedMargin"`
IsAutoAddMargin string `json:"isAutoAddMargin"`
PositionSide string `json:"positionSide"`
PositionAmount string `json:"positionAmount"`
Symbol string `json:"symbol"`
UnrealizedProfit string `json:"unrealizedProfit"`
}
type SubAccountDepositRecord ¶ added in v2.0.4
type SubAccountDepositRecord struct {
Id string `json:"id"`
Amount string `json:"amount"`
Coin string `json:"coin"`
Network string `json:"network"`
Status int32 `json:"status"`
Address string `json:"address"`
TxId string `json:"txId"`
AddressTag string `json:"addressTag"`
InsertTime int64 `json:"insertTime"`
TransferType int32 `json:"transferType"`
ConfirmTimes string `json:"confirmTimes"`
UnlockConfirm int32 `json:"unlockConfirm"`
WalletType int32 `json:"walletType"`
}
type SubAccountDepositRecordService ¶ added in v2.0.4
type SubAccountDepositRecordService struct {
// contains filtered or unexported fields
}
Get sub account deposit record
func (*SubAccountDepositRecordService) Coin ¶ added in v2.0.4
func (s *SubAccountDepositRecordService) Coin(coin string) *SubAccountDepositRecordService
func (*SubAccountDepositRecordService) Do ¶ added in v2.0.4
func (s *SubAccountDepositRecordService) Do(ctx context.Context, opts ...RequestOption) (res []*SubAccountDepositRecord, err error)
func (*SubAccountDepositRecordService) Email ¶ added in v2.0.4
func (s *SubAccountDepositRecordService) Email(email string) *SubAccountDepositRecordService
func (*SubAccountDepositRecordService) EndTime ¶ added in v2.0.4
func (s *SubAccountDepositRecordService) EndTime(endTime int64) *SubAccountDepositRecordService
func (*SubAccountDepositRecordService) Limit ¶ added in v2.0.4
func (s *SubAccountDepositRecordService) Limit(limit int) *SubAccountDepositRecordService
func (*SubAccountDepositRecordService) Offset ¶ added in v2.0.4
func (s *SubAccountDepositRecordService) Offset(offset int) *SubAccountDepositRecordService
func (*SubAccountDepositRecordService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountDepositRecordService) RecvWindow(recvWindow int64) *SubAccountDepositRecordService
func (*SubAccountDepositRecordService) StartTime ¶ added in v2.0.4
func (s *SubAccountDepositRecordService) StartTime(startTime int64) *SubAccountDepositRecordService
func (*SubAccountDepositRecordService) Status ¶ added in v2.0.4
func (s *SubAccountDepositRecordService) Status(status int32) *SubAccountDepositRecordService
func (*SubAccountDepositRecordService) TxId ¶ added in v2.0.4
func (s *SubAccountDepositRecordService) TxId(txId string) *SubAccountDepositRecordService
type SubAccountFuturesAccount ¶
type SubAccountFuturesAccount struct {
Email string `json:"email"`
Asset string `json:"asset"`
Assets []SubAccountFuturesAccountAsset `json:"assets"`
CanDeposit bool `json:"canDeposit"`
CanTrade bool `json:"canTrade"`
CanWithdraw bool `json:"canWithdraw"`
FeeTier int `json:"feeTier"`
MaxWithdrawAmount string `json:"maxWithdrawAmount"`
TotalInitialMargin string `json:"totalInitialMargin"`
TotalMaintenanceMargin string `json:"totalMaintenanceMargin"`
TotalMarginBalance string `json:"totalMarginBalance"`
TotalOpenOrderInitialMargin string `json:"totalOpenOrderInitialMargin"`
TotalPositionInitialMargin string `json:"totalPositionInitialMargin"`
TotalUnrealizedProfit string `json:"totalUnrealizedProfit"`
TotalWalletBalance string `json:"totalWalletBalance"`
UpdateTime int64 `json:"updateTime"`
}
type SubAccountFuturesAccountAsset ¶
type SubAccountFuturesAccountAsset struct {
Asset string `json:"asset"`
InitialMargin string `json:"initialMargin"`
MaintenanceMargin string `json:"maintenanceMargin"`
MarginBalance string `json:"marginBalance"`
MaxWithdrawAmount string `json:"maxWithdrawAmount"`
OpenOrderInitialMargin string `json:"openOrderInitialMargin"`
PositionInitialMargin string `json:"positionInitialMargin"`
UnrealizedProfit string `json:"unrealizedProfit"`
WalletBalance string `json:"walletBalance"`
}
type SubAccountFuturesAccountService ¶
type SubAccountFuturesAccountService struct {
// contains filtered or unexported fields
}
SubAccountFuturesAccountService Get Detail on Sub-account's Futures Account (For Master Account) https://binance-docs.github.io/apidocs/spot/en/#get-detail-on-sub-account-39-s-futures-account-for-master-account
func (*SubAccountFuturesAccountService) Do ¶
func (s *SubAccountFuturesAccountService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesAccount, err error)
func (*SubAccountFuturesAccountService) Email ¶
func (s *SubAccountFuturesAccountService) Email(v string) *SubAccountFuturesAccountService
type SubAccountFuturesAccountSummary ¶ added in v2.0.4
type SubAccountFuturesAccountSummary struct {
TotalInitialMargin string `json:"totalInitialMargin"`
TotalMaintenanceMargin string `json:"totalMaintenanceMargin"`
TotalMarginBalance string `json:"totalMarginBalance"`
TotalOpenOrderInitialMargin string `json:"totalOpenOrderInitialMargin"`
TotalPositionInitialMargin string `json:"totalPositionInitialMargin"`
TotalUnrealizedProfit string `json:"totalUnrealizedProfit"`
TotalWalletBalance string `json:"totalWalletBalance"`
Asset string `json:"asset"`
SubAccountList []*FuturesSubAccount `json:"subAccountList"`
}
type SubAccountFuturesAccountSummaryService ¶ added in v2.0.4
type SubAccountFuturesAccountSummaryService struct {
// contains filtered or unexported fields
}
get sub-account futures account summary, include U-M and C-M, v2 interface
func (*SubAccountFuturesAccountSummaryService) Do ¶ added in v2.0.4
func (s *SubAccountFuturesAccountSummaryService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesAccountSummaryServiceResponse, err error)
func (*SubAccountFuturesAccountSummaryService) FuturesType ¶ added in v2.0.4
func (s *SubAccountFuturesAccountSummaryService) FuturesType(futuresType int32) *SubAccountFuturesAccountSummaryService
func (*SubAccountFuturesAccountSummaryService) Limit ¶ added in v2.0.4
func (s *SubAccountFuturesAccountSummaryService) Limit(limit int32) *SubAccountFuturesAccountSummaryService
func (*SubAccountFuturesAccountSummaryService) Page ¶ added in v2.0.4
func (s *SubAccountFuturesAccountSummaryService) Page(page int32) *SubAccountFuturesAccountSummaryService
func (*SubAccountFuturesAccountSummaryService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountFuturesAccountSummaryService) RecvWindow(recvWindow int64) *SubAccountFuturesAccountSummaryService
type SubAccountFuturesAccountSummaryServiceResponse ¶ added in v2.0.4
type SubAccountFuturesAccountSummaryServiceResponse struct {
FutureAccountSummaryResp *SubAccountFuturesAccountSummary `json:"futureAccountSummaryResp"` // set while futuresType=1
DeliveryAccountSummaryResp *SubAccountDeliveryAccountSummary `json:"deliveryAccountSummaryResp"` // set while futuresType=2
}
type SubAccountFuturesAccountV2 ¶ added in v2.0.4
type SubAccountFuturesAccountV2 struct {
Email string `json:"email"`
Asset string `json:"asset"`
Assets []*FuturesAsset `json:"assets"`
CanDeposit bool `json:"canDeposit"`
CanTrade bool `json:"canTrade"`
CanWithdraw bool `json:"canWithdraw"`
FeeTier int32 `json:"feeTier"`
MaxWithdrawAmount string `json:"maxWithdrawAmount"`
TotalInitialMargin string `json:"totalInitialMargin"`
TotalMaintenanceMargin string `json:"totalMaintenanceMargin"`
TotalMarginBalance string `json:"totalMarginBalance"`
TotalOpenOrderInitialMargin string `json:"totalOpenOrderInitialMargin"`
TotalPositionInitialMargin string `json:"totalPositionInitialMargin"`
TotalUnrealizedProfit string `json:"totalUnrealizedProfit"`
TotalWalletBalance string `json:"totalWalletBalance"`
UpdateTime int64 `json:"updateTime"`
}
type SubAccountFuturesAccountV2Service ¶ added in v2.0.4
type SubAccountFuturesAccountV2Service struct {
// contains filtered or unexported fields
}
get the target sub-account futures account detail, v2 interface.
func (*SubAccountFuturesAccountV2Service) Do ¶ added in v2.0.4
func (s *SubAccountFuturesAccountV2Service) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesAccountV2ServiceResponse, err error)
func (*SubAccountFuturesAccountV2Service) Email ¶ added in v2.0.4
func (s *SubAccountFuturesAccountV2Service) Email(email string) *SubAccountFuturesAccountV2Service
func (*SubAccountFuturesAccountV2Service) FuturesType ¶ added in v2.0.4
func (s *SubAccountFuturesAccountV2Service) FuturesType(futuresType int32) *SubAccountFuturesAccountV2Service
func (*SubAccountFuturesAccountV2Service) RecvWindow ¶ added in v2.0.4
func (s *SubAccountFuturesAccountV2Service) RecvWindow(recvWindow int64) *SubAccountFuturesAccountV2Service
type SubAccountFuturesAccountV2ServiceResponse ¶ added in v2.0.4
type SubAccountFuturesAccountV2ServiceResponse struct {
FutureAccountResp *SubAccountFuturesAccountV2 `json:"futureAccountResp"` // set while futuresType=1(USDT margined)
DeliveryAccountResp *SubAccountDeliveryAccountV2 `json:"deliveryAccountResp"` // set while futuresType=2(COIN margined)
}
type SubAccountFuturesEnableResponse ¶ added in v2.0.4
type SubAccountFuturesEnableService ¶ added in v2.0.4
type SubAccountFuturesEnableService struct {
// contains filtered or unexported fields
}
func (*SubAccountFuturesEnableService) Do ¶ added in v2.0.4
func (s *SubAccountFuturesEnableService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesEnableResponse, err error)
func (*SubAccountFuturesEnableService) Email ¶ added in v2.0.4
func (s *SubAccountFuturesEnableService) Email(email string) *SubAccountFuturesEnableService
func (*SubAccountFuturesEnableService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountFuturesEnableService) RecvWindow(recvWindow int64) *SubAccountFuturesEnableService
type SubAccountFuturesInternalTransferResponse ¶ added in v2.0.4
type SubAccountFuturesInternalTransferService ¶ added in v2.0.4
type SubAccountFuturesInternalTransferService struct {
// contains filtered or unexported fields
}
Execute sub account futures balance transfer
func (*SubAccountFuturesInternalTransferService) Amount ¶ added in v2.0.4
func (s *SubAccountFuturesInternalTransferService) Amount(amount string) *SubAccountFuturesInternalTransferService
func (*SubAccountFuturesInternalTransferService) Asset ¶ added in v2.0.4
func (s *SubAccountFuturesInternalTransferService) Asset(asset string) *SubAccountFuturesInternalTransferService
func (*SubAccountFuturesInternalTransferService) Do ¶ added in v2.0.4
func (s *SubAccountFuturesInternalTransferService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesInternalTransferResponse, err error)
func (*SubAccountFuturesInternalTransferService) FromEmail ¶ added in v2.0.4
func (s *SubAccountFuturesInternalTransferService) FromEmail(fromEmail string) *SubAccountFuturesInternalTransferService
func (*SubAccountFuturesInternalTransferService) FuturesType ¶ added in v2.0.4
func (s *SubAccountFuturesInternalTransferService) FuturesType(futuresType int64) *SubAccountFuturesInternalTransferService
func (*SubAccountFuturesInternalTransferService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountFuturesInternalTransferService) RecvWindow(recvWindow int64) *SubAccountFuturesInternalTransferService
func (*SubAccountFuturesInternalTransferService) ToEmail ¶ added in v2.0.4
func (s *SubAccountFuturesInternalTransferService) ToEmail(toEmail string) *SubAccountFuturesInternalTransferService
type SubAccountFuturesPosition ¶ added in v2.0.4
type SubAccountFuturesPosition struct {
EntryPrice string `json:"entryPrice"`
Leverage string `json:"leverage"`
MaxNotional string `json:"maxNotional"`
LiquidationPrice string `json:"liquidationPrice"`
MarkPrice string `json:"markPrice"`
PositionAmount string `json:"positionAmount"`
Symbol string `json:"symbol"`
UnrealizedProfit string `json:"unrealizedProfit"`
}
type SubAccountFuturesPositionsService ¶ added in v2.0.4
type SubAccountFuturesPositionsService struct {
// contains filtered or unexported fields
}
get target sub-account futures position information, include U-M and C-M, v2 interface.
func (*SubAccountFuturesPositionsService) Do ¶ added in v2.0.4
func (s *SubAccountFuturesPositionsService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesPositionsServiceResponse, err error)
func (*SubAccountFuturesPositionsService) Email ¶ added in v2.0.4
func (s *SubAccountFuturesPositionsService) Email(email string) *SubAccountFuturesPositionsService
func (*SubAccountFuturesPositionsService) FuturesType ¶ added in v2.0.4
func (s *SubAccountFuturesPositionsService) FuturesType(futuresType int32) *SubAccountFuturesPositionsService
func (*SubAccountFuturesPositionsService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountFuturesPositionsService) RecvWindow(recvWindow int64) *SubAccountFuturesPositionsService
type SubAccountFuturesPositionsServiceResponse ¶ added in v2.0.4
type SubAccountFuturesPositionsServiceResponse struct {
FuturePositionRiskVos []*SubAccountFuturesPosition `json:"futurePositionRiskVos"` // set while futuresType=1
DeliveryPositionRiskVos []*SubAccountDeliveryPosition `json:"deliveryPositionRiskVos"` // set while futuresType=2
}
type SubAccountFuturesSummaryCommon ¶ added in v2.0.1
type SubAccountFuturesSummaryCommon struct {
Asset string `json:"asset"`
TotalInitialMargin string `json:"totalInitialMargin"`
TotalMaintenanceMargin string `json:"totalMaintenanceMargin"`
TotalMarginBalance string `json:"totalMarginBalance"`
TotalOpenOrderInitialMargin string `json:"totalOpenOrderInitialMargin"`
TotalPositionInitialMargin string `json:"totalPositionInitialMargin"`
TotalUnrealizedProfit string `json:"totalUnrealizedProfit"`
TotalWalletBalance string `json:"totalWalletBalance"`
}
type SubAccountFuturesSummaryV1 ¶ added in v2.0.1
type SubAccountFuturesSummaryV1 struct {
SubAccountFuturesSummaryCommon
SubAccountList []SubAccountFuturesSummaryV1SubAccountList `json:"subAccountList"`
}
type SubAccountFuturesSummaryV1Service ¶ added in v2.0.1
type SubAccountFuturesSummaryV1Service struct {
// contains filtered or unexported fields
}
SubaccountFuturesSummaryV1Service Get Summary of Sub-account's Futures Account (For Master Account) https://binance-docs.github.io/apidocs/spot/en/#get-summary-of-sub-account-39-s-futures-account-for-master-account
func (*SubAccountFuturesSummaryV1Service) Do ¶ added in v2.0.1
func (s *SubAccountFuturesSummaryV1Service) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesSummaryV1, err error)
type SubAccountFuturesSummaryV1SubAccountList ¶ added in v2.0.1
type SubAccountFuturesSummaryV1SubAccountList struct {
Email string `json:"email"`
SubAccountFuturesSummaryCommon
}
type SubAccountFuturesTransfer ¶ added in v2.0.4
type SubAccountFuturesTransferHistoryResponse ¶ added in v2.0.4
type SubAccountFuturesTransferHistoryResponse struct {
Success bool `json:"success"`
FuturesType int32 `json:"futuresType"`
Transfers []*SubAccountFuturesTransfer `json:"transfers"`
}
type SubAccountFuturesTransferHistoryService ¶ added in v2.0.4
type SubAccountFuturesTransferHistoryService struct {
// contains filtered or unexported fields
}
Sub-Account futures transfer history
func (*SubAccountFuturesTransferHistoryService) Do ¶ added in v2.0.4
func (s *SubAccountFuturesTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesTransferHistoryResponse, err error)
func (*SubAccountFuturesTransferHistoryService) Email ¶ added in v2.0.4
func (s *SubAccountFuturesTransferHistoryService) Email(email string) *SubAccountFuturesTransferHistoryService
func (*SubAccountFuturesTransferHistoryService) EndTime ¶ added in v2.0.4
func (s *SubAccountFuturesTransferHistoryService) EndTime(endTime int64) *SubAccountFuturesTransferHistoryService
func (*SubAccountFuturesTransferHistoryService) FuturesType ¶ added in v2.0.4
func (s *SubAccountFuturesTransferHistoryService) FuturesType(futuresType int64) *SubAccountFuturesTransferHistoryService
func (*SubAccountFuturesTransferHistoryService) Limit ¶ added in v2.0.4
func (s *SubAccountFuturesTransferHistoryService) Limit(limit int32) *SubAccountFuturesTransferHistoryService
func (*SubAccountFuturesTransferHistoryService) Page ¶ added in v2.0.4
func (s *SubAccountFuturesTransferHistoryService) Page(page int32) *SubAccountFuturesTransferHistoryService
func (*SubAccountFuturesTransferHistoryService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountFuturesTransferHistoryService) RecvWindow(recvWindow int64) *SubAccountFuturesTransferHistoryService
func (*SubAccountFuturesTransferHistoryService) StartTime ¶ added in v2.0.4
func (s *SubAccountFuturesTransferHistoryService) StartTime(startTime int64) *SubAccountFuturesTransferHistoryService
type SubAccountFuturesTransferResponse ¶ added in v2.0.1
type SubAccountFuturesTransferResponse struct {
// seems api doc bug, return `tranId` as int64 actually in production environment
TranID int64 `json:"tranId"`
}
type SubAccountFuturesTransferV1Service ¶ added in v2.0.1
type SubAccountFuturesTransferV1Service struct {
// contains filtered or unexported fields
}
SubAccountFuturesTransferV1Service Futures Transfer for Sub-account (For Master Account) https://binance-docs.github.io/apidocs/spot/en/#futures-transfer-for-sub-account-for-master-account
func (*SubAccountFuturesTransferV1Service) Amount ¶ added in v2.0.1
func (s *SubAccountFuturesTransferV1Service) Amount(v float64) *SubAccountFuturesTransferV1Service
func (*SubAccountFuturesTransferV1Service) Asset ¶ added in v2.0.1
func (s *SubAccountFuturesTransferV1Service) Asset(v string) *SubAccountFuturesTransferV1Service
func (*SubAccountFuturesTransferV1Service) Do ¶ added in v2.0.1
func (s *SubAccountFuturesTransferV1Service) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesTransferResponse, err error)
func (*SubAccountFuturesTransferV1Service) Email ¶ added in v2.0.1
func (s *SubAccountFuturesTransferV1Service) Email(v string) *SubAccountFuturesTransferV1Service
func (*SubAccountFuturesTransferV1Service) TransferType ¶ added in v2.0.1
func (s *SubAccountFuturesTransferV1Service) TransferType(v int) *SubAccountFuturesTransferV1Service
type SubAccountList ¶
type SubAccountList struct {
SubAccounts []SubAccount `json:"subAccounts"`
}
type SubAccountListService ¶
type SubAccountListService struct {
// contains filtered or unexported fields
}
SubAccountListService Query Sub-account List (For Master Account) https://binance-docs.github.io/apidocs/spot/en/#query-sub-account-list-for-master-account
func (*SubAccountListService) Do ¶
func (s *SubAccountListService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountList, err error)
func (*SubAccountListService) Email ¶
func (s *SubAccountListService) Email(v string) *SubAccountListService
func (*SubAccountListService) IsFreeze ¶
func (s *SubAccountListService) IsFreeze(v bool) *SubAccountListService
func (*SubAccountListService) Limit ¶
func (s *SubAccountListService) Limit(v int) *SubAccountListService
func (*SubAccountListService) Page ¶
func (s *SubAccountListService) Page(v int) *SubAccountListService
type SubAccountMarginAccountInfo ¶ added in v2.0.4
type SubAccountMarginAccountInfo struct {
Email string `json:"email"`
MarginLevel string `json:"marginLevel"`
TotalAssetOfBtc string `json:"totalAssetOfBtc"`
TotalLiabilityOfBtc string `json:"totalLiabilityOfBtc"`
TotalNetAssetOfBtc string `json:"totalNetAssetOfBtc"`
MarginTradeCoeffVo *MarginTradeCoeffVo `json:"marginTradeCoeffVo"`
MarginUserAssetVoList []*MarginUserAssetVo `json:"marginUserAssetVoList"`
}
type SubAccountMarginAccountInfoService ¶ added in v2.0.4
type SubAccountMarginAccountInfoService struct {
// contains filtered or unexported fields
}
get sub-account margin account detail
func (*SubAccountMarginAccountInfoService) Do ¶ added in v2.0.4
func (s *SubAccountMarginAccountInfoService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountMarginAccountInfo, err error)
func (*SubAccountMarginAccountInfoService) Email ¶ added in v2.0.4
func (s *SubAccountMarginAccountInfoService) Email(email string) *SubAccountMarginAccountInfoService
func (*SubAccountMarginAccountInfoService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountMarginAccountInfoService) RecvWindow(recvWindow int64) *SubAccountMarginAccountInfoService
type SubAccountMarginAccountSummary ¶ added in v2.0.4
type SubAccountMarginAccountSummary struct {
TotalAssetOfBtc string `json:"totalAssetOfBtc"`
TotalLiabilityOfBtc string `json:"totalLiabilityOfBtc"`
TotalNetAssetOfBtc string `json:"totalNetAssetOfBtc"`
SubAccountList []*MarginSubAccount `json:"subAccountList"`
}
type SubAccountMarginAccountSummaryService ¶ added in v2.0.4
type SubAccountMarginAccountSummaryService struct {
// contains filtered or unexported fields
}
get sub-account margin account summary
func (*SubAccountMarginAccountSummaryService) Do ¶ added in v2.0.4
func (s *SubAccountMarginAccountSummaryService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountMarginAccountSummary, err error)
func (*SubAccountMarginAccountSummaryService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountMarginAccountSummaryService) RecvWindow(recvWindow int64) *SubAccountMarginAccountSummaryService
type SubAccountMarginEnableResponse ¶ added in v2.0.4
type SubAccountMarginEnableService ¶ added in v2.0.4
type SubAccountMarginEnableService struct {
// contains filtered or unexported fields
}
sub account margin enable
func (*SubAccountMarginEnableService) Do ¶ added in v2.0.4
func (s *SubAccountMarginEnableService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountMarginEnableResponse, err error)
func (*SubAccountMarginEnableService) Email ¶ added in v2.0.4
func (s *SubAccountMarginEnableService) Email(email string) *SubAccountMarginEnableService
func (*SubAccountMarginEnableService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountMarginEnableService) RecvWindow(recvWindow int64) *SubAccountMarginEnableService
type SubAccountMarginFuturesStatus ¶ added in v2.0.4
type SubAccountMarginFuturesStatus struct {
Email string `json:"email"`
IsSubUserEnabled bool `json:"isSubUserEnabled"`
IsUserActive bool `json:"isUserActive"`
InsertTime int64 `json:"insertTime"`
IsMarginEnabled bool `json:"isMarginEnabled"`
IsFutureEnabled bool `json:"isFutureEnabled"`
Mobile int64 `json:"mobile"`
}
type SubAccountMarginFuturesStatusService ¶ added in v2.0.4
type SubAccountMarginFuturesStatusService struct {
// contains filtered or unexported fields
}
Get sub account margin futures status
func (*SubAccountMarginFuturesStatusService) Do ¶ added in v2.0.4
func (s *SubAccountMarginFuturesStatusService) Do(ctx context.Context, opts ...RequestOption) (res []*SubAccountMarginFuturesStatus, err error)
func (*SubAccountMarginFuturesStatusService) Email ¶ added in v2.0.4
func (s *SubAccountMarginFuturesStatusService) Email(email string) *SubAccountMarginFuturesStatusService
func (*SubAccountMarginFuturesStatusService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountMarginFuturesStatusService) RecvWindow(recvWindow int64) *SubAccountMarginFuturesStatusService
type SubAccountMarginTransferResponse ¶ added in v2.0.4
type SubAccountMarginTransferResponse struct {
TxnId string `json:"txnId"`
}
type SubAccountMarginTransferService ¶ added in v2.0.4
type SubAccountMarginTransferService struct {
// contains filtered or unexported fields
}
execute sub-account margin account transfer
func (*SubAccountMarginTransferService) Amount ¶ added in v2.0.4
func (s *SubAccountMarginTransferService) Amount(amount string) *SubAccountMarginTransferService
func (*SubAccountMarginTransferService) Asset ¶ added in v2.0.4
func (s *SubAccountMarginTransferService) Asset(asset string) *SubAccountMarginTransferService
func (*SubAccountMarginTransferService) Do ¶ added in v2.0.4
func (s *SubAccountMarginTransferService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountMarginTransferResponse, err error)
func (*SubAccountMarginTransferService) Email ¶ added in v2.0.4
func (s *SubAccountMarginTransferService) Email(email string) *SubAccountMarginTransferService
func (*SubAccountMarginTransferService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountMarginTransferService) RecvWindow(recvWindow int64) *SubAccountMarginTransferService
func (*SubAccountMarginTransferService) TransferType ¶ added in v2.0.4
func (s *SubAccountMarginTransferService) TransferType(transferType int32) *SubAccountMarginTransferService
type SubAccountOptionsEnableService ¶ added in v2.0.4
type SubAccountOptionsEnableService struct {
// contains filtered or unexported fields
}
func (*SubAccountOptionsEnableService) Do ¶ added in v2.0.4
func (s *SubAccountOptionsEnableService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountOptionsEnableServiceResponse, err error)
func (*SubAccountOptionsEnableService) Email ¶ added in v2.0.4
func (s *SubAccountOptionsEnableService) Email(email string) *SubAccountOptionsEnableService
func (*SubAccountOptionsEnableService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountOptionsEnableService) RecvWindow(recvWindow int64) *SubAccountOptionsEnableService
type SubAccountOptionsEnableServiceResponse ¶ added in v2.0.4
type SubAccountSpotTransfer ¶ added in v2.0.4
type SubAccountSpotTransferHistoryService ¶ added in v2.0.4
type SubAccountSpotTransferHistoryService struct {
// contains filtered or unexported fields
}
Sub-Account spot transfer history
func (*SubAccountSpotTransferHistoryService) Do ¶ added in v2.0.4
func (s *SubAccountSpotTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res []*SubAccountSpotTransfer, err error)
func (*SubAccountSpotTransferHistoryService) EndTime ¶ added in v2.0.4
func (s *SubAccountSpotTransferHistoryService) EndTime(endTime uint64) *SubAccountSpotTransferHistoryService
func (*SubAccountSpotTransferHistoryService) FromEmail ¶ added in v2.0.4
func (s *SubAccountSpotTransferHistoryService) FromEmail(fromEmail string) *SubAccountSpotTransferHistoryService
func (*SubAccountSpotTransferHistoryService) Limit ¶ added in v2.0.4
func (s *SubAccountSpotTransferHistoryService) Limit(limit int32) *SubAccountSpotTransferHistoryService
func (*SubAccountSpotTransferHistoryService) Page ¶ added in v2.0.4
func (s *SubAccountSpotTransferHistoryService) Page(page int32) *SubAccountSpotTransferHistoryService
func (*SubAccountSpotTransferHistoryService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountSpotTransferHistoryService) RecvWindow(recvWindow int64) *SubAccountSpotTransferHistoryService
func (*SubAccountSpotTransferHistoryService) StartTime ¶ added in v2.0.4
func (s *SubAccountSpotTransferHistoryService) StartTime(startTime uint64) *SubAccountSpotTransferHistoryService
func (*SubAccountSpotTransferHistoryService) ToEmail ¶ added in v2.0.4
func (s *SubAccountSpotTransferHistoryService) ToEmail(toEmail string) *SubAccountSpotTransferHistoryService
type SubAccountTransactionStatisticServiceResponse ¶ added in v2.0.4
type SubAccountTransactionStatisticServiceResponse struct {
Recent30BtcTotal string `json:"recent30BtcTotal"`
Recent30BtcFuturesTotal string `json:"recent30BtcFuturesTotal"`
Recent30BtcMarginTotal string `json:"recent30BtcMarginTotal"`
Recent30BusdTotal string `json:"recent30BusdTotal"`
Recent30BusdFuturesTotal string `json:"recent30BusdFuturesTotal"`
Recent30BusdMarginTotal string `json:"recent30BusdMarginTotal"`
TradeInfoVos []*TradeInfoVo `json:"tradeInfoVos"`
}
type SubAccountTransactionStatisticsService ¶ added in v2.0.4
type SubAccountTransactionStatisticsService struct {
// contains filtered or unexported fields
}
Query sub account transaction volume statistics list
func (*SubAccountTransactionStatisticsService) Do ¶ added in v2.0.4
func (s *SubAccountTransactionStatisticsService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountTransactionStatisticServiceResponse, err error)
func (*SubAccountTransactionStatisticsService) Email ¶ added in v2.0.4
func (s *SubAccountTransactionStatisticsService) Email(email string) *SubAccountTransactionStatisticsService
func (*SubAccountTransactionStatisticsService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountTransactionStatisticsService) RecvWindow(recvWindow int64) *SubAccountTransactionStatisticsService
type SubAccountTransferHistory ¶ added in v2.0.4
type SubAccountTransferHistory struct {
CounterParty string `json:"counterParty"`
Email string `json:"email"`
Type SubAccountTransferType `json:"type"`
Asset string `json:"asset"`
Qty string `json:"qty"`
FromAccountType AccountType `json:"fromAccountType"`
ToAccountType AccountType `json:"toAccountType"`
Status string `json:"status"`
TranID int64 `json:"tranId"`
Time int64 `json:"time"`
}
type SubAccountTransferHistoryService ¶ added in v2.0.4
type SubAccountTransferHistoryService struct {
// contains filtered or unexported fields
}
Sub-account Transfer History (For Sub-account) https://binance-docs.github.io/apidocs/spot/en/#sub-account-transfer-history-for-sub-account
func (*SubAccountTransferHistoryService) Asset ¶ added in v2.0.4
func (s *SubAccountTransferHistoryService) Asset(v string) *SubAccountTransferHistoryService
func (*SubAccountTransferHistoryService) Do ¶ added in v2.0.4
func (s *SubAccountTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res []*SubAccountTransferHistory, err error)
func (*SubAccountTransferHistoryService) EndTime ¶ added in v2.0.4
func (s *SubAccountTransferHistoryService) EndTime(v int64) *SubAccountTransferHistoryService
func (*SubAccountTransferHistoryService) Limit ¶ added in v2.0.4
func (s *SubAccountTransferHistoryService) Limit(v int) *SubAccountTransferHistoryService
func (*SubAccountTransferHistoryService) ReturnFailHistory ¶ added in v2.0.4
func (s *SubAccountTransferHistoryService) ReturnFailHistory(v bool) *SubAccountTransferHistoryService
func (*SubAccountTransferHistoryService) StartTime ¶ added in v2.0.4
func (s *SubAccountTransferHistoryService) StartTime(v int64) *SubAccountTransferHistoryService
func (*SubAccountTransferHistoryService) TransferType ¶ added in v2.0.4
func (s *SubAccountTransferHistoryService) TransferType(v SubAccountTransferType) *SubAccountTransferHistoryService
type SubAccountTransferSubToMasterResponse ¶ added in v2.0.4
type SubAccountTransferSubToMasterResponse struct {
TxnId string `json:"txnId"`
}
type SubAccountTransferSubToMasterService ¶ added in v2.0.4
type SubAccountTransferSubToMasterService struct {
// contains filtered or unexported fields
}
sub-account transfer balance to master-account
func (*SubAccountTransferSubToMasterService) Amount ¶ added in v2.0.4
func (s *SubAccountTransferSubToMasterService) Amount(amount string) *SubAccountTransferSubToMasterService
func (*SubAccountTransferSubToMasterService) Asset ¶ added in v2.0.4
func (s *SubAccountTransferSubToMasterService) Asset(asset string) *SubAccountTransferSubToMasterService
func (*SubAccountTransferSubToMasterService) Do ¶ added in v2.0.4
func (s *SubAccountTransferSubToMasterService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountTransferSubToMasterResponse, err error)
func (*SubAccountTransferSubToMasterService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountTransferSubToMasterService) RecvWindow(recvWindow int64) *SubAccountTransferSubToMasterService
type SubAccountTransferType ¶ added in v2.0.4
type SubAccountTransferType int
SubAccountTransferType define the sub account transfer types
type SubAccountUniversalTransferHistoryServiceResponse ¶ added in v2.0.4
type SubAccountUniversalTransferHistoryServiceResponse struct {
Result []*SubAccountUniversalTransferRecord `json:"result"`
TotalCount int64 `json:"totalCount"`
}
type SubAccountUniversalTransferRecord ¶ added in v2.0.4
type SubAccountUniversalTransferRecord struct {
TranId int64 `json:"tranId"`
FromEmail string `json:"fromEmail"`
ToEmail string `json:"toEmail"`
Asset string `json:"asset"`
Amount string `json:"amount"`
CreateTimeStamp int64 `json:"createTimeStamp"`
FromAccountType string `json:"fromAccountType"`
ToAccountType string `json:"toAccountType"`
Status string `json:"status"`
ClientTranId string `json:"clientTranId"`
}
type SubAccountUniversalTransferResponse ¶ added in v2.0.4
type SubAccountUniversalTransferService ¶ added in v2.0.4
type SubAccountUniversalTransferService struct {
// contains filtered or unexported fields
}
Universal transfer of master and sub accounts
func (*SubAccountUniversalTransferService) Amount ¶ added in v2.0.4
func (s *SubAccountUniversalTransferService) Amount(amount string) *SubAccountUniversalTransferService
func (*SubAccountUniversalTransferService) Asset ¶ added in v2.0.4
func (s *SubAccountUniversalTransferService) Asset(asset string) *SubAccountUniversalTransferService
func (*SubAccountUniversalTransferService) ClientTranId ¶ added in v2.0.4
func (s *SubAccountUniversalTransferService) ClientTranId(clientTranId string) *SubAccountUniversalTransferService
func (*SubAccountUniversalTransferService) Do ¶ added in v2.0.4
func (s *SubAccountUniversalTransferService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountUniversalTransferResponse, err error)
func (*SubAccountUniversalTransferService) FromAccountType ¶ added in v2.0.4
func (s *SubAccountUniversalTransferService) FromAccountType(fromAccountType string) *SubAccountUniversalTransferService
func (*SubAccountUniversalTransferService) FromEmail ¶ added in v2.0.4
func (s *SubAccountUniversalTransferService) FromEmail(fromEmail string) *SubAccountUniversalTransferService
func (*SubAccountUniversalTransferService) RecvWindow ¶ added in v2.0.4
func (s *SubAccountUniversalTransferService) RecvWindow(recvWindow int64) *SubAccountUniversalTransferService
func (*SubAccountUniversalTransferService) Symbol ¶ added in v2.0.4
func (s *SubAccountUniversalTransferService) Symbol(symbol string) *SubAccountUniversalTransferService
func (*SubAccountUniversalTransferService) ToAccountType ¶ added in v2.0.4
func (s *SubAccountUniversalTransferService) ToAccountType(toAccountType string) *SubAccountUniversalTransferService
func (*SubAccountUniversalTransferService) ToEmail ¶ added in v2.0.4
func (s *SubAccountUniversalTransferService) ToEmail(toEmail string) *SubAccountUniversalTransferService
type SubTransfer ¶
type SubTransfer struct {
CounterParty string `json:"counterParty"`
Email string `json:"email"`
Type int `json:"type"`
Asset string `json:"asset"`
Qty float64 `json:"qty,string"`
FromAccountType string `json:"fromAccountType"`
ToAccountType string `json:"toAccountType"`
Status string `json:"status"`
TranID int64 `json:"tranId"`
Time int64 `json:"time"`
}
type SubTransferHistoryService ¶
type SubTransferHistoryService struct {
// contains filtered or unexported fields
}
Get transfer history from sub-account See https://binance-docs.github.io/apidocs/spot/en/#transfer-to-master-for-sub-account
func (*SubTransferHistoryService) Asset ¶
func (s *SubTransferHistoryService) Asset(v string) *SubTransferHistoryService
func (*SubTransferHistoryService) Do ¶
func (s *SubTransferHistoryService) Do(ctx context.Context) (res []*SubTransfer, err error)
func (*SubTransferHistoryService) EndTime ¶
func (s *SubTransferHistoryService) EndTime(v int64) *SubTransferHistoryService
func (*SubTransferHistoryService) Limit ¶
func (s *SubTransferHistoryService) Limit(v int) *SubTransferHistoryService
func (*SubTransferHistoryService) StartTime ¶
func (s *SubTransferHistoryService) StartTime(v int64) *SubTransferHistoryService
func (*SubTransferHistoryService) TransferType ¶
func (s *SubTransferHistoryService) TransferType(v int) *SubTransferHistoryService
type SubaccountAssetsResponse ¶
type SubaccountAssetsResponse struct {
Balances []AssetBalance `json:"balances"`
}
SubaccountAssetsResponse Query Sub-account Assets response
type SubaccountAssetsService ¶
type SubaccountAssetsService struct {
// contains filtered or unexported fields
}
func (*SubaccountAssetsService) Do ¶
func (s *SubaccountAssetsService) Do(ctx context.Context, opts ...RequestOption) (res *SubaccountAssetsResponse, err error)
Do send request
func (*SubaccountAssetsService) Email ¶
func (s *SubaccountAssetsService) Email(email string) *SubaccountAssetsService
Email set email
type SubaccountDepositAddressService ¶
type SubaccountDepositAddressService struct {
// contains filtered or unexported fields
}
func (*SubaccountDepositAddressService) Coin ¶
func (s *SubaccountDepositAddressService) Coin(coin string) *SubaccountDepositAddressService
Coin set coin
func (*SubaccountDepositAddressService) Do ¶
func (s *SubaccountDepositAddressService) Do(ctx context.Context, opts ...RequestOption) (res *SubaccountDepositAddressResponse, err error)
Do send request
func (*SubaccountDepositAddressService) Email ¶
func (s *SubaccountDepositAddressService) Email(email string) *SubaccountDepositAddressService
Email set email
func (*SubaccountDepositAddressService) Network ¶
func (s *SubaccountDepositAddressService) Network(network string) *SubaccountDepositAddressService
Network set network
type SubaccountSpotSummaryResponse ¶
type SubaccountSpotSummaryResponse struct {
TotalCount int64 `json:"totalCount"`
MasterAccountTotalAsset string `json:"masterAccountTotalAsset"`
SpotSubUserAssetBtcVoList []SpotSubUserAssetBtcVoList `json:"spotSubUserAssetBtcVoList"`
}
SubaccountSpotSummaryResponse Query Sub-account Spot Assets Summary response
type SubaccountSpotSummaryService ¶
type SubaccountSpotSummaryService struct {
// contains filtered or unexported fields
}
func (*SubaccountSpotSummaryService) Do ¶
func (s *SubaccountSpotSummaryService) Do(ctx context.Context, opts ...RequestOption) (res *SubaccountSpotSummaryResponse, err error)
Do send request
func (*SubaccountSpotSummaryService) Email ¶
func (s *SubaccountSpotSummaryService) Email(email string) *SubaccountSpotSummaryService
Email set email
func (*SubaccountSpotSummaryService) Page ¶
func (s *SubaccountSpotSummaryService) Page(page int32) *SubaccountSpotSummaryService
func (*SubaccountSpotSummaryService) Size ¶
func (s *SubaccountSpotSummaryService) Size(size int32) *SubaccountSpotSummaryService
type SwapRecord ¶
type SwapRecord struct {
SwapId int64 `json:"swapId"`
SwapTime int64 `json:"swapTime"`
Status SwappingStatus `json:"status"`
QuoteAsset string `json:"quoteAsset"`
BaseAsset string `json:"baseAsset"`
QuoteQty string `json:"quoteQty"`
BaseQty string `json:"baseQty"`
Price string `json:"price"`
Fee string `json:"fee"`
}
type SwapResponse ¶
type SwapResponse struct {
SwapId int64 `json:"swapId"`
}
type SwapService ¶
type SwapService struct {
// contains filtered or unexported fields
}
SwapService swap tokens in liquidity pool
func (*SwapService) BaseAsset ¶
func (s *SwapService) BaseAsset(baseAsset string) *SwapService
BaseAsset set baseAsset
func (*SwapService) Do ¶
func (s *SwapService) Do(ctx context.Context) (*SwapResponse, error)
Do sends the request.
func (*SwapService) QuoteAsset ¶
func (s *SwapService) QuoteAsset(quoteAsset string) *SwapService
QuoteAsset set quoteAsset
func (*SwapService) QuoteQty ¶
func (s *SwapService) QuoteQty(quoteQty float64) *SwapService
QuoteQty set quoteQty
type SwappingStatus ¶
type SwappingStatus int
SwappingStatus define the status of swap when querying the swap history
type Symbol ¶
type Symbol struct {
Symbol string `json:"symbol"`
Status string `json:"status"`
BaseAsset string `json:"baseAsset"`
BaseAssetPrecision int `json:"baseAssetPrecision"`
QuoteAsset string `json:"quoteAsset"`
QuotePrecision int `json:"quotePrecision"`
QuoteAssetPrecision int `json:"quoteAssetPrecision"`
BaseCommissionPrecision int32 `json:"baseCommissionPrecision"`
QuoteCommissionPrecision int32 `json:"quoteCommissionPrecision"`
OrderTypes []string `json:"orderTypes"`
IcebergAllowed bool `json:"icebergAllowed"`
OcoAllowed bool `json:"ocoAllowed"`
QuoteOrderQtyMarketAllowed bool `json:"quoteOrderQtyMarketAllowed"`
IsSpotTradingAllowed bool `json:"isSpotTradingAllowed"`
IsMarginTradingAllowed bool `json:"isMarginTradingAllowed"`
Filters []map[string]interface{} `json:"filters"`
Permissions []string `json:"permissions"`
PermissionSets [][]string `json:"permissionSets"`
}
Symbol market symbol
func (*Symbol) IcebergPartsFilter ¶
func (s *Symbol) IcebergPartsFilter() *IcebergPartsFilter
IcebergPartsFilter return iceberg part filter of symbol
func (*Symbol) LotSizeFilter ¶
func (s *Symbol) LotSizeFilter() *LotSizeFilter
LotSizeFilter return lot size filter of symbol
func (*Symbol) MarketLotSizeFilter ¶
func (s *Symbol) MarketLotSizeFilter() *MarketLotSizeFilter
MarketLotSizeFilter return market lot size filter of symbol
func (*Symbol) MaxNumAlgoOrdersFilter ¶
func (s *Symbol) MaxNumAlgoOrdersFilter() *MaxNumAlgoOrdersFilter
MaxNumAlgoOrdersFilter return max num algo orders filter of symbol
func (*Symbol) MaxNumOrdersFilter ¶ added in v2.0.1
func (s *Symbol) MaxNumOrdersFilter() *MaxNumOrdersFilter
For specific meanings, please refer to the type definition MaxNumOrders
func (*Symbol) NotionalFilter ¶
func (s *Symbol) NotionalFilter() *NotionalFilter
NotionalFilter return notional filter of symbol
func (*Symbol) PercentPriceBySideFilter ¶ added in v2.0.1
func (s *Symbol) PercentPriceBySideFilter() *PercentPriceBySideFilter
PercentPriceBySideFilter return percent price filter of symbol
func (*Symbol) PriceFilter ¶
func (s *Symbol) PriceFilter() *PriceFilter
PriceFilter return price filter of symbol
func (*Symbol) TrailingDeltaFilter ¶ added in v2.0.1
func (s *Symbol) TrailingDeltaFilter() *TrailingDeltaFilter
For specific meanings, please refer to the type definition TrailingDeltaFilter
type SymbolPrice ¶
SymbolPrice define symbol and price pair
type SymbolTicker ¶
type SymbolTicker struct {
Symbol string `json:"symbol"`
PriceChange string `json:"priceChange"`
PriceChangePercent string `json:"priceChangePercent"`
WeightedAvgPrice string `json:"weightedAvgPrice"`
OpenPrice string `json:"openPrice"`
HighPrice string `json:"highPrice"`
LowPrice string `json:"lowPrice"`
LastPrice string `json:"lastPrice"`
Volume string `json:"volume"`
QuoteVolume string `json:"quoteVolume"`
OpenTime int64 `json:"openTime"`
CloseTime int64 `json:"closeTime"`
FirstId int64 `json:"firstId"`
LastId int64 `json:"lastId"`
Count int64 `json:"count"`
}
type TimeInForceType ¶
type TimeInForceType string
TimeInForceType define time in force type of order
type ToggleBNBBurnService ¶
type ToggleBNBBurnService struct {
// contains filtered or unexported fields
}
ToggleBNBBurnService toggle BNB Burn on spot trade and margin interest
func (*ToggleBNBBurnService) Do ¶
func (s *ToggleBNBBurnService) Do(ctx context.Context, opts ...RequestOption) (*BNBBurn, error)
Do send request
func (*ToggleBNBBurnService) InterestBNBBurn ¶
func (s *ToggleBNBBurnService) InterestBNBBurn(v bool) *ToggleBNBBurnService
InterestBNBBurn sets the interest BNB burn parameter
func (*ToggleBNBBurnService) SpotBNBBurn ¶
func (s *ToggleBNBBurnService) SpotBNBBurn(v bool) *ToggleBNBBurnService
SpotBNBBurn sets the spot bnb burn parameter.
type Trade ¶
type Trade struct {
ID int64 `json:"id"`
Price string `json:"price"`
Quantity string `json:"qty"`
QuoteQuantity string `json:"quoteQty"`
Time int64 `json:"time"`
IsBuyerMaker bool `json:"isBuyerMaker"`
IsBestMatch bool `json:"isBestMatch"`
IsIsolated bool `json:"isIsolated"`
}
Trade define trade info
type TradeFeeDetails ¶
type TradeFeeDetails struct {
Symbol string `json:"symbol"`
MakerCommission string `json:"makerCommission"`
TakerCommission string `json:"takerCommission"`
}
TradeFeeDetails represents details about fees
type TradeFeeService ¶
type TradeFeeService struct {
// contains filtered or unexported fields
}
TradeFeeService shows current trade fee for all symbols available
func (*TradeFeeService) Do ¶
func (s *TradeFeeService) Do(ctx context.Context) (res []*TradeFeeDetails, err error)
Do send request
func (*TradeFeeService) Symbol ¶
func (s *TradeFeeService) Symbol(symbol string) *TradeFeeService
Symbol set the symbol parameter for the request
type TradeInfoVo ¶ added in v2.0.4
type TradeV3 ¶
type TradeV3 struct {
ID int64 `json:"id"`
Symbol string `json:"symbol"`
OrderID int64 `json:"orderId"`
OrderListId int64 `json:"orderListId"`
Price string `json:"price"`
Quantity string `json:"qty"`
QuoteQuantity string `json:"quoteQty"`
Commission string `json:"commission"`
CommissionAsset string `json:"commissionAsset"`
Time int64 `json:"time"`
IsBuyer bool `json:"isBuyer"`
IsMaker bool `json:"isMaker"`
IsBestMatch bool `json:"isBestMatch"`
IsIsolated bool `json:"isIsolated"`
}
TradeV3 define v3 trade info
type TradingDayTicker ¶ added in v2.0.4
type TradingDayTicker struct {
Symbol string `json:"symbol"`
PriceChange string `json:"priceChange"`
PriceChangePercent string `json:"priceChangePercent"`
WeightedAvgPrice string `json:"weightedAvgPrice"`
OpenPrice string `json:"openPrice"`
HighPrice string `json:"highPrice"`
LowPrice string `json:"lowPrice"`
LastPrice string `json:"lastPrice"`
Volume string `json:"volume"`
QuoteVolume string `json:"quoteVolume"`
OpenTime uint64 `json:"openTime"`
CloseTime uint64 `json:"closeTime"`
FirstId int64 `json:"firstId"`
LastId int64 `json:"lastId"`
Count uint64 `json:"count"`
}
type TradingDayTickerService ¶ added in v2.0.4
type TradingDayTickerService struct {
// contains filtered or unexported fields
}
func (*TradingDayTickerService) Do ¶ added in v2.0.4
func (s *TradingDayTickerService) Do(ctx context.Context, opts ...RequestOption) (res []*TradingDayTicker, err error)
func (*TradingDayTickerService) Symbol ¶ added in v2.0.4
func (s *TradingDayTickerService) Symbol(symbol string) *TradingDayTickerService
func (*TradingDayTickerService) Symbols ¶ added in v2.0.4
func (s *TradingDayTickerService) Symbols(symbols []string) *TradingDayTickerService
func (*TradingDayTickerService) TickerType ¶ added in v2.0.4
func (s *TradingDayTickerService) TickerType(tickerType string) *TradingDayTickerService
func (*TradingDayTickerService) TimeZone ¶ added in v2.0.4
func (s *TradingDayTickerService) TimeZone(timeZone string) *TradingDayTickerService
type TrailingDeltaFilter ¶ added in v2.0.1
type TrailingDeltaFilter struct {
MinTrailingAboveDelta int `json:"minTrailingAboveDelta"`
MaxTrailingAboveDelta int `json:"maxTrailingAboveDelta"`
MinTrailingBelowDelta int `json:"minTrailingBelowDelta"`
MaxTrailingBelowDelta int `json:"maxTrailingBelowDelta"`
}
Spot trading supports tracking stop orders Tracking stop loss sets an automatic trigger price based on market price using a new parameter trailingDelta
type TransactionResponse ¶
type TransactionResponse struct {
TranID int64 `json:"tranId"`
}
TransactionResponse define transaction response
type TransferToSubAccountResponse ¶
type TransferToSubAccountResponse struct {
TxnID int64 `json:"txnId"`
}
TransferToSubAccountResponse define transfer to subaccount response
type TransferToSubAccountService ¶
type TransferToSubAccountService struct {
// contains filtered or unexported fields
}
TransferToSubAccountService transfer to subaccount
func (*TransferToSubAccountService) Amount ¶
func (s *TransferToSubAccountService) Amount(amount string) *TransferToSubAccountService
Amount set amount
func (*TransferToSubAccountService) Asset ¶
func (s *TransferToSubAccountService) Asset(asset string) *TransferToSubAccountService
Asset set asset
func (*TransferToSubAccountService) Do ¶
func (s *TransferToSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *TransferToSubAccountResponse, err error)
Do send request
func (*TransferToSubAccountService) ToEmail ¶
func (s *TransferToSubAccountService) ToEmail(toEmail string) *TransferToSubAccountService
ToEmail set toEmail
type UiKlinesService ¶ added in v2.0.4
type UiKlinesService struct {
// contains filtered or unexported fields
}
func (*UiKlinesService) Do ¶ added in v2.0.4
func (s *UiKlinesService) Do(ctx context.Context, opts ...RequestOption) (res []*UiKline, err error)
func (*UiKlinesService) EndTime ¶ added in v2.0.4
func (s *UiKlinesService) EndTime(endTime uint64) *UiKlinesService
func (*UiKlinesService) Interval ¶ added in v2.0.4
func (s *UiKlinesService) Interval(interval string) *UiKlinesService
func (*UiKlinesService) Limit ¶ added in v2.0.4
func (s *UiKlinesService) Limit(limit uint32) *UiKlinesService
func (*UiKlinesService) StartTime ¶ added in v2.0.4
func (s *UiKlinesService) StartTime(startTime uint64) *UiKlinesService
func (*UiKlinesService) Symbol ¶ added in v2.0.4
func (s *UiKlinesService) Symbol(symbol string) *UiKlinesService
func (*UiKlinesService) TimeZone ¶ added in v2.0.4
func (s *UiKlinesService) TimeZone(timeZone string) *UiKlinesService
type UpdateMarginSpecialKeyService ¶ added in v2.0.6
type UpdateMarginSpecialKeyService struct {
// contains filtered or unexported fields
}
func (*UpdateMarginSpecialKeyService) APIName ¶ added in v2.0.6
func (s *UpdateMarginSpecialKeyService) APIName(apiName string) *UpdateMarginSpecialKeyService
APIName sets the quoteAsset parameter.
func (*UpdateMarginSpecialKeyService) Do ¶ added in v2.0.6
func (s *UpdateMarginSpecialKeyService) Do(ctx context.Context, opts ...RequestOption) (err error)
Do sends the request.
func (*UpdateMarginSpecialKeyService) IP ¶ added in v2.0.6
func (s *UpdateMarginSpecialKeyService) IP(ips string) *UpdateMarginSpecialKeyService
APIKey sets the APIKey parameter.
func (*UpdateMarginSpecialKeyService) RecvWindow ¶ added in v2.0.6
func (s *UpdateMarginSpecialKeyService) RecvWindow(recvWindow int64) *UpdateMarginSpecialKeyService
RecvWindow sets the recvWindow parameter.
func (*UpdateMarginSpecialKeyService) Symbol ¶ added in v2.0.6
func (s *UpdateMarginSpecialKeyService) Symbol(symbol string) *UpdateMarginSpecialKeyService
Symbol sets the symbol parameter.
type UserAsset ¶
type UserAsset struct {
Asset string `json:"asset"`
Borrowed string `json:"borrowed"`
Free string `json:"free"`
Interest string `json:"interest"`
Locked string `json:"locked"`
NetAsset string `json:"netAsset"`
}
UserAsset define user assets of margin account
type UserAssetDribblet ¶
type UserAssetDribblet struct {
OperateTime int64 `json:"operateTime"`
TotalTransferedAmount string `json:"totalTransferedAmount"` //Total transferred BNB amount for this exchange.
TotalServiceChargeAmount string `json:"totalServiceChargeAmount"` //Total service charge amount for this exchange.
TransID int64 `json:"transId"`
UserAssetDribbletDetails []UserAssetDribbletDetail `json:"userAssetDribbletDetails"` //Details of this exchange.
}
UserAssetDribblet represents one dust log row
type UserAssetDribbletDetail ¶
type UserAssetDribbletDetail struct {
TransID int `json:"transId"`
ServiceChargeAmount string `json:"serviceChargeAmount"`
Amount string `json:"amount"`
OperateTime int64 `json:"operateTime"` //The time of this exchange.
TransferedAmount string `json:"transferedAmount"`
FromAsset string `json:"fromAsset"`
}
DustLog represents one dust log information
type UserAssetRecord ¶
type UserDataEventType ¶
type UserDataEventType string
UserDataEventType define spot user data event type
type UserMarginStreamSubscriptionResponse ¶ added in v2.0.8
type UserStreamSubscriptionResponse ¶ added in v2.0.4
type UserUniversalTransfer ¶ added in v2.0.4
type UserUniversalTransfer struct {
Asset string `json:"asset"`
Amount string `json:"amount"`
Type UserUniversalTransferType `json:"type"`
Status UserUniversalTransferStatusType `json:"status"`
TranId int64 `json:"tranId"`
Timestamp int64 `json:"timestamp"`
}
type UserUniversalTransferResponse ¶ added in v2.0.4
type UserUniversalTransferResponse struct {
Total int64 `json:"total"`
Results []*UserUniversalTransfer `json:"rows"`
}
// Withdraw represents a single withdraw entry.
type UserUniversalTransferStatusType ¶ added in v2.0.4
type UserUniversalTransferStatusType string
UserUniversalTransferStatus define the user universal transfer status
type UserUniversalTransferType ¶ added in v2.0.4
type UserUniversalTransferType string
UserUniversalTransferType define the user universal transfer types
type VIPLoanAsset ¶
type VIPLoanAsset struct {
LoanCoin string `json:"loanCoin"`
D30DailyInterestRate string `json:"_30dDailyInterestRate"`
D30YearlyInterestRate string `json:"_30dYearlyInterestRate"`
D60DailyInterestRate string `json:"_60dDailyInterestRate"`
D60YearlyInterestRate string `json:"_60dYearlyInterestRate"`
MinLimit string `json:"minLimit"`
MaxLimit string `json:"maxLimit"`
VipLevel int64 `json:"vipLevel"`
}
type VipLoanService ¶
type VipLoanService struct {
// contains filtered or unexported fields
}
func (*VipLoanService) Do ¶
func (s *VipLoanService) Do(ctx context.Context, opts ...RequestOption) (res *VipLoanableAssets, err error)
Do send request
type VipLoanableAssets ¶
type VipLoanableAssets struct {
Rows []VIPLoanAsset `json:"rows"`
Total int64 `json:"total"`
}
type WSGenericClientSession ¶ added in v2.0.6
type WSGenericClientSession struct {
// contains filtered or unexported fields
}
func NewWSGenericClientSession ¶ added in v2.0.6
func NewWSGenericClientSession(wsURL, apiKey, apiSecret, keyType string, header http.Header, rateLimitBlocker *RateLimitBlocker, logger Logger) *WSGenericClientSession
func (*WSGenericClientSession) Run ¶ added in v2.0.6
func (s *WSGenericClientSession) Run()
func (*WSGenericClientSession) SendRequestAsync ¶ added in v2.0.6
func (s *WSGenericClientSession) SendRequestAsync(method string, params map[string]interface{}) (*Future, error)
func (*WSGenericClientSession) SendRequestAsyncWithAccount ¶ added in v2.0.6
func (s *WSGenericClientSession) SendRequestAsyncWithAccount(apiKey, apiSecret, keyType, method string, params map[string]interface{}) (*Future, error)
type WalletBalance ¶ added in v2.0.4
type WalletBalance struct {
Activate bool `json:"activate"`
Balance string `json:"balance"`
WalletName string `json:"walletName"`
}
WalletBalanceResponse defines the response of WalletBalanceService
type WalletBalanceService ¶ added in v2.0.4
type WalletBalanceService struct {
// contains filtered or unexported fields
}
WalletBalanceService fetches all user wallet balance.
See https://developers.binance.com/docs/wallet/asset/query-user-wallet-balance
func (*WalletBalanceService) Do ¶ added in v2.0.4
func (s *WalletBalanceService) Do(ctx context.Context, opts ...RequestOption) (res []*WalletBalance, err error)
Do sends the request.
func (*WalletBalanceService) QuoteAsset ¶ added in v2.0.4
func (s *WalletBalanceService) QuoteAsset(asset string) *WalletBalanceService
QuoteAsset sets the quoteAsset parameter.
type Withdraw ¶
type Withdraw struct {
Address string `json:"address"`
Amount string `json:"amount"`
ApplyTime string `json:"applyTime"`
Coin string `json:"coin"`
ID string `json:"id"` // Withdrawal id in Binance
WithdrawOrderID string `json:"withdrawOrderId"`
Network string `json:"network"`
TransferType int `json:"transferType"` // 1 for internal transfer, 0 for external transfer
Status int `json:"status"`
TransactionFee string `json:"transactionFee"` // transaction fee
ConfirmNo int32 `json:"confirmNo"`
Info string `json:"info"` // reason for withdrawal failure
TxID string `json:"txId"` // withdrawal transaction id
TxKey string `json:"txKey"`
CompleteTime string `json:"completeTime"` // complete UTC time when user's asset is deduct from withdrawing, only if status = 6(success)
}
Withdraw represents a single withdraw entry.
type WsAccountUpdate ¶
type WsAccountUpdate struct {
Asset string `json:"a"`
Free string `json:"f"`
Locked string `json:"l"`
}
WsAccountUpdate define account update
type WsAccountUpdateList ¶
type WsAccountUpdateList struct {
AccountUpdateTime int64 `json:"u"`
WsAccountUpdates []WsAccountUpdate `json:"B"`
}
type WsAggTradeEvent ¶
type WsAggTradeEvent struct {
Event string `json:"e"`
Time int64 `json:"E"`
Symbol string `json:"s"`
AggTradeID int64 `json:"a"`
Price string `json:"p"`
Quantity string `json:"q"`
FirstBreakdownTradeID int64 `json:"f"`
LastBreakdownTradeID int64 `json:"l"`
TradeTime int64 `json:"T"`
IsBuyerMaker bool `json:"m"`
Placeholder bool `json:"M"` // add this field to avoid case insensitive unmarshalling
}
WsAggTradeEvent define websocket aggregate trade event
type WsAggTradeHandler ¶
type WsAggTradeHandler func(event *WsAggTradeEvent)
WsAggTradeHandler handle websocket aggregate trade event
type WsAllMarketsStatEvent ¶
type WsAllMarketsStatEvent []*WsMarketStatEvent
WsAllMarketsStatEvent define array of websocket market statistics events
type WsAllMarketsStatHandler ¶
type WsAllMarketsStatHandler func(event WsAllMarketsStatEvent)
WsAllMarketsStatHandler handle websocket that push all markets statistics for 24hr
type WsAllMiniMarketsStatEvent ¶
type WsAllMiniMarketsStatEvent []*WsMiniMarketsStatEvent
WsAllMiniMarketsStatEvent define array of websocket market mini-ticker statistics events
type WsAllMiniMarketsStatServeHandler ¶
type WsAllMiniMarketsStatServeHandler func(event WsAllMiniMarketsStatEvent)
WsAllMiniMarketsStatServeHandler handle websocket that push all mini-ticker market statistics for 24hr
type WsApiService ¶ added in v2.0.4
type WsApiService struct {
Debug bool
// contains filtered or unexported fields
}
func NewWsApiService ¶ added in v2.0.4
func NewWsApiService(apiKey, secretKey string) (*WsApiService, error)
NewWsApiService init WsApiService.
func (*WsApiService) GetSessionStatus ¶ added in v2.0.4
func (s *WsApiService) GetSessionStatus(ctx context.Context) (SessionWsResponse, error)
func (*WsApiService) LogonSession ¶ added in v2.0.4
func (s *WsApiService) LogonSession(ctx context.Context) (SessionWsResponse, error)
func (*WsApiService) LogoutSession ¶ added in v2.0.4
func (s *WsApiService) LogoutSession(ctx context.Context) (SessionWsResponse, error)
type WsBalanceUpdate ¶
type WsBookTickerEvent ¶
type WsBookTickerEvent struct {
UpdateID int64 `json:"u"`
Symbol string `json:"s"`
BestBidPrice string `json:"b"`
BestBidQty string `json:"B"`
BestAskPrice string `json:"a"`
BestAskQty string `json:"A"`
}
WsBookTickerEvent define websocket best book ticker event.
type WsBookTickerHandler ¶
type WsBookTickerHandler func(event *WsBookTickerEvent)
WsBookTickerHandler handle websocket that pushes updates to the best bid or ask price or quantity in real-time for a specified symbol.
type WsCombinedBookTickerEvent ¶
type WsCombinedBookTickerEvent struct {
Data *WsBookTickerEvent `json:"data"`
Stream string `json:"stream"`
}
type WsCombinedTradeEvent ¶
type WsCombinedTradeEvent struct {
Stream string `json:"stream"`
Data WsTradeEvent `json:"data"`
}
type WsCombinedTradeHandler ¶
type WsCombinedTradeHandler func(event *WsCombinedTradeEvent)
type WsDepthEvent ¶
type WsDepthEvent struct {
Event string `json:"e"`
Time int64 `json:"E"`
Symbol string `json:"s"`
LastUpdateID int64 `json:"u"`
FirstUpdateID int64 `json:"U"`
Bids []Bid `json:"b"`
Asks []Ask `json:"a"`
}
WsDepthEvent define websocket depth event
type WsDepthHandler ¶
type WsDepthHandler func(event *WsDepthEvent)
WsDepthHandler handle websocket depth event
type WsKline ¶
type WsKline struct {
StartTime int64 `json:"t"`
EndTime int64 `json:"T"`
Symbol string `json:"s"`
Interval string `json:"i"`
FirstTradeID int64 `json:"f"`
LastTradeID int64 `json:"L"`
Open string `json:"o"`
Close string `json:"c"`
High string `json:"h"`
Low string `json:"l"`
Volume string `json:"v"`
TradeNum int64 `json:"n"`
IsFinal bool `json:"x"`
QuoteVolume string `json:"q"`
ActiveBuyVolume string `json:"V"`
ActiveBuyQuoteVolume string `json:"Q"`
}
WsKline define websocket kline
type WsKlineEvent ¶
type WsKlineEvent struct {
Event string `json:"e"`
Time int64 `json:"E"`
Symbol string `json:"s"`
Kline WsKline `json:"k"`
}
WsKlineEvent define websocket kline event
type WsKlineHandler ¶
type WsKlineHandler func(event *WsKlineEvent)
WsKlineHandler handle websocket kline event
type WsMarketStatEvent ¶
type WsMarketStatEvent struct {
Event string `json:"e"`
Time int64 `json:"E"`
Symbol string `json:"s"`
PriceChange string `json:"p"`
PriceChangePercent string `json:"P"`
WeightedAvgPrice string `json:"w"`
PrevClosePrice string `json:"x"`
LastPrice string `json:"c"`
CloseQty string `json:"Q"`
BidPrice string `json:"b"`
BidQty string `json:"B"`
AskPrice string `json:"a"`
AskQty string `json:"A"`
OpenPrice string `json:"o"`
HighPrice string `json:"h"`
LowPrice string `json:"l"`
BaseVolume string `json:"v"`
QuoteVolume string `json:"q"`
OpenTime int64 `json:"O"`
CloseTime int64 `json:"C"`
FirstID int64 `json:"F"`
LastID int64 `json:"L"`
Count int64 `json:"n"`
}
WsMarketStatEvent define websocket market statistics event
type WsMarketStatHandler ¶
type WsMarketStatHandler func(event *WsMarketStatEvent)
WsMarketStatHandler handle websocket that push single market statistics for 24hr
type WsMiniMarketsStatEvent ¶
type WsMiniMarketsStatEvent struct {
Event string `json:"e"`
Time int64 `json:"E"`
Symbol string `json:"s"`
LastPrice string `json:"c"`
OpenPrice string `json:"o"`
HighPrice string `json:"h"`
LowPrice string `json:"l"`
BaseVolume string `json:"v"`
QuoteVolume string `json:"q"`
}
WsMiniMarketsStatEvent define websocket market mini-ticker statistics event
type WsOCOOrder ¶
type WsOCOOrderList ¶
type WsOCOOrderList struct {
WsOCOOrders []WsOCOOrder `json:"O"`
}
type WsOCOUpdate ¶
type WsOCOUpdate struct {
Symbol string `json:"s"`
OrderListId int64 `json:"g"`
ContingencyType string `json:"c"`
ListStatusType string `json:"l"`
ListOrderStatus string `json:"L"`
RejectReason string `json:"r"`
ClientOrderId string `json:"C"` // List Client Order ID
TransactionTime int64 `json:"T"`
Orders WsOCOOrderList
}
type WsOrderUpdate ¶
type WsOrderUpdate struct {
Symbol string `json:"s"`
ClientOrderId string `json:"c"`
Side string `json:"S"`
Type string `json:"o"`
TimeInForce TimeInForceType `json:"f"`
Volume string `json:"q"`
Price string `json:"p"`
StopPrice string `json:"P"`
IceBergVolume string `json:"F"`
OrderListId int64 `json:"g"` // for OCO
OrigCustomOrderId string `json:"C"` // customized order ID for the original order
ExecutionType string `json:"x"` // execution type for this event NEW/TRADE...
Status string `json:"X"` // order status
RejectReason string `json:"r"`
Id int64 `json:"i"` // order id
LatestVolume string `json:"l"` // quantity for the latest trade
FilledVolume string `json:"z"`
LatestPrice string `json:"L"` // price for the latest trade
FeeAsset string `json:"N"`
FeeCost string `json:"n"`
TransactionTime int64 `json:"T"`
TradeId int64 `json:"t"`
IgnoreI int64 `json:"I"` // ignore
IsInOrderBook bool `json:"w"` // is the order in the order book?
IsMaker bool `json:"m"` // is this order maker?
IgnoreM bool `json:"M"` // ignore
CreateTime int64 `json:"O"`
FilledQuoteVolume string `json:"Z"` // the quote volume that already filled
LatestQuoteVolume string `json:"Y"` // the quote volume for the latest trade
QuoteVolume string `json:"Q"`
SelfTradePreventionMode string `json:"V"`
//These are fields that appear in the payload only if certain conditions are met.
TrailingDelta int64 `json:"d"` // Appears only for trailing stop orders.
TrailingTime int64 `json:"D"`
StrategyId int64 `json:"j"` // Appears only if the strategyId parameter was provided upon order placement.
StrategyType int64 `json:"J"` // Appears only if the strategyType parameter was provided upon order placement.
PreventedMatchId int64 `json:"v"` // Appears only for orders that expired due to STP.
PreventedQuantity string `json:"A"`
LastPreventedQuantity string `json:"B"`
TradeGroupId int64 `json:"u"`
CounterOrderId int64 `json:"U"`
CounterSymbol string `json:"Cs"`
PreventedExecutionQuantity string `json:"pl"`
PreventedExecutionPrice string `json:"pL"`
PreventedExecutionQuoteQty string `json:"pY"`
WorkingTime int64 `json:"W"` // Appears when the order is working on the book
MatchType string `json:"b"`
AllocationId int64 `json:"a"`
WorkingFloor string `json:"k"` // Appears for orders that could potentially have allocations
UsedSor bool `json:"uS"` // Appears for orders that used SOR
}
type WsPartialDepthEvent ¶
type WsPartialDepthEvent struct {
Symbol string
LastUpdateID int64 `json:"lastUpdateId"`
Bids []Bid `json:"bids"`
Asks []Ask `json:"asks"`
}
WsPartialDepthEvent define websocket partial depth book event
type WsPartialDepthHandler ¶
type WsPartialDepthHandler func(event *WsPartialDepthEvent)
WsPartialDepthHandler handle websocket partial depth event
type WsTradeEvent ¶
type WsTradeEvent struct {
Event string `json:"e"`
Time int64 `json:"E"`
Symbol string `json:"s"`
TradeID int64 `json:"t"`
Price string `json:"p"`
Quantity string `json:"q"`
BuyerOrderID int64 `json:"b"`
SellerOrderID int64 `json:"a"`
TradeTime int64 `json:"T"`
IsBuyerMaker bool `json:"m"`
Placeholder bool `json:"M"` // add this field to avoid case insensitive unmarshalling
}
WsTradeEvent define websocket trade event
type WsTradeHandler ¶
type WsTradeHandler func(event *WsTradeEvent)
WsTradeHandler handle websocket trade event
type WsUserDataEvent ¶
type WsUserDataEvent struct {
Event UserDataEventType `json:"e"`
Time int64 `json:"E"`
AccountUpdate WsAccountUpdateList
BalanceUpdate WsBalanceUpdate
OrderUpdate WsOrderUpdate
OCOUpdate WsOCOUpdate
}
WsUserDataEvent define user data event
type WsUserDataHandler ¶
type WsUserDataHandler func(event *WsUserDataEvent)
WsUserDataHandler handle WsUserDataEvent
Source Files
¶
- account_commission_rate.go
- account_service.go
- all_coin_service.go
- asset_detail_service.go
- asset_dividend_service.go
- bnb_burn_service.go
- c2c_service.go
- client.go
- convert_trade.go
- deposit_service.go
- depth_service.go
- doc.go
- dust_log_service.go
- exchange_info_service.go
- fiat_service.go
- flexible_adjust_ltv.go
- flexible_loan_repay.go
- futures_algo_service.go
- futures_service.go
- get_flexible_loan_borrow_history.go
- get_flexible_loan_ongoing_orders.go
- get_flexible_loan_repay_history.go
- interest_history_service.go
- internal_universal_transfer_service.go
- kline_service.go
- liquidity_pool_service.go
- loan_service.go
- margin_interest_history_service.go
- margin_order_service.go
- margin_service.go
- margin_special_key_service.go
- margin_subscription_token.go
- order_service.go
- order_service_ws_create.go
- pay_service.go
- rate_limit_service.go
- rebate.go
- request.go
- savings_service.go
- server_service.go
- simple_earn_service.go
- staking_service.go
- subaccount_service.go
- ticker_service.go
- trade_fee_service.go
- trade_service.go
- trading_day_ticker.go
- uiKlines_service.go
- user_stream_service.go
- user_universal_transfer.go
- wallet_balance_service.go
- websocket.go
- websocket_api_generic.go
- websocket_api_service.go
- websocket_margin_userstream_service.go
- websocket_service.go
- withdraw_service.go
Directories
¶
| Path | Synopsis |
|---|---|
|
websocket/mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
|
mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
|
mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |