Versions in this module Expand all Collapse all v2 v2.3.9 Mar 20, 2022 Changes in this version type Client + func (c *Client) NewLiquidSwapProductsService() *LiquidSwapProductsService + func (c *Client) NewListLiquidSwapProductsService() *ListLiquidSwapProductsService + type LiquidSwapProducts struct + Liquidity map[string]string + PoolId int + PoolName string + Share LiquidityShare + UpdateTime int64 + type LiquidSwapProductsService struct + func (s *LiquidSwapProductsService) Current(current int64) *LiquidSwapProductsService + func (s *LiquidSwapProductsService) Do(ctx context.Context, opts ...RequestOption) ([]*LiquidSwapProducts, error) + func (s *LiquidSwapProductsService) IsSortAsc(isSortAsc bool) *LiquidSwapProductsService + func (s *LiquidSwapProductsService) PoolId(poolId string) *LiquidSwapProductsService + func (s *LiquidSwapProductsService) Size(size int64) *LiquidSwapProductsService + func (s *LiquidSwapProductsService) SortBy(sortBy string) *LiquidSwapProductsService + func (s *LiquidSwapProductsService) Status(status string) *LiquidSwapProductsService + func (s *LiquidSwapProductsService) Type(projectType string) *LiquidSwapProductsService + type LiquidityShare struct + Asset map[string]string + ShareAmount string + SharePercentage string + type ListLiquidSwapProducts struct + Operation string + OperationId int + PoolId int + PoolName string + ShareAmount string + Status int + UpdateTime int64 + type ListLiquidSwapProductsService struct + func (s *ListLiquidSwapProductsService) Asset(asset string) *ListLiquidSwapProductsService + func (s *ListLiquidSwapProductsService) Current(current int64) *ListLiquidSwapProductsService + func (s *ListLiquidSwapProductsService) Do(ctx context.Context, opts ...RequestOption) ([]*ListLiquidSwapProducts, error) + func (s *ListLiquidSwapProductsService) IsSortAsc(isSortAsc bool) *ListLiquidSwapProductsService + func (s *ListLiquidSwapProductsService) Size(size int64) *ListLiquidSwapProductsService + func (s *ListLiquidSwapProductsService) SortBy(sortBy string) *ListLiquidSwapProductsService + func (s *ListLiquidSwapProductsService) Status(status string) *ListLiquidSwapProductsService + func (s *ListLiquidSwapProductsService) Type(projectType string) *ListLiquidSwapProductsService v2.3.8 Mar 20, 2022 v2.3.7 Mar 20, 2022 Changes in this version + const FuturesTransferStatusTypeConfirmed + const FuturesTransferStatusTypeFailed + const FuturesTransferStatusTypePending + const FuturesTransferTypeToFutures + const FuturesTransferTypeToMain + const LendingTypeActivity + const LendingTypeFixed + const LendingTypeFlexible + const MarginLoanStatusTypeConfirmed + const MarginLoanStatusTypeFailed + const MarginLoanStatusTypePending + const MarginRepayStatusTypeConfirmed + const MarginRepayStatusTypeFailed + const MarginRepayStatusTypePending + const MarginTransferTypeToMain + const MarginTransferTypeToMargin + const NewOrderRespTypeACK + const NewOrderRespTypeFULL + const NewOrderRespTypeRESULT + 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 SideEffectTypeAutoRepay + const SideEffectTypeMarginBuy + const SideEffectTypeNoSideEffect + const SideTypeBuy + const SideTypeSell + const SymbolFilterTypeIcebergParts + const SymbolFilterTypeLotSize + const SymbolFilterTypeMarketLotSize + const SymbolFilterTypeMaxNumAlgoOrders + const SymbolFilterTypeMinNotional + const SymbolFilterTypePercentPrice + const SymbolFilterTypePriceFilter + 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 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 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 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 + MakerCommission int64 + Permissions []string + SellerCommission int64 + TakerCommission int64 + UpdateTime uint64 + 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 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 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 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 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 (c *Client) NewAggTradesService() *AggTradesService + func (c *Client) NewAssetDividendService() *AssetDividendService + func (c *Client) NewAveragePriceService() *AveragePriceService + 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) 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) NewGetAllMarginAssetsService() *GetAllMarginAssetsService + func (c *Client) NewGetAssetDetailService() *GetAssetDetailService + func (c *Client) NewGetDepositAddressService() *GetDepositsAddressService + func (c *Client) NewGetIsolatedMarginAccountService() *GetIsolatedMarginAccountService + func (c *Client) NewGetIsolatedMarginAllPairsService() *GetIsolatedMarginAllPairsService + 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) NewHistoricalTradesService() *HistoricalTradesService + func (c *Client) NewInterestHistoryService() *InterestHistoryService + 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) NewListCustomizedAndFixedProductsService() *ListCustomizedAndFixedProductsService + func (c *Client) NewListDepositsService() *ListDepositsService + func (c *Client) NewListDustLogService() *ListDustLogService + 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) NewListTradesService() *ListTradesService + func (c *Client) NewListWithdrawsService() *ListWithdrawsService + func (c *Client) NewMarginLoanService() *MarginLoanService + func (c *Client) NewMarginRepayService() *MarginRepayService + func (c *Client) NewMarginTransferService() *MarginTransferService + func (c *Client) NewPingService() *PingService + func (c *Client) NewPurchaseSavingsFlexibleProductService() *PurchaseSavingsFlexibleProductService + func (c *Client) NewRecentTradesService() *RecentTradesService + func (c *Client) NewRedeemSavingsFlexibleProductService() *RedeemSavingsFlexibleProductService + func (c *Client) NewServerTimeService() *ServerTimeService + func (c *Client) NewSetServerTimeService() *SetServerTimeService + func (c *Client) NewSpotRebateHistoryService() *SpotRebateHistoryService + func (c *Client) NewStartIsolatedMarginUserStreamService() *StartIsolatedMarginUserStreamService + func (c *Client) NewStartMarginUserStreamService() *StartMarginUserStreamService + func (c *Client) NewStartUserStreamService() *StartUserStreamService + func (c *Client) NewTransferToSubAccountService() *TransferToSubAccountService + func (c *Client) NewUserUniversalTransferService() *CreateUserUniversalTransferService + 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 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) 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 CustomizedAndFixedProductsService struct + Asset string + CanTransfer bool + CreateTimestamp int64 + Duration int + EndTime int64 + Interest string + InterestRate string + Lot int + PositionId int + Principal string + ProjectId string + ProjectName string + PurchaseTime int64 + RedeemDate string + StartTime int64 + Status string + Type string + type Deposit struct + Address string + AddressTag string + Amount string + Coin string + ConfirmTimes string + InsertTime int64 + Network string + Status int + TransferType int64 + TxID string + UnlockConfirm string + 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) 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 + 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 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 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 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 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 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 + IndexPrice string + IsolatedCreated bool + LiquidatePrice string + LiquidateRate string + MarginLevel string + MarginLevelStatus string + MarginRatio string + QuoteAsset IsolatedUserAsset + Symbol string + TradeEnabled bool + 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 ListBookTickersService struct + func (s *ListBookTickersService) Do(ctx context.Context, opts ...RequestOption) (res []*BookTicker, err error) + func (s *ListBookTickersService) Symbol(symbol string) *ListBookTickersService + type ListCustomizedAndFixedProductsService struct + func (s *ListCustomizedAndFixedProductsService) Asset(asset string) *ListCustomizedAndFixedProductsService + func (s *ListCustomizedAndFixedProductsService) Current(current int64) *ListCustomizedAndFixedProductsService + func (s *ListCustomizedAndFixedProductsService) Do(ctx context.Context, opts ...RequestOption) ([]*CustomizedAndFixedProductsService, error) + func (s *ListCustomizedAndFixedProductsService) IsSortAsc(isSortAsc bool) *ListCustomizedAndFixedProductsService + func (s *ListCustomizedAndFixedProductsService) Size(size int64) *ListCustomizedAndFixedProductsService + func (s *ListCustomizedAndFixedProductsService) SortBy(sortBy string) *ListCustomizedAndFixedProductsService + func (s *ListCustomizedAndFixedProductsService) Status(status string) *ListCustomizedAndFixedProductsService + func (s *ListCustomizedAndFixedProductsService) Type(projectType string) *ListCustomizedAndFixedProductsService + 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 + 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 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 + type ListPricesService struct + func (s *ListPricesService) Do(ctx context.Context, opts ...RequestOption) (res []*SymbolPrice, err error) + func (s *ListPricesService) Symbol(symbol 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 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 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) IsolatedSymbol(isolatedSymbol 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) IsolatedSymbol(isolatedSymbol 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 MaxTransferable struct + Amount string + type MinNotionalFilter struct + ApplyToMarket bool + AveragePriceMins int + MinNotional 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 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 PercentPriceFilter struct + AveragePriceMins int + MultiplierDown string + MultiplierUp string + type PingService struct + func (s *PingService) Do(ctx context.Context, opts ...RequestOption) (err error) + type PriceChangeStats struct + AskPrice string + BidPrice string + CloseTime int64 + Count int64 + FristID 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 RateLimit struct + Interval string + IntervalNum int64 + Limit int64 + RateLimitType string + 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 RequestOption func(*request) + func WithHeader(key, value string, replace bool) RequestOption + func WithHeaders(header http.Header) RequestOption + func WithRecvWindow(recvWindow int64) RequestOption + 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 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 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) MinNotionalFilter() *MinNotionalFilter + func (s *Symbol) PercentPriceFilter() *PercentPriceFilter + func (s *Symbol) PriceFilter() *PriceFilter + type SymbolFilterType string + type SymbolPrice struct + Price string + Symbol string + type SymbolStatusType string + type SymbolType string + type TimeInForceType string + type Trade struct + ID int64 + IsBestMatch bool + IsBuyerMaker bool + IsIsolated bool + Price string + Quantity string + Time int64 + 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 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 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 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 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 WsOCOUpdate struct + ClientOrderId string + ContingencyType string + ListOrderStatus string + ListStatusType string + OrderListId int64 + Orders []WsOCOOrder + 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 + Side string + Status string + StopPrice string + Symbol string + TimeInForce TimeInForceType + TradeId int64 + TransactionTime int64 + Type string + Volume string + 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 []WsAccountUpdate + AccountUpdateTime int64 + BalanceUpdate WsBalanceUpdate + Event UserDataEventType + OCOUpdate WsOCOUpdate + OrderUpdate WsOrderUpdate + Time int64 + TransactionTime int64 + type WsUserDataHandler func(event *WsUserDataEvent)