Versions in this module Expand all Collapse all v2 v2.10.4 Jan 4, 2024 v2.10.3 Jan 4, 2024 v2.10.2 Jan 4, 2024 v2.10.1 Jan 4, 2024 v2.10.0 Jan 4, 2024 v2.2.0 Jan 1, 2024 v2.1.0 Jan 1, 2024 Changes in this version + const AccountTypeCoinFuture + const AccountTypeIsolatedMargin + const AccountTypeMargin + const AccountTypeSpot + const AccountTypeUSDTFuture + const FuturesTransferStatusTypeConfirmed + const FuturesTransferStatusTypeFailed + const FuturesTransferStatusTypePending + const FuturesTransferTypeToFutures + const FuturesTransferTypeToMain + const LendingTypeActivity + const LendingTypeFixed + const LendingTypeFlexible + const LiquidityOperationTypeCombination + const LiquidityOperationTypeSingle + const MarginLoanStatusTypeConfirmed + const MarginLoanStatusTypeFailed + const MarginLoanStatusTypePending + const MarginRepayStatusTypeConfirmed + const MarginRepayStatusTypeFailed + const MarginRepayStatusTypePending + const MarginTransferTypeToMain + const MarginTransferTypeToMargin + const NewOrderRespTypeACK + const NewOrderRespTypeFULL + const NewOrderRespTypeRESULT + const OrderStatusExpiredInMatch + const OrderStatusTypeCanceled + const OrderStatusTypeExpired + const OrderStatusTypeFilled + const OrderStatusTypeNew + const OrderStatusTypePartiallyFilled + const OrderStatusTypePendingCancel + const OrderStatusTypeRejected + const OrderTypeLimit + const OrderTypeLimitMaker + const OrderTypeMarket + const OrderTypeStopLoss + const OrderTypeStopLossLimit + const OrderTypeTakeProfit + const OrderTypeTakeProfitLimit + const RateLimitIntervalDay + const RateLimitIntervalMinute + const RateLimitIntervalSecond + const RateLimitTypeOrders + const RateLimitTypeRawRequests + const RateLimitTypeRequestWeight + const RewardClaimDone + const RewardClaimPending + const RewardTypeLiquidity + const RewardTypeTrading + const SideEffectTypeAutoRepay + const SideEffectTypeMarginBuy + const SideEffectTypeNoSideEffect + const SideTypeBuy + const SideTypeSell + const StakingProductFlexibleDeFiStaking + const StakingProductLockedDeFiStaking + const StakingProductLockedStaking + const StakingTransactionTypeInterest + const StakingTransactionTypeRedemption + const StakingTransactionTypeSubscription + const SwappingStatusDone + const SwappingStatusFailed + const SwappingStatusPending + const SymbolFilterTypeIcebergParts + const SymbolFilterTypeLotSize + const SymbolFilterTypeMarketLotSize + const SymbolFilterTypeMaxNumAlgoOrders + const SymbolFilterTypeMaxNumOrders + const SymbolFilterTypeMinNotional + const SymbolFilterTypeNotional + const SymbolFilterTypePercentPriceBySide + const SymbolFilterTypePriceFilter + const SymbolFilterTypeTrailingDelta + const SymbolStatusTypeAuctionMatch + const SymbolStatusTypeBreak + const SymbolStatusTypeEndOfDay + const SymbolStatusTypeHalt + const SymbolStatusTypePostTrading + const SymbolStatusTypePreTrading + const SymbolStatusTypeTrading + const SymbolTypeSpot + const TimeInForceTypeFOK + const TimeInForceTypeGTC + const TimeInForceTypeIOC + const TransactionTypeBuy + const TransactionTypeDeposit + const TransactionTypeSell + const TransactionTypeWithdraw + const UserDataEventTypeBalanceUpdate + const UserDataEventTypeExecutionReport + const UserDataEventTypeListStatus + const UserDataEventTypeOutboundAccountPosition + var UseTestnet = false + var WebsocketKeepalive = false + var WebsocketTimeout = time.Second * 60 + func FormatTimestamp(t time.Time) int64 + func NewDeliveryClient(apiKey, secretKey string) *delivery.Client + func NewFuturesClient(apiKey, secretKey string) *futures.Client + func NewOptionsClient(apiKey, secretKey string) *options.Client + 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 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 struct + CreateTime uint64 + EnableFutures bool + EnableInternalTransfer bool + EnableMargin bool + EnableReading bool + EnableSpotAndMarginTrading bool + EnableVanillaOptions bool + EnableWithdrawals bool + IPRestrict bool + PermitsUniversalTransfer bool + TradingAuthorityExpirationTime uint64 + type Account struct + AccountType string + Balances []Balance + BuyerCommission int64 + CanDeposit bool + CanTrade bool + CanWithdraw bool + CommissionRates CommissionRates + MakerCommission int64 + Permissions []string + SellerCommission int64 + TakerCommission int64 + UpdateTime uint64 + type AccountType string + type AddLiquidityPreviewResponse struct + BaseAmt string + BaseAsset string + Fee string + Price string + QuoteAmt string + QuoteAsset string + Share string + Slippage string + type AddLiquidityPreviewService struct + 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 struct + OperationId int64 + type AddLiquidityService struct + 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 struct + AggTradeID int64 + FirstTradeID int64 + IsBestPriceMatch bool + IsBuyerMaker bool + LastTradeID int64 + Price string + Quantity string + Timestamp int64 + type AggTradesService struct + 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 Ask = common.PriceLevel + type AssetBalance struct + Asset string + Free float64 + Locked float64 + type AssetDetail struct + DepositStatus bool + DepositTip string + MinWithdrawAmount string + WithdrawFee string + WithdrawStatus bool + type AssetDividendService struct + 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 struct + func (s *AveragePriceService) Do(ctx context.Context, opts ...RequestOption) (res *AvgPrice, err error) + func (s *AveragePriceService) Symbol(symbol string) *AveragePriceService + type AvgPrice struct + Mins int64 + Price string + type BNBBurn struct + InterestBNBBurn bool + SpotBNBBurn bool + type Balance struct + Asset string + Free string + Locked string + type Bid = common.PriceLevel + type BookTicker struct + AskPrice string + AskQuantity string + BidPrice string + BidQuantity string + Symbol string + type C2CRecord struct + AdvNo string + AdvertisementRole string + Amount string + Asset string + Commission string + CounterPartNickName string + CreateTime int64 + Fiat string + FiatSymbol string + OrderNumber string + OrderStatus string + TotalPrice string + TradeType string + UnitPrice string + type C2CTradeHistory struct + Code string + Data []C2CRecord + Message string + Success bool + Total int64 + type C2CTradeHistoryService struct + 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 CancelMarginOCOResponse struct + ContingencyType string + IsIsolated bool + ListClientOrderID string + ListOrderStatus string + ListStatusType string + OrderListID int64 + OrderReports []*MarginOCOOrderReport + Orders []*MarginOCOOrder + Symbol string + TransactionTime int64 + type CancelMarginOCOService struct + 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 struct + ClientOrderID string + CummulativeQuoteQuantity string + ExecutedQuantity string + OrderID string + OrigClientOrderID string + OrigQuantity string + Price string + Side SideType + Status OrderStatusType + Symbol string + TimeInForce TimeInForceType + TransactTime int64 + Type OrderType + type CancelMarginOrderService struct + 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 struct + ContingencyType string + ListClientOrderID string + ListOrderStatus string + ListStatusType string + OrderListID int64 + OrderReports []*OCOOrderReport + Orders []*OCOOrder + Symbol string + TransactionTime int64 + type CancelOCOService struct + 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 struct + OCOOrders []*CancelOCOResponse + Orders []*CancelOrderResponse + type CancelOpenOrdersService struct + func (s *CancelOpenOrdersService) Do(ctx context.Context, opts ...RequestOption) (res *CancelOpenOrdersResponse, err error) + func (s *CancelOpenOrdersService) Symbol(symbol string) *CancelOpenOrdersService + type CancelOrderResponse struct + ClientOrderID string + CummulativeQuoteQuantity string + ExecutedQuantity string + OrderID int64 + OrderListID int64 + OrigClientOrderID string + OrigQuantity string + Price string + Side SideType + Status OrderStatusType + Symbol string + TimeInForce TimeInForceType + TransactTime int64 + Type OrderType + type CancelOrderService struct + 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 struct + Success bool + type ClaimRewardService struct + func (s *ClaimRewardService) Do(ctx context.Context) (*ClaimRewardResponse, error) + func (s *ClaimRewardService) RewardType(t LiquidityRewardType) *ClaimRewardService + type ClaimedRewardHistory struct + AssetRewards string + ClaimedAmount string + ClaimedAt int64 + PoolId int + PoolName string + Status RewardClaimStatus + type Client struct + APIKey string + BaseURL string + Debug bool + HTTPClient *http.Client + Logger *log.Logger + SecretKey string + TimeOffset int64 + UserAgent string + func NewClient(apiKey, secretKey string) *Client + func NewProxiedClient(apiKey, secretKey, proxyUrl string) *Client + func (c *Client) NewAddLiquidityPreviewService() *AddLiquidityPreviewService + func (c *Client) NewAddLiquidityService() *AddLiquidityService + func (c *Client) NewAggTradesService() *AggTradesService + func (c *Client) NewAssetDividendService() *AssetDividendService + func (c *Client) NewAveragePriceService() *AveragePriceService + func (c *Client) NewC2CTradeHistoryService() *C2CTradeHistoryService + 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) NewConvertTradeHistoryService() *ConvertTradeHistoryService + func (c *Client) NewCreateMarginOCOService() *CreateMarginOCOService + func (c *Client) NewCreateMarginOrderService() *CreateMarginOrderService + func (c *Client) NewCreateOCOService() *CreateOCOService + func (c *Client) NewCreateOrderService() *CreateOrderService + func (c *Client) NewCreateWithdrawService() *CreateWithdrawService + 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) 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) NewGetDepositAddressService() *GetDepositsAddressService + func (c *Client) NewGetIsolatedMarginAccountService() *GetIsolatedMarginAccountService + func (c *Client) NewGetIsolatedMarginAllPairsService() *GetIsolatedMarginAllPairsService + func (c *Client) NewGetLiquidityPoolDetailService() *GetLiquidityPoolDetailService + 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) 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) NewListMarginLoansService() *ListMarginLoansService + func (c *Client) NewListMarginOpenOrdersService() *ListMarginOpenOrdersService + func (c *Client) NewListMarginOrdersService() *ListMarginOrdersService + func (c *Client) NewListMarginRepaysService() *ListMarginRepaysService + func (c *Client) NewListMarginTradesService() *ListMarginTradesService + 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) NewListWithdrawsService() *ListWithdrawsService + func (c *Client) NewManagedSubAccountAssetsService() *ManagedSubAccountAssetsService + func (c *Client) NewManagedSubAccountDepositService() *ManagedSubAccountDepositService + func (c *Client) NewManagedSubAccountWithdrawalService() *ManagedSubAccountWithdrawalService + func (c *Client) NewMarginLoanService() *MarginLoanService + func (c *Client) NewMarginRepayService() *MarginRepayService + 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) 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) NewSubAccountFuturesAccountService() *SubAccountFuturesAccountService + func (c *Client) NewSubAccountFuturesSummaryV1Service() *SubAccountFuturesSummaryV1Service + func (c *Client) NewSubAccountListService() *SubAccountListService + 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) NewTransferToSubAccountService() *TransferToSubAccountService + func (c *Client) NewUserUniversalTransferService() *CreateUserUniversalTransferService + func (c *Client) SetApiEndpoint(url string) *Client + type CloseIsolatedMarginUserStreamService struct + 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 struct + func (s *CloseMarginUserStreamService) Do(ctx context.Context, opts ...RequestOption) (err error) + func (s *CloseMarginUserStreamService) ListenKey(listenKey string) *CloseMarginUserStreamService + type CloseUserStreamService struct + func (s *CloseUserStreamService) Do(ctx context.Context, opts ...RequestOption) (err error) + func (s *CloseUserStreamService) ListenKey(listenKey string) *CloseUserStreamService + type CoinInfo struct + Coin string + DepositAllEnable bool + Free string + Freeze string + Ipoable string + Ipoing string + IsLegalMoney bool + Locked string + Name string + NetworkList []Network + Storage string + Trading bool + WithdrawAllEnable bool + Withdrawing string + type CommissionRates struct + Buyer string + Maker string + Seller string + Taker string + type ConvertTradeHistory struct + EndTime int64 + Limit int32 + List []ConvertTradeHistoryItem + MoreData bool + StartTime int64 + type ConvertTradeHistoryItem struct + CreateTime int64 + FromAmount string + FromAsset string + InverseRatio string + OrderId int64 + OrderStatus string + QuoteId string + Ratio string + ToAmount string + ToAsset string + type ConvertTradeHistoryService struct + 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 CreateMarginOCOResponse struct + ContingencyType string + IsIsolated bool + ListClientOrderID string + ListOrderStatus string + ListStatusType string + MarginBuyBorrowAmount string + MarginBuyBorrowAsset string + OrderListID int64 + OrderReports []*MarginOCOOrderReport + Orders []*MarginOCOOrder + Symbol string + TransactionTime int64 + type CreateMarginOCOService struct + 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 struct + 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 CreateOCOResponse struct + ContingencyType string + ListClientOrderID string + ListOrderStatus string + ListStatusType string + OrderListID int64 + OrderReports []*OCOOrderReport + Orders []*OCOOrder + Symbol string + TransactionTime int64 + type CreateOCOService struct + 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 struct + ClientOrderID string + CummulativeQuoteQuantity string + ExecutedQuantity string + Fills []*Fill + IsIsolated bool + MarginBuyBorrowAmount string + MarginBuyBorrowAsset string + OrderID int64 + OrigQuantity string + Price string + Side SideType + Status OrderStatusType + Symbol string + TimeInForce TimeInForceType + TransactTime int64 + Type OrderType + type CreateOrderService struct + 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) 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 CreateUserUniversalTransferResponse struct + ID int64 + type CreateUserUniversalTransferService struct + func (s *CreateUserUniversalTransferService) Amount(v float64) *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 string) *CreateUserUniversalTransferService + type CreateWithdrawResponse struct + ID string + type CreateWithdrawService struct + 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) (*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) WithdrawOrderID(v string) *CreateWithdrawService + type Deposit struct + Address string + AddressTag string + Amount string + Coin string + ConfirmTimes string + InsertTime int64 + Network string + Status int + TransferType int64 + TxID string + UnlockConfirm int64 + type DepthResponse struct + Asks []Ask + Bids []Bid + LastUpdateID int64 + type DepthService struct + func (s *DepthService) Do(ctx context.Context, opts ...RequestOption) (res *DepthResponse, err error) + func (s *DepthService) Limit(limit int) *DepthService + func (s *DepthService) Symbol(symbol string) *DepthService + type DividendResponse struct + Amount string + Asset string + ID int64 + Info string + Time int64 + TranID int64 + type DividendResponseWrapper struct + Rows *[]DividendResponse + Total int32 + type DustResult struct + Total uint8 + UserAssetDribblets []UserAssetDribblet + type DustTransferResponse struct + TotalServiceCharge string + TotalTransfered string + TransferResult []*DustTransferResult + type DustTransferResult struct + Amount string + FromAsset string + OperateTime int64 + ServiceChargeAmount string + TranID int64 + TransferedAmount string + type DustTransferService struct + func (s *DustTransferService) Asset(asset []string) *DustTransferService + func (s *DustTransferService) Do(ctx context.Context) (withdraws *DustTransferResponse, err error) + type ErrHandler func(err error) + type ExchangeInfo struct + ExchangeFilters []interface{} + RateLimits []RateLimit + ServerTime int64 + Symbols []Symbol + Timezone string + type ExchangeInfoService struct + func (s *ExchangeInfoService) Do(ctx context.Context, opts ...RequestOption) (res *ExchangeInfo, err error) + func (s *ExchangeInfoService) Permissions(permissions ...string) *ExchangeInfoService + func (s *ExchangeInfoService) Symbol(symbol string) *ExchangeInfoService + func (s *ExchangeInfoService) Symbols(symbols ...string) *ExchangeInfoService + type FiatDepositWithdrawHistory struct + Code string + Data []FiatDepositWithdrawHistoryItem + Message string + Success bool + Total int32 + type FiatDepositWithdrawHistoryItem struct + Amount string + CreateTime int64 + FiatCurrency string + IndicatedAmount string + Method string + OrderNo string + Status string + TotalFee string + UpdateTime int64 + type FiatDepositWithdrawHistoryService struct + 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 struct + Code string + Data []FiatPaymentsHistoryItem + Message string + Success bool + Total int32 + type FiatPaymentsHistoryItem struct + CreateTime int64 + CryptoCurrency string + FiatCurrency string + ObtainAmount string + OrderNo string + Price string + SourceAmount string + Status string + TotalFee string + UpdateTime int64 + type FiatPaymentsHistoryService struct + 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 struct + Commission string + CommissionAsset string + Price string + Quantity string + TradeID int64 + type FundsDetail struct + Amount string + Currency string + type FuturesTransfer struct + Amount string + Asset string + Status FuturesTransferStatusType + Timestamp int64 + TranID int64 + Type int64 + type FuturesTransferHistory struct + Rows []FuturesTransfer + Total int64 + type FuturesTransferService struct + 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 string + type FuturesTransferType int + type GetAPIKeyPermission struct + func (s *GetAPIKeyPermission) Do(ctx context.Context, opts ...RequestOption) (res *APIKeyPermission, err error) + type GetAccountService struct + func (s *GetAccountService) Do(ctx context.Context, opts ...RequestOption) (res *Account, err error) + type GetAccountSnapshotService struct + 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 struct + func (s *GetAllCoinsInfoService) Do(ctx context.Context) (res []*CoinInfo, err error) + type GetAllLiquidityPoolService struct + func (s *GetAllLiquidityPoolService) Do(ctx context.Context, opts ...RequestOption) ([]*LiquidityPool, error) + type GetAllMarginAssetsService struct + func (s *GetAllMarginAssetsService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginAsset, err error) + type GetAssetDetailService struct + func (s *GetAssetDetailService) Asset(asset string) *GetAssetDetailService + func (s *GetAssetDetailService) Do(ctx context.Context) (res map[string]AssetDetail, err error) + type GetBNBBurnService struct + func (s *GetBNBBurnService) Do(ctx context.Context, opts ...RequestOption) (*BNBBurn, error) + type GetDepositAddressResponse struct + Address string + Coin string + Tag string + URL string + type GetDepositsAddressService struct + func (s *GetDepositsAddressService) Coin(coin string) *GetDepositsAddressService + func (s *GetDepositsAddressService) Do(ctx context.Context) (*GetDepositAddressResponse, error) + func (s *GetDepositsAddressService) Network(network string) *GetDepositsAddressService + type GetIsolatedMarginAccountService struct + func (s *GetIsolatedMarginAccountService) Do(ctx context.Context, opts ...RequestOption) (res *IsolatedMarginAccount, err error) + func (s *GetIsolatedMarginAccountService) Symbols(symbols ...string) *GetIsolatedMarginAccountService + type GetIsolatedMarginAllPairsService struct + func (s *GetIsolatedMarginAllPairsService) Do(ctx context.Context, opts ...RequestOption) (res []*IsolatedMarginAllPair, err error) + type GetLiquidityPoolDetailService struct + func (s *GetLiquidityPoolDetailService) Do(ctx context.Context) ([]*LiquidityPoolDetail, error) + func (s *GetLiquidityPoolDetailService) PoolId(poolId int64) *GetLiquidityPoolDetailService + type GetMarginAccountService struct + func (s *GetMarginAccountService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccount, err error) + type GetMarginAllPairsService struct + func (s *GetMarginAllPairsService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginAllPair, err error) + type GetMarginAssetService struct + func (s *GetMarginAssetService) Asset(asset string) *GetMarginAssetService + func (s *GetMarginAssetService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAsset, err error) + type GetMarginOrderService struct + 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 struct + func (s *GetMarginPairService) Do(ctx context.Context, opts ...RequestOption) (res *MarginPair, err error) + func (s *GetMarginPairService) Symbol(symbol string) *GetMarginPairService + type GetMarginPriceIndexService struct + func (s *GetMarginPriceIndexService) Do(ctx context.Context, opts ...RequestOption) (res *MarginPriceIndex, err error) + func (s *GetMarginPriceIndexService) Symbol(symbol string) *GetMarginPriceIndexService + type GetMaxBorrowableService struct + func (s *GetMaxBorrowableService) Asset(asset string) *GetMaxBorrowableService + func (s *GetMaxBorrowableService) Do(ctx context.Context, opts ...RequestOption) (res *MaxBorrowable, err error) + func (s *GetMaxBorrowableService) IsolatedSymbol(isolatedSymbol string) *GetMaxBorrowableService + type GetMaxTransferableService struct + func (s *GetMaxTransferableService) Asset(asset string) *GetMaxTransferableService + func (s *GetMaxTransferableService) Do(ctx context.Context, opts ...RequestOption) (res *MaxTransferable, err error) + type GetOrderService struct + 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 struct + BaseAsset string + BaseQty string + Fee string + Price string + QuoteAsset string + QuoteQty string + Slippage string + type GetSwapQuoteService struct + 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 struct + func (s *GetUserAssetService) Asset(asset string) *GetUserAssetService + func (s *GetUserAssetService) Do(ctx context.Context) (res []UserAssetRecord, err error) + func (s *GetUserAssetService) NeedBtcValuation(val bool) *GetUserAssetService + type GetUserSwapRecordsService struct + 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 struct + 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 struct + Limit int + type InterestHistory []InterestHistoryElement + type InterestHistoryElement struct + Asset string + Interest string + LendingType LendingType + ProductName string + Time int64 + type InterestHistoryService struct + 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 struct + Amount string + Asset string + ClientTranId string + CreateTimeStamp uint64 + FromAccountType string + FromEmail string + Status string + ToAccountType string + ToEmail string + TranId int64 + type InternalUniversalTransferHistoryResponse struct + Result []*InternalUniversalTransfer + TotalCount int + type InternalUniversalTransferHistoryService struct + 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 struct + ClientTranID string + ID int64 + type InternalUniversalTransferService struct + func (s *InternalUniversalTransferService) Amount(v float64) *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 struct + Assets []IsolatedMarginAsset + TotalAssetOfBTC string + TotalLiabilityOfBTC string + TotalNetAssetOfBTC string + type IsolatedMarginAllPair struct + Base string + IsBuyAllowed bool + IsMarginTrade bool + IsSellAllowed bool + Quote string + Symbol string + type IsolatedMarginAsset struct + BaseAsset IsolatedUserAsset + Enabled bool + IndexPrice string + IsolatedCreated bool + LiquidatePrice string + LiquidateRate string + MarginLevel string + MarginLevelStatus string + MarginRatio string + QuoteAsset IsolatedUserAsset + Symbol string + TradeEnabled bool + type IsolatedMarginTransferService struct + 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 struct + Asset string + BorrowEnabled bool + Borrowed string + Free string + Interest string + Locked string + NetAsset string + NetAssetOfBtc string + RepayEnabled bool + TotalAsset string + type KeepaliveIsolatedMarginUserStreamService struct + 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 struct + func (s *KeepaliveMarginUserStreamService) Do(ctx context.Context, opts ...RequestOption) (err error) + func (s *KeepaliveMarginUserStreamService) ListenKey(listenKey string) *KeepaliveMarginUserStreamService + type KeepaliveUserStreamService struct + func (s *KeepaliveUserStreamService) Do(ctx context.Context, opts ...RequestOption) (err error) + func (s *KeepaliveUserStreamService) ListenKey(listenKey string) *KeepaliveUserStreamService + type Kline struct + Close string + CloseTime int64 + High string + Low string + Open string + OpenTime int64 + QuoteAssetVolume string + TakerBuyBaseAssetVolume string + TakerBuyQuoteAssetVolume string + TradeNum int64 + Volume string + type KlinesService struct + 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 string + type LiquidityOperationType string + type LiquidityPool struct + Assets []string + PoolId int64 + PoolName string + type LiquidityPoolDetail struct + Liquidity map[string]string + PoolId int64 + PoolName string + Share *PoolShareInformation + UpdateTime int64 + type LiquidityRewardType int + type ListBookTickersService struct + func (s *ListBookTickersService) Do(ctx context.Context, opts ...RequestOption) (res []*BookTicker, err error) + func (s *ListBookTickersService) Symbol(symbol string) *ListBookTickersService + type ListDepositsService struct + func (s *ListDepositsService) Coin(coin string) *ListDepositsService + func (s *ListDepositsService) Do(ctx context.Context) (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 struct + AmountFree string + Asset string + AssetFullName string + Exchange string + ToBNB string + ToBNBOffExchange string + ToBTC string + type ListDustLogService struct + func (s *ListDustLogService) Do(ctx context.Context) (withdraws *DustResult, err error) + func (s *ListDustLogService) EndTime(endTime int64) *ListDustLogService + func (s *ListDustLogService) StartTime(startTime int64) *ListDustLogService + type ListDustResponse struct + Details []ListDustDetail + DribbletPercentage string + TotalTransferBNB string + TotalTransferBtc string + type ListDustService struct + func (s *ListDustService) Do(ctx context.Context) (res *ListDustResponse, err error) + type ListFuturesTransferService struct + 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 ListMarginLoansService struct + 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 struct + func (s *ListMarginOpenOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*Order, err error) + func (s *ListMarginOpenOrdersService) IsIsolated(isIsolated bool) *ListMarginOpenOrdersService + func (s *ListMarginOpenOrdersService) Symbol(symbol string) *ListMarginOpenOrdersService + type ListMarginOrdersService struct + 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 struct + 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 ListMarginTradesService struct + 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 ListOpenOcoService struct + func (s *ListOpenOcoService) Do(ctx context.Context, opts ...RequestOption) (res []*Oco, err error) + type ListOpenOrdersService struct + func (s *ListOpenOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*Order, err error) + func (s *ListOpenOrdersService) Symbol(symbol string) *ListOpenOrdersService + type ListOrdersService struct + 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 struct + 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 struct + func (s *ListPricesService) Do(ctx context.Context, opts ...RequestOption) (res []*SymbolPrice, err error) + func (s *ListPricesService) Symbol(symbol string) *ListPricesService + func (s *ListPricesService) Symbols(symbols []string) *ListPricesService + type ListSavingsFixedAndActivityProductsService struct + 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 struct + 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 struct + 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 struct + 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 ListWithdrawsService struct + func (s *ListWithdrawsService) Coin(coin string) *ListWithdrawsService + func (s *ListWithdrawsService) Do(ctx context.Context) (res []*Withdraw, err error) + func (s *ListWithdrawsService) EndTime(endTime int64) *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 LotSizeFilter struct + MaxQuantity string + MinQuantity string + StepSize string + type ManagedSubAccountAsset struct + AvailableBalance string + BtcValue string + Coin string + InOrder string + Name string + TotalBalance string + type ManagedSubAccountAssetsService struct + func (s *ManagedSubAccountAssetsService) Do(ctx context.Context, opts ...RequestOption) ([]*ManagedSubAccountAsset, error) + func (s *ManagedSubAccountAssetsService) Email(email string) *ManagedSubAccountAssetsService + type ManagedSubAccountDepositResponse struct + ID int64 + type ManagedSubAccountDepositService struct + func (s *ManagedSubAccountDepositService) Amount(amount float64) *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 ManagedSubAccountWithdrawalResponse struct + ID int64 + type ManagedSubAccountWithdrawalService struct + func (s *ManagedSubAccountWithdrawalService) Amount(amount float64) *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 MarginAccount struct + BorrowEnabled bool + MarginLevel string + TotalAssetOfBTC string + TotalLiabilityOfBTC string + TotalNetAssetOfBTC string + TradeEnabled bool + TransferEnabled bool + UserAssets []UserAsset + type MarginAllPair struct + Base string + ID int64 + IsBuyAllowed bool + IsMarginTrade bool + IsSellAllowed bool + Quote string + Symbol string + type MarginAsset struct + Borrowable bool + FullName string + Mortgageable bool + Name string + UserMinBorrow string + UserMinRepay string + type MarginLoan struct + Asset string + Principal string + Status MarginLoanStatusType + Timestamp int64 + type MarginLoanResponse struct + Rows []MarginLoan + Total int64 + type MarginLoanService struct + 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 string + type MarginOCOOrder struct + ClientOrderID string + OrderID int64 + Symbol string + type MarginOCOOrderReport struct + ClientOrderID string + CummulativeQuoteQuantity string + ExecutedQuantity string + OrderID int64 + OrderListID int64 + OrigQuantity string + Price string + Side SideType + Status OrderStatusType + StopPrice string + Symbol string + TimeInForce TimeInForceType + TransactionTime int64 + Type OrderType + type MarginPair struct + Base string + ID int64 + IsBuyAllowed bool + IsMarginTrade bool + IsSellAllowed bool + Quote string + Symbol string + type MarginPriceIndex struct + CalcTime int64 + Price string + Symbol string + type MarginRepay struct + Amount string + Asset string + Interest string + Principal string + Status MarginRepayStatusType + Timestamp int64 + TxID int64 + type MarginRepayResponse struct + Rows []MarginRepay + Total int64 + type MarginRepayService struct + 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 string + type MarginTransferService struct + 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 int + type MarketLotSizeFilter struct + MaxQuantity string + MinQuantity string + StepSize string + type MaxBorrowable struct + Amount string + type MaxNumAlgoOrdersFilter struct + MaxNumAlgoOrders int + type MaxNumOrdersFilter struct + MaxNumOrders int + type MaxTransferable struct + Amount string + type Network struct + AddressRegex string + Coin string + DepositDesc string + DepositEnable bool + IsDefault bool + MemoRegex string + MinConfirm int + Name string + Network string + ResetAddressStatus bool + SameAddress bool + SpecialTips string + UnLockConfirm int + WithdrawDesc string + WithdrawEnable bool + WithdrawFee string + WithdrawIntegerMultiple string + WithdrawMax string + WithdrawMin string + type NewOrderRespType string + type NotionalFilter struct + ApplyMaxToMarket bool + ApplyMinToMarket bool + AvgPriceMins int + MaxNotional string + MinNotional string + type OCOOrder struct + ClientOrderID string + OrderID int64 + Symbol string + type OCOOrderReport struct + ClientOrderID string + CummulativeQuoteQuantity string + ExecutedQuantity string + IcebergQuantity string + OrderID int64 + OrderListID int64 + OrigClientOrderID string + OrigQuantity string + Price string + Side SideType + Status OrderStatusType + StopPrice string + Symbol string + TimeInForce TimeInForceType + TransactionTime int64 + Type OrderType + type Oco struct + ContingencyType string + ListClientOrderID string + ListOrderStatus string + ListStatusType string + OrderListId int64 + Orders []*Order + Symbol string + TransactionTime int64 + type Order struct + ClientOrderID string + CummulativeQuoteQuantity string + ExecutedQuantity string + IcebergQuantity string + IsIsolated bool + IsWorking bool + OrderID int64 + OrderListId int64 + OrigQuantity string + OrigQuoteOrderQuantity string + Price string + Side SideType + Status OrderStatusType + StopPrice string + Symbol string + Time int64 + TimeInForce TimeInForceType + Type OrderType + UpdateTime int64 + type OrderStatusType string + type OrderType string + type PayTradeHistory struct + Code string + Data []PayTradeItem + Message string + Success bool + type PayTradeHistoryService struct + 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 struct + Amount string + Currency string + FundsDetail []FundsDetail + OrderType string + PayerInfo *PayerInfo + ReceiverInfo *ReceiverInfo + TransactionID string + TransactionTime int64 + type PayerInfo struct + AccountId int + BinanceId int + CountryCode int + Email string + MobileCode string + Name string + PhoneNumber string + Type string + UnmaskData bool + type PercentPriceBySideFilter struct + AskMultiplierDown string + AskMultiplierUp string + AveragePriceMins int + BidMultiplierDown string + BidMultiplierUp string + type PingService struct + func (s *PingService) Do(ctx context.Context, opts ...RequestOption) (err error) + type PoolShareInformation struct + Assets map[string]string + ShareAmount string + SharePercentage string + type PriceChangeStats struct + AskPrice string + AskQty string + BidPrice string + BidQty string + CloseTime int64 + Count int64 + FirstID int64 + HighPrice string + LastID int64 + LastPrice string + LastQty string + LowPrice string + OpenPrice string + OpenTime int64 + PrevClosePrice string + PriceChange string + PriceChangePercent string + QuoteVolume string + Symbol string + Volume string + WeightedAvgPrice string + type PriceFilter struct + MaxPrice string + MinPrice string + TickSize string + type PurchaseSavingsFlexibleProductResponse struct + PurchaseId uint64 + type PurchaseSavingsFlexibleProductService struct + 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 struct + 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 RateLimit struct + Interval string + IntervalNum int64 + Limit int64 + RateLimitType string + type RateLimitFull struct + Count int + Interval RateLimitInterval + IntervalNum int + Limit int + RateLimitType RateLimitType + type RateLimitInterval string + type RateLimitService struct + func (s *RateLimitService) Do(ctx context.Context, opts ...RequestOption) (res []*RateLimitFull, err error) + type RateLimitType string + type ReceiverInfo struct + AccountId int + BinanceId int + CountryCode int + Email string + Extend struct{ ... } + MobileCode string + Name string + PhoneNumber string + Type string + UnmaskData bool + type RecentTradesService struct + func (s *RecentTradesService) Do(ctx context.Context, opts ...RequestOption) (res []*Trade, err error) + func (s *RecentTradesService) Limit(limit int) *RecentTradesService + func (s *RecentTradesService) Symbol(symbol string) *RecentTradesService + type RedeemSavingsFlexibleProductService struct + 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 RemoveLiquidityResponse struct + OperationId int64 + type RemoveLiquidityService struct + 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 func(*request) + func WithHeader(key, value string, replace bool) RequestOption + func WithHeaders(header http.Header) RequestOption + func WithRecvWindow(recvWindow int64) RequestOption + type RewardClaimStatus int + type SavingFixedProjectPosition struct + Asset string + CanTransfer bool + CreateTimestamp int64 + Duration int64 + EndTime int64 + Interest string + InterestRate string + Lot int32 + PositionId int64 + Principal string + ProjectId string + ProjectName string + ProjectType string + PurchaseTime int64 + RedeemDate string + StartTime int64 + Status string + type SavingFixedProjectPositionsService struct + 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 struct + AnnualInterestRate string + Asset string + AvgAnnualInterestRate string + CanRedeem bool + DailyInterestRate string + FreeAmount string + FreezeAmount string + LockedAmount string + ProductId string + ProductName string + RedeemingAmount string + TotalAmount string + TotalInterest string + TotalPurchasedAmount string + type SavingFlexibleProductPositionsService struct + func (s *SavingFlexibleProductPositionsService) Asset(asset string) *SavingFlexibleProductPositionsService + func (s *SavingFlexibleProductPositionsService) Do(ctx context.Context, opts ...RequestOption) ([]*SavingFlexibleProductPosition, error) + type SavingsFixedProduct struct + Asset string + DisplayPriority int + Duration int + InterestPerLot string + InterestRate string + LotSize string + LotsLowLimit int + LotsPurchased int + LotsUpLimit int + MaxLotsPerUser int + NeedKyc bool + ProjectId string + ProjectName string + Status string + Type string + WithAreaLimitation bool + type SavingsFlexibleProduct struct + Asset string + AvgAnnualInterestRate string + CanPurchase bool + CanRedeem bool + DailyInterestPerThousand string + Featured bool + MinPurchaseAmount string + ProductId string + PurchasedAmount string + Status string + UpLimit string + UpLimitPerUser string + type ServerTimeService struct + func (s *ServerTimeService) Do(ctx context.Context, opts ...RequestOption) (serverTime int64, err error) + type SetServerTimeService struct + func (s *SetServerTimeService) Do(ctx context.Context, opts ...RequestOption) (timeOffset int64, err error) + type SideEffectType string + type SideType string + type Snapshot struct + Code int + Msg string + Snapshot []*SnapshotVos + type SnapshotAssets struct + Asset string + MarginBalance string + WalletBalance string + type SnapshotBalances struct + Asset string + Free string + Locked string + type SnapshotData struct + Assets []*SnapshotAssets + Balances []*SnapshotBalances + MarginLevel string + Positions []*SnapshotPositions + TotalAssetOfBtc string + TotalLiabilityOfBtc string + TotalNetAssetOfBtc string + UserAssets []*SnapshotUserAssets + type SnapshotPositions struct + EntryPrice string + MarkPrice string + PositionAmt string + Symbol string + UnRealizedProfit string + type SnapshotUserAssets struct + Asset string + Borrowed string + Free string + Interest string + Locked string + NetAsset string + type SnapshotVos struct + Data *SnapshotData + Type string + UpdateTime int64 + type SpotRebateHistory struct + Code string + Data SpotRebateHistoryData + Status string + Type string + type SpotRebateHistoryData struct + Data []SpotRebateHistoryDataItem + Page int32 + TotalPageNum int32 + TotalRecords int32 + type SpotRebateHistoryDataItem struct + Amount string + Asset string + Type int32 + UpdateTime int64 + type SpotRebateHistoryService struct + 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 struct + Email string + TotalAsset string + type StakingHistory []StakingHistoryTransaction + type StakingHistoryService struct + 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 struct + Amount string + Asset string + DeliverDate int64 + LockPeriod int64 + PositionId int64 + Project string + Status string + Time int64 + Type string + type StakingProduct string + type StakingProductPosition struct + APY string + AccrualDays int64 + Amount string + Asset string + CanRedeemEarly bool + DeliverDate int64 + Duration int64 + EstimatedExtraRewardAmount string + ExtraRewardAPY string + ExtraRewardAsset string + InterestEndDate int64 + NextInterestPay string + NextInterestPayDate int64 + PartialAmountDeliverDate int64 + PayInterestPeriod int64 + PositionId int64 + ProductId string + PurchaseTime int64 + RedeemAmountEarly string + RedeemPeriod int64 + RedeemingAmount string + Renewable bool + RewardAmount string + RewardAsset string + Status string + Type string + type StakingProductPositionService struct + 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 []StakingProductPosition + type StakingTransactionType string + type StartIsolatedMarginUserStreamService struct + func (s *StartIsolatedMarginUserStreamService) Do(ctx context.Context, opts ...RequestOption) (listenKey string, err error) + func (s *StartIsolatedMarginUserStreamService) Symbol(symbol string) *StartIsolatedMarginUserStreamService + type StartMarginUserStreamService struct + func (s *StartMarginUserStreamService) Do(ctx context.Context, opts ...RequestOption) (listenKey string, err error) + type StartUserStreamService struct + func (s *StartUserStreamService) Do(ctx context.Context, opts ...RequestOption) (listenKey string, err error) + type SubAccount struct + CreateTime uint64 + Email string + IsAssetManagementSubAccount bool + IsFreeze bool + IsManagedSubAccount bool + type SubAccountFuturesAccount struct + Asset string + Assets []SubAccountFuturesAccountAsset + CanDeposit bool + CanTrade bool + CanWithdraw bool + Email string + FeeTier int + MaxWithdrawAmount string + TotalInitialMargin string + TotalMaintenanceMargin string + TotalMarginBalance string + TotalOpenOrderInitialMargin string + TotalPositionInitialMargin string + TotalUnrealizedProfit string + TotalWalletBalance string + UpdateTime int64 + type SubAccountFuturesAccountAsset struct + Asset string + InitialMargin string + MaintenanceMargin string + MarginBalance string + MaxWithdrawAmount string + OpenOrderInitialMargin string + PositionInitialMargin string + UnrealizedProfit string + WalletBalance string + type SubAccountFuturesAccountService struct + func (s *SubAccountFuturesAccountService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesAccount, err error) + func (s *SubAccountFuturesAccountService) Email(v string) *SubAccountFuturesAccountService + type SubAccountFuturesSummaryCommon struct + Asset string + TotalInitialMargin string + TotalMaintenanceMargin string + TotalMarginBalance string + TotalOpenOrderInitialMargin string + TotalPositionInitialMargin string + TotalUnrealizedProfit string + TotalWalletBalance string + type SubAccountFuturesSummaryV1 struct + SubAccountList []SubAccountFuturesSummaryV1SubAccountList + type SubAccountFuturesSummaryV1Service struct + func (s *SubAccountFuturesSummaryV1Service) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesSummaryV1, err error) + type SubAccountFuturesSummaryV1SubAccountList struct + Email string + type SubAccountList struct + SubAccounts []SubAccount + type SubAccountListService struct + 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 SubaccountAssetsResponse struct + Balances []AssetBalance + type SubaccountAssetsService struct + func (s *SubaccountAssetsService) Do(ctx context.Context, opts ...RequestOption) (res *SubaccountAssetsResponse, err error) + func (s *SubaccountAssetsService) Email(email string) *SubaccountAssetsService + type SubaccountDepositAddressResponse struct + Address string + Coin string + Tag string + URL string + type SubaccountDepositAddressService struct + 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 struct + MasterAccountTotalAsset string + SpotSubUserAssetBtcVoList []SpotSubUserAssetBtcVoList + TotalCount int64 + type SubaccountSpotSummaryService struct + 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 struct + BaseAsset string + BaseQty string + Fee string + Price string + QuoteAsset string + QuoteQty string + Status SwappingStatus + SwapId int64 + SwapTime int64 + type SwapResponse struct + SwapId int64 + type SwapService struct + func (s *SwapService) BaseAsset(baseAsset string) *SwapService + func (s *SwapService) Do(ctx context.Context) (*SwapResponse, error) + func (s *SwapService) QuoteAsset(quoteAsset string) *SwapService + func (s *SwapService) QuoteQty(quoteQty float64) *SwapService + type SwappingStatus int + type Symbol struct + BaseAsset string + BaseAssetPrecision int + BaseCommissionPrecision int32 + Filters []map[string]interface{} + IcebergAllowed bool + IsMarginTradingAllowed bool + IsSpotTradingAllowed bool + OcoAllowed bool + OrderTypes []string + Permissions []string + QuoteAsset string + QuoteAssetPrecision int + QuoteCommissionPrecision int32 + QuoteOrderQtyMarketAllowed bool + QuotePrecision int + Status string + Symbol string + 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 string + type SymbolPrice struct + Price string + Symbol string + type SymbolStatusType string + type SymbolTicker struct + CloseTime int64 + Count int64 + FirstId int64 + HighPrice string + LastId int64 + LastPrice string + LowPrice string + OpenPrice string + OpenTime int64 + PriceChange string + PriceChangePercent string + QuoteVolume string + Symbol string + Volume string + WeightedAvgPrice string + type SymbolType string + type TimeInForceType string + type ToggleBNBBurnService struct + func (s *ToggleBNBBurnService) Do(ctx context.Context, opts ...RequestOption) (*BNBBurn, error) + func (s *ToggleBNBBurnService) InterestBNBBurn(v bool) *ToggleBNBBurnService + func (s *ToggleBNBBurnService) SpotBNBBurn(v bool) *ToggleBNBBurnService + type Trade struct + ID int64 + IsBestMatch bool + IsBuyerMaker bool + IsIsolated bool + Price string + Quantity string + QuoteQuantity string + Time int64 + type TradeFeeDetails struct + MakerCommission string + Symbol string + TakerCommission string + type TradeFeeService struct + func (s *TradeFeeService) Do(ctx context.Context) (res []*TradeFeeDetails, err error) + func (s *TradeFeeService) Symbol(symbol string) *TradeFeeService + type TradeV3 struct + Commission string + CommissionAsset string + ID int64 + IsBestMatch bool + IsBuyer bool + IsIsolated bool + IsMaker bool + OrderID int64 + OrderListId int64 + Price string + Quantity string + QuoteQuantity string + Symbol string + Time int64 + type TrailingDeltaFilter struct + MaxTrailingAboveDelta int + MaxTrailingBelowDelta int + MinTrailingAboveDelta int + MinTrailingBelowDelta int + type TransactionResponse struct + TranID int64 + type TransactionType string + type TransferToSubAccountResponse struct + TxnID int64 + type TransferToSubAccountService struct + 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 UserAsset struct + Asset string + Borrowed string + Free string + Interest string + Locked string + NetAsset string + type UserAssetDribblet struct + OperateTime int64 + TotalServiceChargeAmount string + TotalTransferedAmount string + TransID int64 + UserAssetDribbletDetails []UserAssetDribbletDetail + type UserAssetDribbletDetail struct + Amount string + FromAsset string + OperateTime int64 + ServiceChargeAmount string + TransID int + TransferedAmount string + type UserAssetRecord struct + Asset string + BtcValuation string + Free string + Freeze string + Ipoable string + Locked string + Withdrawing string + type UserDataEventType string + type Withdraw struct + Address string + Amount string + ApplyTime string + Coin string + ConfirmNo int32 + ID string + Info string + Network string + Status int + TransactionFee string + TransferType int + TxID string + WithdrawOrderID string + type WsAccountUpdate struct + Asset string + Free string + Locked string + type WsAccountUpdateList struct + WsAccountUpdates []WsAccountUpdate + type WsAggTradeEvent struct + AggTradeID int64 + Event string + FirstBreakdownTradeID int64 + IsBuyerMaker bool + LastBreakdownTradeID int64 + Placeholder bool + Price string + Quantity string + Symbol string + Time int64 + TradeTime int64 + type WsAggTradeHandler func(event *WsAggTradeEvent) + type WsAllMarketsStatEvent []*WsMarketStatEvent + type WsAllMarketsStatHandler func(event WsAllMarketsStatEvent) + type WsAllMiniMarketsStatEvent []*WsMiniMarketsStatEvent + type WsAllMiniMarketsStatServeHandler func(event WsAllMiniMarketsStatEvent) + type WsBalanceUpdate struct + Asset string + Change string + type WsBookTickerEvent struct + BestAskPrice string + BestAskQty string + BestBidPrice string + BestBidQty string + Symbol string + UpdateID int64 + type WsBookTickerHandler func(event *WsBookTickerEvent) + type WsCombinedBookTickerEvent struct + Data *WsBookTickerEvent + Stream string + type WsCombinedTradeEvent struct + Data WsTradeEvent + Stream string + type WsCombinedTradeHandler func(event *WsCombinedTradeEvent) + type WsConfig struct + Endpoint string + type WsDepthEvent struct + Asks []Ask + Bids []Bid + Event string + FirstUpdateID int64 + LastUpdateID int64 + Symbol string + Time int64 + type WsDepthHandler func(event *WsDepthEvent) + type WsHandler func(message []byte) + type WsKline struct + ActiveBuyQuoteVolume string + ActiveBuyVolume string + Close string + EndTime int64 + FirstTradeID int64 + High string + Interval string + IsFinal bool + LastTradeID int64 + Low string + Open string + QuoteVolume string + StartTime int64 + Symbol string + TradeNum int64 + Volume string + type WsKlineEvent struct + Event string + Kline WsKline + Symbol string + Time int64 + type WsKlineHandler func(event *WsKlineEvent) + type WsMarketStatEvent struct + AskPrice string + AskQty string + BaseVolume string + BidPrice string + BidQty string + CloseQty string + CloseTime int64 + Count int64 + Event string + FirstID int64 + HighPrice string + LastID int64 + LastPrice string + LowPrice string + OpenPrice string + OpenTime int64 + PrevClosePrice string + PriceChange string + PriceChangePercent string + QuoteVolume string + Symbol string + Time int64 + WeightedAvgPrice string + type WsMarketStatHandler func(event *WsMarketStatEvent) + type WsMiniMarketsStatEvent struct + BaseVolume string + Event string + HighPrice string + LastPrice string + LowPrice string + OpenPrice string + QuoteVolume string + Symbol string + Time int64 + type WsOCOOrder struct + ClientOrderId string + OrderId int64 + Symbol string + type WsOCOOrderList struct + WsOCOOrders []WsOCOOrder + type WsOCOUpdate struct + ClientOrderId string + ContingencyType string + ListOrderStatus string + ListStatusType string + OrderListId int64 + Orders WsOCOOrderList + RejectReason string + Symbol string + type WsOrderUpdate struct + ClientOrderId string + CreateTime int64 + ExecutionType string + FeeAsset string + FeeCost string + FilledQuoteVolume string + FilledVolume string + IceBergVolume string + Id int64 + IsInOrderBook bool + IsMaker bool + LatestPrice string + LatestQuoteVolume string + LatestVolume string + OrderListId int64 + OrigCustomOrderId string + Price string + QuoteVolume string + RejectReason string + SelfTradePreventionMode string + Side string + Status string + StopPrice string + StrategyId int64 + StrategyType int64 + Symbol string + TimeInForce TimeInForceType + TradeId int64 + TrailingDelta int64 + TrailingTime int64 + TransactionTime int64 + Type string + Volume string + WorkingTime int64 + type WsPartialDepthEvent struct + Asks []Ask + Bids []Bid + LastUpdateID int64 + Symbol string + type WsPartialDepthHandler func(event *WsPartialDepthEvent) + type WsTradeEvent struct + BuyerOrderID int64 + Event string + IsBuyerMaker bool + Placeholder bool + Price string + Quantity string + SellerOrderID int64 + Symbol string + Time int64 + TradeID int64 + TradeTime int64 + type WsTradeHandler func(event *WsTradeEvent) + type WsUserDataEvent struct + AccountUpdate WsAccountUpdateList + AccountUpdateTime int64 + BalanceUpdate WsBalanceUpdate + Event UserDataEventType + OCOUpdate WsOCOUpdate + OrderUpdate WsOrderUpdate + Time int64 + TransactionTime int64 + type WsUserDataHandler func(event *WsUserDataEvent)