Documentation ¶
Index ¶
- Constants
- Variables
- func FormatTimestamp(t time.Time) int64
- func PrettyPrint(i interface{}) string
- type APIKeyPermissionResponse
- type APIKeyPermissionService
- type AccountApiTradingStatusResponse
- type AccountApiTradingStatusService
- type AccountInformation
- type AccountInformationResponse
- type AccountInformationService
- type AccountOCOHistoryResponse
- type AccountOCOHistoryService
- func (s *AccountOCOHistoryService) Do(ctx context.Context) (*AccountOCOHistoryResponse, error)
- func (s *AccountOCOHistoryService) EndTime(endTime uint64) *AccountOCOHistoryService
- func (s *AccountOCOHistoryService) FromID(fromID int64) *AccountOCOHistoryService
- func (s *AccountOCOHistoryService) Limit(limit int) *AccountOCOHistoryService
- func (s *AccountOCOHistoryService) RecvWindow(recvWindow int64) *AccountOCOHistoryService
- func (s *AccountOCOHistoryService) StartTime(startTime uint64) *AccountOCOHistoryService
- type AccountOrderBookResponse
- type AccountOrderHistoryResponse
- type AccountOrderHistoryService
- func (s *AccountOrderHistoryService) Do(ctx context.Context) (*AccountOrderHistoryResponse, error)
- func (s *AccountOrderHistoryService) EndTime(endTime uint64) *AccountOrderHistoryService
- func (s *AccountOrderHistoryService) Limit(limit int) *AccountOrderHistoryService
- func (s *AccountOrderHistoryService) OrderId(orderId string) *AccountOrderHistoryService
- func (s *AccountOrderHistoryService) RecvWindow(recvWindow int64) *AccountOrderHistoryService
- func (s *AccountOrderHistoryService) StartTime(startTime uint64) *AccountOrderHistoryService
- func (s *AccountOrderHistoryService) Symbol(symbol string) *AccountOrderHistoryService
- type AccountOrderRateLimit
- type AccountOrderRateLimitsResponse
- type AccountOrderRateLimitsService
- type AccountPreventedMatchesResponse
- type AccountPreventedMatchesService
- type AccountResponse
- type AccountSnapshotResponse
- type AccountStatusResponse
- type AccountStatusService
- type AccountTradeHistoryResponse
- type AccountTradeHistoryService
- func (s *AccountTradeHistoryService) Do(ctx context.Context) (*AccountTradeHistoryResponse, error)
- func (s *AccountTradeHistoryService) EndTime(endTime int64) *AccountTradeHistoryService
- func (s *AccountTradeHistoryService) FromID(fromID int64) *AccountTradeHistoryService
- func (s *AccountTradeHistoryService) Limit(limit int) *AccountTradeHistoryService
- func (s *AccountTradeHistoryService) RecvWindow(recvWindow int64) *AccountTradeHistoryService
- func (s *AccountTradeHistoryService) StartTime(startTime int64) *AccountTradeHistoryService
- func (s *AccountTradeHistoryService) Symbol(symbol string) *AccountTradeHistoryService
- type AccountTradeListResponse
- type AggTradesList
- func (s *AggTradesList) Do(ctx context.Context, opts ...RequestOption) (res []*AggTradesListResponse, err error)
- func (s *AggTradesList) EndTime(endTime uint64) *AggTradesList
- func (s *AggTradesList) FromId(fromId int) *AggTradesList
- func (s *AggTradesList) Limit(limit int) *AggTradesList
- func (s *AggTradesList) StartTime(startTime uint64) *AggTradesList
- func (s *AggTradesList) Symbol(symbol string) *AggTradesList
- type AggTradesListResponse
- type AggregateTradeData
- type AggregateTradesResponse
- type AggregateTradesService
- func (s *AggregateTradesService) Do(ctx context.Context) (*AggregateTradesResponse, error)
- func (s *AggregateTradesService) EndTime(endTime uint64) *AggregateTradesService
- func (s *AggregateTradesService) FromId(fromId int64) *AggregateTradesService
- func (s *AggregateTradesService) Limit(limit int) *AggregateTradesService
- func (s *AggregateTradesService) StartTime(startTime uint64) *AggregateTradesService
- func (s *AggregateTradesService) Symbol(symbol string) *AggregateTradesService
- type AllIsolatedMarginSymbolService
- type Ask
- type AssetDetailResponse
- type AssetDetailService
- type AssetDetailV2Response
- type AssetDetailV2Service
- type AssetDividendRecordResponse
- type AssetDividendRecordService
- func (s *AssetDividendRecordService) Asset(asset string) *AssetDividendRecordService
- func (s *AssetDividendRecordService) Do(ctx context.Context) (res *AssetDividendRecordResponse, err error)
- func (s *AssetDividendRecordService) EndTime(endTime uint64) *AssetDividendRecordService
- func (s *AssetDividendRecordService) Limit(limit int) *AssetDividendRecordService
- func (s *AssetDividendRecordService) StartTime(startTime uint64) *AssetDividendRecordService
- type AutoConvertStableCoinResponse
- type AutoConvertStableCoinService
- type AvgPrice
- type AvgPriceResponse
- type AvgPriceResult
- type AvgPriceService
- type BUSDConvertHistoryResponse
- type BUSDConvertHistoryService
- func (s *BUSDConvertHistoryService) AccountType(accountType string) *BUSDConvertHistoryService
- func (s *BUSDConvertHistoryService) Asset(asset string) *BUSDConvertHistoryService
- func (s *BUSDConvertHistoryService) ClientTranId(clientTranId string) *BUSDConvertHistoryService
- func (s *BUSDConvertHistoryService) Current(current int) *BUSDConvertHistoryService
- func (s *BUSDConvertHistoryService) Do(ctx context.Context) (res *BUSDConvertHistoryResponse, err error)
- func (s *BUSDConvertHistoryService) EndTime(endTime uint64) *BUSDConvertHistoryService
- func (s *BUSDConvertHistoryService) Size(size int) *BUSDConvertHistoryService
- func (s *BUSDConvertHistoryService) StartTime(startTime uint64) *BUSDConvertHistoryService
- func (s *BUSDConvertHistoryService) TranId(tranId int64) *BUSDConvertHistoryService
- type BUSDConvertResponse
- type BUSDConvertService
- func (s *BUSDConvertService) AccountType(accountType string) *BUSDConvertService
- func (s *BUSDConvertService) Amount(amount float64) *BUSDConvertService
- func (s *BUSDConvertService) Asset(asset string) *BUSDConvertService
- func (s *BUSDConvertService) ClientTranId(clientTranId string) *BUSDConvertService
- func (s *BUSDConvertService) Do(ctx context.Context) (res *BUSDConvertResponse, err error)
- func (s *BUSDConvertService) TargetAsset(targetAsset string) *BUSDConvertService
- type Balance
- type Bid
- type BookTickerData
- type CancelOCOService
- func (s *CancelOCOService) Do(ctx context.Context, opts ...RequestOption) (res *OrderOCOResponse, err error)
- func (s *CancelOCOService) ListClientOrderId(ListClientOrderId string) *CancelOCOService
- func (s *CancelOCOService) NewClientOrderId(newClientOrderId string) *CancelOCOService
- func (s *CancelOCOService) OrderListId(orderListId int) *CancelOCOService
- func (s *CancelOCOService) Symbol(symbol string) *CancelOCOService
- type CancelOpenOrdersService
- type CancelOrderResponse
- type CancelOrderService
- func (s *CancelOrderService) CancelRestrictions(cancelRestrictions string) *CancelOrderService
- func (s *CancelOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CancelOrderResponse, err error)
- func (s *CancelOrderService) NewClientOrderId(newClientOrderId string) *CancelOrderService
- func (s *CancelOrderService) OrderId(orderId int64) *CancelOrderService
- func (s *CancelOrderService) OrigClientOrderId(origClientOrderId string) *CancelOrderService
- func (s *CancelOrderService) Symbol(symbol string) *CancelOrderService
- type CancelReplaceResponse
- type CancelReplaceService
- func (s *CancelReplaceService) CancelNewClientOrderId(cancelNewClientOrderId string) *CancelReplaceService
- func (s *CancelReplaceService) CancelOrderId(cancelOrderId int64) *CancelReplaceService
- func (s *CancelReplaceService) CancelOrigClientOrderId(cancelOrigClientOrderId string) *CancelReplaceService
- func (s *CancelReplaceService) CancelReplaceMode(cancelReplaceMode string) *CancelReplaceService
- func (s *CancelReplaceService) CancelRestrictions(cancelRestrictions string) *CancelReplaceService
- func (s *CancelReplaceService) Do(ctx context.Context, opts ...RequestOption) (res *CancelReplaceResponse, err error)
- func (s *CancelReplaceService) IcebergQty(icebergQty float64) *CancelReplaceService
- func (s *CancelReplaceService) NewClientOrderId(newClientOrderId string) *CancelReplaceService
- func (s *CancelReplaceService) NewOrderRespType(newOrderRespType string) *CancelReplaceService
- func (s *CancelReplaceService) OrderType(orderType string) *CancelReplaceService
- func (s *CancelReplaceService) Price(price float64) *CancelReplaceService
- func (s *CancelReplaceService) Quantity(quantity float64) *CancelReplaceService
- func (s *CancelReplaceService) QuoteOrderQty(quoteOrderQty float64) *CancelReplaceService
- func (s *CancelReplaceService) SelfTradePreventionMode(selfTradePreventionMode string) *CancelReplaceService
- func (s *CancelReplaceService) Side(side string) *CancelReplaceService
- func (s *CancelReplaceService) StopPrice(stopPrice float64) *CancelReplaceService
- func (s *CancelReplaceService) StrategyId(strategyId int32) *CancelReplaceService
- func (s *CancelReplaceService) StrategyType(strategyType int32) *CancelReplaceService
- func (s *CancelReplaceService) Symbol(symbol string) *CancelReplaceService
- func (s *CancelReplaceService) TimeInForce(timeInForce string) *CancelReplaceService
- func (s *CancelReplaceService) TrailingDelta(trailingDelta int64) *CancelReplaceService
- type CheckServerTimeResponse
- type CheckServerTimeService
- type Client
- func (c *Client) NewAPIKeyPermissionService() *APIKeyPermissionService
- func (c *Client) NewAccountApiTradingStatusService() *AccountApiTradingStatusService
- func (c *Client) NewAccountStatusService() *AccountStatusService
- func (c *Client) NewAggTradesListService() *AggTradesList
- func (c *Client) NewAllIsolatedMarginSymbolService() *AllIsolatedMarginSymbolService
- func (c *Client) NewAssetDetailService() *AssetDetailService
- func (c *Client) NewAssetDetailV2Service() *AssetDetailV2Service
- func (c *Client) NewAssetDividendRecordService() *AssetDividendRecordService
- func (c *Client) NewAutoConvertStableCoinService() *AutoConvertStableCoinService
- func (c *Client) NewAvgPriceService() *AvgPrice
- func (c *Client) NewBUSDConvertHistoryService() *BUSDConvertHistoryService
- func (c *Client) NewBUSDConvertService() *BUSDConvertService
- func (c *Client) NewCancelOCOService() *CancelOCOService
- func (c *Client) NewCancelOpenOrdersService() *CancelOpenOrdersService
- func (c *Client) NewCancelOrderService() *CancelOrderService
- func (c *Client) NewCancelReplaceService() *CancelReplaceService
- func (c *Client) NewCloseUserStream() *CloseUserStream
- func (c *Client) NewCloudMiningPaymentHistoryService() *CloudMiningPaymentHistoryService
- func (c *Client) NewCreateListenKeyService() *CreateListenKey
- func (c *Client) NewCreateOrderService() *CreateOrderService
- func (c *Client) NewCreateSubAccountService() *CreateSubAccountService
- func (c *Client) NewCrossMarginAccountDetailService() *CrossMarginAccountDetailService
- func (c *Client) NewCrossMarginTransferHistoryService() *CrossMarginTransferHistoryService
- func (c *Client) NewDeleteIPListForSubAccountAPIKeyService() *DeleteIPListForSubAccountAPIKeyService
- func (c *Client) NewDepositAddressService() *DepositAddressService
- func (c *Client) NewDepositAssetsIntoManagedSubAccountService() *DepositAssetsIntoTheManagedSubAccountService
- func (c *Client) NewDepositHistoryService() *DepositHistoryService
- func (c *Client) NewDisableFastWithdrawSwitchService() *DisableFastWithdrawSwitchService
- func (c *Client) NewDustLogService() *DustLogService
- func (c *Client) NewDustTransferService() *DustTransferService
- func (c *Client) NewEnableFastWithdrawSwitchService() *EnableFastWithdrawSwitchService
- func (c *Client) NewEnableFuturesForSubAccountService() *EnableFuturesForSubAccountService
- func (c *Client) NewEnableLeverageTokenForSubAccountService() *EnableLeverageTokenForSubAccountService
- func (c *Client) NewEnableMarginForSubAccountService() *EnableMarginForSubAccountService
- func (c *Client) NewExchangeInfoService() *ExchangeInfo
- func (c *Client) NewForceLiquidationRecordService() *ForceLiquidationRecordService
- func (c *Client) NewFundingWalletService() *FundingWalletService
- func (c *Client) NewFuturesTransferForSubAccountService() *FuturesTransferForSubAccountService
- func (c *Client) NewGetAccountService() *GetAccountService
- func (c *Client) NewGetAccountSnapshotService() *GetAccountSnapshotService
- func (c *Client) NewGetAllCoinsInfoService() *GetAllCoinsInfoService
- func (c *Client) NewGetAllMarginAssetsService() *GetAllMarginAssetsService
- func (c *Client) NewGetAllMarginPairsService() *GetAllMarginPairsService
- func (c *Client) NewGetAllOrdersService() *GetAllOrdersService
- func (c *Client) NewGetDetailOnSubAccountFuturesAccountService() *GetDetailOnSubAccountFuturesAccountService
- func (c *Client) NewGetDetailOnSubAccountFuturesAccountV2Service() *GetDetailOnSubAccountFuturesAccountV2Service
- func (c *Client) NewGetDetailOnSubAccountMarginAccountService() *GetDetailOnSubAccountMarginAccountService
- func (c *Client) NewGetFuturesPositionRiskOfSubAccountService() *GetFuturesPositionRiskOfSubAccountService
- func (c *Client) NewGetFuturesPositionRiskOfSubAccountV2Service() *GetFuturesPositionRiskOfSubAccountV2Service
- func (c *Client) NewGetIPRestrictionForSubAccountAPIKeyService() *GetIPRestrictionForSubAccountAPIKeyService
- func (c *Client) NewGetManagedSubAccountDepositAddressService() *GetManagedSubAccountDepositAddressService
- func (c *Client) NewGetMyTradesService() *GetMyTradesService
- func (c *Client) NewGetOpenOrdersService() *GetOpenOrdersService
- func (c *Client) NewGetOrderService() *GetOrderService
- func (c *Client) NewGetQueryCurrentOrderCountUsageService() *GetQueryCurrentOrderCountUsageService
- func (c *Client) NewGetQueryPreventedMatchesService() *GetQueryPreventedMatchesService
- func (c *Client) NewGetSubAccountDepositAddressService() *GetSubAccountDepositAddressService
- func (c *Client) NewGetSubAccountDepositHistoryService() *GetSubAccountDepositHistoryService
- func (c *Client) NewGetSubAccountStatusService() *GetSubAccountStatusService
- func (c *Client) NewGetSummaryOfSubAccountFuturesAccountService() *GetSummaryOfSubAccountFuturesAccountService
- func (c *Client) NewGetSummaryOfSubAccountFuturesAccountV2Service() *GetSummaryOfSubAccountFuturesAccountV2Service
- func (c *Client) NewGetSummaryOfSubAccountMarginAccountService() *GetSummaryOfSubAccountMarginAccountService
- func (c *Client) NewGetSystemStatusService() *GetSystemStatusService
- func (c *Client) NewHistoricalTradeLookupService() *HistoricalTradeLookup
- func (c *Client) NewInterestHistoryService() *InterestHistoryService
- func (c *Client) NewKlinesService() *Klines
- func (c *Client) NewMarginAccountAllOrderService() *MarginAccountAllOrderService
- func (c *Client) NewMarginAccountCancelAllOrdersService() *MarginAccountCancelAllOrdersService
- func (c *Client) NewMarginAccountCancelOCOService() *MarginAccountCancelOCOService
- func (c *Client) NewMarginAccountCancelOrderService() *MarginAccountCancelOrderService
- func (c *Client) NewMarginAccountNewOCOService() *MarginAccountNewOCOService
- func (c *Client) NewMarginAccountNewOrderService() *MarginAccountNewOrderService
- func (c *Client) NewMarginAccountOpenOrderService() *MarginAccountOpenOrderService
- func (c *Client) NewMarginAccountOrderService() *MarginAccountOrderService
- func (c *Client) NewMarginAccountQueryAllOCOService() *MarginAccountQueryAllOCOService
- func (c *Client) NewMarginAccountQueryMaxBorrowService() *MarginAccountQueryMaxBorrowService
- func (c *Client) NewMarginAccountQueryMaxTransferOutAmountService() *MarginAccountQueryMaxTransferOutAmountService
- func (c *Client) NewMarginAccountQueryOCOService() *MarginAccountQueryOCOService
- func (c *Client) NewMarginAccountQueryOpenOCOService() *MarginAccountQueryOpenOCOService
- func (c *Client) NewMarginAccountQueryTradeListService() *MarginAccountQueryTradeListService
- func (c *Client) NewMarginAccountSummaryService() *MarginAccountSummaryService
- func (c *Client) NewMarginBnbBurnStatusService() *MarginBnbBurnStatusService
- func (c *Client) NewMarginCrossCollateralRatioService() *MarginCrossCollateralRatioService
- func (c *Client) NewMarginCrossMarginFeeService() *MarginCrossMarginFeeService
- func (c *Client) NewMarginCurrentOrderCountService() *MarginCurrentOrderCountService
- func (c *Client) NewMarginInterestRateHistoryService() *MarginInterestRateHistoryService
- func (c *Client) NewMarginIsolatedAccountDisableService() *MarginIsolatedAccountDisableService
- func (c *Client) NewMarginIsolatedAccountEnableService() *MarginIsolatedAccountEnableService
- func (c *Client) NewMarginIsolatedAccountInfoService() *MarginIsolatedAccountInfoService
- func (c *Client) NewMarginIsolatedAccountLimitService() *MarginIsolatedAccountLimitService
- func (c *Client) NewMarginIsolatedMarginFeeService() *MarginIsolatedMarginFeeService
- func (c *Client) NewMarginIsolatedMarginTierService() *MarginIsolatedMarginTierService
- func (c *Client) NewMarginSmallLiabilityExchangeCoinListService() *MarginSmallLiabilityExchangeCoinListService
- func (c *Client) NewMarginSmallLiabilityExchangeHistoryService() *MarginSmallLiabilityExchangeHistoryService
- func (c *Client) NewMarginSmallLiabilityExchangeService() *MarginSmallLiabilityExchangeService
- func (c *Client) NewMarginToggleBnbBurnService() *MarginToggleBnbBurnService
- func (c *Client) NewMarginTransferForSubAccountService() *MarginTransferForSubAccountService
- func (c *Client) NewNewOCOService() *NewOCOService
- func (c *Client) NewOrderBookService() *OrderBook
- func (c *Client) NewPingService() *Ping
- func (c *Client) NewPingUserStream() *PingUserStream
- func (c *Client) NewQueryAllOCOService() *QueryAllOCOService
- func (c *Client) NewQueryManagedSubAccountAssetDetailsService() *QueryManagedSubAccountAssetDetailsService
- func (c *Client) NewQueryManagedSubAccountFuturesAssetDetailsService() *QueryManagedSubAccountFuturesAssetDetailsService
- func (c *Client) NewQueryManagedSubAccountList() *QueryManagedSubAccountList
- func (c *Client) NewQueryManagedSubAccountMarginAssetDetailsService() *QueryManagedSubAccountMarginAssetDetailsService
- func (c *Client) NewQueryManagedSubAccountSnapshotService() *QueryManagedSubAccountSnapshotService
- func (c *Client) NewQueryManagedSubAccountTransferLogForTradingTeamService() *QueryManagedSubAccountTransferLogForTradingTeamService
- func (c *Client) NewQueryManagedSubAccountTransferLogService() *QueryManagedSubAccountTransferLogService
- func (c *Client) NewQueryMarginPriceIndexService() *QueryMarginPriceIndexService
- func (c *Client) NewQueryOCOService() *QueryOCOService
- func (c *Client) NewQueryOpenOCOService() *QueryOpenOCOService
- func (c *Client) NewQuerySubAccountAssetsForMasterAccountService() *QuerySubAccountAssetsForMasterAccountService
- func (c *Client) NewQuerySubAccountAssetsService() *QuerySubAccountAssetsService
- func (c *Client) NewQuerySubAccountFuturesAssetTransferHistoryService() *QuerySubAccountFuturesAssetTransferHistoryService
- func (c *Client) NewQuerySubAccountListService() *QuerySubAccountListService
- func (c *Client) NewQuerySubAccountSpotAssetTransferHistoryService() *QuerySubAccountSpotAssetTransferHistoryService
- func (c *Client) NewQuerySubAccountSpotAssetsSummaryService() *QuerySubAccountSpotAssetsSummaryService
- func (c *Client) NewQuerySubAccountTransactionTatistics() *QuerySubAccountTransactionTatistics
- func (c *Client) NewQueryUniversalTransferHistoryService() *QueryUniversalTransferHistoryService
- func (c *Client) NewRecentTradesListService() *RecentTradesList
- func (c *Client) NewServerTimeService() *ServerTime
- func (c *Client) NewSubAccountFuturesAssetTransferService() *SubAccountFuturesAssetTransferService
- func (c *Client) NewSubAccountTransferHistoryService() *SubAccountTransferHistoryService
- func (c *Client) NewTestNewOrder() *TestNewOrder
- func (c *Client) NewTicker24hrService() *Ticker24hr
- func (c *Client) NewTickerBookTickerService() *TickerBookTicker
- func (c *Client) NewTickerPriceService() *TickerPrice
- func (c *Client) NewTickerService() *Ticker
- func (c *Client) NewTradeFeeService() *TradeFeeService
- func (c *Client) NewTransferToMasterService() *TransferToMasterService
- func (c *Client) NewTransferToSubAccountOfSameMasterService() *TransferToSubAccountOfSameMasterService
- func (c *Client) NewUIKlinesService() *UiKlines
- func (c *Client) NewUniversalTransferService() *UniversalTransferService
- func (c *Client) NewUpdateIPRestrictionForSubAccountAPIKeyService() *UpdateIPRestrictionForSubAccountAPIKeyService
- func (c *Client) NewUserAssetService() *UserAssetService
- func (c *Client) NewUserUniversalTransferHistoryService() *UserUniversalTransferHistoryService
- func (c *Client) NewUserUniversalTransferService() *UserUniversalTransferService
- func (c *Client) NewWithdrawAssetsFromTheManagedSubAccountService() *WithdrawAssetsFromTheManagedSubAccountService
- func (c *Client) NewWithdrawHistoryService() *WithdrawHistoryService
- func (c *Client) NewWithdrawService() *WithdrawService
- type CloseUserStream
- type CloudMiningPaymentHistoryResponse
- type CloudMiningPaymentHistoryService
- func (s *CloudMiningPaymentHistoryService) Asset(asset string) *CloudMiningPaymentHistoryService
- func (s *CloudMiningPaymentHistoryService) ClientTranId(clientTranId string) *CloudMiningPaymentHistoryService
- func (s *CloudMiningPaymentHistoryService) Current(current int) *CloudMiningPaymentHistoryService
- func (s *CloudMiningPaymentHistoryService) Do(ctx context.Context) (res *CloudMiningPaymentHistoryResponse, err error)
- func (s *CloudMiningPaymentHistoryService) EndTime(endTime uint64) *CloudMiningPaymentHistoryService
- func (s *CloudMiningPaymentHistoryService) Size(size int) *CloudMiningPaymentHistoryService
- func (s *CloudMiningPaymentHistoryService) StartTime(startTime uint64) *CloudMiningPaymentHistoryService
- func (s *CloudMiningPaymentHistoryService) Tranid(tranid int64) *CloudMiningPaymentHistoryService
- type CoinInfo
- type CreateListenKey
- type CreateOrderResponseACK
- type CreateOrderResponseFULL
- type CreateOrderResponseRESULT
- type CreateOrderService
- func (s *CreateOrderService) Do(ctx context.Context, opts ...RequestOption) (res interface{}, err error)
- func (s *CreateOrderService) IcebergQuantity(icebergQty float64) *CreateOrderService
- func (s *CreateOrderService) NewClientOrderId(newClientOrderId string) *CreateOrderService
- func (s *CreateOrderService) NewOrderRespType(newOrderRespType string) *CreateOrderService
- func (s *CreateOrderService) Price(price float64) *CreateOrderService
- func (s *CreateOrderService) Quantity(quantity float64) *CreateOrderService
- func (s *CreateOrderService) QuoteOrderQty(quoteOrderQty float64) *CreateOrderService
- func (s *CreateOrderService) SelfTradePreventionMode(selfTradePreventionMode string) *CreateOrderService
- func (s *CreateOrderService) Side(side string) *CreateOrderService
- func (s *CreateOrderService) StopPrice(stopPrice float64) *CreateOrderService
- func (s *CreateOrderService) StrategyId(strategyId int) *CreateOrderService
- func (s *CreateOrderService) StrategyType(strategyType int) *CreateOrderService
- func (s *CreateOrderService) Symbol(symbol string) *CreateOrderService
- func (s *CreateOrderService) TimeInForce(timeInForce string) *CreateOrderService
- func (s *CreateOrderService) TrailingDelta(trailingDelta int) *CreateOrderService
- func (s *CreateOrderService) Type(orderType string) *CreateOrderService
- type CreateSubAccountResp
- type CreateSubAccountService
- type CrossMarginAccountDetailResponse
- type CrossMarginAccountDetailService
- type CrossMarginTransferHistoryResponse
- type CrossMarginTransferHistoryService
- func (s *CrossMarginTransferHistoryService) Archived(archived string) *CrossMarginTransferHistoryService
- func (s *CrossMarginTransferHistoryService) Asset(asset string) *CrossMarginTransferHistoryService
- func (s *CrossMarginTransferHistoryService) Current(current int) *CrossMarginTransferHistoryService
- func (s *CrossMarginTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *CrossMarginTransferHistoryResponse, err error)
- func (s *CrossMarginTransferHistoryService) EndTime(endTime uint64) *CrossMarginTransferHistoryService
- func (s *CrossMarginTransferHistoryService) OrderType(orderType string) *CrossMarginTransferHistoryService
- func (s *CrossMarginTransferHistoryService) Size(size int) *CrossMarginTransferHistoryService
- func (s *CrossMarginTransferHistoryService) StartTime(startTime uint64) *CrossMarginTransferHistoryService
- type DeleteIPListForSubAccountAPIKeyResp
- type DeleteIPListForSubAccountAPIKeyService
- func (s *DeleteIPListForSubAccountAPIKeyService) Do(ctx context.Context, opts ...RequestOption) (res *DeleteIPListForSubAccountAPIKeyResp, err error)
- func (s *DeleteIPListForSubAccountAPIKeyService) Email(email string) *DeleteIPListForSubAccountAPIKeyService
- func (s *DeleteIPListForSubAccountAPIKeyService) IpAddress(ipAddress string) *DeleteIPListForSubAccountAPIKeyService
- func (s *DeleteIPListForSubAccountAPIKeyService) SubAccountApiKey(subAccountApiKey string) *DeleteIPListForSubAccountAPIKeyService
- type DepositAddressResponse
- type DepositAddressService
- type DepositAssetsIntoTheManagedSubAccountResp
- type DepositAssetsIntoTheManagedSubAccountService
- func (s *DepositAssetsIntoTheManagedSubAccountService) Amount(amount float64) *DepositAssetsIntoTheManagedSubAccountService
- func (s *DepositAssetsIntoTheManagedSubAccountService) Asset(asset string) *DepositAssetsIntoTheManagedSubAccountService
- func (s *DepositAssetsIntoTheManagedSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *DepositAssetsIntoTheManagedSubAccountResp, err error)
- func (s *DepositAssetsIntoTheManagedSubAccountService) ToEmail(toEmail string) *DepositAssetsIntoTheManagedSubAccountService
- type DepositHistoryResponse
- type DepositHistoryService
- func (s *DepositHistoryService) Coin(coin string) *DepositHistoryService
- func (s *DepositHistoryService) Do(ctx context.Context) (res []*DepositHistoryResponse, err error)
- func (s *DepositHistoryService) EndTime(endTime uint64) *DepositHistoryService
- func (s *DepositHistoryService) Limit(limit int) *DepositHistoryService
- func (s *DepositHistoryService) Offset(offset int) *DepositHistoryService
- func (s *DepositHistoryService) StartTime(startTime uint64) *DepositHistoryService
- func (s *DepositHistoryService) Status(status int) *DepositHistoryService
- func (s *DepositHistoryService) TxId(txid string) *DepositHistoryService
- type DepthResponse
- type DepthResult
- type DepthService
- type DisableFastWithdrawSwitchResponse
- type DisableFastWithdrawSwitchService
- type DustLogResponse
- type DustLogService
- type DustTransferResponse
- type DustTransferResult
- type DustTransferService
- type EnableFastWithdrawSwitchResponse
- type EnableFastWithdrawSwitchService
- type EnableFuturesForSubAccountResp
- type EnableFuturesForSubAccountService
- type EnableLeverageTokenForSubAccountResp
- type EnableLeverageTokenForSubAccountService
- func (s *EnableLeverageTokenForSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *EnableLeverageTokenForSubAccountResp, err error)
- func (s *EnableLeverageTokenForSubAccountService) Email(email string) *EnableLeverageTokenForSubAccountService
- func (s *EnableLeverageTokenForSubAccountService) EnableBlvt(enableBlvt bool) *EnableLeverageTokenForSubAccountService
- type EnableMarginForSubAccountResp
- type EnableMarginForSubAccountService
- type ErrHandler
- type ExchangeFilter
- type ExchangeInfo
- type ExchangeInfoResponse
- type ExchangeInformationResponse
- type ExchangeInformationService
- func (s *ExchangeInformationService) Do(ctx context.Context) (*ExchangeInformationResponse, error)
- func (s *ExchangeInformationService) Permissions(permissions []string) *ExchangeInformationService
- func (s *ExchangeInformationService) Symbol(symbol string) *ExchangeInformationService
- func (s *ExchangeInformationService) Symbols(symbols []string) *ExchangeInformationService
- type Fill
- type ForceLiquidationRecordResponse
- type ForceLiquidationRecordService
- func (s *ForceLiquidationRecordService) Current(current int) *ForceLiquidationRecordService
- func (s *ForceLiquidationRecordService) Do(ctx context.Context, opts ...RequestOption) (res *ForceLiquidationRecordResponse, err error)
- func (s *ForceLiquidationRecordService) EndTime(endTime uint64) *ForceLiquidationRecordService
- func (s *ForceLiquidationRecordService) IsolatedSymbol(isolatedSymbol string) *ForceLiquidationRecordService
- func (s *ForceLiquidationRecordService) Size(size int) *ForceLiquidationRecordService
- func (s *ForceLiquidationRecordService) StartTime(startTime uint64) *ForceLiquidationRecordService
- type FundingWalletResponse
- type FundingWalletService
- type FuturesTransferForSubAccountResp
- type FuturesTransferForSubAccountService
- func (s *FuturesTransferForSubAccountService) Amount(amount float64) *FuturesTransferForSubAccountService
- func (s *FuturesTransferForSubAccountService) Asset(asset string) *FuturesTransferForSubAccountService
- func (s *FuturesTransferForSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *FuturesTransferForSubAccountResp, err error)
- func (s *FuturesTransferForSubAccountService) Email(email string) *FuturesTransferForSubAccountService
- func (s *FuturesTransferForSubAccountService) TransferType(transferType int) *FuturesTransferForSubAccountService
- type GetAccountService
- type GetAccountSnapshotService
- func (s *GetAccountSnapshotService) Do(ctx context.Context) (res *AccountSnapshotResponse, err error)
- func (s *GetAccountSnapshotService) EndTime(endTime uint64) *GetAccountSnapshotService
- func (s *GetAccountSnapshotService) Limit(limit int) *GetAccountSnapshotService
- func (s *GetAccountSnapshotService) MarketType(marketType string) *GetAccountSnapshotService
- func (s *GetAccountSnapshotService) StartTime(startTime uint64) *GetAccountSnapshotService
- type GetAllCoinsInfoService
- type GetAllMarginAssetsResponse
- type GetAllMarginAssetsService
- type GetAllMarginPairsResponse
- type GetAllMarginPairsService
- type GetAllOrdersService
- func (s *GetAllOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*NewAllOrdersResponse, err error)
- func (s *GetAllOrdersService) EndTime(endTime uint64) *GetAllOrdersService
- func (s *GetAllOrdersService) Limit(limit int) *GetAllOrdersService
- func (s *GetAllOrdersService) OrderId(orderId int64) *GetAllOrdersService
- func (s *GetAllOrdersService) StartTime(startTime uint64) *GetAllOrdersService
- func (s *GetAllOrdersService) Symbol(symbol string) *GetAllOrdersService
- type GetDetailOnSubAccountFuturesAccountResp
- type GetDetailOnSubAccountFuturesAccountService
- type GetDetailOnSubAccountFuturesAccountV2COINResp
- type GetDetailOnSubAccountFuturesAccountV2Service
- func (s *GetDetailOnSubAccountFuturesAccountV2Service) Do(ctx context.Context, opts ...RequestOption) (res interface{}, err error)
- func (s *GetDetailOnSubAccountFuturesAccountV2Service) Email(email string) *GetDetailOnSubAccountFuturesAccountV2Service
- func (s *GetDetailOnSubAccountFuturesAccountV2Service) FuturesType(futuresType int) *GetDetailOnSubAccountFuturesAccountV2Service
- type GetDetailOnSubAccountFuturesAccountV2USDTResp
- type GetDetailOnSubAccountMarginAccountResp
- type GetDetailOnSubAccountMarginAccountService
- type GetFuturesPositionRiskOfSubAccountResp
- type GetFuturesPositionRiskOfSubAccountService
- type GetFuturesPositionRiskOfSubAccountV2COINResp
- type GetFuturesPositionRiskOfSubAccountV2Service
- func (s *GetFuturesPositionRiskOfSubAccountV2Service) Do(ctx context.Context, opts ...RequestOption) (res interface{}, err error)
- func (s *GetFuturesPositionRiskOfSubAccountV2Service) Email(email string) *GetFuturesPositionRiskOfSubAccountV2Service
- func (s *GetFuturesPositionRiskOfSubAccountV2Service) FuturesType(futuresType int) *GetFuturesPositionRiskOfSubAccountV2Service
- type GetFuturesPositionRiskOfSubAccountV2USDTResp
- type GetIPRestrictionForSubAccountAPIKeyResp
- type GetIPRestrictionForSubAccountAPIKeyService
- func (s *GetIPRestrictionForSubAccountAPIKeyService) Do(ctx context.Context, opts ...RequestOption) (res *GetIPRestrictionForSubAccountAPIKeyResp, err error)
- func (s *GetIPRestrictionForSubAccountAPIKeyService) Email(email string) *GetIPRestrictionForSubAccountAPIKeyService
- func (s *GetIPRestrictionForSubAccountAPIKeyService) SubAccountApiKey(subAccountApiKey string) *GetIPRestrictionForSubAccountAPIKeyService
- type GetManagedSubAccountDepositAddressResp
- type GetManagedSubAccountDepositAddressService
- func (s *GetManagedSubAccountDepositAddressService) Coin(coin string) *GetManagedSubAccountDepositAddressService
- func (s *GetManagedSubAccountDepositAddressService) Do(ctx context.Context, opts ...RequestOption) (res *GetManagedSubAccountDepositAddressResp, err error)
- func (s *GetManagedSubAccountDepositAddressService) Email(email string) *GetManagedSubAccountDepositAddressService
- func (s *GetManagedSubAccountDepositAddressService) Network(network string) *GetManagedSubAccountDepositAddressService
- type GetMyTradesService
- func (s *GetMyTradesService) Do(ctx context.Context, opts ...RequestOption) (res []*AccountTradeListResponse, err error)
- func (s *GetMyTradesService) EndTime(endTime uint64) *GetMyTradesService
- func (s *GetMyTradesService) FromId(fromId int64) *GetMyTradesService
- func (s *GetMyTradesService) Limit(limit int) *GetMyTradesService
- func (s *GetMyTradesService) OrderId(orderId int64) *GetMyTradesService
- func (s *GetMyTradesService) StartTime(startTime uint64) *GetMyTradesService
- func (s *GetMyTradesService) Symbol(symbol string) *GetMyTradesService
- type GetOpenOrdersService
- type GetOrderResponse
- type GetOrderService
- func (s *GetOrderService) Do(ctx context.Context, opts ...RequestOption) (res *GetOrderResponse, err error)
- func (s *GetOrderService) OrderId(orderId int64) *GetOrderService
- func (s *GetOrderService) OrigClientOrderId(origClientOrderId string) *GetOrderService
- func (s *GetOrderService) Symbol(symbol string) *GetOrderService
- type GetQueryCurrentOrderCountUsageService
- type GetQueryPreventedMatchesService
- func (s *GetQueryPreventedMatchesService) Do(ctx context.Context, opts ...RequestOption) (res *QueryPreventedMatchesResponse, err error)
- func (s *GetQueryPreventedMatchesService) FromPreventedMatchId(fromPreventedMatchId int64) *GetQueryPreventedMatchesService
- func (s *GetQueryPreventedMatchesService) Limit(limit int) *GetQueryPreventedMatchesService
- func (s *GetQueryPreventedMatchesService) OrderId(orderId int64) *GetQueryPreventedMatchesService
- func (s *GetQueryPreventedMatchesService) PreventMatchId(preventMatchId int64) *GetQueryPreventedMatchesService
- func (s *GetQueryPreventedMatchesService) Symbol(symbol string) *GetQueryPreventedMatchesService
- type GetSubAccountDepositAddressResp
- type GetSubAccountDepositAddressService
- func (s *GetSubAccountDepositAddressService) Coin(coin string) *GetSubAccountDepositAddressService
- func (s *GetSubAccountDepositAddressService) Do(ctx context.Context, opts ...RequestOption) (res *GetSubAccountDepositAddressResp, err error)
- func (s *GetSubAccountDepositAddressService) Email(email string) *GetSubAccountDepositAddressService
- func (s *GetSubAccountDepositAddressService) Network(network string) *GetSubAccountDepositAddressService
- type GetSubAccountDepositHistoryResp
- type GetSubAccountDepositHistoryService
- func (s *GetSubAccountDepositHistoryService) Coin(coin string) *GetSubAccountDepositHistoryService
- func (s *GetSubAccountDepositHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *GetSubAccountDepositHistoryResp, err error)
- func (s *GetSubAccountDepositHistoryService) Email(email string) *GetSubAccountDepositHistoryService
- func (s *GetSubAccountDepositHistoryService) EndTime(endTime uint64) *GetSubAccountDepositHistoryService
- func (s *GetSubAccountDepositHistoryService) Limit(limit int) *GetSubAccountDepositHistoryService
- func (s *GetSubAccountDepositHistoryService) Offset(offset int64) *GetSubAccountDepositHistoryService
- func (s *GetSubAccountDepositHistoryService) StartTime(startTime uint64) *GetSubAccountDepositHistoryService
- func (s *GetSubAccountDepositHistoryService) Status(status int64) *GetSubAccountDepositHistoryService
- type GetSubAccountStatusResp
- type GetSubAccountStatusService
- type GetSummaryOfSubAccountFuturesAccountResp
- type GetSummaryOfSubAccountFuturesAccountService
- type GetSummaryOfSubAccountFuturesAccountV2COINResp
- type GetSummaryOfSubAccountFuturesAccountV2Service
- func (s *GetSummaryOfSubAccountFuturesAccountV2Service) Do(ctx context.Context, opts ...RequestOption) (res interface{}, err error)
- func (s *GetSummaryOfSubAccountFuturesAccountV2Service) FuturesType(futuresType int) *GetSummaryOfSubAccountFuturesAccountV2Service
- func (s *GetSummaryOfSubAccountFuturesAccountV2Service) Limit(limit int) *GetSummaryOfSubAccountFuturesAccountV2Service
- func (s *GetSummaryOfSubAccountFuturesAccountV2Service) Page(page int) *GetSummaryOfSubAccountFuturesAccountV2Service
- type GetSummaryOfSubAccountFuturesAccountV2USDTResp
- type GetSummaryOfSubAccountMarginAccountResp
- type GetSummaryOfSubAccountMarginAccountService
- type GetSystemStatusService
- type HistoricalTradeData
- type HistoricalTradeLookup
- func (s *HistoricalTradeLookup) Do(ctx context.Context, opts ...RequestOption) (res []*RecentTradesListResponse, err error)
- func (s *HistoricalTradeLookup) FromId(fromId int64) *HistoricalTradeLookup
- func (s *HistoricalTradeLookup) Limit(limit uint) *HistoricalTradeLookup
- func (s *HistoricalTradeLookup) Symbol(symbol string) *HistoricalTradeLookup
- type HistoricalTradesResponse
- type HistoricalTradesService
- func (s *HistoricalTradesService) Do(ctx context.Context) (*HistoricalTradesResponse, error)
- func (s *HistoricalTradesService) FromId(fromId int64) *HistoricalTradesService
- func (s *HistoricalTradesService) Limit(limit int) *HistoricalTradesService
- func (s *HistoricalTradesService) Symbol(symbol string) *HistoricalTradesService
- type InterestHistoryResponse
- type InterestHistoryService
- func (s *InterestHistoryService) Archived(archived string) *InterestHistoryService
- func (s *InterestHistoryService) Asset(asset string) *InterestHistoryService
- func (s *InterestHistoryService) Current(current int) *InterestHistoryService
- func (s *InterestHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *InterestHistoryResponse, err error)
- func (s *InterestHistoryService) EndTime(endTime uint64) *InterestHistoryService
- func (s *InterestHistoryService) IsolatedSymbol(isolatedSymbol string) *InterestHistoryService
- func (s *InterestHistoryService) Size(size int) *InterestHistoryService
- func (s *InterestHistoryService) StartTime(startTime uint64) *InterestHistoryService
- type InternalUniversalTransfer
- type Klines
- func (s *Klines) Do(ctx context.Context, opts ...RequestOption) (res []*KlinesResponse, err error)
- func (s *Klines) EndTime(endTime uint64) *Klines
- func (s *Klines) Interval(interval string) *Klines
- func (s *Klines) Limit(limit int) *Klines
- func (s *Klines) StartTime(startTime uint64) *Klines
- func (s *Klines) Symbol(symbol string) *Klines
- type KlinesResponse
- type KlinesResponseArray
- type KlinesService
- func (s *KlinesService) Do(ctx context.Context) (*WsAPIKlinesResponse, 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 MarginAccountAllOrderResponse
- type MarginAccountAllOrderService
- func (s *MarginAccountAllOrderService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginAccountAllOrderResponse, err error)
- func (s *MarginAccountAllOrderService) EndTime(endTime uint64) *MarginAccountAllOrderService
- func (s *MarginAccountAllOrderService) IsIsolated(isIsolated string) *MarginAccountAllOrderService
- func (s *MarginAccountAllOrderService) Limit(limit int) *MarginAccountAllOrderService
- func (s *MarginAccountAllOrderService) OrderId(orderId int) *MarginAccountAllOrderService
- func (s *MarginAccountAllOrderService) StartTime(startTime uint64) *MarginAccountAllOrderService
- func (s *MarginAccountAllOrderService) Symbol(symbol string) *MarginAccountAllOrderService
- type MarginAccountCancelAllOrdersResponse
- type MarginAccountCancelAllOrdersService
- func (s *MarginAccountCancelAllOrdersService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountCancelAllOrdersResponse, err error)
- func (s *MarginAccountCancelAllOrdersService) IsIsolated(isIsolated string) *MarginAccountCancelAllOrdersService
- func (s *MarginAccountCancelAllOrdersService) Symbol(symbol string) *MarginAccountCancelAllOrdersService
- type MarginAccountCancelOCOResponse
- type MarginAccountCancelOCOService
- func (s *MarginAccountCancelOCOService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountCancelOCOResponse, err error)
- func (s *MarginAccountCancelOCOService) IsIsolated(isIsolated string) *MarginAccountCancelOCOService
- func (s *MarginAccountCancelOCOService) ListClientOrderId(listClientOrderId string) *MarginAccountCancelOCOService
- func (s *MarginAccountCancelOCOService) NewClientOrderId(newClientOrderId string) *MarginAccountCancelOCOService
- func (s *MarginAccountCancelOCOService) OrderListId(orderListId int) *MarginAccountCancelOCOService
- func (s *MarginAccountCancelOCOService) Symbol(symbol string) *MarginAccountCancelOCOService
- type MarginAccountCancelOrderResponse
- type MarginAccountCancelOrderService
- func (s *MarginAccountCancelOrderService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountCancelOrderResponse, err error)
- func (s *MarginAccountCancelOrderService) IsIsolated(isIsolated string) *MarginAccountCancelOrderService
- func (s *MarginAccountCancelOrderService) NewClientOrderId(newClientOrderId string) *MarginAccountCancelOrderService
- func (s *MarginAccountCancelOrderService) OrderId(orderId int) *MarginAccountCancelOrderService
- func (s *MarginAccountCancelOrderService) OrigClientOrderId(origClientOrderId string) *MarginAccountCancelOrderService
- func (s *MarginAccountCancelOrderService) Symbol(symbol string) *MarginAccountCancelOrderService
- type MarginAccountNewOCOResponse
- type MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountNewOCOResponse, err error)
- func (s *MarginAccountNewOCOService) IsIsolated(isIsolated string) *MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) LimitClientOrderId(limitClientOrderId string) *MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) LimitIcebergQty(limitIcebergQty float64) *MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) ListClientOrderId(listClientOrderId string) *MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) NewOrderRespType(newOrderRespType string) *MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) Price(price float64) *MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) Quantity(quantity float64) *MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) Side(side string) *MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) SideEffectType(sideEffectType string) *MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) StopClientOrderId(stopClientOrderId string) *MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) StopIcebergQty(stopIcebergQty float64) *MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) StopLimitPrice(stopLimitPrice float64) *MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) StopLimitTimeInForce(stopLimitTimeInForce string) *MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) StopPrice(stopPrice float64) *MarginAccountNewOCOService
- func (s *MarginAccountNewOCOService) Symbol(symbol string) *MarginAccountNewOCOService
- type MarginAccountNewOrderResponseACK
- type MarginAccountNewOrderResponseFULL
- type MarginAccountNewOrderResponseRESULT
- type MarginAccountNewOrderService
- func (s *MarginAccountNewOrderService) Do(ctx context.Context, opts ...RequestOption) (res interface{}, err error)
- func (s *MarginAccountNewOrderService) IcebergQty(icebergQty float64) *MarginAccountNewOrderService
- func (s *MarginAccountNewOrderService) IsIsolated(isIsolated string) *MarginAccountNewOrderService
- func (s *MarginAccountNewOrderService) NewClientOrderId(newClientOrderId string) *MarginAccountNewOrderService
- func (s *MarginAccountNewOrderService) NewOrderRespType(newOrderRespType string) *MarginAccountNewOrderService
- func (s *MarginAccountNewOrderService) OrderType(orderType string) *MarginAccountNewOrderService
- func (s *MarginAccountNewOrderService) Price(price float64) *MarginAccountNewOrderService
- func (s *MarginAccountNewOrderService) Quantity(quantity float64) *MarginAccountNewOrderService
- func (s *MarginAccountNewOrderService) QuoteOrderQty(quoteOrderQty float64) *MarginAccountNewOrderService
- func (s *MarginAccountNewOrderService) Side(side string) *MarginAccountNewOrderService
- func (s *MarginAccountNewOrderService) SideEffectType(sideEffectType string) *MarginAccountNewOrderService
- func (s *MarginAccountNewOrderService) StopPrice(stopPrice float64) *MarginAccountNewOrderService
- func (s *MarginAccountNewOrderService) Symbol(symbol string) *MarginAccountNewOrderService
- func (s *MarginAccountNewOrderService) TimeInForce(timeInForce string) *MarginAccountNewOrderService
- type MarginAccountOpenOrderResponse
- type MarginAccountOpenOrderService
- func (s *MarginAccountOpenOrderService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginAccountOpenOrderResponse, err error)
- func (s *MarginAccountOpenOrderService) IsIsolated(isIsolated string) *MarginAccountOpenOrderService
- func (s *MarginAccountOpenOrderService) Symbol(symbol string) *MarginAccountOpenOrderService
- type MarginAccountOrderResponse
- type MarginAccountOrderService
- func (s *MarginAccountOrderService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountOrderResponse, err error)
- func (s *MarginAccountOrderService) IsIsolated(isIsolated string) *MarginAccountOrderService
- func (s *MarginAccountOrderService) OrderId(orderId int) *MarginAccountOrderService
- func (s *MarginAccountOrderService) OrigClientOrderId(origClientOrderId string) *MarginAccountOrderService
- func (s *MarginAccountOrderService) Symbol(symbol string) *MarginAccountOrderService
- type MarginAccountQueryAllOCOResponse
- type MarginAccountQueryAllOCOService
- func (s *MarginAccountQueryAllOCOService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginAccountQueryAllOCOResponse, err error)
- func (s *MarginAccountQueryAllOCOService) EndTime(endTime uint64) *MarginAccountQueryAllOCOService
- func (s *MarginAccountQueryAllOCOService) FromId(fromId int) *MarginAccountQueryAllOCOService
- func (s *MarginAccountQueryAllOCOService) IsIsolated(isIsolated string) *MarginAccountQueryAllOCOService
- func (s *MarginAccountQueryAllOCOService) Limit(limit int) *MarginAccountQueryAllOCOService
- func (s *MarginAccountQueryAllOCOService) StartTime(startTime uint64) *MarginAccountQueryAllOCOService
- func (s *MarginAccountQueryAllOCOService) Symbol(symbol string) *MarginAccountQueryAllOCOService
- type MarginAccountQueryMaxBorrowResponse
- type MarginAccountQueryMaxBorrowService
- func (s *MarginAccountQueryMaxBorrowService) Asset(asset string) *MarginAccountQueryMaxBorrowService
- func (s *MarginAccountQueryMaxBorrowService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountQueryMaxBorrowResponse, err error)
- func (s *MarginAccountQueryMaxBorrowService) IsolatedSymbol(isolatedSymbol string) *MarginAccountQueryMaxBorrowService
- type MarginAccountQueryMaxTransferOutAmountResponse
- type MarginAccountQueryMaxTransferOutAmountService
- func (s *MarginAccountQueryMaxTransferOutAmountService) Asset(asset string) *MarginAccountQueryMaxTransferOutAmountService
- func (s *MarginAccountQueryMaxTransferOutAmountService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountQueryMaxTransferOutAmountResponse, err error)
- func (s *MarginAccountQueryMaxTransferOutAmountService) IsolatedSymbol(isolatedSymbol string) *MarginAccountQueryMaxTransferOutAmountService
- type MarginAccountQueryOCOResponse
- type MarginAccountQueryOCOService
- func (s *MarginAccountQueryOCOService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountQueryOCOResponse, err error)
- func (s *MarginAccountQueryOCOService) IsIsolated(isIsolated string) *MarginAccountQueryOCOService
- func (s *MarginAccountQueryOCOService) OrderListId(orderListId int) *MarginAccountQueryOCOService
- func (s *MarginAccountQueryOCOService) OrigClientOrderId(origClientOrderId string) *MarginAccountQueryOCOService
- func (s *MarginAccountQueryOCOService) Symbol(symbol string) *MarginAccountQueryOCOService
- type MarginAccountQueryOpenOCOResponse
- type MarginAccountQueryOpenOCOService
- func (s *MarginAccountQueryOpenOCOService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginAccountQueryOpenOCOResponse, err error)
- func (s *MarginAccountQueryOpenOCOService) IsIsolated(isIsolated string) *MarginAccountQueryOpenOCOService
- func (s *MarginAccountQueryOpenOCOService) Symbol(symbol string) *MarginAccountQueryOpenOCOService
- type MarginAccountQueryTradeListResponse
- type MarginAccountQueryTradeListService
- func (s *MarginAccountQueryTradeListService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginAccountQueryTradeListResponse, err error)
- func (s *MarginAccountQueryTradeListService) EndTime(endTime uint64) *MarginAccountQueryTradeListService
- func (s *MarginAccountQueryTradeListService) FromId(fromId int) *MarginAccountQueryTradeListService
- func (s *MarginAccountQueryTradeListService) IsIsolated(isIsolated string) *MarginAccountQueryTradeListService
- func (s *MarginAccountQueryTradeListService) Limit(limit int) *MarginAccountQueryTradeListService
- func (s *MarginAccountQueryTradeListService) OrderId(orderId int) *MarginAccountQueryTradeListService
- func (s *MarginAccountQueryTradeListService) StartTime(startTime uint64) *MarginAccountQueryTradeListService
- func (s *MarginAccountQueryTradeListService) Symbol(symbol string) *MarginAccountQueryTradeListService
- type MarginAccountSummaryResponse
- type MarginAccountSummaryService
- type MarginBnbBurnStatusResponse
- type MarginBnbBurnStatusService
- type MarginCrossCollateralRatioResponse
- type MarginCrossCollateralRatioService
- type MarginCrossMarginFeeResponse
- type MarginCrossMarginFeeService
- func (s *MarginCrossMarginFeeService) Coin(coin string) *MarginCrossMarginFeeService
- func (s *MarginCrossMarginFeeService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginCrossMarginFeeResponse, err error)
- func (s *MarginCrossMarginFeeService) VipLevel(vipLevel int) *MarginCrossMarginFeeService
- type MarginCurrentOrderCountResponse
- type MarginCurrentOrderCountService
- func (s *MarginCurrentOrderCountService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginCurrentOrderCountResponse, err error)
- func (s *MarginCurrentOrderCountService) IsIsolated(isIsolated string) *MarginCurrentOrderCountService
- func (s *MarginCurrentOrderCountService) Symbol(symbol string) *MarginCurrentOrderCountService
- type MarginInterestRateHistoryResponse
- type MarginInterestRateHistoryService
- func (s *MarginInterestRateHistoryService) Asset(asset string) *MarginInterestRateHistoryService
- func (s *MarginInterestRateHistoryService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginInterestRateHistoryResponse, err error)
- func (s *MarginInterestRateHistoryService) EndTime(endTime uint64) *MarginInterestRateHistoryService
- func (s *MarginInterestRateHistoryService) StartTime(startTime uint64) *MarginInterestRateHistoryService
- func (s *MarginInterestRateHistoryService) VipLevel(vipLevel int) *MarginInterestRateHistoryService
- type MarginIsolatedAccountDisableResponse
- type MarginIsolatedAccountDisableService
- type MarginIsolatedAccountEnableResponse
- type MarginIsolatedAccountEnableService
- type MarginIsolatedAccountInfoAssets
- type MarginIsolatedAccountInfoResponse
- type MarginIsolatedAccountInfoResponseSymbols
- type MarginIsolatedAccountInfoService
- type MarginIsolatedAccountLimitResponse
- type MarginIsolatedAccountLimitService
- type MarginIsolatedMarginFeeResponse
- type MarginIsolatedMarginFeeService
- func (s *MarginIsolatedMarginFeeService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginIsolatedMarginFeeResponse, err error)
- func (s *MarginIsolatedMarginFeeService) Symbol(symbol string) *MarginIsolatedMarginFeeService
- func (s *MarginIsolatedMarginFeeService) VipLevel(vipLevel int) *MarginIsolatedMarginFeeService
- type MarginIsolatedMarginTierResponse
- type MarginIsolatedMarginTierService
- func (s *MarginIsolatedMarginTierService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginIsolatedMarginTierResponse, err error)
- func (s *MarginIsolatedMarginTierService) Symbol(symbol string) *MarginIsolatedMarginTierService
- func (s *MarginIsolatedMarginTierService) Tier(tier int) *MarginIsolatedMarginTierService
- type MarginIsolatedSymbolResponse
- type MarginSmallLiabilityExchangeCoinListResponse
- type MarginSmallLiabilityExchangeCoinListService
- type MarginSmallLiabilityExchangeHistoryResponse
- type MarginSmallLiabilityExchangeHistoryService
- func (s *MarginSmallLiabilityExchangeHistoryService) Current(current int) *MarginSmallLiabilityExchangeHistoryService
- func (s *MarginSmallLiabilityExchangeHistoryService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginSmallLiabilityExchangeHistoryResponse, err error)
- func (s *MarginSmallLiabilityExchangeHistoryService) EndTime(endTime uint64) *MarginSmallLiabilityExchangeHistoryService
- func (s *MarginSmallLiabilityExchangeHistoryService) Size(size int) *MarginSmallLiabilityExchangeHistoryService
- func (s *MarginSmallLiabilityExchangeHistoryService) StartTime(startTime uint64) *MarginSmallLiabilityExchangeHistoryService
- type MarginSmallLiabilityExchangeResponse
- type MarginSmallLiabilityExchangeService
- type MarginToggleBnbBurnResponse
- type MarginToggleBnbBurnService
- func (s *MarginToggleBnbBurnService) Do(ctx context.Context, opts ...RequestOption) (res *MarginToggleBnbBurnResponse, err error)
- func (s *MarginToggleBnbBurnService) InterestBNBBurn(interestBNBBurn string) *MarginToggleBnbBurnService
- func (s *MarginToggleBnbBurnService) SpotBNBBurn(spotBNBBurn string) *MarginToggleBnbBurnService
- type MarginTransferForSubAccountResp
- type MarginTransferForSubAccountService
- func (s *MarginTransferForSubAccountService) Amount(amount float32) *MarginTransferForSubAccountService
- func (s *MarginTransferForSubAccountService) Asset(asset string) *MarginTransferForSubAccountService
- func (s *MarginTransferForSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *MarginTransferForSubAccountResp, err error)
- func (s *MarginTransferForSubAccountService) Email(email string) *MarginTransferForSubAccountService
- func (s *MarginTransferForSubAccountService) TransferType(transferType int) *MarginTransferForSubAccountService
- type NewAllOrdersResponse
- type NewOCOService
- func (s *NewOCOService) Do(ctx context.Context, opts ...RequestOption) (res *OrderOCOResponse, err error)
- func (s *NewOCOService) LimitClientOrderId(limitClientOrderId string) *NewOCOService
- func (s *NewOCOService) LimitIcebergQty(limitIcebergQty float64) *NewOCOService
- func (s *NewOCOService) LimitStrategyId(limitStrategyId int) *NewOCOService
- func (s *NewOCOService) LimitStrategyType(limitStrategyType int) *NewOCOService
- func (s *NewOCOService) ListClientOrderId(listClientOrderId string) *NewOCOService
- func (s *NewOCOService) NewOrderRespType(newOrderRespType string) *NewOCOService
- func (s *NewOCOService) Price(price float64) *NewOCOService
- func (s *NewOCOService) Quantity(quantity float64) *NewOCOService
- func (s *NewOCOService) SelfTradePreventionMode(selfTradePreventionMode string) *NewOCOService
- func (s *NewOCOService) Side(side string) *NewOCOService
- func (s *NewOCOService) StopClientOrderId(stopClientOrderId string) *NewOCOService
- func (s *NewOCOService) StopIcebergQty(stopIcebergQty float64) *NewOCOService
- func (s *NewOCOService) StopLimitPrice(stopLimitPrice float64) *NewOCOService
- func (s *NewOCOService) StopLimitTimeInForce(stopLimitTimeInForce string) *NewOCOService
- func (s *NewOCOService) StopPrice(stopPrice float64) *NewOCOService
- func (s *NewOCOService) StopStrategyId(stopStrategyId int) *NewOCOService
- func (s *NewOCOService) StopStrategyType(stopStrategyType int) *NewOCOService
- func (s *NewOCOService) Symbol(symbol string) *NewOCOService
- func (s *NewOCOService) TrailingDelta(trailingDelta int) *NewOCOService
- type NewOpenOrdersResponse
- type OCOChild
- type OCOOrder
- type OCOResponse
- type OpenOrderListItem
- type OpenOrderListsResult
- type OpenOrderListsStatusResponse
- type OpenOrderListsStatusService
- type OpenOrdersCancelAllResponse
- type OpenOrdersCancelAllService
- type OpenOrdersCancelResult
- type OpenOrdersResult
- type OpenOrdersStatusResponse
- type OpenOrdersStatusService
- type OrderBook
- type OrderBookResponse
- type OrderCancelReplaceResponse
- type OrderCancelReplaceResult
- type OrderCancelReplaceService
- func (s *OrderCancelReplaceService) CancelNewClientOrderId(cancelNewClientOrderId string) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) CancelOrderId(cancelOrderId int64) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) CancelOrigClientOrderId(cancelOrigClientOrderId string) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) CancelReplaceMode(cancelReplaceMode string) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) CancelRestrictions(cancelRestrictions string) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) Do(ctx context.Context) (*OrderCancelReplaceResponse, error)
- func (s *OrderCancelReplaceService) IcebergQty(icebergQty float64) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) NewClientOrderId(newClientOrderId string) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) NewOrderRespType(newOrderRespType string) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) OrderType(orderType string) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) Price(price float64) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) Quantity(quantity float64) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) QuoteOrderQty(quoteOrderQty float64) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) RecvWindow(recvWindow int64) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) SelfTradePreventionMode(selfTradePreventionMode string) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) Side(side string) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) StopPrice(stopPrice float64) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) StrategyId(strategyId int) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) StrategyType(strategyType int) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) Symbol(symbol string) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) TimeInForce(timeInForce string) *OrderCancelReplaceService
- func (s *OrderCancelReplaceService) TrailingDelta(trailingDelta float64) *OrderCancelReplaceService
- type OrderCancelResponse
- type OrderCancelResult
- type OrderCancelService
- func (s *OrderCancelService) CancelRestrictions(cancelRestrictions string) *OrderCancelService
- func (s *OrderCancelService) Do(ctx context.Context) (*OrderCancelResponse, error)
- func (s *OrderCancelService) NewClientOrderId(newClientOrderId string) *OrderCancelService
- func (s *OrderCancelService) OrderId(orderId int64) *OrderCancelService
- func (s *OrderCancelService) OrigClientOrderId(origClientOrderId string) *OrderCancelService
- func (s *OrderCancelService) RecvWindow(recvWindow int64) *OrderCancelService
- func (s *OrderCancelService) Symbol(symbol string) *OrderCancelService
- type OrderCancelledResult
- type OrderFill
- type OrderHistoryItem
- type OrderInfo
- type OrderListCancelOrder
- type OrderListCancelOrderReport
- type OrderListCancelResponse
- type OrderListCancelResult
- type OrderListCancelService
- func (s *OrderListCancelService) Do(ctx context.Context) (*OrderListCancelResponse, error)
- func (s *OrderListCancelService) ListClientOrderId(listClientOrderId string) *OrderListCancelService
- func (s *OrderListCancelService) NewClientOrderId(newClientOrderId string) *OrderListCancelService
- func (s *OrderListCancelService) OrderListId(orderListId int) *OrderListCancelService
- func (s *OrderListCancelService) RecvWindow(recvWindow int64) *OrderListCancelService
- func (s *OrderListCancelService) Symbol(symbol string) *OrderListCancelService
- type OrderListPlaceResponse
- type OrderListPlaceResult
- type OrderListPlaceService
- func (s *OrderListPlaceService) Do(ctx context.Context) (*OrderListPlaceResponse, error)
- func (s *OrderListPlaceService) LimitClientOrderId(limitClientOrderId string) *OrderListPlaceService
- func (s *OrderListPlaceService) LimitIcebergQty(limitIcebergQty float64) *OrderListPlaceService
- func (s *OrderListPlaceService) LimitStrategyId(limitStrategyId int) *OrderListPlaceService
- func (s *OrderListPlaceService) LimitStrategyType(limitStrategyType int) *OrderListPlaceService
- func (s *OrderListPlaceService) ListClientOrderId(listClientOrderId string) *OrderListPlaceService
- func (s *OrderListPlaceService) NewOrderRespType(newOrderRespType string) *OrderListPlaceService
- func (s *OrderListPlaceService) Price(price float64) *OrderListPlaceService
- func (s *OrderListPlaceService) Quantity(quantity float64) *OrderListPlaceService
- func (s *OrderListPlaceService) RecvWindow(recvWindow int64) *OrderListPlaceService
- func (s *OrderListPlaceService) SelfTradePreventionMode(selfTradePreventionMode string) *OrderListPlaceService
- func (s *OrderListPlaceService) Side(side string) *OrderListPlaceService
- func (s *OrderListPlaceService) StopClientOrderId(stopClientOrderId string) *OrderListPlaceService
- func (s *OrderListPlaceService) StopIcebergQty(stopIcebergQty float64) *OrderListPlaceService
- func (s *OrderListPlaceService) StopLimitPrice(stopLimitPrice float64) *OrderListPlaceService
- func (s *OrderListPlaceService) StopLimitTimeInForce(stopLimitTimeInForce string) *OrderListPlaceService
- func (s *OrderListPlaceService) StopPrice(stopPrice float64) *OrderListPlaceService
- func (s *OrderListPlaceService) StopStrategyId(stopStrategyId int) *OrderListPlaceService
- func (s *OrderListPlaceService) StopStrategyType(stopStrategyType int) *OrderListPlaceService
- func (s *OrderListPlaceService) Symbol(symbol string) *OrderListPlaceService
- type OrderListStatusOrder
- type OrderListStatusResponse
- type OrderListStatusResult
- type OrderListStatusService
- func (s *OrderListStatusService) Do(ctx context.Context) (*OrderListStatusResponse, error)
- func (s *OrderListStatusService) OrderListId(orderListId int) *OrderListStatusService
- func (s *OrderListStatusService) OrigClientOrderId(origClientOrderId string) *OrderListStatusService
- func (s *OrderListStatusService) RecvWindow(recvWindow int64) *OrderListStatusService
- type OrderOCOResponse
- type OrderPlacedResult
- type OrderPlacementResponse
- type OrderPlacementResult
- type OrderPlacementService
- func (s *OrderPlacementService) Do(ctx context.Context) (*OrderPlacementResponse, error)
- func (s *OrderPlacementService) IcebergQty(icebergQty float64) *OrderPlacementService
- func (s *OrderPlacementService) NewClientOrderId(newClientOrderId string) *OrderPlacementService
- func (s *OrderPlacementService) NewOrderRespType(newOrderRespType string) *OrderPlacementService
- func (s *OrderPlacementService) OrderType(orderType string) *OrderPlacementService
- func (s *OrderPlacementService) Price(price float64) *OrderPlacementService
- func (s *OrderPlacementService) Quantity(quantity float64) *OrderPlacementService
- func (s *OrderPlacementService) QuoteOrderQty(quoteOrderQty float64) *OrderPlacementService
- func (s *OrderPlacementService) RecvWindow(recvWindow int64) *OrderPlacementService
- func (s *OrderPlacementService) SelfTradePreventionMode(selfTradePreventionMode string) *OrderPlacementService
- func (s *OrderPlacementService) Side(side string) *OrderPlacementService
- func (s *OrderPlacementService) StopPrice(stopPrice float64) *OrderPlacementService
- func (s *OrderPlacementService) StrategyId(strategyId int) *OrderPlacementService
- func (s *OrderPlacementService) StrategyType(strategyType int) *OrderPlacementService
- func (s *OrderPlacementService) Symbol(symbol string) *OrderPlacementService
- func (s *OrderPlacementService) TimeInForce(timeInForce string) *OrderPlacementService
- func (s *OrderPlacementService) TrailingDelta(trailingDelta int64) *OrderPlacementService
- type OrderReport
- type OrderStatusResponse
- type OrderStatusResult
- type OrderStatusService
- func (s *OrderStatusService) ClientOrderID(origClientOrderId string) *OrderStatusService
- func (s *OrderStatusService) Do(ctx context.Context) (*OrderStatusResponse, error)
- func (s *OrderStatusService) OrderId(orderId int64) *OrderStatusService
- func (s *OrderStatusService) RecvWindow(recvWindow int64) *OrderStatusService
- func (s *OrderStatusService) Symbol(symbol string) *OrderStatusService
- type Ping
- type PingUserDataStreamResponse
- type PingUserDataStreamService
- type PingUserStream
- type PreventedMatch
- type PriceLevel
- type QueryAllOCOService
- func (s *QueryAllOCOService) Do(ctx context.Context, opts ...RequestOption) (res []*OCOResponse, err error)
- func (s *QueryAllOCOService) EndTime(endTime uint64) *QueryAllOCOService
- func (s *QueryAllOCOService) FromId(fromId int64) *QueryAllOCOService
- func (s *QueryAllOCOService) Limit(limit int) *QueryAllOCOService
- func (s *QueryAllOCOService) StartTime(startTime uint64) *QueryAllOCOService
- type QueryCurrentOrderCountUsageResponse
- type QueryManagedSubAccountAssetDetailsResp
- type QueryManagedSubAccountAssetDetailsService
- type QueryManagedSubAccountFuturesAssetDetailsResp
- type QueryManagedSubAccountFuturesAssetDetailsService
- type QueryManagedSubAccountList
- func (s *QueryManagedSubAccountList) Do(ctx context.Context, opts ...RequestOption) (res *QueryManagedSubAccountListResp, err error)
- func (s *QueryManagedSubAccountList) Email(email string) *QueryManagedSubAccountList
- func (s *QueryManagedSubAccountList) Limit(limit int) *QueryManagedSubAccountList
- func (s *QueryManagedSubAccountList) Page(page int) *QueryManagedSubAccountList
- type QueryManagedSubAccountListResp
- type QueryManagedSubAccountMarginAssetDetailsResp
- type QueryManagedSubAccountMarginAssetDetailsService
- type QueryManagedSubAccountSnapshotResp
- type QueryManagedSubAccountSnapshotService
- func (s *QueryManagedSubAccountSnapshotService) Do(ctx context.Context, opts ...RequestOption) (res *QueryManagedSubAccountSnapshotResp, err error)
- func (s *QueryManagedSubAccountSnapshotService) Email(email string) *QueryManagedSubAccountSnapshotService
- func (s *QueryManagedSubAccountSnapshotService) EndTime(endTime uint64) *QueryManagedSubAccountSnapshotService
- func (s *QueryManagedSubAccountSnapshotService) Limit(limit int) *QueryManagedSubAccountSnapshotService
- func (s *QueryManagedSubAccountSnapshotService) StartTime(startTime uint64) *QueryManagedSubAccountSnapshotService
- func (s *QueryManagedSubAccountSnapshotService) SubType(subType string) *QueryManagedSubAccountSnapshotService
- type QueryManagedSubAccountTransferLogForTradingTeamResp
- type QueryManagedSubAccountTransferLogForTradingTeamService
- func (s *QueryManagedSubAccountTransferLogForTradingTeamService) Do(ctx context.Context, opts ...RequestOption) (res *QueryManagedSubAccountTransferLogForTradingTeamResp, err error)
- func (s *QueryManagedSubAccountTransferLogForTradingTeamService) Email(email string) *QueryManagedSubAccountTransferLogForTradingTeamService
- func (s *QueryManagedSubAccountTransferLogForTradingTeamService) EndTime(endTime uint64) *QueryManagedSubAccountTransferLogForTradingTeamService
- func (s *QueryManagedSubAccountTransferLogForTradingTeamService) Limit(limit int) *QueryManagedSubAccountTransferLogForTradingTeamService
- func (s *QueryManagedSubAccountTransferLogForTradingTeamService) Page(page int) *QueryManagedSubAccountTransferLogForTradingTeamService
- func (s *QueryManagedSubAccountTransferLogForTradingTeamService) StartTime(startTime uint64) *QueryManagedSubAccountTransferLogForTradingTeamService
- func (s *QueryManagedSubAccountTransferLogForTradingTeamService) TransferFunctionAccountType(transferFunctionAccountType string) *QueryManagedSubAccountTransferLogForTradingTeamService
- func (s *QueryManagedSubAccountTransferLogForTradingTeamService) Transfers(transfers string) *QueryManagedSubAccountTransferLogForTradingTeamService
- type QueryManagedSubAccountTransferLogResp
- type QueryManagedSubAccountTransferLogService
- func (s *QueryManagedSubAccountTransferLogService) Do(ctx context.Context, opts ...RequestOption) (res *QueryManagedSubAccountTransferLogResp, err error)
- func (s *QueryManagedSubAccountTransferLogService) Email(email string) *QueryManagedSubAccountTransferLogService
- func (s *QueryManagedSubAccountTransferLogService) EndTime(endTime uint64) *QueryManagedSubAccountTransferLogService
- func (s *QueryManagedSubAccountTransferLogService) Limit(limit int) *QueryManagedSubAccountTransferLogService
- func (s *QueryManagedSubAccountTransferLogService) Page(page int) *QueryManagedSubAccountTransferLogService
- func (s *QueryManagedSubAccountTransferLogService) StartTime(startTime uint64) *QueryManagedSubAccountTransferLogService
- func (s *QueryManagedSubAccountTransferLogService) TransferFunctionAccountType(transferFunctionAccountType string) *QueryManagedSubAccountTransferLogService
- func (s *QueryManagedSubAccountTransferLogService) Transfers(transfers string) *QueryManagedSubAccountTransferLogService
- type QueryMarginPriceIndexResponse
- type QueryMarginPriceIndexService
- type QueryOCOService
- type QueryOpenOCOService
- type QueryPreventedMatchesResponse
- type QuerySubAccountAssetsForMasterAccountResp
- type QuerySubAccountAssetsForMasterAccountService
- type QuerySubAccountAssetsResp
- type QuerySubAccountAssetsService
- type QuerySubAccountFuturesAssetTransferHistoryResp
- type QuerySubAccountFuturesAssetTransferHistoryService
- func (s *QuerySubAccountFuturesAssetTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *QuerySubAccountFuturesAssetTransferHistoryResp, err error)
- func (s *QuerySubAccountFuturesAssetTransferHistoryService) Email(email string) *QuerySubAccountFuturesAssetTransferHistoryService
- func (s *QuerySubAccountFuturesAssetTransferHistoryService) EndTime(endTime uint64) *QuerySubAccountFuturesAssetTransferHistoryService
- func (s *QuerySubAccountFuturesAssetTransferHistoryService) FuturesType(futuresType int) *QuerySubAccountFuturesAssetTransferHistoryService
- func (s *QuerySubAccountFuturesAssetTransferHistoryService) Limit(limit int) *QuerySubAccountFuturesAssetTransferHistoryService
- func (s *QuerySubAccountFuturesAssetTransferHistoryService) Page(page int) *QuerySubAccountFuturesAssetTransferHistoryService
- func (s *QuerySubAccountFuturesAssetTransferHistoryService) StartTime(startTime uint64) *QuerySubAccountFuturesAssetTransferHistoryService
- type QuerySubAccountListService
- func (s *QuerySubAccountListService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountListResp, err error)
- func (s *QuerySubAccountListService) Email(email string) *QuerySubAccountListService
- func (s *QuerySubAccountListService) IsFreeze(isFreeze string) *QuerySubAccountListService
- func (s *QuerySubAccountListService) Limit(limit int) *QuerySubAccountListService
- func (s *QuerySubAccountListService) Page(page int) *QuerySubAccountListService
- type QuerySubAccountSpotAssetTransferHistoryResp
- type QuerySubAccountSpotAssetTransferHistoryService
- func (s *QuerySubAccountSpotAssetTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *QuerySubAccountSpotAssetTransferHistoryResp, err error)
- func (s *QuerySubAccountSpotAssetTransferHistoryService) EndTime(endTime uint64) *QuerySubAccountSpotAssetTransferHistoryService
- func (s *QuerySubAccountSpotAssetTransferHistoryService) FromEmail(fromEmail string) *QuerySubAccountSpotAssetTransferHistoryService
- func (s *QuerySubAccountSpotAssetTransferHistoryService) Limit(limit int) *QuerySubAccountSpotAssetTransferHistoryService
- func (s *QuerySubAccountSpotAssetTransferHistoryService) Page(page int) *QuerySubAccountSpotAssetTransferHistoryService
- func (s *QuerySubAccountSpotAssetTransferHistoryService) StartTime(startTime uint64) *QuerySubAccountSpotAssetTransferHistoryService
- func (s *QuerySubAccountSpotAssetTransferHistoryService) ToEmail(toEmail string) *QuerySubAccountSpotAssetTransferHistoryService
- type QuerySubAccountSpotAssetsSummaryResp
- type QuerySubAccountSpotAssetsSummaryService
- func (s *QuerySubAccountSpotAssetsSummaryService) Do(ctx context.Context, opts ...RequestOption) (res *QuerySubAccountSpotAssetsSummaryResp, err error)
- func (s *QuerySubAccountSpotAssetsSummaryService) Email(email string) *QuerySubAccountSpotAssetsSummaryService
- func (s *QuerySubAccountSpotAssetsSummaryService) Page(page int) *QuerySubAccountSpotAssetsSummaryService
- func (s *QuerySubAccountSpotAssetsSummaryService) Size(size int) *QuerySubAccountSpotAssetsSummaryService
- type QuerySubAccountTransactionTatistics
- type QuerySubAccountTransactionTatisticsResp
- type QueryUniversalTransferHistoryResp
- type QueryUniversalTransferHistoryService
- func (s *QueryUniversalTransferHistoryService) ClientTranId(clientTranId string) *QueryUniversalTransferHistoryService
- func (s *QueryUniversalTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res QueryUniversalTransferHistoryResp, err error)
- func (s *QueryUniversalTransferHistoryService) EndTime(endTime uint64) *QueryUniversalTransferHistoryService
- func (s *QueryUniversalTransferHistoryService) FromEmail(fromEmail string) *QueryUniversalTransferHistoryService
- func (s *QueryUniversalTransferHistoryService) Limit(limit int) *QueryUniversalTransferHistoryService
- func (s *QueryUniversalTransferHistoryService) Page(page int) *QueryUniversalTransferHistoryService
- func (s *QueryUniversalTransferHistoryService) StartTime(startTime uint64) *QueryUniversalTransferHistoryService
- func (s *QueryUniversalTransferHistoryService) ToEmail(toEmail string) *QueryUniversalTransferHistoryService
- type RateLimit
- type RecentTradeResult
- type RecentTradesList
- type RecentTradesListResponse
- type RecentTradesResponse
- type RecentTradesService
- type RequestOption
- type ServerTime
- type ServerTimeResponse
- type StartUserDataStreamResponse
- type StartUserDataStreamService
- type StopUserDataStreamResponse
- type StopUserDataStreamService
- type SubAccount
- type SubAccountFuturesAssetTransferResp
- type SubAccountFuturesAssetTransferService
- func (s *SubAccountFuturesAssetTransferService) Amount(amount float32) *SubAccountFuturesAssetTransferService
- func (s *SubAccountFuturesAssetTransferService) Asset(asset string) *SubAccountFuturesAssetTransferService
- func (s *SubAccountFuturesAssetTransferService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesAssetTransferResp, err error)
- func (s *SubAccountFuturesAssetTransferService) FromEmail(fromEmail string) *SubAccountFuturesAssetTransferService
- func (s *SubAccountFuturesAssetTransferService) FuturesType(futuresType int64) *SubAccountFuturesAssetTransferService
- func (s *SubAccountFuturesAssetTransferService) ToEmail(toEmail string) *SubAccountFuturesAssetTransferService
- type SubAccountListResp
- type SubAccountTransferHistoryResp
- type SubAccountTransferHistoryService
- func (s *SubAccountTransferHistoryService) Asset(asset string) *SubAccountTransferHistoryService
- func (s *SubAccountTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountTransferHistoryResp, err error)
- func (s *SubAccountTransferHistoryService) EndTime(endTime uint64) *SubAccountTransferHistoryService
- func (s *SubAccountTransferHistoryService) Limit(limit int) *SubAccountTransferHistoryService
- func (s *SubAccountTransferHistoryService) StartTime(startTime uint64) *SubAccountTransferHistoryService
- func (s *SubAccountTransferHistoryService) TransferType(transferType int) *SubAccountTransferHistoryService
- type SymbolFilter
- type SymbolInfo
- type SystemStatusResponse
- type TestConnectivityResponse
- type TestConnectivityService
- type TestNewOrder
- func (s *TestNewOrder) Do(ctx context.Context, opts ...RequestOption) (res *AccountOrderBookResponse, err error)
- func (s *TestNewOrder) IcebergQty(icebergQty float64) *TestNewOrder
- func (s *TestNewOrder) NewClientOrderId(newClientOrderId string) *TestNewOrder
- func (s *TestNewOrder) NewOrderRespType(newOrderRespType string) *TestNewOrder
- func (s *TestNewOrder) OrderType(orderType string) *TestNewOrder
- func (s *TestNewOrder) Price(price float64) *TestNewOrder
- func (s *TestNewOrder) Quantity(quantity float64) *TestNewOrder
- func (s *TestNewOrder) QuoteOrderQty(quoteOrderQty float64) *TestNewOrder
- func (s *TestNewOrder) SelfTradePrevention(selfTradePrevention string) *TestNewOrder
- func (s *TestNewOrder) Side(side string) *TestNewOrder
- func (s *TestNewOrder) StopPrice(stopPrice float64) *TestNewOrder
- func (s *TestNewOrder) StrategyId(strategyId int) *TestNewOrder
- func (s *TestNewOrder) StrategyType(strategyType int) *TestNewOrder
- func (s *TestNewOrder) Symbol(symbol string) *TestNewOrder
- func (s *TestNewOrder) TimeInForce(timeInForce string) *TestNewOrder
- func (s *TestNewOrder) TrailingDelta(trailingDelta int) *TestNewOrder
- type TestOrderPlacementService
- func (s *TestOrderPlacementService) Do(ctx context.Context) (*OrderPlacementResponse, error)
- func (s *TestOrderPlacementService) IcebergQty(icebergQty float64) *TestOrderPlacementService
- func (s *TestOrderPlacementService) NewClientOrderId(newClientOrderId string) *TestOrderPlacementService
- func (s *TestOrderPlacementService) NewOrderRespType(newOrderRespType string) *TestOrderPlacementService
- func (s *TestOrderPlacementService) OrderType(orderType string) *TestOrderPlacementService
- func (s *TestOrderPlacementService) Price(price float64) *TestOrderPlacementService
- func (s *TestOrderPlacementService) Quantity(quantity float64) *TestOrderPlacementService
- func (s *TestOrderPlacementService) QuoteOrderQty(quoteOrderQty float64) *TestOrderPlacementService
- func (s *TestOrderPlacementService) RecvWindow(recvWindow int64) *TestOrderPlacementService
- func (s *TestOrderPlacementService) SelfTradePreventionMode(selfTradePreventionMode string) *TestOrderPlacementService
- func (s *TestOrderPlacementService) Side(side string) *TestOrderPlacementService
- func (s *TestOrderPlacementService) StopPrice(stopPrice float64) *TestOrderPlacementService
- func (s *TestOrderPlacementService) StrategyId(strategyId int) *TestOrderPlacementService
- func (s *TestOrderPlacementService) StrategyType(strategyType int) *TestOrderPlacementService
- func (s *TestOrderPlacementService) Symbol(symbol string) *TestOrderPlacementService
- func (s *TestOrderPlacementService) TimeInForce(timeInForce string) *TestOrderPlacementService
- func (s *TestOrderPlacementService) TrailingDelta(trailingDelta int64) *TestOrderPlacementService
- type Ticker
- type Ticker24hr
- type Ticker24hrData
- type Ticker24hrResponse
- type Ticker24hrService
- type TickerBookService
- type TickerBookTicker
- type TickerBookTickerResponse
- type TickerData
- type TickerPrice
- type TickerPriceResponse
- type TickerPriceService
- type TickerResponse
- type TickerService
- type TimeInForceType
- type TradeFeeResponse
- type TradeFeeService
- type TradeHistoryItem
- type TransferToMasterResp
- type TransferToMasterService
- type TransferToSubAccountOfSameMasterResp
- type TransferToSubAccountOfSameMasterService
- func (s *TransferToSubAccountOfSameMasterService) Amount(amount float64) *TransferToSubAccountOfSameMasterService
- func (s *TransferToSubAccountOfSameMasterService) Asset(asset string) *TransferToSubAccountOfSameMasterService
- func (s *TransferToSubAccountOfSameMasterService) Do(ctx context.Context, opts ...RequestOption) (res *TransferToSubAccountOfSameMasterResp, err error)
- func (s *TransferToSubAccountOfSameMasterService) ToEmail(toEmail string) *TransferToSubAccountOfSameMasterService
- type UIKlinesResponse
- type UIKlinesService
- func (s *UIKlinesService) Do(ctx context.Context) (*UIKlinesResponse, error)
- func (s *UIKlinesService) EndTime(endTime int64) *UIKlinesService
- func (s *UIKlinesService) Interval(interval string) *UIKlinesService
- func (s *UIKlinesService) Limit(limit int) *UIKlinesService
- func (s *UIKlinesService) StartTime(startTime int64) *UIKlinesService
- func (s *UIKlinesService) Symbol(symbol string) *UIKlinesService
- type UiKlines
- func (s *UiKlines) Do(ctx context.Context, opts ...RequestOption) (res []*UiKlinesResponse, err error)
- func (s *UiKlines) EndTime(endTime uint64) *UiKlines
- func (s *UiKlines) Interval(interval string) *UiKlines
- func (s *UiKlines) Limit(limit int) *UiKlines
- func (s *UiKlines) StartTime(startTime uint64) *UiKlines
- func (s *UiKlines) Symbol(symbol string) *UiKlines
- type UiKlinesResponse
- type UiKlinesResponseArray
- type UniversalTransferResp
- type UniversalTransferService
- func (s *UniversalTransferService) Amount(amount float64) *UniversalTransferService
- func (s *UniversalTransferService) Asset(asset string) *UniversalTransferService
- func (s *UniversalTransferService) ClientTranId(clientTranId string) *UniversalTransferService
- func (s *UniversalTransferService) Do(ctx context.Context, opts ...RequestOption) (res *UniversalTransferResp, err error)
- func (s *UniversalTransferService) FromAccountType(fromAccountType string) *UniversalTransferService
- func (s *UniversalTransferService) FromEmail(fromEmail string) *UniversalTransferService
- func (s *UniversalTransferService) Symbol(symbol string) *UniversalTransferService
- func (s *UniversalTransferService) ToAccountType(toAccountType string) *UniversalTransferService
- func (s *UniversalTransferService) ToEmail(toEmail string) *UniversalTransferService
- type UpdateIPRestrictionForSubAccountAPIKeyResp
- type UpdateIPRestrictionForSubAccountAPIKeyService
- func (s *UpdateIPRestrictionForSubAccountAPIKeyService) Do(ctx context.Context, opts ...RequestOption) (res *UpdateIPRestrictionForSubAccountAPIKeyResp, err error)
- func (s *UpdateIPRestrictionForSubAccountAPIKeyService) Email(email string) *UpdateIPRestrictionForSubAccountAPIKeyService
- func (s *UpdateIPRestrictionForSubAccountAPIKeyService) IpAddress(ipAddress string) *UpdateIPRestrictionForSubAccountAPIKeyService
- func (s *UpdateIPRestrictionForSubAccountAPIKeyService) Status(status string) *UpdateIPRestrictionForSubAccountAPIKeyService
- func (s *UpdateIPRestrictionForSubAccountAPIKeyService) SubAccountApiKey(subAccountApiKey string) *UpdateIPRestrictionForSubAccountAPIKeyService
- type UserAssetDribblet
- type UserAssetDribbletDetail
- type UserAssetResponse
- type UserAssetService
- type UserDataEventType
- type UserUniversalTransferHistoryResponse
- type UserUniversalTransferHistoryService
- func (s *UserUniversalTransferHistoryService) Current(current int) *UserUniversalTransferHistoryService
- func (s *UserUniversalTransferHistoryService) Do(ctx context.Context) (res *UserUniversalTransferHistoryResponse, err error)
- func (s *UserUniversalTransferHistoryService) EndTime(endTime uint64) *UserUniversalTransferHistoryService
- func (s *UserUniversalTransferHistoryService) FromSymbol(fromSymbol string) *UserUniversalTransferHistoryService
- func (s *UserUniversalTransferHistoryService) Size(size int) *UserUniversalTransferHistoryService
- func (s *UserUniversalTransferHistoryService) StartTime(startTime uint64) *UserUniversalTransferHistoryService
- func (s *UserUniversalTransferHistoryService) ToSymbol(toSymbol string) *UserUniversalTransferHistoryService
- func (s *UserUniversalTransferHistoryService) TransferType(transferType string) *UserUniversalTransferHistoryService
- type UserUniversalTransferResponse
- type UserUniversalTransferService
- func (s *UserUniversalTransferService) Amount(amount float64) *UserUniversalTransferService
- func (s *UserUniversalTransferService) Asset(asset string) *UserUniversalTransferService
- func (s *UserUniversalTransferService) Do(ctx context.Context) (res *UserUniversalTransferResponse, err error)
- func (s *UserUniversalTransferService) FromSymbol(fromSymbol string) *UserUniversalTransferService
- func (s *UserUniversalTransferService) ToSymbol(toSymbol string) *UserUniversalTransferService
- func (s *UserUniversalTransferService) TransferType(transferType string) *UserUniversalTransferService
- type WebsocketAPIClient
- func (c *WebsocketAPIClient) Close() error
- func (c *WebsocketAPIClient) Connect() error
- func (c *WebsocketAPIClient) Handler(message []byte)
- func (w *WebsocketAPIClient) NewAccountInformationService() *AccountInformationService
- func (w *WebsocketAPIClient) NewAccountOCOHistoryService() *AccountOCOHistoryService
- func (w *WebsocketAPIClient) NewAccountOrderHistoryService() *AccountOrderHistoryService
- func (w *WebsocketAPIClient) NewAccountOrderRateLimitsService() *AccountOrderRateLimitsService
- func (w *WebsocketAPIClient) NewAccountPreventedMatchesService() *AccountPreventedMatchesService
- func (w *WebsocketAPIClient) NewAccountTradeHistoryService() *AccountTradeHistoryService
- func (w *WebsocketAPIClient) NewAggTradesService() *AggregateTradesService
- func (w *WebsocketAPIClient) NewAvgPriceService() *AvgPriceService
- func (w *WebsocketAPIClient) NewCancelOCOService() *OrderListCancelService
- func (w *WebsocketAPIClient) NewCancelOpenOrdersService() *OpenOrdersCancelAllService
- func (w *WebsocketAPIClient) NewCancelOrderService() *OrderCancelService
- func (w *WebsocketAPIClient) NewCancelReplaceOrderService() *OrderCancelReplaceService
- func (w *WebsocketAPIClient) NewCheckServerTimeService() *CheckServerTimeService
- func (w *WebsocketAPIClient) NewCurrentOpenOCOService() *OpenOrderListsStatusService
- func (w *WebsocketAPIClient) NewCurrentOpenOrdersService() *OpenOrdersStatusService
- func (w *WebsocketAPIClient) NewDepthService() *DepthService
- func (w *WebsocketAPIClient) NewExchangeInformationService() *ExchangeInformationService
- func (w *WebsocketAPIClient) NewHistoricalTradesService() *HistoricalTradesService
- func (w *WebsocketAPIClient) NewKlinesService() *KlinesService
- func (w *WebsocketAPIClient) NewPingUserDataStreamService() *PingUserDataStreamService
- func (w *WebsocketAPIClient) NewPlaceNewOrderService() *OrderPlacementService
- func (w *WebsocketAPIClient) NewPlaceOCOService() *OrderListPlaceService
- func (w *WebsocketAPIClient) NewQueryOCOService() *OrderListStatusService
- func (w *WebsocketAPIClient) NewQueryOrderService() *OrderStatusService
- func (w *WebsocketAPIClient) NewRecentTradesService() *RecentTradesService
- func (w *WebsocketAPIClient) NewStartUserDataStreamService() *StartUserDataStreamService
- func (w *WebsocketAPIClient) NewStopUserDataStreamService() *StopUserDataStreamService
- func (w *WebsocketAPIClient) NewTestConnectivityService() *TestConnectivityService
- func (w *WebsocketAPIClient) NewTestPlaceOrderService() *TestOrderPlacementService
- func (w *WebsocketAPIClient) NewTicker24hrService() *Ticker24hrService
- func (w *WebsocketAPIClient) NewTickerBookService() *TickerBookService
- func (w *WebsocketAPIClient) NewTickerPriceService() *TickerPriceService
- func (w *WebsocketAPIClient) NewTickerService() *TickerService
- func (w *WebsocketAPIClient) NewUiKlinesService() *UIKlinesService
- func (c *WebsocketAPIClient) RequestHandler(req interface{}, handler WsHandler, errHandler ErrHandler) (stopCh chan struct{}, err error)
- func (c *WebsocketAPIClient) SendMessage(msg interface{}) error
- func (c *WebsocketAPIClient) WaitForCloseSignal()
- type WebsocketClientError
- type WebsocketStreamClient
- func (c *WebsocketStreamClient) WsAggTradeServe(symbol string, handler WsAggTradeHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsAllMarketMiniTickersStatServe(handler WsAllMarketMiniTickersStatServeHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsAllMarketRollingWindowTickersStatServe(window string, handler WsAllMarketRollingWindowTickersStatHandler, ...) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsAllMarketTickersStatServe(handler WsAllMarketTickersStatHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsBookTickerServe(symbol string, handler WsBookTickerHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsCombinedAggTradeServe(symbols []string, handler WsAggTradeHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsCombinedBookTickerServe(symbols []string, handler WsBookTickerHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsCombinedDepthServe(symbols []string, handler WsDepthHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsCombinedDepthServe100Ms(symbols []string, handler WsDepthHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsCombinedKlineServe(symbolIntervalPair map[string]string, handler WsKlineHandler, ...) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsCombinedMarketTickersStatServe(symbols []string, handler WsMarketTickersStatHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsCombinedPartialDepthServe(symbolLevels map[string]string, handler WsPartialDepthHandler, ...) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsCombinedTradeServe(symbols []string, handler WsCombinedTradeHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsDepthServe(symbol string, handler WsDepthHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsDepthServe100Ms(symbol string, handler WsDepthHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsKlineServe(symbol string, interval string, handler WsKlineHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsMarketTickersStatServe(symbol string, handler WsMarketTickersStatHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsPartialDepthServe(symbol string, levels string, handler WsPartialDepthHandler, ...) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsPartialDepthServe100Ms(symbol string, levels string, handler WsPartialDepthHandler, ...) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsTradeServe(symbol string, handler WsTradeHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- func (c *WebsocketStreamClient) WsUserDataServe(listenKey string, handler WsUserDataHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
- type WithdrawAssetsFromTheManagedSubAccountResp
- type WithdrawAssetsFromTheManagedSubAccountService
- func (s *WithdrawAssetsFromTheManagedSubAccountService) Amount(amount float32) *WithdrawAssetsFromTheManagedSubAccountService
- func (s *WithdrawAssetsFromTheManagedSubAccountService) Asset(asset string) *WithdrawAssetsFromTheManagedSubAccountService
- func (s *WithdrawAssetsFromTheManagedSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *WithdrawAssetsFromTheManagedSubAccountResp, err error)
- func (s *WithdrawAssetsFromTheManagedSubAccountService) FromEmail(fromEmail string) *WithdrawAssetsFromTheManagedSubAccountService
- func (s *WithdrawAssetsFromTheManagedSubAccountService) TransferDate(transferDate int64) *WithdrawAssetsFromTheManagedSubAccountService
- type WithdrawHistoryResponse
- type WithdrawHistoryService
- func (s *WithdrawHistoryService) Coin(coin string) *WithdrawHistoryService
- func (s *WithdrawHistoryService) Do(ctx context.Context) (res []*WithdrawHistoryResponse, err error)
- func (s *WithdrawHistoryService) EndTime(endTime uint64) *WithdrawHistoryService
- func (s *WithdrawHistoryService) Limit(limit int) *WithdrawHistoryService
- func (s *WithdrawHistoryService) Offset(offset int) *WithdrawHistoryService
- func (s *WithdrawHistoryService) StartTime(startTime uint64) *WithdrawHistoryService
- func (s *WithdrawHistoryService) Status(status int) *WithdrawHistoryService
- func (s *WithdrawHistoryService) WithdrawOrderId(withdrawOrderId string) *WithdrawHistoryService
- type WithdrawResponse
- type WithdrawService
- func (s *WithdrawService) Address(address string) *WithdrawService
- func (s *WithdrawService) AddressTag(addressTag string) *WithdrawService
- func (s *WithdrawService) Amount(amount float64) *WithdrawService
- func (s *WithdrawService) Coin(coin string) *WithdrawService
- func (s *WithdrawService) Do(ctx context.Context) (res *WithdrawResponse, err error)
- func (s *WithdrawService) Name(name string) *WithdrawService
- func (s *WithdrawService) Network(network string) *WithdrawService
- func (s *WithdrawService) TransactionFeeFlag(transactionFeeFlag bool) *WithdrawService
- func (s *WithdrawService) WalletType(walletType int) *WithdrawService
- func (s *WithdrawService) WithdrawOrderId(withdrawOrderId string) *WithdrawService
- type WsAPIAvgPriceResponse
- type WsAPIBookTickerResponse
- type WsAPIErrorResponse
- type WsAPIKlinesResponse
- type WsAPIPriceTickerResponse
- type WsAPIRateLimit
- type WsAPITicker24hrResponse
- type WsAPITickerResponse
- type WsAccountUpdate
- type WsAccountUpdateList
- type WsAggTradeEvent
- type WsAggTradeHandler
- type WsAllMarketMiniTickersStatEvent
- type WsAllMarketMiniTickersStatServeHandler
- type WsAllMarketRollingWindowTickersStatEvent
- type WsAllMarketRollingWindowTickersStatHandler
- type WsAllMarketTickersStatEvent
- type WsAllMarketTickersStatHandler
- type WsBalance
- type WsBalanceUpdate
- type WsBookTickerEvent
- type WsBookTickerHandler
- type WsCombinedBookTickerEvent
- type WsCombinedTradeEvent
- type WsCombinedTradeHandler
- type WsCommissionRates
- type WsConfig
- type WsDepthEvent
- type WsDepthHandler
- type WsHandler
- type WsKline
- type WsKlineEvent
- type WsKlineHandler
- type WsMarketMiniStatEvent
- type WsMarketRollingWindowTickerStatEvent
- type WsMarketTickerStatEvent
- type WsMarketTickersStatHandler
- type WsOCOOrder
- type WsOCOOrderList
- type WsOCOUpdate
- type WsOrderUpdate
- type WsPartialDepthEvent
- type WsPartialDepthHandler
- type WsTradeEvent
- type WsTradeHandler
- type WsUserDataEvent
- type WsUserDataHandler
Constants ¶
const ( ACK = 1 RESULT = 2 FULL = 3 )
const Name = "binance-connector-go"
const (
QuerySubAccountTransactionTatisticsEndpoint = "/sapi/v1/sub-account/transaction-tatistics"
)
Query Sub-account Transaction Tatistics (For Master Account) (USER_DATA)
const Version = "0.6.0"
Variables ¶
var ( // WebsocketAPITimeout is an interval for sending ping/pong messages if WebsocketKeepalive is enabled WebsocketAPITimeout = time.Second * 60 // WebsocketAPIKeepalive enables sending ping/pong messages to check the connection stability WebsocketAPIKeepalive = true )
var ( // WebsocketTimeout is an interval for sending ping/pong messages if WebsocketKeepalive is enabled WebsocketTimeout = time.Second * 60 // WebsocketKeepalive enables sending ping/pong messages to check the connection stability WebsocketKeepalive = false )
Functions ¶
func FormatTimestamp ¶
FormatTimestamp formats a time into Unix timestamp in milliseconds, as requested by Binance.
func PrettyPrint ¶
func PrettyPrint(i interface{}) string
Types ¶
type APIKeyPermissionResponse ¶
type APIKeyPermissionResponse struct { IPRestrict bool `json:"ipRestrict"` CreateTime uint64 `json:"createTime"` EnableWithdrawals bool `json:"enableWithdrawals"` EnableInternalTransfer bool `json:"enableInternalTransfer"` PermitsUniversalTransfer bool `json:"permitsUniversalTransfer"` EnableVanillaOptions bool `json:"enableVanillaOptions"` EnableReading bool `json:"enableReading"` EnableFutures bool `json:"enableFutures"` EnableMargin bool `json:"enableMargin"` EnableSpotAndMarginTrading bool `json:"enableSpotAndMarginTrading"` TradingAuthorityExpirationTime uint64 `json:"tradingAuthorityExpirationTime"` }
APIKeyPermissionResponse define response of APIKeyPermissionService
type APIKeyPermissionService ¶
type APIKeyPermissionService struct {
// contains filtered or unexported fields
}
APIKeyPermissionService get api key permission
func (*APIKeyPermissionService) Do ¶
func (s *APIKeyPermissionService) Do(ctx context.Context) (res *APIKeyPermissionResponse, err error)
type AccountApiTradingStatusResponse ¶
type AccountApiTradingStatusResponse struct { Data struct { IsLocked bool `json:"isLocked"` PlannedRecoverTime int64 `json:"plannedRecoverTime"` TriggerCondition struct { GCR int `json:"GCR"` IFER int `json:"IFER"` UFR int `json:"UFR"` } `json:"triggerCondition"` UpdateTime uint64 `json:"updateTime"` } `json:"data"` }
AccountApiTradingStatusResponse define response of AccountApiTradingStatusService
type AccountApiTradingStatusService ¶
type AccountApiTradingStatusService struct {
// contains filtered or unexported fields
}
AccountApiTradingStatusService account api trading status
func (*AccountApiTradingStatusService) Do ¶
func (s *AccountApiTradingStatusService) Do(ctx context.Context) (res *AccountApiTradingStatusResponse, err error)
type AccountInformation ¶
type AccountInformation struct { MakerCommission int `json:"makerCommission"` TakerCommission int `json:"takerCommission"` BuyerCommission int `json:"buyerCommission"` SellerCommission int `json:"sellerCommission"` CanTrade bool `json:"canTrade"` CanWithdraw bool `json:"canWithdraw"` CanDeposit bool `json:"canDeposit"` CommissionRates WsCommissionRates `json:"commissionRates"` Brokered bool `json:"brokered"` RequireSelfTradePrevention bool `json:"requireSelfTradePrevention"` UpdateTime int64 `json:"updateTime"` AccountType string `json:"accountType"` Balances []WsBalance `json:"balances"` Permissions []string `json:"permissions"` }
type AccountInformationResponse ¶
type AccountInformationResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result AccountInformation `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type AccountInformationService ¶
type AccountInformationService struct {
// contains filtered or unexported fields
}
func (*AccountInformationService) Do ¶
func (s *AccountInformationService) Do(ctx context.Context) (*AccountInformationResponse, error)
func (*AccountInformationService) RecvWindow ¶
func (s *AccountInformationService) RecvWindow(recvWindow int64) *AccountInformationService
type AccountOCOHistoryResponse ¶
type AccountOCOHistoryResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result []*OCOOrder `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type AccountOCOHistoryService ¶
type AccountOCOHistoryService struct {
// contains filtered or unexported fields
}
func (*AccountOCOHistoryService) Do ¶
func (s *AccountOCOHistoryService) Do(ctx context.Context) (*AccountOCOHistoryResponse, error)
func (*AccountOCOHistoryService) EndTime ¶
func (s *AccountOCOHistoryService) EndTime(endTime uint64) *AccountOCOHistoryService
func (*AccountOCOHistoryService) FromID ¶
func (s *AccountOCOHistoryService) FromID(fromID int64) *AccountOCOHistoryService
func (*AccountOCOHistoryService) Limit ¶
func (s *AccountOCOHistoryService) Limit(limit int) *AccountOCOHistoryService
func (*AccountOCOHistoryService) RecvWindow ¶
func (s *AccountOCOHistoryService) RecvWindow(recvWindow int64) *AccountOCOHistoryService
func (*AccountOCOHistoryService) StartTime ¶
func (s *AccountOCOHistoryService) StartTime(startTime uint64) *AccountOCOHistoryService
type AccountOrderBookResponse ¶
type AccountOrderBookResponse struct { }
Create AccountOrderBookResponse
type AccountOrderHistoryResponse ¶
type AccountOrderHistoryResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result []*OrderHistoryItem `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type AccountOrderHistoryService ¶
type AccountOrderHistoryService struct {
// contains filtered or unexported fields
}
func (*AccountOrderHistoryService) Do ¶
func (s *AccountOrderHistoryService) Do(ctx context.Context) (*AccountOrderHistoryResponse, error)
func (*AccountOrderHistoryService) EndTime ¶
func (s *AccountOrderHistoryService) EndTime(endTime uint64) *AccountOrderHistoryService
func (*AccountOrderHistoryService) Limit ¶
func (s *AccountOrderHistoryService) Limit(limit int) *AccountOrderHistoryService
func (*AccountOrderHistoryService) OrderId ¶
func (s *AccountOrderHistoryService) OrderId(orderId string) *AccountOrderHistoryService
func (*AccountOrderHistoryService) RecvWindow ¶
func (s *AccountOrderHistoryService) RecvWindow(recvWindow int64) *AccountOrderHistoryService
func (*AccountOrderHistoryService) StartTime ¶
func (s *AccountOrderHistoryService) StartTime(startTime uint64) *AccountOrderHistoryService
func (*AccountOrderHistoryService) Symbol ¶
func (s *AccountOrderHistoryService) Symbol(symbol string) *AccountOrderHistoryService
type AccountOrderRateLimit ¶
type AccountOrderRateLimitsResponse ¶
type AccountOrderRateLimitsResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result []*AccountOrderRateLimit `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type AccountOrderRateLimitsService ¶
type AccountOrderRateLimitsService struct {
// contains filtered or unexported fields
}
func (*AccountOrderRateLimitsService) Do ¶
func (s *AccountOrderRateLimitsService) Do(ctx context.Context) (*AccountOrderRateLimitsResponse, error)
func (*AccountOrderRateLimitsService) RecvWindow ¶
func (s *AccountOrderRateLimitsService) RecvWindow(recvWindow int64) *AccountOrderRateLimitsService
type AccountPreventedMatchesResponse ¶
type AccountPreventedMatchesResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result []*PreventedMatch `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type AccountPreventedMatchesService ¶
type AccountPreventedMatchesService struct {
// contains filtered or unexported fields
}
func (*AccountPreventedMatchesService) Do ¶
func (s *AccountPreventedMatchesService) Do(ctx context.Context) (*AccountPreventedMatchesResponse, error)
func (*AccountPreventedMatchesService) RecvWindow ¶
func (s *AccountPreventedMatchesService) RecvWindow(recvWindow int64) *AccountPreventedMatchesService
type AccountResponse ¶
type AccountResponse struct { MakerCommission int64 `json:"makerCommission"` TakerCommission int64 `json:"takerCommission"` BuyerCommission int64 `json:"buyerCommission"` SellerCommission int64 `json:"sellerCommission"` CanTrade bool `json:"canTrade"` CanWithdraw bool `json:"canWithdraw"` CanDeposit bool `json:"canDeposit"` UpdateTime uint64 `json:"updateTime"` AccountType string `json:"accountType"` Balances []Balance `json:"balances"` Permissions []string `json:"permissions"` }
Create AccountResponse
type AccountSnapshotResponse ¶
type AccountSnapshotResponse struct { Code int `json:"code"` Msg string `json:"msg"` SnapshotVos []struct { Data struct { Balances []struct { Asset string `json:"asset"` Free string `json:"free"` Locked string `json:"locked"` } `json:"balances"` TotalAssetOfBtc string `json:"totalAssetOfBtc"` } `json:"data"` Type string `json:"type"` UpdateTime uint64 `json:"updateTime"` } `json:"snapshotVos"` }
AccountSnapshotResponse define response of GetAccountSnapshotService
type AccountStatusResponse ¶
type AccountStatusResponse struct {
Data string `json:"data"`
}
AccountStatusResponse define response of AccountStatusService
type AccountStatusService ¶
type AccountStatusService struct {
// contains filtered or unexported fields
}
AccountStatusService account status
func (*AccountStatusService) Do ¶
func (s *AccountStatusService) Do(ctx context.Context) (res *AccountStatusResponse, err error)
type AccountTradeHistoryResponse ¶
type AccountTradeHistoryResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result []*TradeHistoryItem `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type AccountTradeHistoryService ¶
type AccountTradeHistoryService struct {
// contains filtered or unexported fields
}
func (*AccountTradeHistoryService) Do ¶
func (s *AccountTradeHistoryService) Do(ctx context.Context) (*AccountTradeHistoryResponse, error)
func (*AccountTradeHistoryService) EndTime ¶
func (s *AccountTradeHistoryService) EndTime(endTime int64) *AccountTradeHistoryService
func (*AccountTradeHistoryService) FromID ¶
func (s *AccountTradeHistoryService) FromID(fromID int64) *AccountTradeHistoryService
func (*AccountTradeHistoryService) Limit ¶
func (s *AccountTradeHistoryService) Limit(limit int) *AccountTradeHistoryService
func (*AccountTradeHistoryService) RecvWindow ¶
func (s *AccountTradeHistoryService) RecvWindow(recvWindow int64) *AccountTradeHistoryService
func (*AccountTradeHistoryService) StartTime ¶
func (s *AccountTradeHistoryService) StartTime(startTime int64) *AccountTradeHistoryService
func (*AccountTradeHistoryService) Symbol ¶
func (s *AccountTradeHistoryService) Symbol(symbol string) *AccountTradeHistoryService
type AccountTradeListResponse ¶
type AccountTradeListResponse struct { Id int64 `json:"id"` Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` OrderListId int64 `json:"orderListId"` Price string `json:"price"` Quantity string `json:"qty"` QuoteQuantity string `json:"quoteQty"` Commission string `json:"commission"` CommissionAsset string `json:"commissionAsset"` Time uint64 `json:"time"` IsBuyer bool `json:"isBuyer"` IsMaker bool `json:"isMaker"` IsBestMatch bool `json:"isBestMatch"` }
type AggTradesList ¶
type AggTradesList struct {
// contains filtered or unexported fields
}
Binance Compressed/Aggregate Trades List endpoint (GET /api/v3/aggTrades)
func (*AggTradesList) Do ¶
func (s *AggTradesList) Do(ctx context.Context, opts ...RequestOption) (res []*AggTradesListResponse, err error)
Send the request
func (*AggTradesList) EndTime ¶
func (s *AggTradesList) EndTime(endTime uint64) *AggTradesList
EndTime set endTime
func (*AggTradesList) FromId ¶
func (s *AggTradesList) FromId(fromId int) *AggTradesList
FromId set fromId
func (*AggTradesList) Limit ¶
func (s *AggTradesList) Limit(limit int) *AggTradesList
Limit set limit
func (*AggTradesList) StartTime ¶
func (s *AggTradesList) StartTime(startTime uint64) *AggTradesList
StartTime set startTime
func (*AggTradesList) Symbol ¶
func (s *AggTradesList) Symbol(symbol string) *AggTradesList
Symbol set symbol
type AggTradesListResponse ¶
type AggTradesListResponse struct { AggTradeId uint64 `json:"a"` Price string `json:"p"` Qty string `json:"q"` FirstTradeId uint64 `json:"f"` LastTradeId uint64 `json:"l"` Time uint64 `json:"T"` IsBuyer bool `json:"m"` IsBest bool `json:"M"` }
AggTradesListResponse define compressed trades list response
type AggregateTradeData ¶
type AggregateTradesResponse ¶
type AggregateTradesResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result []*AggregateTradeData `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type AggregateTradesService ¶
type AggregateTradesService struct {
// contains filtered or unexported fields
}
func (*AggregateTradesService) Do ¶
func (s *AggregateTradesService) Do(ctx context.Context) (*AggregateTradesResponse, error)
func (*AggregateTradesService) EndTime ¶
func (s *AggregateTradesService) EndTime(endTime uint64) *AggregateTradesService
func (*AggregateTradesService) FromId ¶
func (s *AggregateTradesService) FromId(fromId int64) *AggregateTradesService
func (*AggregateTradesService) Limit ¶
func (s *AggregateTradesService) Limit(limit int) *AggregateTradesService
func (*AggregateTradesService) StartTime ¶
func (s *AggregateTradesService) StartTime(startTime uint64) *AggregateTradesService
func (*AggregateTradesService) Symbol ¶
func (s *AggregateTradesService) Symbol(symbol string) *AggregateTradesService
type AllIsolatedMarginSymbolService ¶
type AllIsolatedMarginSymbolService struct {
// contains filtered or unexported fields
}
AllIsolatedMarginSymbolService returns all isolated margin symbols
func (*AllIsolatedMarginSymbolService) Do ¶
func (s *AllIsolatedMarginSymbolService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginIsolatedSymbolResponse, err error)
Do send request
type AssetDetailResponse ¶
type AssetDetailResponse struct { Details []struct { Asset string `json:"asset"` AssetFullName string `json:"assetFullName"` AmountFree string `json:"amountFree"` ToBTC string `json:"toBTC"` ToBNB string `json:"toBNB"` ToBNBOffExchange string `json:"toBNBOffExchange"` Exchange string `json:"exchange"` } `json:"details"` TotalTransferBtc string `json:"totalTransferBtc"` TotalTransferBnb string `json:"totalTransferBnb"` DribbletPercentage string `json:"dribbletPercentage"` }
AssetDetailResponse define response of AssetDetailService
type AssetDetailService ¶
type AssetDetailService struct {
// contains filtered or unexported fields
}
AssetDetailService asset detail
func (*AssetDetailService) Do ¶
func (s *AssetDetailService) Do(ctx context.Context) (res *AssetDetailResponse, err error)
type AssetDetailV2Response ¶
type AssetDetailV2Response struct { AssetDetail struct { MinWithdrawAmount string `json:"minWithdrawAmount"` DepositStatus bool `json:"depositStatus"` WithdrawFee string `json:"withdrawFee"` WithdrawStatus bool `json:"withdrawStatus"` DepositTip string `json:"depositTip"` } `json:"assetDetail"` }
AssetDetailV2Response define response of AssetDetailV2Service
type AssetDetailV2Service ¶
type AssetDetailV2Service struct {
// contains filtered or unexported fields
}
AssetDetailV2Service asset detail v2
func (*AssetDetailV2Service) Asset ¶
func (s *AssetDetailV2Service) Asset(asset string) *AssetDetailV2Service
Asset set asset
func (*AssetDetailV2Service) Do ¶
func (s *AssetDetailV2Service) Do(ctx context.Context) (res *AssetDetailV2Response, err error)
type AssetDividendRecordResponse ¶
type AssetDividendRecordResponse struct { Rows []struct { Id int64 `json:"id"` Amount string `json:"amount"` Asset string `json:"asset"` DivTime uint64 `json:"divTime"` EnInfo string `json:"enInfo"` TranId int64 `json:"tranId"` } `json:"rows"` Total int64 `json:"total"` }
AssetDividendRecordResponse define response of AssetDividendRecordService
type AssetDividendRecordService ¶
type AssetDividendRecordService struct {
// contains filtered or unexported fields
}
AssetDividendRecordService asset dividend record
func (*AssetDividendRecordService) Asset ¶
func (s *AssetDividendRecordService) Asset(asset string) *AssetDividendRecordService
Asset set asset
func (*AssetDividendRecordService) Do ¶
func (s *AssetDividendRecordService) Do(ctx context.Context) (res *AssetDividendRecordResponse, err error)
func (*AssetDividendRecordService) EndTime ¶
func (s *AssetDividendRecordService) EndTime(endTime uint64) *AssetDividendRecordService
EndTime set endTime
func (*AssetDividendRecordService) Limit ¶
func (s *AssetDividendRecordService) Limit(limit int) *AssetDividendRecordService
Limit set limit
func (*AssetDividendRecordService) StartTime ¶
func (s *AssetDividendRecordService) StartTime(startTime uint64) *AssetDividendRecordService
StartTime set startTime
type AutoConvertStableCoinResponse ¶
type AutoConvertStableCoinResponse struct { ConvertEnabled bool `json:"convertEnabled"` Coins []struct { Asset string `json:"coin"` } `json:"coins"` ExchangeRates []struct { Asset string `json:"coin"` } `json:"exchangeRates"` }
AutoConvertStableCoinResponse define response of AutoConvertStableCoinService
type AutoConvertStableCoinService ¶
type AutoConvertStableCoinService struct {
// contains filtered or unexported fields
}
AutoConvertStableCoinService auto convert stable coin
func (*AutoConvertStableCoinService) Do ¶
func (s *AutoConvertStableCoinService) Do(ctx context.Context) (res *AutoConvertStableCoinResponse, err error)
type AvgPrice ¶
type AvgPrice struct {
// contains filtered or unexported fields
}
Binance Current Average Price (GET /api/v3/avgPrice)
func (*AvgPrice) Do ¶
func (s *AvgPrice) Do(ctx context.Context, opts ...RequestOption) (res *AvgPriceResponse, err error)
Send the request
type AvgPriceResponse ¶
Define AvgPrice response data
type AvgPriceResult ¶
type AvgPriceService ¶
type AvgPriceService struct {
// contains filtered or unexported fields
}
func (*AvgPriceService) Do ¶
func (s *AvgPriceService) Do(ctx context.Context) (*WsAPIAvgPriceResponse, error)
func (*AvgPriceService) Symbol ¶
func (s *AvgPriceService) Symbol(symbol string) *AvgPriceService
type BUSDConvertHistoryResponse ¶
type BUSDConvertHistoryResponse struct { Total int32 `json:"total"` Rows []struct { TranId int64 `json:"tranId"` Type int32 `json:"type"` Time uint64 `json:"time"` DeductedAsset string `json:"deductedAsset"` DeductedAmount string `json:"deductedAmount"` TargetAsset string `json:"targetAsset"` TargetAmount string `json:"targetAmount"` Status string `json:"status"` AccountType string `json:"accountType"` } `json:"rows"` }
BUSDConvertHistoryResponse define response of BUSDConvertHistoryService
type BUSDConvertHistoryService ¶
type BUSDConvertHistoryService struct {
// contains filtered or unexported fields
}
BUSDConvertHistoryService BUSD convert history
func (*BUSDConvertHistoryService) AccountType ¶
func (s *BUSDConvertHistoryService) AccountType(accountType string) *BUSDConvertHistoryService
AccountType set accountType
func (*BUSDConvertHistoryService) Asset ¶
func (s *BUSDConvertHistoryService) Asset(asset string) *BUSDConvertHistoryService
Asset set asset
func (*BUSDConvertHistoryService) ClientTranId ¶
func (s *BUSDConvertHistoryService) ClientTranId(clientTranId string) *BUSDConvertHistoryService
ClientTranId set clientTranId
func (*BUSDConvertHistoryService) Current ¶
func (s *BUSDConvertHistoryService) Current(current int) *BUSDConvertHistoryService
Current set current
func (*BUSDConvertHistoryService) Do ¶
func (s *BUSDConvertHistoryService) Do(ctx context.Context) (res *BUSDConvertHistoryResponse, err error)
func (*BUSDConvertHistoryService) EndTime ¶
func (s *BUSDConvertHistoryService) EndTime(endTime uint64) *BUSDConvertHistoryService
EndTime set endTime
func (*BUSDConvertHistoryService) Size ¶
func (s *BUSDConvertHistoryService) Size(size int) *BUSDConvertHistoryService
Size set size
func (*BUSDConvertHistoryService) StartTime ¶
func (s *BUSDConvertHistoryService) StartTime(startTime uint64) *BUSDConvertHistoryService
StartTime set startTime
func (*BUSDConvertHistoryService) TranId ¶
func (s *BUSDConvertHistoryService) TranId(tranId int64) *BUSDConvertHistoryService
TranId set tranId
type BUSDConvertResponse ¶
BUSDConvertResponse define response of BUSDConvertService
type BUSDConvertService ¶
type BUSDConvertService struct {
// contains filtered or unexported fields
}
BUSDConvertService BUSD convert
func (*BUSDConvertService) AccountType ¶
func (s *BUSDConvertService) AccountType(accountType string) *BUSDConvertService
AccountType set accountType
func (*BUSDConvertService) Amount ¶
func (s *BUSDConvertService) Amount(amount float64) *BUSDConvertService
Amount set amount
func (*BUSDConvertService) Asset ¶
func (s *BUSDConvertService) Asset(asset string) *BUSDConvertService
Asset set asset
func (*BUSDConvertService) ClientTranId ¶
func (s *BUSDConvertService) ClientTranId(clientTranId string) *BUSDConvertService
ClientTranId set clientTranId
func (*BUSDConvertService) Do ¶
func (s *BUSDConvertService) Do(ctx context.Context) (res *BUSDConvertResponse, err error)
func (*BUSDConvertService) TargetAsset ¶
func (s *BUSDConvertService) TargetAsset(targetAsset string) *BUSDConvertService
TargetAsset set targetAsset
type Balance ¶
type Balance struct { Asset string `json:"asset"` Free string `json:"free"` Locked string `json:"locked"` }
Balance define user balance of your account
type BookTickerData ¶
type CancelOCOService ¶
type CancelOCOService struct {
// contains filtered or unexported fields
}
Binance Cancel OCO (TRADE) (DELETE /api/v3/orderList) CancelOCOService cancel OCO order
func (*CancelOCOService) Do ¶
func (s *CancelOCOService) Do(ctx context.Context, opts ...RequestOption) (res *OrderOCOResponse, err error)
Do send request
func (*CancelOCOService) ListClientOrderId ¶
func (s *CancelOCOService) ListClientOrderId(ListClientOrderId string) *CancelOCOService
ListClientId set listClientId
func (*CancelOCOService) NewClientOrderId ¶
func (s *CancelOCOService) NewClientOrderId(newClientOrderId string) *CancelOCOService
NewClientOrderId set newClientOrderId
func (*CancelOCOService) OrderListId ¶
func (s *CancelOCOService) OrderListId(orderListId int) *CancelOCOService
OrderListId set orderListId
func (*CancelOCOService) Symbol ¶
func (s *CancelOCOService) Symbol(symbol string) *CancelOCOService
Symbol set symbol
type CancelOpenOrdersService ¶
type CancelOpenOrdersService struct {
// contains filtered or unexported fields
}
Binance Cancel all open orders on a symbol (DELETE /api/v3/openOrders) CancelOpenOrdersService cancel open orders
func (*CancelOpenOrdersService) Do ¶
func (s *CancelOpenOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*CancelOrderResponse, err error)
Do send request
func (*CancelOpenOrdersService) Symbol ¶
func (s *CancelOpenOrdersService) Symbol(symbol string) *CancelOpenOrdersService
Symbol set symbol
type CancelOrderResponse ¶
type CancelOrderResponse struct { Symbol string `json:"symbol"` OrigClientOrderId string `json:"origClientOrderId"` OrderId int64 `json:"orderId"` OrderListId int64 `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CumulativeQuoteQty string `json:"cumulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` SelfTradePrevention string `json:"selfTradePrevention"` IcebergQty string `json:"icebergQty,omitempty"` PreventedMatchId int64 `json:"preventedMatchId,omitempty"` PreventedQuantity string `json:"preventedQuantity,omitempty"` StopPrice string `json:"stopPrice,omitempty"` StrategyId int64 `json:"strategyId,omitempty"` StrategyType int64 `json:"strategyType,omitempty"` TrailingDelta string `json:"trailingDelta,omitempty"` TrailingTime int64 `json:"trailingTime,omitempty"` }
Create CancelOrderResponse
type CancelOrderService ¶
type CancelOrderService struct {
// contains filtered or unexported fields
}
Binance Cancel Order endpoint (DELETE /api/v3/order) CancelOrderService cancel order
func (*CancelOrderService) CancelRestrictions ¶
func (s *CancelOrderService) CancelRestrictions(cancelRestrictions string) *CancelOrderService
CancelRestrictions set cancelRestrictions
func (*CancelOrderService) Do ¶
func (s *CancelOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CancelOrderResponse, err error)
Do send request
func (*CancelOrderService) NewClientOrderId ¶
func (s *CancelOrderService) NewClientOrderId(newClientOrderId string) *CancelOrderService
NewClientOrderId set newClientOrderId
func (*CancelOrderService) OrderId ¶
func (s *CancelOrderService) OrderId(orderId int64) *CancelOrderService
OrderId set orderId
func (*CancelOrderService) OrigClientOrderId ¶
func (s *CancelOrderService) OrigClientOrderId(origClientOrderId string) *CancelOrderService
OrigClientOrderId set origClientOrderId
func (*CancelOrderService) Symbol ¶
func (s *CancelOrderService) Symbol(symbol string) *CancelOrderService
Symbol set symbol
type CancelReplaceResponse ¶
type CancelReplaceResponse struct { Code int64 `json:"code,omitempty"` Msg string `json:"msg,omitempty"` CancelResult string `json:"cancelResult,omitempty"` NewOrderResult string `json:"newOrderResult,omitempty"` CancelResponse *struct { Code int `json:"code,omitempty"` Msg string `json:"msg,omitempty"` Symbol string `json:"symbol,omitempty"` OrigClientOrderId string `json:"origClientOrderId,omitempty"` OrderId int64 `json:"orderId,omitempty"` OrderListId int64 `json:"orderListId,omitempty"` ClientOrderId string `json:"clientOrderId,omitempty"` Price string `json:"price,omitempty"` OrigQty string `json:"origQty,omitempty"` ExecutedQty string `json:"executedQty,omitempty"` CumulativeQuoteQty string `json:"cumulativeQuoteQty,omitempty"` Status string `json:"status,omitempty"` TimeInForce string `json:"timeInForce,omitempty"` Type string `json:"type,omitempty"` Side string `json:"side,omitempty"` SelfTradePreventionMode string `json:"selfTradePreventionMode,omitempty"` } `json:"cancelResponse,omitempty"` NewOrderResponse *struct { Code int64 `json:"code,omitempty"` Msg string `json:"msg,omitempty"` Symbol string `json:"symbol,omitempty"` OrderId int64 `json:"orderId,omitempty"` OrderListId int64 `json:"orderListId,omitempty"` ClientOrderId string `json:"clientOrderId,omitempty"` TransactTime uint64 `json:"transactTime,omitempty"` Price string `json:"price,omitempty"` OrigQty string `json:"origQty,omitempty"` ExecutedQty string `json:"executedQty,omitempty"` CumulativeQuoteQty string `json:"cumulativeQuoteQty,omitempty"` Status string `json:"status,omitempty"` TimeInForce string `json:"timeInForce,omitempty"` Type string `json:"type,omitempty"` Side string `json:"side,omitempty"` Fills []string `json:"fills,omitempty"` SelfTradePreventionMode string `json:"selfTradePreventionMode,omitempty"` } `json:"newOrderResponse,omitempty"` Data *struct { CancelResult string `json:"cancelResult,omitempty"` NewOrderResult string `json:"newOrderResult,omitempty"` CancelResponse *struct { Code int64 `json:"code,omitempty"` Msg string `json:"msg,omitempty"` Symbol string `json:"symbol,omitempty"` OrigClientOrderId string `json:"origClientOrderId,omitempty"` OrderId int64 `json:"orderId,omitempty"` OrderListId int64 `json:"orderListId,omitempty"` ClientOrderId string `json:"clientOrderId,omitempty"` Price string `json:"price,omitempty"` OrigQty string `json:"origQty,omitempty"` ExecutedQty string `json:"executedQty,omitempty"` CumulativeQuoteQty string `json:"cumulativeQuoteQty,omitempty"` Status string `json:"status,omitempty"` TimeInForce string `json:"timeInForce,omitempty"` Type string `json:"type,omitempty"` Side string `json:"side,omitempty"` SelfTradePreventionMode string `json:"selfTradePreventionMode,omitempty"` } `json:"cancelResponse,omitempty"` NewOrderResponse struct { Code int64 `json:"code,omitempty"` Msg string `json:"msg,omitempty"` Symbol string `json:"symbol,omitempty"` OrderId int64 `json:"orderId,omitempty"` OrderListId int64 `json:"orderListId,omitempty"` ClientOrderId string `json:"clientOrderId,omitempty"` TransactTime uint64 `json:"transactTime,omitempty"` Price string `json:"price,omitempty"` OrigQty string `json:"origQty,omitempty"` ExecutedQty string `json:"executedQty,omitempty"` CumulativeQuoteQty string `json:"cumulativeQuoteQty,omitempty"` Status string `json:"status,omitempty"` TimeInForce string `json:"timeInForce,omitempty"` Type string `json:"type,omitempty"` Side string `json:"side,omitempty"` Fills []string `json:"fills,omitempty"` SelfTradePreventionMode string `json:"selfTradePreventionMode,omitempty"` } `json:"newOrderResponse"` } `json:"data,omitempty"` }
type CancelReplaceService ¶
type CancelReplaceService struct {
// contains filtered or unexported fields
}
Cancel an Existing Order and Send a New Order (TRADE)
func (*CancelReplaceService) CancelNewClientOrderId ¶
func (s *CancelReplaceService) CancelNewClientOrderId(cancelNewClientOrderId string) *CancelReplaceService
CancelNewClientOrderId set cancelNewClientOrderId
func (*CancelReplaceService) CancelOrderId ¶
func (s *CancelReplaceService) CancelOrderId(cancelOrderId int64) *CancelReplaceService
CancelOrderId set cancelOrderId
func (*CancelReplaceService) CancelOrigClientOrderId ¶
func (s *CancelReplaceService) CancelOrigClientOrderId(cancelOrigClientOrderId string) *CancelReplaceService
CancelOrigClientOrderId set cancelOrigClientOrderId
func (*CancelReplaceService) CancelReplaceMode ¶
func (s *CancelReplaceService) CancelReplaceMode(cancelReplaceMode string) *CancelReplaceService
CancelReplaceMode set cancelReplaceMode
func (*CancelReplaceService) CancelRestrictions ¶
func (s *CancelReplaceService) CancelRestrictions(cancelRestrictions string) *CancelReplaceService
CancelRestrictions set cancelRestrictions
func (*CancelReplaceService) Do ¶
func (s *CancelReplaceService) Do(ctx context.Context, opts ...RequestOption) (res *CancelReplaceResponse, err error)
Do send request
func (*CancelReplaceService) IcebergQty ¶
func (s *CancelReplaceService) IcebergQty(icebergQty float64) *CancelReplaceService
IcebergQty set icebergQty
func (*CancelReplaceService) NewClientOrderId ¶
func (s *CancelReplaceService) NewClientOrderId(newClientOrderId string) *CancelReplaceService
NewClientOrderId set newClientOrderId
func (*CancelReplaceService) NewOrderRespType ¶
func (s *CancelReplaceService) NewOrderRespType(newOrderRespType string) *CancelReplaceService
NewOrderRespType set newOrderRespType
func (*CancelReplaceService) OrderType ¶
func (s *CancelReplaceService) OrderType(orderType string) *CancelReplaceService
OrderType set orderType
func (*CancelReplaceService) Price ¶
func (s *CancelReplaceService) Price(price float64) *CancelReplaceService
Price set price
func (*CancelReplaceService) Quantity ¶
func (s *CancelReplaceService) Quantity(quantity float64) *CancelReplaceService
Quantity set quantity
func (*CancelReplaceService) QuoteOrderQty ¶
func (s *CancelReplaceService) QuoteOrderQty(quoteOrderQty float64) *CancelReplaceService
QuoteOrderQty set quoteOrderQty
func (*CancelReplaceService) SelfTradePreventionMode ¶
func (s *CancelReplaceService) SelfTradePreventionMode(selfTradePreventionMode string) *CancelReplaceService
SelfTradePreventionMode set selfTradePreventionMode
func (*CancelReplaceService) Side ¶
func (s *CancelReplaceService) Side(side string) *CancelReplaceService
Side set side
func (*CancelReplaceService) StopPrice ¶
func (s *CancelReplaceService) StopPrice(stopPrice float64) *CancelReplaceService
StopPrice set stopPrice
func (*CancelReplaceService) StrategyId ¶
func (s *CancelReplaceService) StrategyId(strategyId int32) *CancelReplaceService
StrategyId set strategyId
func (*CancelReplaceService) StrategyType ¶
func (s *CancelReplaceService) StrategyType(strategyType int32) *CancelReplaceService
StrategyType set strategyType
func (*CancelReplaceService) Symbol ¶
func (s *CancelReplaceService) Symbol(symbol string) *CancelReplaceService
Symbol set symbol
func (*CancelReplaceService) TimeInForce ¶
func (s *CancelReplaceService) TimeInForce(timeInForce string) *CancelReplaceService
TimeInForce set timeInForce
func (*CancelReplaceService) TrailingDelta ¶
func (s *CancelReplaceService) TrailingDelta(trailingDelta int64) *CancelReplaceService
TrailingDelta set trailingDelta
type CheckServerTimeResponse ¶
type CheckServerTimeResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result struct { ServerTime uint64 `json:"serverTime"` } `json:"result,omitempty"` RateLimits WsAPIRateLimit `json:"rateLimits,omitempty"` }
type CheckServerTimeService ¶
type CheckServerTimeService struct {
// contains filtered or unexported fields
}
func (*CheckServerTimeService) Do ¶
func (s *CheckServerTimeService) Do(ctx context.Context) (*CheckServerTimeResponse, error)
type Client ¶
type Client struct { APIKey string SecretKey string BaseURL string HTTPClient *http.Client Debug bool Logger *log.Logger TimeOffset int64 // contains filtered or unexported fields }
Client define API client
func (*Client) NewAPIKeyPermissionService ¶
func (c *Client) NewAPIKeyPermissionService() *APIKeyPermissionService
func (*Client) NewAccountApiTradingStatusService ¶
func (c *Client) NewAccountApiTradingStatusService() *AccountApiTradingStatusService
func (*Client) NewAccountStatusService ¶
func (c *Client) NewAccountStatusService() *AccountStatusService
func (*Client) NewAggTradesListService ¶
func (c *Client) NewAggTradesListService() *AggTradesList
func (*Client) NewAllIsolatedMarginSymbolService ¶
func (c *Client) NewAllIsolatedMarginSymbolService() *AllIsolatedMarginSymbolService
func (*Client) NewAssetDetailService ¶
func (c *Client) NewAssetDetailService() *AssetDetailService
func (*Client) NewAssetDetailV2Service ¶
func (c *Client) NewAssetDetailV2Service() *AssetDetailV2Service
func (*Client) NewAssetDividendRecordService ¶
func (c *Client) NewAssetDividendRecordService() *AssetDividendRecordService
func (*Client) NewAutoConvertStableCoinService ¶
func (c *Client) NewAutoConvertStableCoinService() *AutoConvertStableCoinService
func (*Client) NewAvgPriceService ¶
func (*Client) NewBUSDConvertHistoryService ¶
func (c *Client) NewBUSDConvertHistoryService() *BUSDConvertHistoryService
func (*Client) NewBUSDConvertService ¶
func (c *Client) NewBUSDConvertService() *BUSDConvertService
func (*Client) NewCancelOCOService ¶
func (c *Client) NewCancelOCOService() *CancelOCOService
func (*Client) NewCancelOpenOrdersService ¶
func (c *Client) NewCancelOpenOrdersService() *CancelOpenOrdersService
func (*Client) NewCancelOrderService ¶
func (c *Client) NewCancelOrderService() *CancelOrderService
func (*Client) NewCancelReplaceService ¶
func (c *Client) NewCancelReplaceService() *CancelReplaceService
func (*Client) NewCloseUserStream ¶
func (c *Client) NewCloseUserStream() *CloseUserStream
func (*Client) NewCloudMiningPaymentHistoryService ¶
func (c *Client) NewCloudMiningPaymentHistoryService() *CloudMiningPaymentHistoryService
func (*Client) NewCreateListenKeyService ¶
func (c *Client) NewCreateListenKeyService() *CreateListenKey
User Data Streams:
func (*Client) NewCreateOrderService ¶
func (c *Client) NewCreateOrderService() *CreateOrderService
func (*Client) NewCreateSubAccountService ¶
func (c *Client) NewCreateSubAccountService() *CreateSubAccountService
Sub-Account Endpoints:
func (*Client) NewCrossMarginAccountDetailService ¶
func (c *Client) NewCrossMarginAccountDetailService() *CrossMarginAccountDetailService
func (*Client) NewCrossMarginTransferHistoryService ¶
func (c *Client) NewCrossMarginTransferHistoryService() *CrossMarginTransferHistoryService
func (*Client) NewDeleteIPListForSubAccountAPIKeyService ¶
func (c *Client) NewDeleteIPListForSubAccountAPIKeyService() *DeleteIPListForSubAccountAPIKeyService
func (*Client) NewDepositAddressService ¶
func (c *Client) NewDepositAddressService() *DepositAddressService
func (*Client) NewDepositAssetsIntoManagedSubAccountService ¶
func (c *Client) NewDepositAssetsIntoManagedSubAccountService() *DepositAssetsIntoTheManagedSubAccountService
func (*Client) NewDepositHistoryService ¶
func (c *Client) NewDepositHistoryService() *DepositHistoryService
func (*Client) NewDisableFastWithdrawSwitchService ¶
func (c *Client) NewDisableFastWithdrawSwitchService() *DisableFastWithdrawSwitchService
func (*Client) NewDustLogService ¶
func (c *Client) NewDustLogService() *DustLogService
func (*Client) NewDustTransferService ¶
func (c *Client) NewDustTransferService() *DustTransferService
func (*Client) NewEnableFastWithdrawSwitchService ¶
func (c *Client) NewEnableFastWithdrawSwitchService() *EnableFastWithdrawSwitchService
func (*Client) NewEnableFuturesForSubAccountService ¶
func (c *Client) NewEnableFuturesForSubAccountService() *EnableFuturesForSubAccountService
func (*Client) NewEnableLeverageTokenForSubAccountService ¶
func (c *Client) NewEnableLeverageTokenForSubAccountService() *EnableLeverageTokenForSubAccountService
func (*Client) NewEnableMarginForSubAccountService ¶
func (c *Client) NewEnableMarginForSubAccountService() *EnableMarginForSubAccountService
func (*Client) NewExchangeInfoService ¶
func (c *Client) NewExchangeInfoService() *ExchangeInfo
func (*Client) NewForceLiquidationRecordService ¶
func (c *Client) NewForceLiquidationRecordService() *ForceLiquidationRecordService
func (*Client) NewFundingWalletService ¶
func (c *Client) NewFundingWalletService() *FundingWalletService
func (*Client) NewFuturesTransferForSubAccountService ¶
func (c *Client) NewFuturesTransferForSubAccountService() *FuturesTransferForSubAccountService
func (*Client) NewGetAccountService ¶
func (c *Client) NewGetAccountService() *GetAccountService
func (*Client) NewGetAccountSnapshotService ¶
func (c *Client) NewGetAccountSnapshotService() *GetAccountSnapshotService
func (*Client) NewGetAllCoinsInfoService ¶
func (c *Client) NewGetAllCoinsInfoService() *GetAllCoinsInfoService
func (*Client) NewGetAllMarginAssetsService ¶
func (c *Client) NewGetAllMarginAssetsService() *GetAllMarginAssetsService
func (*Client) NewGetAllMarginPairsService ¶
func (c *Client) NewGetAllMarginPairsService() *GetAllMarginPairsService
func (*Client) NewGetAllOrdersService ¶
func (c *Client) NewGetAllOrdersService() *GetAllOrdersService
func (*Client) NewGetDetailOnSubAccountFuturesAccountService ¶
func (c *Client) NewGetDetailOnSubAccountFuturesAccountService() *GetDetailOnSubAccountFuturesAccountService
func (*Client) NewGetDetailOnSubAccountFuturesAccountV2Service ¶
func (c *Client) NewGetDetailOnSubAccountFuturesAccountV2Service() *GetDetailOnSubAccountFuturesAccountV2Service
func (*Client) NewGetDetailOnSubAccountMarginAccountService ¶
func (c *Client) NewGetDetailOnSubAccountMarginAccountService() *GetDetailOnSubAccountMarginAccountService
func (*Client) NewGetFuturesPositionRiskOfSubAccountService ¶
func (c *Client) NewGetFuturesPositionRiskOfSubAccountService() *GetFuturesPositionRiskOfSubAccountService
func (*Client) NewGetFuturesPositionRiskOfSubAccountV2Service ¶
func (c *Client) NewGetFuturesPositionRiskOfSubAccountV2Service() *GetFuturesPositionRiskOfSubAccountV2Service
func (*Client) NewGetIPRestrictionForSubAccountAPIKeyService ¶
func (c *Client) NewGetIPRestrictionForSubAccountAPIKeyService() *GetIPRestrictionForSubAccountAPIKeyService
func (*Client) NewGetManagedSubAccountDepositAddressService ¶
func (c *Client) NewGetManagedSubAccountDepositAddressService() *GetManagedSubAccountDepositAddressService
func (*Client) NewGetMyTradesService ¶
func (c *Client) NewGetMyTradesService() *GetMyTradesService
func (*Client) NewGetOpenOrdersService ¶
func (c *Client) NewGetOpenOrdersService() *GetOpenOrdersService
func (*Client) NewGetOrderService ¶
func (c *Client) NewGetOrderService() *GetOrderService
func (*Client) NewGetQueryCurrentOrderCountUsageService ¶
func (c *Client) NewGetQueryCurrentOrderCountUsageService() *GetQueryCurrentOrderCountUsageService
func (*Client) NewGetQueryPreventedMatchesService ¶
func (c *Client) NewGetQueryPreventedMatchesService() *GetQueryPreventedMatchesService
func (*Client) NewGetSubAccountDepositAddressService ¶
func (c *Client) NewGetSubAccountDepositAddressService() *GetSubAccountDepositAddressService
func (*Client) NewGetSubAccountDepositHistoryService ¶
func (c *Client) NewGetSubAccountDepositHistoryService() *GetSubAccountDepositHistoryService
func (*Client) NewGetSubAccountStatusService ¶
func (c *Client) NewGetSubAccountStatusService() *GetSubAccountStatusService
func (*Client) NewGetSummaryOfSubAccountFuturesAccountService ¶
func (c *Client) NewGetSummaryOfSubAccountFuturesAccountService() *GetSummaryOfSubAccountFuturesAccountService
func (*Client) NewGetSummaryOfSubAccountFuturesAccountV2Service ¶
func (c *Client) NewGetSummaryOfSubAccountFuturesAccountV2Service() *GetSummaryOfSubAccountFuturesAccountV2Service
func (*Client) NewGetSummaryOfSubAccountMarginAccountService ¶
func (c *Client) NewGetSummaryOfSubAccountMarginAccountService() *GetSummaryOfSubAccountMarginAccountService
func (*Client) NewGetSystemStatusService ¶
func (c *Client) NewGetSystemStatusService() *GetSystemStatusService
Wallet Endpoints:
func (*Client) NewHistoricalTradeLookupService ¶
func (c *Client) NewHistoricalTradeLookupService() *HistoricalTradeLookup
func (*Client) NewInterestHistoryService ¶
func (c *Client) NewInterestHistoryService() *InterestHistoryService
func (*Client) NewKlinesService ¶
func (*Client) NewMarginAccountAllOrderService ¶
func (c *Client) NewMarginAccountAllOrderService() *MarginAccountAllOrderService
func (*Client) NewMarginAccountCancelAllOrdersService ¶
func (c *Client) NewMarginAccountCancelAllOrdersService() *MarginAccountCancelAllOrdersService
func (*Client) NewMarginAccountCancelOCOService ¶
func (c *Client) NewMarginAccountCancelOCOService() *MarginAccountCancelOCOService
func (*Client) NewMarginAccountCancelOrderService ¶
func (c *Client) NewMarginAccountCancelOrderService() *MarginAccountCancelOrderService
func (*Client) NewMarginAccountNewOCOService ¶
func (c *Client) NewMarginAccountNewOCOService() *MarginAccountNewOCOService
func (*Client) NewMarginAccountNewOrderService ¶
func (c *Client) NewMarginAccountNewOrderService() *MarginAccountNewOrderService
func (*Client) NewMarginAccountOpenOrderService ¶
func (c *Client) NewMarginAccountOpenOrderService() *MarginAccountOpenOrderService
func (*Client) NewMarginAccountOrderService ¶
func (c *Client) NewMarginAccountOrderService() *MarginAccountOrderService
func (*Client) NewMarginAccountQueryAllOCOService ¶
func (c *Client) NewMarginAccountQueryAllOCOService() *MarginAccountQueryAllOCOService
func (*Client) NewMarginAccountQueryMaxBorrowService ¶
func (c *Client) NewMarginAccountQueryMaxBorrowService() *MarginAccountQueryMaxBorrowService
func (*Client) NewMarginAccountQueryMaxTransferOutAmountService ¶
func (c *Client) NewMarginAccountQueryMaxTransferOutAmountService() *MarginAccountQueryMaxTransferOutAmountService
func (*Client) NewMarginAccountQueryOCOService ¶
func (c *Client) NewMarginAccountQueryOCOService() *MarginAccountQueryOCOService
func (*Client) NewMarginAccountQueryOpenOCOService ¶
func (c *Client) NewMarginAccountQueryOpenOCOService() *MarginAccountQueryOpenOCOService
func (*Client) NewMarginAccountQueryTradeListService ¶
func (c *Client) NewMarginAccountQueryTradeListService() *MarginAccountQueryTradeListService
func (*Client) NewMarginAccountSummaryService ¶
func (c *Client) NewMarginAccountSummaryService() *MarginAccountSummaryService
func (*Client) NewMarginBnbBurnStatusService ¶
func (c *Client) NewMarginBnbBurnStatusService() *MarginBnbBurnStatusService
func (*Client) NewMarginCrossCollateralRatioService ¶
func (c *Client) NewMarginCrossCollateralRatioService() *MarginCrossCollateralRatioService
func (*Client) NewMarginCrossMarginFeeService ¶
func (c *Client) NewMarginCrossMarginFeeService() *MarginCrossMarginFeeService
func (*Client) NewMarginCurrentOrderCountService ¶
func (c *Client) NewMarginCurrentOrderCountService() *MarginCurrentOrderCountService
func (*Client) NewMarginInterestRateHistoryService ¶
func (c *Client) NewMarginInterestRateHistoryService() *MarginInterestRateHistoryService
func (*Client) NewMarginIsolatedAccountDisableService ¶
func (c *Client) NewMarginIsolatedAccountDisableService() *MarginIsolatedAccountDisableService
func (*Client) NewMarginIsolatedAccountEnableService ¶
func (c *Client) NewMarginIsolatedAccountEnableService() *MarginIsolatedAccountEnableService
func (*Client) NewMarginIsolatedAccountInfoService ¶
func (c *Client) NewMarginIsolatedAccountInfoService() *MarginIsolatedAccountInfoService
func (*Client) NewMarginIsolatedAccountLimitService ¶
func (c *Client) NewMarginIsolatedAccountLimitService() *MarginIsolatedAccountLimitService
func (*Client) NewMarginIsolatedMarginFeeService ¶
func (c *Client) NewMarginIsolatedMarginFeeService() *MarginIsolatedMarginFeeService
func (*Client) NewMarginIsolatedMarginTierService ¶
func (c *Client) NewMarginIsolatedMarginTierService() *MarginIsolatedMarginTierService
func (*Client) NewMarginSmallLiabilityExchangeCoinListService ¶
func (c *Client) NewMarginSmallLiabilityExchangeCoinListService() *MarginSmallLiabilityExchangeCoinListService
func (*Client) NewMarginSmallLiabilityExchangeHistoryService ¶
func (c *Client) NewMarginSmallLiabilityExchangeHistoryService() *MarginSmallLiabilityExchangeHistoryService
func (*Client) NewMarginSmallLiabilityExchangeService ¶
func (c *Client) NewMarginSmallLiabilityExchangeService() *MarginSmallLiabilityExchangeService
func (*Client) NewMarginToggleBnbBurnService ¶
func (c *Client) NewMarginToggleBnbBurnService() *MarginToggleBnbBurnService
func (*Client) NewMarginTransferForSubAccountService ¶
func (c *Client) NewMarginTransferForSubAccountService() *MarginTransferForSubAccountService
func (*Client) NewNewOCOService ¶
func (c *Client) NewNewOCOService() *NewOCOService
func (*Client) NewOrderBookService ¶
func (*Client) NewPingUserStream ¶
func (c *Client) NewPingUserStream() *PingUserStream
func (*Client) NewQueryAllOCOService ¶
func (c *Client) NewQueryAllOCOService() *QueryAllOCOService
func (*Client) NewQueryManagedSubAccountAssetDetailsService ¶
func (c *Client) NewQueryManagedSubAccountAssetDetailsService() *QueryManagedSubAccountAssetDetailsService
func (*Client) NewQueryManagedSubAccountFuturesAssetDetailsService ¶
func (c *Client) NewQueryManagedSubAccountFuturesAssetDetailsService() *QueryManagedSubAccountFuturesAssetDetailsService
func (*Client) NewQueryManagedSubAccountList ¶
func (c *Client) NewQueryManagedSubAccountList() *QueryManagedSubAccountList
func (*Client) NewQueryManagedSubAccountMarginAssetDetailsService ¶
func (c *Client) NewQueryManagedSubAccountMarginAssetDetailsService() *QueryManagedSubAccountMarginAssetDetailsService
func (*Client) NewQueryManagedSubAccountSnapshotService ¶
func (c *Client) NewQueryManagedSubAccountSnapshotService() *QueryManagedSubAccountSnapshotService
func (*Client) NewQueryManagedSubAccountTransferLogForTradingTeamService ¶
func (c *Client) NewQueryManagedSubAccountTransferLogForTradingTeamService() *QueryManagedSubAccountTransferLogForTradingTeamService
func (*Client) NewQueryManagedSubAccountTransferLogService ¶
func (c *Client) NewQueryManagedSubAccountTransferLogService() *QueryManagedSubAccountTransferLogService
func (*Client) NewQueryMarginPriceIndexService ¶
func (c *Client) NewQueryMarginPriceIndexService() *QueryMarginPriceIndexService
func (*Client) NewQueryOCOService ¶
func (c *Client) NewQueryOCOService() *QueryOCOService
func (*Client) NewQueryOpenOCOService ¶
func (c *Client) NewQueryOpenOCOService() *QueryOpenOCOService
func (*Client) NewQuerySubAccountAssetsForMasterAccountService ¶
func (c *Client) NewQuerySubAccountAssetsForMasterAccountService() *QuerySubAccountAssetsForMasterAccountService
func (*Client) NewQuerySubAccountAssetsService ¶
func (c *Client) NewQuerySubAccountAssetsService() *QuerySubAccountAssetsService
func (*Client) NewQuerySubAccountFuturesAssetTransferHistoryService ¶
func (c *Client) NewQuerySubAccountFuturesAssetTransferHistoryService() *QuerySubAccountFuturesAssetTransferHistoryService
func (*Client) NewQuerySubAccountListService ¶
func (c *Client) NewQuerySubAccountListService() *QuerySubAccountListService
func (*Client) NewQuerySubAccountSpotAssetTransferHistoryService ¶
func (c *Client) NewQuerySubAccountSpotAssetTransferHistoryService() *QuerySubAccountSpotAssetTransferHistoryService
func (*Client) NewQuerySubAccountSpotAssetsSummaryService ¶
func (c *Client) NewQuerySubAccountSpotAssetsSummaryService() *QuerySubAccountSpotAssetsSummaryService
func (*Client) NewQuerySubAccountTransactionTatistics ¶
func (c *Client) NewQuerySubAccountTransactionTatistics() *QuerySubAccountTransactionTatistics
func (*Client) NewQueryUniversalTransferHistoryService ¶
func (c *Client) NewQueryUniversalTransferHistoryService() *QueryUniversalTransferHistoryService
func (*Client) NewRecentTradesListService ¶
func (c *Client) NewRecentTradesListService() *RecentTradesList
func (*Client) NewServerTimeService ¶
func (c *Client) NewServerTimeService() *ServerTime
func (*Client) NewSubAccountFuturesAssetTransferService ¶
func (c *Client) NewSubAccountFuturesAssetTransferService() *SubAccountFuturesAssetTransferService
func (*Client) NewSubAccountTransferHistoryService ¶
func (c *Client) NewSubAccountTransferHistoryService() *SubAccountTransferHistoryService
func (*Client) NewTestNewOrder ¶
func (c *Client) NewTestNewOrder() *TestNewOrder
Account Endpoints:
func (*Client) NewTicker24hrService ¶
func (c *Client) NewTicker24hrService() *Ticker24hr
func (*Client) NewTickerBookTickerService ¶
func (c *Client) NewTickerBookTickerService() *TickerBookTicker
func (*Client) NewTickerPriceService ¶
func (c *Client) NewTickerPriceService() *TickerPrice
func (*Client) NewTickerService ¶
func (*Client) NewTradeFeeService ¶
func (c *Client) NewTradeFeeService() *TradeFeeService
func (*Client) NewTransferToMasterService ¶
func (c *Client) NewTransferToMasterService() *TransferToMasterService
func (*Client) NewTransferToSubAccountOfSameMasterService ¶
func (c *Client) NewTransferToSubAccountOfSameMasterService() *TransferToSubAccountOfSameMasterService
func (*Client) NewUIKlinesService ¶
func (*Client) NewUniversalTransferService ¶
func (c *Client) NewUniversalTransferService() *UniversalTransferService
func (*Client) NewUpdateIPRestrictionForSubAccountAPIKeyService ¶
func (c *Client) NewUpdateIPRestrictionForSubAccountAPIKeyService() *UpdateIPRestrictionForSubAccountAPIKeyService
func (*Client) NewUserAssetService ¶
func (c *Client) NewUserAssetService() *UserAssetService
func (*Client) NewUserUniversalTransferHistoryService ¶
func (c *Client) NewUserUniversalTransferHistoryService() *UserUniversalTransferHistoryService
func (*Client) NewUserUniversalTransferService ¶
func (c *Client) NewUserUniversalTransferService() *UserUniversalTransferService
func (*Client) NewWithdrawAssetsFromTheManagedSubAccountService ¶
func (c *Client) NewWithdrawAssetsFromTheManagedSubAccountService() *WithdrawAssetsFromTheManagedSubAccountService
func (*Client) NewWithdrawHistoryService ¶
func (c *Client) NewWithdrawHistoryService() *WithdrawHistoryService
func (*Client) NewWithdrawService ¶
func (c *Client) NewWithdrawService() *WithdrawService
type CloseUserStream ¶
type CloseUserStream struct {
// contains filtered or unexported fields
}
CloseUserStream delete listen key
func (*CloseUserStream) Do ¶
func (s *CloseUserStream) Do(ctx context.Context, opts ...RequestOption) (err error)
Do send request
func (*CloseUserStream) ListenKey ¶
func (s *CloseUserStream) ListenKey(listenKey string) *CloseUserStream
ListenKey set listen key
type CloudMiningPaymentHistoryResponse ¶
type CloudMiningPaymentHistoryResponse struct { Total int32 `json:"total"` Rows []struct { CreateTime uint64 `json:"createTime"` TranId int64 `json:"tranId"` Type int32 `json:"type"` Asset string `json:"asset"` Amount string `json:"amount"` Status string `json:"status"` } `json:"rows"` }
CloudMiningPaymentHistoryResponse define response of CloudMiningPaymentHistoryService
type CloudMiningPaymentHistoryService ¶
type CloudMiningPaymentHistoryService struct {
// contains filtered or unexported fields
}
CloudMiningPaymentHistoryService cloud mining payment history
func (*CloudMiningPaymentHistoryService) Asset ¶
func (s *CloudMiningPaymentHistoryService) Asset(asset string) *CloudMiningPaymentHistoryService
Asset set asset
func (*CloudMiningPaymentHistoryService) ClientTranId ¶
func (s *CloudMiningPaymentHistoryService) ClientTranId(clientTranId string) *CloudMiningPaymentHistoryService
ClientTranId set clientTranId
func (*CloudMiningPaymentHistoryService) Current ¶
func (s *CloudMiningPaymentHistoryService) Current(current int) *CloudMiningPaymentHistoryService
Current set current
func (*CloudMiningPaymentHistoryService) Do ¶
func (s *CloudMiningPaymentHistoryService) Do(ctx context.Context) (res *CloudMiningPaymentHistoryResponse, err error)
func (*CloudMiningPaymentHistoryService) EndTime ¶
func (s *CloudMiningPaymentHistoryService) EndTime(endTime uint64) *CloudMiningPaymentHistoryService
EndTime set endTime
func (*CloudMiningPaymentHistoryService) Size ¶
func (s *CloudMiningPaymentHistoryService) Size(size int) *CloudMiningPaymentHistoryService
Size set size
func (*CloudMiningPaymentHistoryService) StartTime ¶
func (s *CloudMiningPaymentHistoryService) StartTime(startTime uint64) *CloudMiningPaymentHistoryService
StartTime set startTime
func (*CloudMiningPaymentHistoryService) Tranid ¶
func (s *CloudMiningPaymentHistoryService) Tranid(tranid int64) *CloudMiningPaymentHistoryService
Tranid set tranid
type CoinInfo ¶
type CoinInfo struct { Coin string `json:"coin"` DepositAllEnable bool `json:"depositAllEnable"` Free string `json:"free"` Freeze string `json:"freeze"` Ipoable string `json:"ipoable"` Ipoing string `json:"ipoing"` IsLegalMoney bool `json:"isLegalMoney"` Locked string `json:"locked"` Name string `json:"name"` NetworkList []struct { AddressRegex string `json:"addressRegex"` Coin string `json:"coin"` DepositDesc string `json:"depositDesc"` DepositEnable bool `json:"depositEnable"` IsDefault bool `json:"isDefault"` MemoRegex string `json:"memoRegex"` MinConfirm int `json:"minConfirm"` Name string `json:"name"` Network string `json:"network"` ResetAddressStatus bool `json:"resetAddressStatus"` SpecialTips string `json:"specialTips"` UnLockConfirm int `json:"unLockConfirm"` WithdrawDesc string `json:"withdrawDesc"` WithdrawEnable bool `json:"withdrawEnable"` WithdrawFee string `json:"withdrawFee"` WithdrawIntegerMultiple string `json:"withdrawIntegerMultiple"` WithdrawMax string `json:"withdrawMax"` WithdrawMin string `json:"withdrawMin"` SameAddress bool `json:"sameAddress"` EstimatedArrivalTime uint64 `json:"estimatedArrivalTime"` Busy bool `json:"busy"` } `json:"networkList"` Storage string `json:"storage"` Trading bool `json:"trading"` WithdrawAllEnable bool `json:"withdrawAllEnable"` Withdrawing string `json:"withdrawing"` }
CoinInfo define response of GetAllCoinsInfoService
type CreateListenKey ¶
type CreateListenKey struct {
// contains filtered or unexported fields
}
Create Listen Key
func (*CreateListenKey) Do ¶
func (s *CreateListenKey) Do(ctx context.Context, opts ...RequestOption) (listenKey string, err error)
Do send request
type CreateOrderResponseACK ¶
type CreateOrderResponseACK struct { Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` OrderListId int64 `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` TransactTime uint64 `json:"transactTime"` }
Create CreateOrderResponseACK
type CreateOrderResponseFULL ¶
type CreateOrderResponseFULL struct { Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` OrderListId int64 `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` TransactTime uint64 `json:"transactTime"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CumulativeQuoteQty string `json:"cummulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` WorkingTime uint64 `json:"workingTime"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` IcebergQty string `json:"icebergQty,omitempty"` PreventedMatchId int64 `json:"preventedMatchId,omitempty"` PreventedQuantity string `json:"preventedQuantity,omitempty"` StopPrice string `json:"stopPrice,omitempty"` StrategyId int64 `json:"strategyId,omitempty"` StrategyType int64 `json:"strategyType,omitempty"` TrailingDelta string `json:"trailingDelta,omitempty"` TrailingTime int64 `json:"trailingTime,omitempty"` Fills []struct { Price string `json:"price"` Qty string `json:"qty"` Commission string `json:"commission"` CommissionAsset string `json:"commissionAsset"` TradeId int64 `json:"tradeId"` } `json:"fills"` }
Create CreateOrderResponseFULL
type CreateOrderResponseRESULT ¶
type CreateOrderResponseRESULT struct { Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` OrderListId int64 `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` TransactTime uint64 `json:"transactTime"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CumulativeQuoteQty string `json:"cummulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` WorkingTime uint64 `json:"workingTime"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` IcebergQty string `json:"icebergQty,omitempty"` PreventedMatchId int64 `json:"preventedMatchId,omitempty"` PreventedQuantity string `json:"preventedQuantity,omitempty"` StopPrice string `json:"stopPrice,omitempty"` StrategyId int64 `json:"strategyId,omitempty"` StrategyType int64 `json:"strategyType,omitempty"` TrailingDelta string `json:"trailingDelta,omitempty"` TrailingTime int64 `json:"trailingTime,omitempty"` }
Create CreateOrderResponseRESULT
type CreateOrderService ¶
type CreateOrderService struct {
// contains filtered or unexported fields
}
Binance New Order endpoint (POST /api/v3/order) CreateOrderService create order
func (*CreateOrderService) Do ¶
func (s *CreateOrderService) Do(ctx context.Context, opts ...RequestOption) (res interface{}, err error)
Do send request
func (*CreateOrderService) IcebergQuantity ¶
func (s *CreateOrderService) IcebergQuantity(icebergQty float64) *CreateOrderService
IcebergQuantity set icebergQuantity
func (*CreateOrderService) NewClientOrderId ¶
func (s *CreateOrderService) NewClientOrderId(newClientOrderId string) *CreateOrderService
NewClientOrderId set newClientOrderId
func (*CreateOrderService) NewOrderRespType ¶
func (s *CreateOrderService) NewOrderRespType(newOrderRespType string) *CreateOrderService
NewOrderRespType set newOrderRespType
func (*CreateOrderService) Price ¶
func (s *CreateOrderService) Price(price float64) *CreateOrderService
Price set price
func (*CreateOrderService) Quantity ¶
func (s *CreateOrderService) Quantity(quantity float64) *CreateOrderService
Quantity set quantity
func (*CreateOrderService) QuoteOrderQty ¶
func (s *CreateOrderService) QuoteOrderQty(quoteOrderQty float64) *CreateOrderService
QuoteOrderQty set quoteOrderQty
func (*CreateOrderService) SelfTradePreventionMode ¶
func (s *CreateOrderService) SelfTradePreventionMode(selfTradePreventionMode string) *CreateOrderService
SelfTradePreventionMode set selfTradePreventionMode
func (*CreateOrderService) Side ¶
func (s *CreateOrderService) Side(side string) *CreateOrderService
Side set side
func (*CreateOrderService) StopPrice ¶
func (s *CreateOrderService) StopPrice(stopPrice float64) *CreateOrderService
StopPrice set stopPrice
func (*CreateOrderService) StrategyId ¶
func (s *CreateOrderService) StrategyId(strategyId int) *CreateOrderService
StrategyId set strategyId
func (*CreateOrderService) StrategyType ¶
func (s *CreateOrderService) StrategyType(strategyType int) *CreateOrderService
StrategyType set strategyType
func (*CreateOrderService) Symbol ¶
func (s *CreateOrderService) Symbol(symbol string) *CreateOrderService
Symbol set symbol
func (*CreateOrderService) TimeInForce ¶
func (s *CreateOrderService) TimeInForce(timeInForce string) *CreateOrderService
TimeInForce set timeInForce
func (*CreateOrderService) TrailingDelta ¶
func (s *CreateOrderService) TrailingDelta(trailingDelta int) *CreateOrderService
TrailingDelta set trailingDelta
func (*CreateOrderService) Type ¶
func (s *CreateOrderService) Type(orderType string) *CreateOrderService
Type set type
type CreateSubAccountResp ¶
type CreateSubAccountResp struct {
Email string `json:"email"`
}
type CreateSubAccountService ¶
type CreateSubAccountService struct {
// contains filtered or unexported fields
}
func (*CreateSubAccountService) Do ¶
func (s *CreateSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *CreateSubAccountResp, err error)
func (*CreateSubAccountService) SubAccountString ¶
func (s *CreateSubAccountService) SubAccountString(subAccountString string) *CreateSubAccountService
type CrossMarginAccountDetailResponse ¶
type CrossMarginAccountDetailResponse struct { BorrowEnabled bool `json:"borrowEnabled"` MarginLevel string `json:"marginLevel"` TotalAssetOfBtc string `json:"totalAssetOfBtc"` TotalLiabilityOfBtc string `json:"totalLiabilityOfBtc"` TotalNetAssetOfBtc string `json:"totalNetAssetOfBtc"` TradeEnabled bool `json:"tradeEnabled"` TransferEnabled bool `json:"transferEnabled"` UserAssets []struct { Asset string `json:"asset"` Borrowed string `json:"borrowed"` Free string `json:"free"` Interest string `json:"interest"` Locked string `json:"locked"` NetAsset string `json:"netAsset"` } `json:"userAssets"` }
CrossMarginAccountDetailResponse define cross margin account detail response
type CrossMarginAccountDetailService ¶
type CrossMarginAccountDetailService struct {
// contains filtered or unexported fields
}
CrossMarginAccountDetailService query cross margin account details
func (*CrossMarginAccountDetailService) Do ¶
func (s *CrossMarginAccountDetailService) Do(ctx context.Context, opts ...RequestOption) (res *CrossMarginAccountDetailResponse, err error)
Do send request
type CrossMarginTransferHistoryResponse ¶
type CrossMarginTransferHistoryResponse struct { Rows []struct { Amount string `json:"amount"` Asset string `json:"asset"` Status string `json:"status"` Timestamp uint64 `json:"timestamp"` TxId int64 `json:"txId"` Type string `json:"type"` } `json:"rows"` Total int `json:"total"` }
CrossMarginTransferHistoryResponse define cross margin transfer history response
type CrossMarginTransferHistoryService ¶
type CrossMarginTransferHistoryService struct {
// contains filtered or unexported fields
}
CrossMarginTransferHistoryService get cross margin transfer history
func (*CrossMarginTransferHistoryService) Archived ¶
func (s *CrossMarginTransferHistoryService) Archived(archived string) *CrossMarginTransferHistoryService
Archived set archived
func (*CrossMarginTransferHistoryService) Asset ¶
func (s *CrossMarginTransferHistoryService) Asset(asset string) *CrossMarginTransferHistoryService
Asset set asset
func (*CrossMarginTransferHistoryService) Current ¶
func (s *CrossMarginTransferHistoryService) Current(current int) *CrossMarginTransferHistoryService
Current set current
func (*CrossMarginTransferHistoryService) Do ¶
func (s *CrossMarginTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *CrossMarginTransferHistoryResponse, err error)
Do send request
func (*CrossMarginTransferHistoryService) EndTime ¶
func (s *CrossMarginTransferHistoryService) EndTime(endTime uint64) *CrossMarginTransferHistoryService
EndTime set endTime
func (*CrossMarginTransferHistoryService) OrderType ¶
func (s *CrossMarginTransferHistoryService) OrderType(orderType string) *CrossMarginTransferHistoryService
OrderType set orderType
func (*CrossMarginTransferHistoryService) Size ¶
func (s *CrossMarginTransferHistoryService) Size(size int) *CrossMarginTransferHistoryService
Size set size
func (*CrossMarginTransferHistoryService) StartTime ¶
func (s *CrossMarginTransferHistoryService) StartTime(startTime uint64) *CrossMarginTransferHistoryService
StartTime set startTime
type DeleteIPListForSubAccountAPIKeyService ¶
type DeleteIPListForSubAccountAPIKeyService struct {
// contains filtered or unexported fields
}
func (*DeleteIPListForSubAccountAPIKeyService) Do ¶
func (s *DeleteIPListForSubAccountAPIKeyService) Do(ctx context.Context, opts ...RequestOption) (res *DeleteIPListForSubAccountAPIKeyResp, err error)
func (*DeleteIPListForSubAccountAPIKeyService) Email ¶
func (s *DeleteIPListForSubAccountAPIKeyService) Email(email string) *DeleteIPListForSubAccountAPIKeyService
func (*DeleteIPListForSubAccountAPIKeyService) IpAddress ¶
func (s *DeleteIPListForSubAccountAPIKeyService) IpAddress(ipAddress string) *DeleteIPListForSubAccountAPIKeyService
func (*DeleteIPListForSubAccountAPIKeyService) SubAccountApiKey ¶
func (s *DeleteIPListForSubAccountAPIKeyService) SubAccountApiKey(subAccountApiKey string) *DeleteIPListForSubAccountAPIKeyService
type DepositAddressResponse ¶
type DepositAddressResponse struct { Address string `json:"address"` Coin string `json:"coin"` Tag string `json:"tag"` Url string `json:"url"` }
DepositAddressResponse define response of DepositAddressService
type DepositAddressService ¶
type DepositAddressService struct {
// contains filtered or unexported fields
}
DepositAddressService deposit address
func (*DepositAddressService) Coin ¶
func (s *DepositAddressService) Coin(coin string) *DepositAddressService
Coin set coin
func (*DepositAddressService) Do ¶
func (s *DepositAddressService) Do(ctx context.Context) (res *DepositAddressResponse, err error)
func (*DepositAddressService) Network ¶
func (s *DepositAddressService) Network(network string) *DepositAddressService
Network set network
type DepositAssetsIntoTheManagedSubAccountResp ¶
type DepositAssetsIntoTheManagedSubAccountResp struct {
TranId int64 `json:"tranId"`
}
type DepositAssetsIntoTheManagedSubAccountService ¶
type DepositAssetsIntoTheManagedSubAccountService struct {
// contains filtered or unexported fields
}
func (*DepositAssetsIntoTheManagedSubAccountService) Amount ¶
func (s *DepositAssetsIntoTheManagedSubAccountService) Amount(amount float64) *DepositAssetsIntoTheManagedSubAccountService
func (*DepositAssetsIntoTheManagedSubAccountService) Asset ¶
func (s *DepositAssetsIntoTheManagedSubAccountService) Asset(asset string) *DepositAssetsIntoTheManagedSubAccountService
func (*DepositAssetsIntoTheManagedSubAccountService) Do ¶
func (s *DepositAssetsIntoTheManagedSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *DepositAssetsIntoTheManagedSubAccountResp, err error)
func (*DepositAssetsIntoTheManagedSubAccountService) ToEmail ¶
func (s *DepositAssetsIntoTheManagedSubAccountService) ToEmail(toEmail string) *DepositAssetsIntoTheManagedSubAccountService
type DepositHistoryResponse ¶
type DepositHistoryResponse struct { Id string `json:"id"` Amount string `json:"amount"` Coin string `json:"coin"` Network string `json:"network"` Status int `json:"status"` Address string `json:"address"` AddressTag string `json:"addressTag"` TxId string `json:"txId"` InsertTime uint64 `json:"insertTime"` TransferType int `json:"transferType"` ConfirmTimes string `json:"confirmTimes"` UnlockConfirm int `json:"unlockConfirm"` WalletType int `json:"walletType"` }
DepositHistoryResponse define response of DepositHistoryService
type DepositHistoryService ¶
type DepositHistoryService struct {
// contains filtered or unexported fields
}
DepositHistoryService deposit history
func (*DepositHistoryService) Coin ¶
func (s *DepositHistoryService) Coin(coin string) *DepositHistoryService
Coin set coin
func (*DepositHistoryService) Do ¶
func (s *DepositHistoryService) Do(ctx context.Context) (res []*DepositHistoryResponse, err error)
func (*DepositHistoryService) EndTime ¶
func (s *DepositHistoryService) EndTime(endTime uint64) *DepositHistoryService
EndTime set endTime
func (*DepositHistoryService) Limit ¶
func (s *DepositHistoryService) Limit(limit int) *DepositHistoryService
Limit set limit
func (*DepositHistoryService) Offset ¶
func (s *DepositHistoryService) Offset(offset int) *DepositHistoryService
Offset set offset
func (*DepositHistoryService) StartTime ¶
func (s *DepositHistoryService) StartTime(startTime uint64) *DepositHistoryService
StartTime set startTime
func (*DepositHistoryService) Status ¶
func (s *DepositHistoryService) Status(status int) *DepositHistoryService
Status set status
func (*DepositHistoryService) TxId ¶
func (s *DepositHistoryService) TxId(txid string) *DepositHistoryService
TxId set txid
type DepthResponse ¶
type DepthResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result *DepthResult `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type DepthResult ¶
type DepthService ¶
type DepthService struct {
// contains filtered or unexported fields
}
func (*DepthService) Do ¶
func (s *DepthService) Do(ctx context.Context) (*DepthResponse, error)
func (*DepthService) Limit ¶
func (s *DepthService) Limit(limit int) *DepthService
func (*DepthService) Symbol ¶
func (s *DepthService) Symbol(symbol string) *DepthService
type DisableFastWithdrawSwitchResponse ¶
type DisableFastWithdrawSwitchResponse struct { }
DisableFastWithdrawSwitchResponse define response of DisableFastWithdrawSwitchService This endpoint has empty response
type DisableFastWithdrawSwitchService ¶
type DisableFastWithdrawSwitchService struct {
// contains filtered or unexported fields
}
DisableFastWithdrawSwitchService disable fast withdraw switch
func (*DisableFastWithdrawSwitchService) Do ¶
func (s *DisableFastWithdrawSwitchService) Do(ctx context.Context) (res *DisableFastWithdrawSwitchResponse, err error)
type DustLogResponse ¶
type DustLogResponse struct { Total int `json:"total"` UserAssetDribblets []struct { OperateTime uint64 `json:"operateTime"` TotalTransferedAmount string `json:"totalTransferedAmount"` TotalServiceChargeAmount string `json:"totalServiceChargeAmount"` TransId int64 `json:"transId"` UserAssetDribbletDetails []struct { TransId int64 `json:"transId"` ServiceChargeAmount string `json:"serviceChargeAmount"` Amount string `json:"amount"` OperateTime uint64 `json:"operateTime"` TransferedAmount string `json:"transferedAmount"` FromAsset string `json:"fromAsset"` } `json:"userAssetDribbletDetails"` } `json:"userAssetDribblets"` }
DustLogResponse define response of DustLogService
type DustLogService ¶
type DustLogService struct {
// contains filtered or unexported fields
}
DustLogService dust log
func (*DustLogService) Do ¶
func (s *DustLogService) Do(ctx context.Context) (res *DustLogResponse, err error)
func (*DustLogService) EndTime ¶
func (s *DustLogService) EndTime(endTime uint64) *DustLogService
EndTime set endTime
func (*DustLogService) StartTime ¶
func (s *DustLogService) StartTime(startTime uint64) *DustLogService
StartTime set startTime
type DustTransferResponse ¶
type DustTransferResponse struct { TotalServiceCharge string `json:"totalServiceCharge"` TotalTransfered string `json:"totalTransfered"` TransferResult []*DustTransferResult `json:"transferResult"` }
DustTransferResponse define response of DustTransferService
type DustTransferResult ¶
type DustTransferResult struct { Amount string `json:"amount"` FromAsset string `json:"fromAsset"` OperateTime int64 `json:"operateTime"` ServiceChargeAmount string `json:"serviceChargeAmount"` TranID int64 `json:"tranId"` TransferedAmount string `json:"transferedAmount"` }
DustTransferResult represents the result of a dust transfer.
type DustTransferService ¶
type DustTransferService struct {
// contains filtered or unexported fields
}
DustTransferService dust transfer
func (*DustTransferService) Asset ¶
func (s *DustTransferService) Asset(asset []string) *DustTransferService
Asset set asset
func (*DustTransferService) Do ¶
func (s *DustTransferService) Do(ctx context.Context) (res *DustTransferResponse, err error)
type EnableFastWithdrawSwitchResponse ¶
type EnableFastWithdrawSwitchResponse struct { }
EnableFastWithdrawSwitchResponse define response of EnableFastWithdrawSwitchService This endpoint has empty response
type EnableFastWithdrawSwitchService ¶
type EnableFastWithdrawSwitchService struct {
// contains filtered or unexported fields
}
EnableFastWithdrawSwitchService enable fast withdraw switch
func (*EnableFastWithdrawSwitchService) Do ¶
func (s *EnableFastWithdrawSwitchService) Do(ctx context.Context) (res *EnableFastWithdrawSwitchResponse, err error)
type EnableFuturesForSubAccountService ¶
type EnableFuturesForSubAccountService struct {
// contains filtered or unexported fields
}
func (*EnableFuturesForSubAccountService) Do ¶
func (s *EnableFuturesForSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *EnableFuturesForSubAccountResp, err error)
func (*EnableFuturesForSubAccountService) Email ¶
func (s *EnableFuturesForSubAccountService) Email(email string) *EnableFuturesForSubAccountService
type EnableLeverageTokenForSubAccountService ¶
type EnableLeverageTokenForSubAccountService struct {
// contains filtered or unexported fields
}
func (*EnableLeverageTokenForSubAccountService) Do ¶
func (s *EnableLeverageTokenForSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *EnableLeverageTokenForSubAccountResp, err error)
func (*EnableLeverageTokenForSubAccountService) Email ¶
func (s *EnableLeverageTokenForSubAccountService) Email(email string) *EnableLeverageTokenForSubAccountService
func (*EnableLeverageTokenForSubAccountService) EnableBlvt ¶
func (s *EnableLeverageTokenForSubAccountService) EnableBlvt(enableBlvt bool) *EnableLeverageTokenForSubAccountService
type EnableMarginForSubAccountService ¶
type EnableMarginForSubAccountService struct {
// contains filtered or unexported fields
}
func (*EnableMarginForSubAccountService) Do ¶
func (s *EnableMarginForSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *EnableMarginForSubAccountResp, err error)
func (*EnableMarginForSubAccountService) Email ¶
func (s *EnableMarginForSubAccountService) Email(email string) *EnableMarginForSubAccountService
type ExchangeFilter ¶
type ExchangeFilter struct { FilterType string `json:"filterType"` MaxNumAlgo int64 `json:"maxNumAlgoOrders"` }
ExchangeFilter define exchange filter
type ExchangeInfo ¶
type ExchangeInfo struct {
// contains filtered or unexported fields
}
Binance Exchange Information endpoint (GET /api/v3/exchangeInfo)
func (*ExchangeInfo) Do ¶
func (s *ExchangeInfo) Do(ctx context.Context, opts ...RequestOption) (res *ExchangeInfoResponse, err error)
Send the request
type ExchangeInfoResponse ¶
type ExchangeInfoResponse struct { Timezone string `json:"timezone"` ServerTime uint64 `json:"serverTime"` RateLimits []*RateLimit `json:"rateLimits"` ExchangeFilters []*ExchangeFilter `json:"exchangeFilters"` Symbols []*SymbolInfo `json:"symbols"` }
ExchangeInfoResponse define exchange info response
type ExchangeInformationResponse ¶
type ExchangeInformationResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result json.RawMessage `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits,omitempty"` }
type ExchangeInformationService ¶
type ExchangeInformationService struct {
// contains filtered or unexported fields
}
func (*ExchangeInformationService) Do ¶
func (s *ExchangeInformationService) Do(ctx context.Context) (*ExchangeInformationResponse, error)
func (*ExchangeInformationService) Permissions ¶
func (s *ExchangeInformationService) Permissions(permissions []string) *ExchangeInformationService
func (*ExchangeInformationService) Symbol ¶
func (s *ExchangeInformationService) Symbol(symbol string) *ExchangeInformationService
func (*ExchangeInformationService) Symbols ¶
func (s *ExchangeInformationService) Symbols(symbols []string) *ExchangeInformationService
type ForceLiquidationRecordResponse ¶
type ForceLiquidationRecordResponse struct { Rows []struct { AvgPrice string `json:"avgPrice"` ExecutedQty string `json:"executedQty"` OrderId int `json:"orderId"` Price string `json:"price"` Qty string `json:"qty"` Side string `json:"side"` Symbol string `json:"symbol"` TimeInForce string `json:"timeInForce"` IsIsolated bool `json:"isIsolated"` UpdatedTime uint64 `json:"updatedTime"` } `json:"rows"` Total int `json:"total"` }
ForceLiquidationRecordResponse define force liquidation record response
type ForceLiquidationRecordService ¶
type ForceLiquidationRecordService struct {
// contains filtered or unexported fields
}
ForceLiquidationRecordService query force liquidation record
func (*ForceLiquidationRecordService) Current ¶
func (s *ForceLiquidationRecordService) Current(current int) *ForceLiquidationRecordService
Current set current
func (*ForceLiquidationRecordService) Do ¶
func (s *ForceLiquidationRecordService) Do(ctx context.Context, opts ...RequestOption) (res *ForceLiquidationRecordResponse, err error)
Do send request
func (*ForceLiquidationRecordService) EndTime ¶
func (s *ForceLiquidationRecordService) EndTime(endTime uint64) *ForceLiquidationRecordService
EndTime set endTime
func (*ForceLiquidationRecordService) IsolatedSymbol ¶
func (s *ForceLiquidationRecordService) IsolatedSymbol(isolatedSymbol string) *ForceLiquidationRecordService
IsolatedSymbol set isolatedSymbol
func (*ForceLiquidationRecordService) Size ¶
func (s *ForceLiquidationRecordService) Size(size int) *ForceLiquidationRecordService
Size set size
func (*ForceLiquidationRecordService) StartTime ¶
func (s *ForceLiquidationRecordService) StartTime(startTime uint64) *ForceLiquidationRecordService
StartTime set startTime
type FundingWalletResponse ¶
type FundingWalletResponse struct { Asset string `json:"asset"` Free string `json:"free"` Locked string `json:"locked"` Freeze string `json:"freeze"` Withdrawing string `json:"withdrawing"` BtcValuation string `json:"btcValuation"` }
FundingWalletResponse define response of FundingWalletService
type FundingWalletService ¶
type FundingWalletService struct {
// contains filtered or unexported fields
}
FundingWalletService funding wallet
func (*FundingWalletService) Asset ¶
func (s *FundingWalletService) Asset(asset string) *FundingWalletService
Asset set asset
func (*FundingWalletService) Do ¶
func (s *FundingWalletService) Do(ctx context.Context) (res []*FundingWalletResponse, err error)
func (*FundingWalletService) NeedBtcValuation ¶
func (s *FundingWalletService) NeedBtcValuation(needBtcValuation string) *FundingWalletService
NeedBtcValuation set needBtcValuation
type FuturesTransferForSubAccountResp ¶
type FuturesTransferForSubAccountResp struct {
TxnId int `json:"txnId"`
}
type FuturesTransferForSubAccountService ¶
type FuturesTransferForSubAccountService struct {
// contains filtered or unexported fields
}
func (*FuturesTransferForSubAccountService) Amount ¶
func (s *FuturesTransferForSubAccountService) Amount(amount float64) *FuturesTransferForSubAccountService
func (*FuturesTransferForSubAccountService) Asset ¶
func (s *FuturesTransferForSubAccountService) Asset(asset string) *FuturesTransferForSubAccountService
func (*FuturesTransferForSubAccountService) Do ¶
func (s *FuturesTransferForSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *FuturesTransferForSubAccountResp, err error)
func (*FuturesTransferForSubAccountService) Email ¶
func (s *FuturesTransferForSubAccountService) Email(email string) *FuturesTransferForSubAccountService
func (*FuturesTransferForSubAccountService) TransferType ¶
func (s *FuturesTransferForSubAccountService) TransferType(transferType int) *FuturesTransferForSubAccountService
type GetAccountService ¶
type GetAccountService struct {
// contains filtered or unexported fields
}
Binance Account Information (USER_DATA) (GET /api/v3/account) GetAccountService get account information
func (*GetAccountService) Do ¶
func (s *GetAccountService) Do(ctx context.Context, opts ...RequestOption) (res *AccountResponse, err error)
Do send request
type GetAccountSnapshotService ¶
type GetAccountSnapshotService struct {
// contains filtered or unexported fields
}
GetAccountSnapshotService get all orders from account
func (*GetAccountSnapshotService) Do ¶
func (s *GetAccountSnapshotService) Do(ctx context.Context) (res *AccountSnapshotResponse, err error)
func (*GetAccountSnapshotService) EndTime ¶
func (s *GetAccountSnapshotService) EndTime(endTime uint64) *GetAccountSnapshotService
EndTime set end time
func (*GetAccountSnapshotService) Limit ¶
func (s *GetAccountSnapshotService) Limit(limit int) *GetAccountSnapshotService
Limit set limit
func (*GetAccountSnapshotService) MarketType ¶
func (s *GetAccountSnapshotService) MarketType(marketType string) *GetAccountSnapshotService
MarketType set market type
func (*GetAccountSnapshotService) StartTime ¶
func (s *GetAccountSnapshotService) StartTime(startTime uint64) *GetAccountSnapshotService
StartTime set start time
type GetAllCoinsInfoService ¶
type GetAllCoinsInfoService struct {
// contains filtered or unexported fields
}
GetAllCoinsInfoService get all coins' information
type GetAllMarginAssetsResponse ¶
type GetAllMarginAssetsResponse struct { AssetFullName string `json:"assetFullName"` AssetName string `json:"assetName"` IsBorrowable bool `json:"isBorrowable"` IsMortgageable bool `json:"isMortgageable"` MinLoanAmt string `json:"minLoanAmt"` MaxLoanAmt string `json:"maxLoanAmt"` MinMortgageAmt string `json:"minMortgageAmt"` MaxMortgageAmt string `json:"maxMortgageAmt"` Asset string `json:"asset"` }
GetAllMarginAssetsResponse define get all margin assets response
type GetAllMarginAssetsService ¶
type GetAllMarginAssetsService struct {
// contains filtered or unexported fields
}
GetAllMarginAssetsService get all margin assets
func (*GetAllMarginAssetsService) Do ¶
func (s *GetAllMarginAssetsService) Do(ctx context.Context, opts ...RequestOption) (res []*GetAllMarginAssetsResponse, err error)
Do send request
type GetAllMarginPairsResponse ¶
type GetAllMarginPairsResponse struct { Base string `json:"base"` Id int `json:"id"` IsBuyAllowed bool `json:"isBuyAllowed"` IsMarginTrade bool `json:"isMarginTrade"` IsSellAllowed bool `json:"isSellAllowed"` Quote string `json:"quote"` Symbol string `json:"symbol"` }
GetAllMarginPairsResponse define get all margin pairs response
type GetAllMarginPairsService ¶
type GetAllMarginPairsService struct {
// contains filtered or unexported fields
}
GetAllMarginPairsService get all margin pairs
func (*GetAllMarginPairsService) Do ¶
func (s *GetAllMarginPairsService) Do(ctx context.Context, opts ...RequestOption) (res []*GetAllMarginPairsResponse, err error)
Do send request
type GetAllOrdersService ¶
type GetAllOrdersService struct {
// contains filtered or unexported fields
}
Binance Get all account orders; active, canceled, or filled (GET /api/v3/allOrders) GetAllOrdersService get all orders
func (*GetAllOrdersService) Do ¶
func (s *GetAllOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*NewAllOrdersResponse, err error)
Do send request
func (*GetAllOrdersService) EndTime ¶
func (s *GetAllOrdersService) EndTime(endTime uint64) *GetAllOrdersService
EndTime set endTime
func (*GetAllOrdersService) Limit ¶
func (s *GetAllOrdersService) Limit(limit int) *GetAllOrdersService
Limit set limit
func (*GetAllOrdersService) OrderId ¶
func (s *GetAllOrdersService) OrderId(orderId int64) *GetAllOrdersService
OrderId set orderId
func (*GetAllOrdersService) StartTime ¶
func (s *GetAllOrdersService) StartTime(startTime uint64) *GetAllOrdersService
StartTime set startTime
func (*GetAllOrdersService) Symbol ¶
func (s *GetAllOrdersService) Symbol(symbol string) *GetAllOrdersService
Symbol set symbol
type GetDetailOnSubAccountFuturesAccountResp ¶
type GetDetailOnSubAccountFuturesAccountResp struct { Email string `json:"email"` Asset string `json:"asset"` Assets []struct { Asset string `json:"asset"` InitialMargin string `json:"initialMargin"` MaintenanceMargin string `json:"maintenanceMargin"` MarginBalance string `json:"marginBalance"` MaxWithdrawAmount string `json:"maxWithdrawAmount"` OpenOrderInitialMargin string `json:"openOrderInitialMargin"` PositionInitialMargin string `json:"positionInitialMargin"` UnrealizedProfit string `json:"unrealizedProfit"` WalletBalance string `json:"walletBalance"` } `json:"assets"` CanDeposit bool `json:"canDeposit"` CanTrade bool `json:"canTrade"` CanWithdraw bool `json:"canWithdraw"` FeeTier int `json:"feeTier"` MaxWithdrawAmount string `json:"maxWithdrawAmount"` TotalInitialMargin string `json:"totalInitialMargin"` TotalMaintenanceMargin string `json:"totalMaintenanceMargin"` TotalMarginBalance string `json:"totalMarginBalance"` TotalOpenOrderInitialMargin string `json:"totalOpenOrderInitialMargin"` TotalPositionInitialMargin string `json:"totalPositionInitialMargin"` TotalUnrealizedProfit string `json:"totalUnrealizedProfit"` TotalWalletBalance string `json:"totalWalletBalance"` UpdateTime uint64 `json:"updateTime"` }
type GetDetailOnSubAccountFuturesAccountService ¶
type GetDetailOnSubAccountFuturesAccountService struct {
// contains filtered or unexported fields
}
func (*GetDetailOnSubAccountFuturesAccountService) Do ¶
func (s *GetDetailOnSubAccountFuturesAccountService) Do(ctx context.Context, opts ...RequestOption) (res *GetDetailOnSubAccountFuturesAccountResp, err error)
func (*GetDetailOnSubAccountFuturesAccountService) Email ¶
func (s *GetDetailOnSubAccountFuturesAccountService) Email(email string) *GetDetailOnSubAccountFuturesAccountService
type GetDetailOnSubAccountFuturesAccountV2COINResp ¶
type GetDetailOnSubAccountFuturesAccountV2COINResp struct { DeliveryAccountResp struct { Email string `json:"email"` Assets []struct { Asset string `json:"asset"` InitialMargin string `json:"initialMargin"` MaintenanceMargin string `json:"maintenanceMargin"` MarginBalance string `json:"marginBalance"` MaxWithdrawAmount string `json:"maxWithdrawAmount"` OpenOrderInitialMargin string `json:"openOrderInitialMargin"` PositionInitialMargin string `json:"positionInitialMargin"` UnrealizedProfit string `json:"unrealizedProfit"` WalletBalance string `json:"walletBalance"` } `json:"assets"` CanDeposit bool `json:"canDeposit"` CanTrade bool `json:"canTrade"` CanWithdraw bool `json:"canWithdraw"` FeeTier int `json:"feeTier"` UpdateTime uint64 `json:"updateTime"` } `json:"deliveryAccountResp"` }
type GetDetailOnSubAccountFuturesAccountV2Service ¶
type GetDetailOnSubAccountFuturesAccountV2Service struct {
// contains filtered or unexported fields
}
func (*GetDetailOnSubAccountFuturesAccountV2Service) Do ¶
func (s *GetDetailOnSubAccountFuturesAccountV2Service) Do(ctx context.Context, opts ...RequestOption) (res interface{}, err error)
func (*GetDetailOnSubAccountFuturesAccountV2Service) Email ¶
func (s *GetDetailOnSubAccountFuturesAccountV2Service) Email(email string) *GetDetailOnSubAccountFuturesAccountV2Service
func (*GetDetailOnSubAccountFuturesAccountV2Service) FuturesType ¶
func (s *GetDetailOnSubAccountFuturesAccountV2Service) FuturesType(futuresType int) *GetDetailOnSubAccountFuturesAccountV2Service
type GetDetailOnSubAccountFuturesAccountV2USDTResp ¶
type GetDetailOnSubAccountFuturesAccountV2USDTResp struct { FutureAccountResp struct { Email string `json:"email"` Assets []struct { Asset string `json:"asset"` InitialMargin string `json:"initialMargin"` MaintenanceMargin string `json:"maintenanceMargin"` MarginBalance string `json:"marginBalance"` MaxWithdrawAmount string `json:"maxWithdrawAmount"` OpenOrderInitialMargin string `json:"openOrderInitialMargin"` PositionInitialMargin string `json:"positionInitialMargin"` UnrealizedProfit string `json:"unrealizedProfit"` WalletBalance string `json:"walletBalance"` } `json:"assets"` CanDeposit bool `json:"canDeposit"` CanTrade bool `json:"canTrade"` CanWithdraw bool `json:"canWithdraw"` FeeTier int `json:"feeTier"` MaxWithdrawAmount string `json:"maxWithdrawAmount"` TotalInitialMargin string `json:"totalInitialMargin"` TotalMaintenanceMargin string `json:"totalMaintenanceMargin"` TotalMarginBalance string `json:"totalMarginBalance"` TotalOpenOrderInitialMargin string `json:"totalOpenOrderInitialMargin"` TotalPositionInitialMargin string `json:"totalPositionInitialMargin"` TotalUnrealizedProfit string `json:"totalUnrealizedProfit"` TotalWalletBalance string `json:"totalWalletBalance"` UpdateTime uint64 `json:"updateTime"` } `json:"futureAccountResp"` }
type GetDetailOnSubAccountMarginAccountResp ¶
type GetDetailOnSubAccountMarginAccountResp struct { Email string `json:"email"` MarginLevel string `json:"marginLevel"` TotalAssetOfBtc string `json:"totalAssetOfBtc"` TotalLiabilityOfBtc string `json:"totalLiabilityOfBtc"` TotalNetAssetOfBtc string `json:"totalNetAssetOfBtc"` MarginTradeCoeffVo struct { ForceLiquidationRate string `json:"forceLiquidationRate"` MarginCallBar string `json:"marginCallBar"` NormalBar string `json:"normalBar"` } `json:"marginTradeCoeffVo"` MarginUserAssetVoList []struct { Asset string `json:"asset"` Borrowed string `json:"borrowed"` Free string `json:"free"` Interest string `json:"interest"` Locked string `json:"locked"` NetAsset string `json:"netAsset"` } }
type GetDetailOnSubAccountMarginAccountService ¶
type GetDetailOnSubAccountMarginAccountService struct {
// contains filtered or unexported fields
}
func (*GetDetailOnSubAccountMarginAccountService) Do ¶
func (s *GetDetailOnSubAccountMarginAccountService) Do(ctx context.Context, opts ...RequestOption) (res *GetDetailOnSubAccountMarginAccountResp, err error)
func (*GetDetailOnSubAccountMarginAccountService) Email ¶
func (s *GetDetailOnSubAccountMarginAccountService) Email(email string) *GetDetailOnSubAccountMarginAccountService
type GetFuturesPositionRiskOfSubAccountResp ¶
type GetFuturesPositionRiskOfSubAccountResp struct { EntryPrice string `json:"entryPrice"` Leverage string `json:"leverage"` MaxNotional string `json:"maxNotional"` LiquidationPrice string `json:"liquidationPrice"` MarkPrice string `json:"markPrice"` PositionAmount string `json:"positionAmount"` Symbol string `json:"symbol"` UnrealizedProfit string `json:"unrealizedProfit"` }
type GetFuturesPositionRiskOfSubAccountService ¶
type GetFuturesPositionRiskOfSubAccountService struct {
// contains filtered or unexported fields
}
func (*GetFuturesPositionRiskOfSubAccountService) Do ¶
func (s *GetFuturesPositionRiskOfSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *GetFuturesPositionRiskOfSubAccountResp, err error)
func (*GetFuturesPositionRiskOfSubAccountService) Email ¶
func (s *GetFuturesPositionRiskOfSubAccountService) Email(email string) *GetFuturesPositionRiskOfSubAccountService
type GetFuturesPositionRiskOfSubAccountV2COINResp ¶
type GetFuturesPositionRiskOfSubAccountV2COINResp struct { DeliveryPositionRiskVos []struct { EntryPrice string `json:"entryPrice"` MarkPrice string `json:"markPrice"` Leverage string `json:"leverage"` Isolated string `json:"isolated"` IsolatedWallet string `json:"isolatedWallet"` IsolatedMargin string `json:"isolatedMargin"` IsAutoAddMargin string `json:"isAutoAddMargin"` PositionSide string `json:"positionSide"` PositionAmount string `json:"positionAmount"` Symbol string `json:"symbol"` UnrealizedProfit string `json:"unrealizedProfit"` } `json:"deliveryPositionRiskVos"` }
type GetFuturesPositionRiskOfSubAccountV2Service ¶
type GetFuturesPositionRiskOfSubAccountV2Service struct {
// contains filtered or unexported fields
}
func (*GetFuturesPositionRiskOfSubAccountV2Service) Do ¶
func (s *GetFuturesPositionRiskOfSubAccountV2Service) Do(ctx context.Context, opts ...RequestOption) (res interface{}, err error)
func (*GetFuturesPositionRiskOfSubAccountV2Service) Email ¶
func (s *GetFuturesPositionRiskOfSubAccountV2Service) Email(email string) *GetFuturesPositionRiskOfSubAccountV2Service
func (*GetFuturesPositionRiskOfSubAccountV2Service) FuturesType ¶
func (s *GetFuturesPositionRiskOfSubAccountV2Service) FuturesType(futuresType int) *GetFuturesPositionRiskOfSubAccountV2Service
type GetFuturesPositionRiskOfSubAccountV2USDTResp ¶
type GetFuturesPositionRiskOfSubAccountV2USDTResp struct { FuturePositionRiskVos []struct { EntryPrice string `json:"entryPrice"` Leverage string `json:"leverage"` MaxNotional string `json:"maxNotional"` LiquidationPrice string `json:"liquidationPrice"` MarkPrice string `json:"markPrice"` PositionAmount string `json:"positionAmount"` Symbol string `json:"symbol"` UnrealizedProfit string `json:"unrealizedProfit"` } `json:"futurePositionRiskVos"` }
type GetIPRestrictionForSubAccountAPIKeyService ¶
type GetIPRestrictionForSubAccountAPIKeyService struct {
// contains filtered or unexported fields
}
func (*GetIPRestrictionForSubAccountAPIKeyService) Do ¶
func (s *GetIPRestrictionForSubAccountAPIKeyService) Do(ctx context.Context, opts ...RequestOption) (res *GetIPRestrictionForSubAccountAPIKeyResp, err error)
func (*GetIPRestrictionForSubAccountAPIKeyService) Email ¶
func (s *GetIPRestrictionForSubAccountAPIKeyService) Email(email string) *GetIPRestrictionForSubAccountAPIKeyService
func (*GetIPRestrictionForSubAccountAPIKeyService) SubAccountApiKey ¶
func (s *GetIPRestrictionForSubAccountAPIKeyService) SubAccountApiKey(subAccountApiKey string) *GetIPRestrictionForSubAccountAPIKeyService
type GetManagedSubAccountDepositAddressService ¶
type GetManagedSubAccountDepositAddressService struct {
// contains filtered or unexported fields
}
func (*GetManagedSubAccountDepositAddressService) Coin ¶
func (s *GetManagedSubAccountDepositAddressService) Coin(coin string) *GetManagedSubAccountDepositAddressService
func (*GetManagedSubAccountDepositAddressService) Do ¶
func (s *GetManagedSubAccountDepositAddressService) Do(ctx context.Context, opts ...RequestOption) (res *GetManagedSubAccountDepositAddressResp, err error)
func (*GetManagedSubAccountDepositAddressService) Email ¶
func (s *GetManagedSubAccountDepositAddressService) Email(email string) *GetManagedSubAccountDepositAddressService
func (*GetManagedSubAccountDepositAddressService) Network ¶
func (s *GetManagedSubAccountDepositAddressService) Network(network string) *GetManagedSubAccountDepositAddressService
type GetMyTradesService ¶
type GetMyTradesService struct {
// contains filtered or unexported fields
}
Binance Get trades for a specific account and symbol (USER_DATA) (GET /api/v3/myTrades) GetMyTradesService get trades for a specific account and symbol
func (*GetMyTradesService) Do ¶
func (s *GetMyTradesService) Do(ctx context.Context, opts ...RequestOption) (res []*AccountTradeListResponse, err error)
Do send request
func (*GetMyTradesService) EndTime ¶
func (s *GetMyTradesService) EndTime(endTime uint64) *GetMyTradesService
EndTime set endTime
func (*GetMyTradesService) FromId ¶
func (s *GetMyTradesService) FromId(fromId int64) *GetMyTradesService
FromId set fromId
func (*GetMyTradesService) Limit ¶
func (s *GetMyTradesService) Limit(limit int) *GetMyTradesService
Limit set limit
func (*GetMyTradesService) OrderId ¶
func (s *GetMyTradesService) OrderId(orderId int64) *GetMyTradesService
OrderId set orderId
func (*GetMyTradesService) StartTime ¶
func (s *GetMyTradesService) StartTime(startTime uint64) *GetMyTradesService
StartTime set startTime
func (*GetMyTradesService) Symbol ¶
func (s *GetMyTradesService) Symbol(symbol string) *GetMyTradesService
Symbol set symbol
type GetOpenOrdersService ¶
type GetOpenOrdersService struct {
// contains filtered or unexported fields
}
Binance Get current open orders (GET /api/v3/openOrders) GetOpenOrdersService get open orders
func (*GetOpenOrdersService) Do ¶
func (s *GetOpenOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*NewOpenOrdersResponse, err error)
Do send request
func (*GetOpenOrdersService) Symbol ¶
func (s *GetOpenOrdersService) Symbol(symbol string) *GetOpenOrdersService
Symbol set symbol
type GetOrderResponse ¶
type GetOrderResponse struct { Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` OrderListId int64 `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CumulativeQuoteQty string `json:"cumulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` StopPrice string `json:"stopPrice"` IcebergQty string `json:"icebergQty,omitempty"` Time uint64 `json:"time"` UpdateTime uint64 `json:"updateTime"` IsWorking bool `json:"isWorking"` WorkingTime uint64 `json:"workingTime"` OrigQuoteOrderQty string `json:"origQuoteOrderQty"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` PreventedMatchId int64 `json:"preventedMatchId,omitempty"` PreventedQuantity string `json:"preventedQuantity,omitempty"` StrategyId int64 `json:"strategyId,omitempty"` StrategyType int64 `json:"strategyType,omitempty"` TrailingDelta string `json:"trailingDelta,omitempty"` TrailingTime int64 `json:"trailingTime,omitempty"` }
Create GetOrderResponse
type GetOrderService ¶
type GetOrderService struct {
// contains filtered or unexported fields
}
Query Order (USER_DATA) Binance Query Order (USER_DATA) (GET /api/v3/order) GetOrderService get order
func (*GetOrderService) Do ¶
func (s *GetOrderService) Do(ctx context.Context, opts ...RequestOption) (res *GetOrderResponse, err error)
Do send request
func (*GetOrderService) OrderId ¶
func (s *GetOrderService) OrderId(orderId int64) *GetOrderService
OrderId set orderId
func (*GetOrderService) OrigClientOrderId ¶
func (s *GetOrderService) OrigClientOrderId(origClientOrderId string) *GetOrderService
OrigClientOrderId set origClientOrderId
func (*GetOrderService) Symbol ¶
func (s *GetOrderService) Symbol(symbol string) *GetOrderService
Symbol set symbol
type GetQueryCurrentOrderCountUsageService ¶
type GetQueryCurrentOrderCountUsageService struct {
// contains filtered or unexported fields
}
Query Current Order Count Usage (TRADE) GetQueryCurrentOrderCountUsageService query current order count usage
func (*GetQueryCurrentOrderCountUsageService) Do ¶
func (s *GetQueryCurrentOrderCountUsageService) Do(ctx context.Context, opts ...RequestOption) (res []*QueryCurrentOrderCountUsageResponse, err error)
Do send request
type GetQueryPreventedMatchesService ¶
type GetQueryPreventedMatchesService struct {
// contains filtered or unexported fields
}
Query Prevented Matches (USER_DATA) GetQueryPreventedMatchesService query prevented matches
func (*GetQueryPreventedMatchesService) Do ¶
func (s *GetQueryPreventedMatchesService) Do(ctx context.Context, opts ...RequestOption) (res *QueryPreventedMatchesResponse, err error)
Do send request
func (*GetQueryPreventedMatchesService) FromPreventedMatchId ¶
func (s *GetQueryPreventedMatchesService) FromPreventedMatchId(fromPreventedMatchId int64) *GetQueryPreventedMatchesService
FromPreventedMatchId set fromPreventedMatchId
func (*GetQueryPreventedMatchesService) Limit ¶
func (s *GetQueryPreventedMatchesService) Limit(limit int) *GetQueryPreventedMatchesService
Limit set limit
func (*GetQueryPreventedMatchesService) OrderId ¶
func (s *GetQueryPreventedMatchesService) OrderId(orderId int64) *GetQueryPreventedMatchesService
OrderId set orderId
func (*GetQueryPreventedMatchesService) PreventMatchId ¶
func (s *GetQueryPreventedMatchesService) PreventMatchId(preventMatchId int64) *GetQueryPreventedMatchesService
PreventMatchId set preventMatchId
func (*GetQueryPreventedMatchesService) Symbol ¶
func (s *GetQueryPreventedMatchesService) Symbol(symbol string) *GetQueryPreventedMatchesService
Symbol set symbol
type GetSubAccountDepositAddressService ¶
type GetSubAccountDepositAddressService struct {
// contains filtered or unexported fields
}
func (*GetSubAccountDepositAddressService) Coin ¶
func (s *GetSubAccountDepositAddressService) Coin(coin string) *GetSubAccountDepositAddressService
func (*GetSubAccountDepositAddressService) Do ¶
func (s *GetSubAccountDepositAddressService) Do(ctx context.Context, opts ...RequestOption) (res *GetSubAccountDepositAddressResp, err error)
func (*GetSubAccountDepositAddressService) Email ¶
func (s *GetSubAccountDepositAddressService) Email(email string) *GetSubAccountDepositAddressService
func (*GetSubAccountDepositAddressService) Network ¶
func (s *GetSubAccountDepositAddressService) Network(network string) *GetSubAccountDepositAddressService
type GetSubAccountDepositHistoryResp ¶
type GetSubAccountDepositHistoryResp struct { DepositList []struct { Id int64 `json:"id"` Amount string `json:"amount"` Coin string `json:"coin"` Network string `json:"network"` Status int64 `json:"status"` Address string `json:"address"` AddressTag string `json:"addressTag"` TxId string `json:"txId"` InsertTime uint64 `json:"insertTime"` TransferType int64 `json:"transferType"` ConfirmTimes string `json:"confirmTimes"` UnlockConfirm int64 `json:"unlockConfirm"` WalletType int `json:"walletType"` } }
type GetSubAccountDepositHistoryService ¶
type GetSubAccountDepositHistoryService struct {
// contains filtered or unexported fields
}
func (*GetSubAccountDepositHistoryService) Coin ¶
func (s *GetSubAccountDepositHistoryService) Coin(coin string) *GetSubAccountDepositHistoryService
func (*GetSubAccountDepositHistoryService) Do ¶
func (s *GetSubAccountDepositHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *GetSubAccountDepositHistoryResp, err error)
func (*GetSubAccountDepositHistoryService) Email ¶
func (s *GetSubAccountDepositHistoryService) Email(email string) *GetSubAccountDepositHistoryService
func (*GetSubAccountDepositHistoryService) EndTime ¶
func (s *GetSubAccountDepositHistoryService) EndTime(endTime uint64) *GetSubAccountDepositHistoryService
func (*GetSubAccountDepositHistoryService) Limit ¶
func (s *GetSubAccountDepositHistoryService) Limit(limit int) *GetSubAccountDepositHistoryService
func (*GetSubAccountDepositHistoryService) Offset ¶
func (s *GetSubAccountDepositHistoryService) Offset(offset int64) *GetSubAccountDepositHistoryService
func (*GetSubAccountDepositHistoryService) StartTime ¶
func (s *GetSubAccountDepositHistoryService) StartTime(startTime uint64) *GetSubAccountDepositHistoryService
func (*GetSubAccountDepositHistoryService) Status ¶
func (s *GetSubAccountDepositHistoryService) Status(status int64) *GetSubAccountDepositHistoryService
type GetSubAccountStatusResp ¶
type GetSubAccountStatusResp struct { Email string `json:"email"` IsSubUserEnabled bool `json:"isSubUserEnabled"` IsUserActive bool `json:"isUserActive"` InsertTime uint64 `json:"insertTime"` IsMarginEnabled bool `json:"isMarginEnabled"` IsFuturesEnabled bool `json:"isFuturesEnabled"` Mobile int64 `json:"mobile"` }
type GetSubAccountStatusService ¶
type GetSubAccountStatusService struct {
// contains filtered or unexported fields
}
func (*GetSubAccountStatusService) Do ¶
func (s *GetSubAccountStatusService) Do(ctx context.Context, opts ...RequestOption) (res *GetSubAccountStatusResp, err error)
func (*GetSubAccountStatusService) Email ¶
func (s *GetSubAccountStatusService) Email(email string) *GetSubAccountStatusService
type GetSummaryOfSubAccountFuturesAccountResp ¶
type GetSummaryOfSubAccountFuturesAccountResp struct { TotalInitialMargin string `json:"totalInitialMargin"` TotalMaintenanceMargin string `json:"totalMaintenanceMargin"` TotalMarginBalance string `json:"totalMarginBalance"` TotalOpenOrderInitialMargin string `json:"totalOpenOrderInitialMargin"` TotalPositionInitialMargin string `json:"totalPositionInitialMargin"` TotalUnrealizedProfit string `json:"totalUnrealizedProfit"` TotalWalletBalance string `json:"totalWalletBalance"` Asset string `json:"asset"` SubAccountList []struct { Email string `json:"email"` TotalInitialMargin string `json:"totalInitialMargin"` TotalMaintenanceMargin string `json:"totalMaintenanceMargin"` TotalMarginBalance string `json:"totalMarginBalance"` TotalOpenOrderInitialMargin string `json:"totalOpenOrderInitialMargin"` TotalPositionInitialMargin string `json:"totalPositionInitialMargin"` TotalUnrealizedProfit string `json:"totalUnrealizedProfit"` TotalWalletBalance string `json:"totalWalletBalance"` Asset string `json:"asset"` } `json:"subAccountList"` }
type GetSummaryOfSubAccountFuturesAccountService ¶
type GetSummaryOfSubAccountFuturesAccountService struct {
// contains filtered or unexported fields
}
func (*GetSummaryOfSubAccountFuturesAccountService) Do ¶
func (s *GetSummaryOfSubAccountFuturesAccountService) Do(ctx context.Context, opts ...RequestOption) (res *GetSummaryOfSubAccountFuturesAccountResp, err error)
type GetSummaryOfSubAccountFuturesAccountV2COINResp ¶
type GetSummaryOfSubAccountFuturesAccountV2COINResp struct { DeliveryAccountSummaryResp struct { TotalMarginBalanceOfBTC string `json:"totalMarginBalanceOfBTC"` TotalUnrealizedProfitOfBTC string `json:"totalUnrealizedProfitOfBTC"` TotalWalletBalanceOfBTC string `json:"totalWalletBalanceOfBTC"` Asset string `json:"asset"` SubAccountList []struct { Email string `json:"email"` TotalMarginBalance string `json:"totalMarginBalance"` TotalUnrealizedProfit string `json:"totalUnrealizedProfit"` TotalWalletBalance string `json:"totalWalletBalance"` Asset string `json:"asset"` } `json:"subAccountList"` } `json:"deliveryAccountSummaryResp"` }
type GetSummaryOfSubAccountFuturesAccountV2Service ¶
type GetSummaryOfSubAccountFuturesAccountV2Service struct {
// contains filtered or unexported fields
}
func (*GetSummaryOfSubAccountFuturesAccountV2Service) Do ¶
func (s *GetSummaryOfSubAccountFuturesAccountV2Service) Do(ctx context.Context, opts ...RequestOption) (res interface{}, err error)
func (*GetSummaryOfSubAccountFuturesAccountV2Service) FuturesType ¶
func (s *GetSummaryOfSubAccountFuturesAccountV2Service) FuturesType(futuresType int) *GetSummaryOfSubAccountFuturesAccountV2Service
func (*GetSummaryOfSubAccountFuturesAccountV2Service) Limit ¶
func (s *GetSummaryOfSubAccountFuturesAccountV2Service) Limit(limit int) *GetSummaryOfSubAccountFuturesAccountV2Service
func (*GetSummaryOfSubAccountFuturesAccountV2Service) Page ¶
func (s *GetSummaryOfSubAccountFuturesAccountV2Service) Page(page int) *GetSummaryOfSubAccountFuturesAccountV2Service
type GetSummaryOfSubAccountFuturesAccountV2USDTResp ¶
type GetSummaryOfSubAccountFuturesAccountV2USDTResp struct { FutureAccountSummaryResp struct { TotalInitialMargin string `json:"totalInitialMargin"` TotalMaintenanceMargin string `json:"totalMaintenanceMargin"` TotalMarginBalance string `json:"totalMarginBalance"` TotalOpenOrderInitialMargin string `json:"totalOpenOrderInitialMargin"` TotalPositionInitialMargin string `json:"totalPositionInitialMargin"` TotalUnrealizedProfit string `json:"totalUnrealizedProfit"` TotalWalletBalance string `json:"totalWalletBalance"` Asset string `json:"asset"` SubAccountList []struct { Email string `json:"email"` TotalInitialMargin string `json:"totalInitialMargin"` TotalMaintenanceMargin string `json:"totalMaintenanceMargin"` TotalMarginBalance string `json:"totalMarginBalance"` TotalOpenOrderInitialMargin string `json:"totalOpenOrderInitialMargin"` TotalPositionInitialMargin string `json:"totalPositionInitialMargin"` TotalUnrealizedProfit string `json:"totalUnrealizedProfit"` TotalWalletBalance string `json:"totalWalletBalance"` Asset string `json:"asset"` } `json:"subAccountList"` } `json:"futureAccountSummaryResp"` }
type GetSummaryOfSubAccountMarginAccountResp ¶
type GetSummaryOfSubAccountMarginAccountResp struct { TotalAssetOfBtc string `json:"totalAssetOfBtc"` TotalLiabilityOfBtc string `json:"totalLiabilityOfBtc"` TotalNetAssetOfBtc string `json:"totalNetAssetOfBtc"` SubAccountList []struct { Email string `json:"email"` TotalAssetOfBtc string `json:"totalAssetOfBtc"` TotalLiabilityOfBtc string `json:"totalLiabilityOfBtc"` TotalNetAssetOfBtc string `json:"totalNetAssetOfBtc"` } `json:"subAccountList"` }
type GetSummaryOfSubAccountMarginAccountService ¶
type GetSummaryOfSubAccountMarginAccountService struct {
// contains filtered or unexported fields
}
func (*GetSummaryOfSubAccountMarginAccountService) Do ¶
func (s *GetSummaryOfSubAccountMarginAccountService) Do(ctx context.Context, opts ...RequestOption) (res *GetSummaryOfSubAccountMarginAccountResp, err error)
type GetSystemStatusService ¶
type GetSystemStatusService struct {
// contains filtered or unexported fields
}
GetSystemStatusService get account info
func (*GetSystemStatusService) Do ¶
func (s *GetSystemStatusService) Do(ctx context.Context, opts ...RequestOption) (res []*SystemStatusResponse, err error)
type HistoricalTradeData ¶
type HistoricalTradeLookup ¶
type HistoricalTradeLookup struct {
// contains filtered or unexported fields
}
Binance Old Trade Lookup endpoint (GET /api/v3/historicalTrades)
func (*HistoricalTradeLookup) Do ¶
func (s *HistoricalTradeLookup) Do(ctx context.Context, opts ...RequestOption) (res []*RecentTradesListResponse, err error)
Send the request
func (*HistoricalTradeLookup) FromId ¶
func (s *HistoricalTradeLookup) FromId(fromId int64) *HistoricalTradeLookup
FromId set fromId
func (*HistoricalTradeLookup) Limit ¶
func (s *HistoricalTradeLookup) Limit(limit uint) *HistoricalTradeLookup
Limit set limit
func (*HistoricalTradeLookup) Symbol ¶
func (s *HistoricalTradeLookup) Symbol(symbol string) *HistoricalTradeLookup
Symbol set symbol
type HistoricalTradesResponse ¶
type HistoricalTradesResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result []*HistoricalTradeData `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type HistoricalTradesService ¶
type HistoricalTradesService struct {
// contains filtered or unexported fields
}
func (*HistoricalTradesService) Do ¶
func (s *HistoricalTradesService) Do(ctx context.Context) (*HistoricalTradesResponse, error)
func (*HistoricalTradesService) FromId ¶
func (s *HistoricalTradesService) FromId(fromId int64) *HistoricalTradesService
func (*HistoricalTradesService) Limit ¶
func (s *HistoricalTradesService) Limit(limit int) *HistoricalTradesService
func (*HistoricalTradesService) Symbol ¶
func (s *HistoricalTradesService) Symbol(symbol string) *HistoricalTradesService
type InterestHistoryResponse ¶
type InterestHistoryResponse struct { Rows []struct { TxId int64 `json:"txId"` InterestAccuredTime uint64 `json:"interestAccuredTime"` Asset string `json:"asset"` RawAsset string `json:"rawAsset"` Principal string `json:"principal"` Interest string `json:"interest"` InterestRate string `json:"interestRate"` Type string `json:"type"` IsolatedSymbol string `json:"isolatedSymbol"` } `json:"rows"` Total int `json:"total"` }
InterestHistoryResponse define interest history response
type InterestHistoryService ¶
type InterestHistoryService struct {
// contains filtered or unexported fields
}
InterestHistoryService query interest history
func (*InterestHistoryService) Archived ¶
func (s *InterestHistoryService) Archived(archived string) *InterestHistoryService
Archived set archived
func (*InterestHistoryService) Asset ¶
func (s *InterestHistoryService) Asset(asset string) *InterestHistoryService
Asset set asset
func (*InterestHistoryService) Current ¶
func (s *InterestHistoryService) Current(current int) *InterestHistoryService
Current set current
func (*InterestHistoryService) Do ¶
func (s *InterestHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *InterestHistoryResponse, err error)
Do send request
func (*InterestHistoryService) EndTime ¶
func (s *InterestHistoryService) EndTime(endTime uint64) *InterestHistoryService
EndTime set endTime
func (*InterestHistoryService) IsolatedSymbol ¶
func (s *InterestHistoryService) IsolatedSymbol(isolatedSymbol string) *InterestHistoryService
IsolatedSymbol set isolatedSymbol
func (*InterestHistoryService) Size ¶
func (s *InterestHistoryService) Size(size int) *InterestHistoryService
Size set size
func (*InterestHistoryService) StartTime ¶
func (s *InterestHistoryService) StartTime(startTime uint64) *InterestHistoryService
StartTime set startTime
type InternalUniversalTransfer ¶
type InternalUniversalTransfer struct { TranId int64 `json:"tranId"` ClientTranId string `json:"clientTranId"` FromEmail string `json:"fromEmail"` ToEmail string `json:"toEmail"` Asset string `json:"asset"` Amount string `json:"amount"` FromAccountType string `json:"fromAccountType"` ToAccountType string `json:"toAccountType"` Status string `json:"status"` CreateTimeStamp uint64 `json:"createTimeStamp"` }
type Klines ¶
type Klines struct {
// contains filtered or unexported fields
}
Binance Kline/Candlestick Data endpoint (GET /api/v3/klines)
func (*Klines) Do ¶
func (s *Klines) Do(ctx context.Context, opts ...RequestOption) (res []*KlinesResponse, err error)
type KlinesResponse ¶
type KlinesResponse struct { OpenTime uint64 `json:"openTime"` Open string `json:"open"` High string `json:"high"` Low string `json:"low"` Close string `json:"close"` Volume string `json:"volume"` CloseTime uint64 `json:"closeTime"` QuoteAssetVolume string `json:"quoteAssetVolume"` NumberOfTrades uint64 `json:"numberOfTrades"` TakerBuyBaseAssetVolume string `json:"takerBuyBaseAssetVolume"` TakerBuyQuoteAssetVolume string `json:"takerBuyQuoteAssetVolume"` }
Define Klines response data
type KlinesResponseArray ¶
type KlinesResponseArray [][]interface{}
type KlinesService ¶
type KlinesService struct {
// contains filtered or unexported fields
}
func (*KlinesService) Do ¶
func (s *KlinesService) Do(ctx context.Context) (*WsAPIKlinesResponse, error)
func (*KlinesService) EndTime ¶
func (s *KlinesService) EndTime(endTime int64) *KlinesService
func (*KlinesService) Interval ¶
func (s *KlinesService) Interval(interval string) *KlinesService
func (*KlinesService) Limit ¶
func (s *KlinesService) Limit(limit int) *KlinesService
func (*KlinesService) StartTime ¶
func (s *KlinesService) StartTime(startTime int64) *KlinesService
func (*KlinesService) Symbol ¶
func (s *KlinesService) Symbol(symbol string) *KlinesService
type MarginAccountAllOrderResponse ¶
type MarginAccountAllOrderResponse struct { ClientOrderId string `json:"clientOrderId"` CumulativeQuoteQty string `json:"cumulativeQuoteQty"` ExecutedQty string `json:"executedQty"` IcebergQty string `json:"icebergQty"` IsWorking bool `json:"isWorking"` OrderId int `json:"orderId"` OrigQty string `json:"origQty"` Price string `json:"price"` Side string `json:"side"` Status string `json:"status"` StopPrice string `json:"stopPrice"` Symbol string `json:"symbol"` IsIsolated bool `json:"isIsolated"` Time uint64 `json:"time"` TimeInForce string `json:"timeInForce"` OrderType string `json:"type"` UpdateTime uint64 `json:"updateTime"` }
MarginAccountAllOrderResponse define margin account all order response
type MarginAccountAllOrderService ¶
type MarginAccountAllOrderService struct {
// contains filtered or unexported fields
}
MarginAccountAllOrderService query margin account's all order
func (*MarginAccountAllOrderService) Do ¶
func (s *MarginAccountAllOrderService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginAccountAllOrderResponse, err error)
Do send request
func (*MarginAccountAllOrderService) EndTime ¶
func (s *MarginAccountAllOrderService) EndTime(endTime uint64) *MarginAccountAllOrderService
EndTime set endTime
func (*MarginAccountAllOrderService) IsIsolated ¶
func (s *MarginAccountAllOrderService) IsIsolated(isIsolated string) *MarginAccountAllOrderService
IsIsolated set isIsolated
func (*MarginAccountAllOrderService) Limit ¶
func (s *MarginAccountAllOrderService) Limit(limit int) *MarginAccountAllOrderService
Limit set limit
func (*MarginAccountAllOrderService) OrderId ¶
func (s *MarginAccountAllOrderService) OrderId(orderId int) *MarginAccountAllOrderService
OrderId set orderId
func (*MarginAccountAllOrderService) StartTime ¶
func (s *MarginAccountAllOrderService) StartTime(startTime uint64) *MarginAccountAllOrderService
StartTime set startTime
func (*MarginAccountAllOrderService) Symbol ¶
func (s *MarginAccountAllOrderService) Symbol(symbol string) *MarginAccountAllOrderService
Symbol set symbol
type MarginAccountCancelAllOrdersResponse ¶
type MarginAccountCancelAllOrdersResponse struct { Symbol string `json:"symbol"` IsIsolated bool `json:"isIsolated"` OrigClientOrderId string `json:"origClientOrderId"` OrderId int `json:"orderId"` OrderListId int `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CumulativeQuoteQty string `json:"cumulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` }
MarginAccountCancelAllOrdersResponse define margin account cancel all orders response
type MarginAccountCancelAllOrdersService ¶
type MarginAccountCancelAllOrdersService struct {
// contains filtered or unexported fields
}
MarginAccountCancelAllOrdersService margin account cancel all orders
func (*MarginAccountCancelAllOrdersService) Do ¶
func (s *MarginAccountCancelAllOrdersService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountCancelAllOrdersResponse, err error)
Do send request
func (*MarginAccountCancelAllOrdersService) IsIsolated ¶
func (s *MarginAccountCancelAllOrdersService) IsIsolated(isIsolated string) *MarginAccountCancelAllOrdersService
IsIsolated set isIsolated
func (*MarginAccountCancelAllOrdersService) Symbol ¶
func (s *MarginAccountCancelAllOrdersService) Symbol(symbol string) *MarginAccountCancelAllOrdersService
Symbol set symbol
type MarginAccountCancelOCOResponse ¶
type MarginAccountCancelOCOResponse struct { OrderListId int `json:"orderListId"` ContingencyType string `json:"contingencyType"` ListStatusType string `json:"listStatusType"` ListOrderStatus string `json:"listOrderStatus"` ListClientOrderId string `json:"listClientOrderId"` TransactionTime uint64 `json:"transactionTime"` Symbol string `json:"symbol"` IsIsolated bool `json:"isIsolated"` Orders []struct { Symbol string `json:"symbol"` OrderId int `json:"orderId"` ClientOrderId string `json:"clientOrderId"` } `json:"orders"` OrderReports []struct { Symbol string `json:"symbol"` OrigClientOrderId string `json:"origClientOrderId"` OrderId int `json:"orderId"` OrderListId int `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CumulativeQuoteQty string `json:"cumulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` OrderType string `json:"type"` Side string `json:"side"` StopPrice string `json:"stopPrice"` } `json:"orderReports"` }
MarginAccountCancelOCOService response
type MarginAccountCancelOCOService ¶
type MarginAccountCancelOCOService struct {
// contains filtered or unexported fields
}
func (*MarginAccountCancelOCOService) Do ¶
func (s *MarginAccountCancelOCOService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountCancelOCOResponse, err error)
Do send request
func (*MarginAccountCancelOCOService) IsIsolated ¶
func (s *MarginAccountCancelOCOService) IsIsolated(isIsolated string) *MarginAccountCancelOCOService
IsIsolated set isIsolated
func (*MarginAccountCancelOCOService) ListClientOrderId ¶
func (s *MarginAccountCancelOCOService) ListClientOrderId(listClientOrderId string) *MarginAccountCancelOCOService
ListClientOrderId set listClientOrderId
func (*MarginAccountCancelOCOService) NewClientOrderId ¶
func (s *MarginAccountCancelOCOService) NewClientOrderId(newClientOrderId string) *MarginAccountCancelOCOService
NewClientOrderId set newClientOrderId
func (*MarginAccountCancelOCOService) OrderListId ¶
func (s *MarginAccountCancelOCOService) OrderListId(orderListId int) *MarginAccountCancelOCOService
OrderListId set orderListId
func (*MarginAccountCancelOCOService) Symbol ¶
func (s *MarginAccountCancelOCOService) Symbol(symbol string) *MarginAccountCancelOCOService
Symbol set symbol
type MarginAccountCancelOrderResponse ¶
type MarginAccountCancelOrderResponse struct { Symbol string `json:"symbol"` IsIsolated bool `json:"isIsolated"` OrderId int `json:"orderId"` OrigClientOrderId string `json:"origClientOrderId"` ClientOrderId string `json:"clientOrderId"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CumulativeQuoteQty string `json:"cumulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` }
MarginAccountCancelOrderResponse define margin account cancel order response
type MarginAccountCancelOrderService ¶
type MarginAccountCancelOrderService struct {
// contains filtered or unexported fields
}
MarginAccountCancelOrderService margin account cancel order
func (*MarginAccountCancelOrderService) Do ¶
func (s *MarginAccountCancelOrderService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountCancelOrderResponse, err error)
Do send request
func (*MarginAccountCancelOrderService) IsIsolated ¶
func (s *MarginAccountCancelOrderService) IsIsolated(isIsolated string) *MarginAccountCancelOrderService
IsIsolated set isIsolated
func (*MarginAccountCancelOrderService) NewClientOrderId ¶
func (s *MarginAccountCancelOrderService) NewClientOrderId(newClientOrderId string) *MarginAccountCancelOrderService
NewClientOrderId set newClientOrderId
func (*MarginAccountCancelOrderService) OrderId ¶
func (s *MarginAccountCancelOrderService) OrderId(orderId int) *MarginAccountCancelOrderService
OrderId set orderId
func (*MarginAccountCancelOrderService) OrigClientOrderId ¶
func (s *MarginAccountCancelOrderService) OrigClientOrderId(origClientOrderId string) *MarginAccountCancelOrderService
OrigClientOrderId set origClientOrderId
func (*MarginAccountCancelOrderService) Symbol ¶
func (s *MarginAccountCancelOrderService) Symbol(symbol string) *MarginAccountCancelOrderService
Symbol set symbol
type MarginAccountNewOCOResponse ¶
type MarginAccountNewOCOResponse struct { OrderListId int `json:"orderListId"` ContingencyType string `json:"contingencyType"` ListStatusType string `json:"listStatusType"` ListOrderStatus string `json:"listOrderStatus"` ListClientOrderId string `json:"listClientOrderId"` TransactionTime uint64 `json:"transactionTime"` Symbol string `json:"symbol"` MarginBuyBorrowAmount string `json:"marginBuyBorrowAmount"` MarginBuyBorrowAsset string `json:"marginBuyBorrowAsset"` Orders []struct { Symbol string `json:"symbol"` OrderId int `json:"orderId"` ClientOrderId string `json:"clientOrderId"` } `json:"orders"` OrderReports []struct { Symbol string `json:"symbol"` OrderId int `json:"orderId"` OrderListId int `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` TransactTime uint64 `json:"transactTime"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CumulativeQuoteQty string `json:"cumulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` OrderType string `json:"type"` Side string `json:"side"` StopPrice string `json:"stopPrice"` } `json:"orderReports"` }
MarginAccountNewOCOService response
type MarginAccountNewOCOService ¶
type MarginAccountNewOCOService struct {
// contains filtered or unexported fields
}
MarginAccountNewOCOService create new oco order
func (*MarginAccountNewOCOService) Do ¶
func (s *MarginAccountNewOCOService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountNewOCOResponse, err error)
Do send request
func (*MarginAccountNewOCOService) IsIsolated ¶
func (s *MarginAccountNewOCOService) IsIsolated(isIsolated string) *MarginAccountNewOCOService
IsIsolated set isIsolated
func (*MarginAccountNewOCOService) LimitClientOrderId ¶
func (s *MarginAccountNewOCOService) LimitClientOrderId(limitClientOrderId string) *MarginAccountNewOCOService
LimitClientOrderId set limitClientOrderId
func (*MarginAccountNewOCOService) LimitIcebergQty ¶
func (s *MarginAccountNewOCOService) LimitIcebergQty(limitIcebergQty float64) *MarginAccountNewOCOService
LimitIcebergQty set limitIcebergQty
func (*MarginAccountNewOCOService) ListClientOrderId ¶
func (s *MarginAccountNewOCOService) ListClientOrderId(listClientOrderId string) *MarginAccountNewOCOService
ListClientOrderId set listClientOrderId
func (*MarginAccountNewOCOService) NewOrderRespType ¶
func (s *MarginAccountNewOCOService) NewOrderRespType(newOrderRespType string) *MarginAccountNewOCOService
NewOrderRespType set newOrderRespType
func (*MarginAccountNewOCOService) Price ¶
func (s *MarginAccountNewOCOService) Price(price float64) *MarginAccountNewOCOService
Price set price
func (*MarginAccountNewOCOService) Quantity ¶
func (s *MarginAccountNewOCOService) Quantity(quantity float64) *MarginAccountNewOCOService
Quantity set quantity
func (*MarginAccountNewOCOService) Side ¶
func (s *MarginAccountNewOCOService) Side(side string) *MarginAccountNewOCOService
Side set side
func (*MarginAccountNewOCOService) SideEffectType ¶
func (s *MarginAccountNewOCOService) SideEffectType(sideEffectType string) *MarginAccountNewOCOService
SideEffectType set sideEffectType
func (*MarginAccountNewOCOService) StopClientOrderId ¶
func (s *MarginAccountNewOCOService) StopClientOrderId(stopClientOrderId string) *MarginAccountNewOCOService
StopClientOrderId set stopClientOrderId
func (*MarginAccountNewOCOService) StopIcebergQty ¶
func (s *MarginAccountNewOCOService) StopIcebergQty(stopIcebergQty float64) *MarginAccountNewOCOService
StopIcebergQty set stopIcebergQty
func (*MarginAccountNewOCOService) StopLimitPrice ¶
func (s *MarginAccountNewOCOService) StopLimitPrice(stopLimitPrice float64) *MarginAccountNewOCOService
StopLimitPrice set stopLimitPrice
func (*MarginAccountNewOCOService) StopLimitTimeInForce ¶
func (s *MarginAccountNewOCOService) StopLimitTimeInForce(stopLimitTimeInForce string) *MarginAccountNewOCOService
StopLimitTimeInForce set stopLimitTimeInForce
func (*MarginAccountNewOCOService) StopPrice ¶
func (s *MarginAccountNewOCOService) StopPrice(stopPrice float64) *MarginAccountNewOCOService
StopPrice set stopPrice
func (*MarginAccountNewOCOService) Symbol ¶
func (s *MarginAccountNewOCOService) Symbol(symbol string) *MarginAccountNewOCOService
Symbol set symbol
type MarginAccountNewOrderResponseACK ¶
type MarginAccountNewOrderResponseACK struct { Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` ClientOrderId int64 `json:"clientOrderId"` IsIsolated bool `json:"isIsolated"` TransactTime uint64 `json:"transactTime"` }
Create MarginAccountNewOrderResponseACK
type MarginAccountNewOrderResponseFULL ¶
type MarginAccountNewOrderResponseFULL struct { Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` ClientOrderId string `json:"clientOrderId"` TransactTime uint64 `json:"transactTime"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CumulativeQuoteQty string `json:"cummulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` MarginBuyBorrowAmount float64 `json:"marginBuyBorrowAmount"` MarginBuyBorrowAsset string `json:"marginBuyBorrowAsset"` IsIsolated bool `json:"isIsolated"` Fills []struct { Price string `json:"price"` Qty string `json:"qty"` Commission string `json:"commission"` CommissionAsset string `json:"commissionAsset"` } `json:"fills"` }
Create MarginAccountNewOrderResponseFULL
type MarginAccountNewOrderResponseRESULT ¶
type MarginAccountNewOrderResponseRESULT struct { Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` ClientOrderId string `json:"clientOrderId"` TransactTime uint64 `json:"transactTime"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CumulativeQuoteQty string `json:"cummulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` IsIsolated bool `json:"isIsolated"` Side string `json:"side"` }
Create MarginAccountNewOrderResponseRESULT
type MarginAccountNewOrderService ¶
type MarginAccountNewOrderService struct {
// contains filtered or unexported fields
}
MarginAccountNewOrderService margin account new order
func (*MarginAccountNewOrderService) Do ¶
func (s *MarginAccountNewOrderService) Do(ctx context.Context, opts ...RequestOption) (res interface{}, err error)
Do send request
func (*MarginAccountNewOrderService) IcebergQty ¶
func (s *MarginAccountNewOrderService) IcebergQty(icebergQty float64) *MarginAccountNewOrderService
IcebergQty set icebergQty
func (*MarginAccountNewOrderService) IsIsolated ¶
func (s *MarginAccountNewOrderService) IsIsolated(isIsolated string) *MarginAccountNewOrderService
IsIsolated set isIsolated
func (*MarginAccountNewOrderService) NewClientOrderId ¶
func (s *MarginAccountNewOrderService) NewClientOrderId(newClientOrderId string) *MarginAccountNewOrderService
NewClientOrderId set newClientOrderId
func (*MarginAccountNewOrderService) NewOrderRespType ¶
func (s *MarginAccountNewOrderService) NewOrderRespType(newOrderRespType string) *MarginAccountNewOrderService
NewOrderRespType set newOrderRespType
func (*MarginAccountNewOrderService) OrderType ¶
func (s *MarginAccountNewOrderService) OrderType(orderType string) *MarginAccountNewOrderService
OrderType set orderType
func (*MarginAccountNewOrderService) Price ¶
func (s *MarginAccountNewOrderService) Price(price float64) *MarginAccountNewOrderService
Price set price
func (*MarginAccountNewOrderService) Quantity ¶
func (s *MarginAccountNewOrderService) Quantity(quantity float64) *MarginAccountNewOrderService
Quantity set quantity
func (*MarginAccountNewOrderService) QuoteOrderQty ¶
func (s *MarginAccountNewOrderService) QuoteOrderQty(quoteOrderQty float64) *MarginAccountNewOrderService
QuoteOrderQty set quoteOrderQty
func (*MarginAccountNewOrderService) Side ¶
func (s *MarginAccountNewOrderService) Side(side string) *MarginAccountNewOrderService
Side set side
func (*MarginAccountNewOrderService) SideEffectType ¶
func (s *MarginAccountNewOrderService) SideEffectType(sideEffectType string) *MarginAccountNewOrderService
SideEffectType set sideEffectType
func (*MarginAccountNewOrderService) StopPrice ¶
func (s *MarginAccountNewOrderService) StopPrice(stopPrice float64) *MarginAccountNewOrderService
StopPrice set stopPrice
func (*MarginAccountNewOrderService) Symbol ¶
func (s *MarginAccountNewOrderService) Symbol(symbol string) *MarginAccountNewOrderService
Symbol set symbol
func (*MarginAccountNewOrderService) TimeInForce ¶
func (s *MarginAccountNewOrderService) TimeInForce(timeInForce string) *MarginAccountNewOrderService
TimeInForce set timeInForce
type MarginAccountOpenOrderResponse ¶
type MarginAccountOpenOrderResponse struct { ClientOrderId string `json:"clientOrderId"` CumulativeQuoteQty string `json:"cumulativeQuoteQty"` ExecutedQty string `json:"executedQty"` IcebergQty string `json:"icebergQty"` IsWorking bool `json:"isWorking"` OrderId int `json:"orderId"` OrigQty string `json:"origQty"` Price string `json:"price"` Side string `json:"side"` Status string `json:"status"` StopPrice string `json:"stopPrice"` Symbol string `json:"symbol"` IsIsolated bool `json:"isIsolated"` Time uint64 `json:"time"` TimeInForce string `json:"timeInForce"` OrderType string `json:"type"` UpdateTime uint64 `json:"updateTime"` }
MarginAccountOpenOrderResponse define margin account open order response
type MarginAccountOpenOrderService ¶
type MarginAccountOpenOrderService struct {
// contains filtered or unexported fields
}
MarginAccountOpenOrderService query margin account's open order
func (*MarginAccountOpenOrderService) Do ¶
func (s *MarginAccountOpenOrderService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginAccountOpenOrderResponse, err error)
Do send request
func (*MarginAccountOpenOrderService) IsIsolated ¶
func (s *MarginAccountOpenOrderService) IsIsolated(isIsolated string) *MarginAccountOpenOrderService
IsIsolated set isIsolated
func (*MarginAccountOpenOrderService) Symbol ¶
func (s *MarginAccountOpenOrderService) Symbol(symbol string) *MarginAccountOpenOrderService
Symbol set symbol
type MarginAccountOrderResponse ¶
type MarginAccountOrderResponse struct { ClientOrderId string `json:"clientOrderId"` CumulativeQuoteQty string `json:"cumulativeQuoteQty"` ExecutedQty string `json:"executedQty"` IcebergQty string `json:"icebergQty"` IsWorking bool `json:"isWorking"` OrderId int `json:"orderId"` OrigQty string `json:"origQty"` Price string `json:"price"` Side string `json:"side"` Status string `json:"status"` StopPrice string `json:"stopPrice"` Symbol string `json:"symbol"` IsIsolated bool `json:"isIsolated"` Time uint64 `json:"time"` TimeInForce string `json:"timeInForce"` OrderType string `json:"type"` UpdateTime uint64 `json:"updateTime"` }
MarginAccountOrderResponse define margin account order response
type MarginAccountOrderService ¶
type MarginAccountOrderService struct {
// contains filtered or unexported fields
}
MarginAccountOrderService query margin account's order
func (*MarginAccountOrderService) Do ¶
func (s *MarginAccountOrderService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountOrderResponse, err error)
Do send request
func (*MarginAccountOrderService) IsIsolated ¶
func (s *MarginAccountOrderService) IsIsolated(isIsolated string) *MarginAccountOrderService
IsIsolated set isIsolated
func (*MarginAccountOrderService) OrderId ¶
func (s *MarginAccountOrderService) OrderId(orderId int) *MarginAccountOrderService
OrderId set orderId
func (*MarginAccountOrderService) OrigClientOrderId ¶
func (s *MarginAccountOrderService) OrigClientOrderId(origClientOrderId string) *MarginAccountOrderService
OrigClientOrderId set origClientOrderId
func (*MarginAccountOrderService) Symbol ¶
func (s *MarginAccountOrderService) Symbol(symbol string) *MarginAccountOrderService
Symbol set symbol
type MarginAccountQueryAllOCOResponse ¶
type MarginAccountQueryAllOCOResponse struct { OrderListId int `json:"orderListId"` ContingencyType string `json:"contingencyType"` ListStatusType string `json:"listStatusType"` ListOrderStatus string `json:"listOrderStatus"` ListClientOrderId string `json:"listClientOrderId"` TransactionTime uint64 `json:"transactionTime"` Symbol string `json:"symbol"` IsIsolated bool `json:"isIsolated"` Orders []struct { Symbol string `json:"symbol"` OrderId int `json:"orderId"` ClientOrderId string `json:"clientOrderId"` } `json:"orders"` }
MarginAccountQueryAllOCOService response
type MarginAccountQueryAllOCOService ¶
type MarginAccountQueryAllOCOService struct {
// contains filtered or unexported fields
}
func (*MarginAccountQueryAllOCOService) Do ¶
func (s *MarginAccountQueryAllOCOService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginAccountQueryAllOCOResponse, err error)
Do send request
func (*MarginAccountQueryAllOCOService) EndTime ¶
func (s *MarginAccountQueryAllOCOService) EndTime(endTime uint64) *MarginAccountQueryAllOCOService
EndTime set endTime
func (*MarginAccountQueryAllOCOService) FromId ¶
func (s *MarginAccountQueryAllOCOService) FromId(fromId int) *MarginAccountQueryAllOCOService
FromId set fromId
func (*MarginAccountQueryAllOCOService) IsIsolated ¶
func (s *MarginAccountQueryAllOCOService) IsIsolated(isIsolated string) *MarginAccountQueryAllOCOService
IsIsolated set isIsolated
func (*MarginAccountQueryAllOCOService) Limit ¶
func (s *MarginAccountQueryAllOCOService) Limit(limit int) *MarginAccountQueryAllOCOService
Limit set limit
func (*MarginAccountQueryAllOCOService) StartTime ¶
func (s *MarginAccountQueryAllOCOService) StartTime(startTime uint64) *MarginAccountQueryAllOCOService
StartTime set startTime
func (*MarginAccountQueryAllOCOService) Symbol ¶
func (s *MarginAccountQueryAllOCOService) Symbol(symbol string) *MarginAccountQueryAllOCOService
Symbol set symbol
type MarginAccountQueryMaxBorrowResponse ¶
type MarginAccountQueryMaxBorrowResponse struct { Amount string `json:"amount"` BorrowLimit string `json:"borrowLimit"` }
MarginAccountQueryMaxBorrowService response
type MarginAccountQueryMaxBorrowService ¶
type MarginAccountQueryMaxBorrowService struct {
// contains filtered or unexported fields
}
func (*MarginAccountQueryMaxBorrowService) Asset ¶
func (s *MarginAccountQueryMaxBorrowService) Asset(asset string) *MarginAccountQueryMaxBorrowService
Asset set asset
func (*MarginAccountQueryMaxBorrowService) Do ¶
func (s *MarginAccountQueryMaxBorrowService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountQueryMaxBorrowResponse, err error)
Do send request
func (*MarginAccountQueryMaxBorrowService) IsolatedSymbol ¶
func (s *MarginAccountQueryMaxBorrowService) IsolatedSymbol(isolatedSymbol string) *MarginAccountQueryMaxBorrowService
IsolatedSymbol set isolatedSymbol
type MarginAccountQueryMaxTransferOutAmountResponse ¶
type MarginAccountQueryMaxTransferOutAmountResponse struct {
Amount string `json:"amount"`
}
MarginAccountQueryMaxTransferOutAmountService response
type MarginAccountQueryMaxTransferOutAmountService ¶
type MarginAccountQueryMaxTransferOutAmountService struct {
// contains filtered or unexported fields
}
func (*MarginAccountQueryMaxTransferOutAmountService) Asset ¶
func (s *MarginAccountQueryMaxTransferOutAmountService) Asset(asset string) *MarginAccountQueryMaxTransferOutAmountService
Asset set asset
func (*MarginAccountQueryMaxTransferOutAmountService) Do ¶
func (s *MarginAccountQueryMaxTransferOutAmountService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountQueryMaxTransferOutAmountResponse, err error)
Do send request
func (*MarginAccountQueryMaxTransferOutAmountService) IsolatedSymbol ¶
func (s *MarginAccountQueryMaxTransferOutAmountService) IsolatedSymbol(isolatedSymbol string) *MarginAccountQueryMaxTransferOutAmountService
IsolatedSymbol set isolatedSymbol
type MarginAccountQueryOCOResponse ¶
type MarginAccountQueryOCOResponse struct { OrderListId int `json:"orderListId"` ContingencyType string `json:"contingencyType"` ListStatusType string `json:"listStatusType"` ListOrderStatus string `json:"listOrderStatus"` ListClientOrderId string `json:"listClientOrderId"` TransactionTime uint64 `json:"transactionTime"` Symbol string `json:"symbol"` IsIsolated bool `json:"isIsolated"` Orders []struct { Symbol string `json:"symbol"` OrderId int `json:"orderId"` ClientOrderId string `json:"clientOrderId"` } `json:"orders"` }
MarginAccountQueryOCOService response
type MarginAccountQueryOCOService ¶
type MarginAccountQueryOCOService struct {
// contains filtered or unexported fields
}
func (*MarginAccountQueryOCOService) Do ¶
func (s *MarginAccountQueryOCOService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountQueryOCOResponse, err error)
Do send request
func (*MarginAccountQueryOCOService) IsIsolated ¶
func (s *MarginAccountQueryOCOService) IsIsolated(isIsolated string) *MarginAccountQueryOCOService
IsIsolated set isIsolated
func (*MarginAccountQueryOCOService) OrderListId ¶
func (s *MarginAccountQueryOCOService) OrderListId(orderListId int) *MarginAccountQueryOCOService
OrderListId set orderListId
func (*MarginAccountQueryOCOService) OrigClientOrderId ¶
func (s *MarginAccountQueryOCOService) OrigClientOrderId(origClientOrderId string) *MarginAccountQueryOCOService
OrigClientOrderId set origClientOrderId
func (*MarginAccountQueryOCOService) Symbol ¶
func (s *MarginAccountQueryOCOService) Symbol(symbol string) *MarginAccountQueryOCOService
Symbol set symbol
type MarginAccountQueryOpenOCOResponse ¶
type MarginAccountQueryOpenOCOResponse struct { OrderListId int `json:"orderListId"` ContingencyType string `json:"contingencyType"` ListStatusType string `json:"listStatusType"` ListOrderStatus string `json:"listOrderStatus"` ListClientOrderId string `json:"listClientOrderId"` TransactionTime uint64 `json:"transactionTime"` Symbol string `json:"symbol"` IsIsolated bool `json:"isIsolated"` Orders []struct { Symbol string `json:"symbol"` OrderId int `json:"orderId"` ClientOrderId string `json:"clientOrderId"` } `json:"orders"` }
MarginAccountQueryOpenOCOService response
type MarginAccountQueryOpenOCOService ¶
type MarginAccountQueryOpenOCOService struct {
// contains filtered or unexported fields
}
func (*MarginAccountQueryOpenOCOService) Do ¶
func (s *MarginAccountQueryOpenOCOService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginAccountQueryOpenOCOResponse, err error)
Do send request
func (*MarginAccountQueryOpenOCOService) IsIsolated ¶
func (s *MarginAccountQueryOpenOCOService) IsIsolated(isIsolated string) *MarginAccountQueryOpenOCOService
IsIsolated set isIsolated
func (*MarginAccountQueryOpenOCOService) Symbol ¶
func (s *MarginAccountQueryOpenOCOService) Symbol(symbol string) *MarginAccountQueryOpenOCOService
Symbol set symbol
type MarginAccountQueryTradeListResponse ¶
type MarginAccountQueryTradeListResponse struct { Commission string `json:"commission"` CommissionAsset string `json:"commissionAsset"` Id int `json:"id"` IsBestMatch bool `json:"isBestMatch"` IsBuyer bool `json:"isBuyer"` IsMaker bool `json:"isMaker"` OrderId int `json:"orderId"` Price string `json:"price"` Qty string `json:"qty"` Symbol string `json:"symbol"` IsIsolated bool `json:"isIsolated"` Time uint64 `json:"time"` }
MarginAccountQueryTradeListService response
type MarginAccountQueryTradeListService ¶
type MarginAccountQueryTradeListService struct {
// contains filtered or unexported fields
}
func (*MarginAccountQueryTradeListService) Do ¶
func (s *MarginAccountQueryTradeListService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginAccountQueryTradeListResponse, err error)
Do send request
func (*MarginAccountQueryTradeListService) EndTime ¶
func (s *MarginAccountQueryTradeListService) EndTime(endTime uint64) *MarginAccountQueryTradeListService
EndTime set endTime
func (*MarginAccountQueryTradeListService) FromId ¶
func (s *MarginAccountQueryTradeListService) FromId(fromId int) *MarginAccountQueryTradeListService
FromId set fromId
func (*MarginAccountQueryTradeListService) IsIsolated ¶
func (s *MarginAccountQueryTradeListService) IsIsolated(isIsolated string) *MarginAccountQueryTradeListService
IsIsolated set isIsolated
func (*MarginAccountQueryTradeListService) Limit ¶
func (s *MarginAccountQueryTradeListService) Limit(limit int) *MarginAccountQueryTradeListService
Limit set limit
func (*MarginAccountQueryTradeListService) OrderId ¶
func (s *MarginAccountQueryTradeListService) OrderId(orderId int) *MarginAccountQueryTradeListService
OrderId set orderId
func (*MarginAccountQueryTradeListService) StartTime ¶
func (s *MarginAccountQueryTradeListService) StartTime(startTime uint64) *MarginAccountQueryTradeListService
StartTime set startTime
func (*MarginAccountQueryTradeListService) Symbol ¶
func (s *MarginAccountQueryTradeListService) Symbol(symbol string) *MarginAccountQueryTradeListService
Symbol set symbol
type MarginAccountSummaryResponse ¶
type MarginAccountSummaryResponse struct { NormalBar string `json:"normalBar"` MarginCallBar string `json:"marginCallBar"` ForceLiquidationBar string `json:"forceLiquidationBar"` }
MarginAccountSummaryService response
type MarginAccountSummaryService ¶
type MarginAccountSummaryService struct {
// contains filtered or unexported fields
}
func (*MarginAccountSummaryService) Do ¶
func (s *MarginAccountSummaryService) Do(ctx context.Context, opts ...RequestOption) (res *MarginAccountSummaryResponse, err error)
Do send request
type MarginBnbBurnStatusResponse ¶
type MarginBnbBurnStatusResponse struct { SpotBNBBurn bool `json:"spotBNBBurn"` InterestBNBBurn bool `json:"interestBNBBurn"` }
MarginBnbBurnStatusService response
type MarginBnbBurnStatusService ¶
type MarginBnbBurnStatusService struct {
// contains filtered or unexported fields
}
func (*MarginBnbBurnStatusService) Do ¶
func (s *MarginBnbBurnStatusService) Do(ctx context.Context, opts ...RequestOption) (res *MarginBnbBurnStatusResponse, err error)
Do send request
type MarginCrossCollateralRatioResponse ¶
type MarginCrossCollateralRatioResponse struct { Collaterals []*struct { MinUsdValue string `json:"minUsdValue"` MaxUsdValue string `json:"maxUsdValue"` DiscountRate string `json:"discountRate"` } `json:"collaterals"` AssetNames []*struct { Asset string `json:"asset"` } `json:"assetNames"` }
MarginCrossCollateralRatioService response
type MarginCrossCollateralRatioService ¶
type MarginCrossCollateralRatioService struct {
// contains filtered or unexported fields
}
func (*MarginCrossCollateralRatioService) Do ¶
func (s *MarginCrossCollateralRatioService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginCrossCollateralRatioResponse, err error)
Do send request
type MarginCrossMarginFeeResponse ¶
type MarginCrossMarginFeeResponse struct { VIPLevel int `json:"vipLevel"` Coin string `json:"coin"` TransferIn bool `json:"transferIn"` Borrowable bool `json:"transferOut"` DailyInterest string `json:"dailyInterest"` YearlyInterest string `json:"yearlyInterest"` BorrowLimit string `json:"borrowLimit"` MarginablePairs struct { Pair string `json:"pair"` } `json:"marginablePairs"` }
MarginCrossMarginFeeService response
type MarginCrossMarginFeeService ¶
type MarginCrossMarginFeeService struct {
// contains filtered or unexported fields
}
func (*MarginCrossMarginFeeService) Coin ¶
func (s *MarginCrossMarginFeeService) Coin(coin string) *MarginCrossMarginFeeService
Coin set coin
func (*MarginCrossMarginFeeService) Do ¶
func (s *MarginCrossMarginFeeService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginCrossMarginFeeResponse, err error)
Do send request
func (*MarginCrossMarginFeeService) VipLevel ¶
func (s *MarginCrossMarginFeeService) VipLevel(vipLevel int) *MarginCrossMarginFeeService
VipLevel set vipLevel
type MarginCurrentOrderCountResponse ¶
type MarginCurrentOrderCountResponse struct { RateLimitType string `json:"rateLimitType"` Interval string `json:"interval"` IntervalNum int `json:"intervalNum"` Limit int `json:"limit"` Count int `json:"count"` }
MarginCurrentOrderCountService response
type MarginCurrentOrderCountService ¶
type MarginCurrentOrderCountService struct {
// contains filtered or unexported fields
}
func (*MarginCurrentOrderCountService) Do ¶
func (s *MarginCurrentOrderCountService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginCurrentOrderCountResponse, err error)
Do send request
func (*MarginCurrentOrderCountService) IsIsolated ¶
func (s *MarginCurrentOrderCountService) IsIsolated(isIsolated string) *MarginCurrentOrderCountService
IsIsolated set isIsolated
func (*MarginCurrentOrderCountService) Symbol ¶
func (s *MarginCurrentOrderCountService) Symbol(symbol string) *MarginCurrentOrderCountService
Symbol set symbol
type MarginInterestRateHistoryResponse ¶
type MarginInterestRateHistoryResponse struct { Asset string `json:"asset"` DailyInterestRate string `json:"dailyInterestRate"` Timestamp uint64 `json:"timestamp"` VIPLevel int `json:"vipLevel"` }
MarginInterestRateHistoryService response
type MarginInterestRateHistoryService ¶
type MarginInterestRateHistoryService struct {
// contains filtered or unexported fields
}
func (*MarginInterestRateHistoryService) Asset ¶
func (s *MarginInterestRateHistoryService) Asset(asset string) *MarginInterestRateHistoryService
Asset set asset
func (*MarginInterestRateHistoryService) Do ¶
func (s *MarginInterestRateHistoryService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginInterestRateHistoryResponse, err error)
Do send request
func (*MarginInterestRateHistoryService) EndTime ¶
func (s *MarginInterestRateHistoryService) EndTime(endTime uint64) *MarginInterestRateHistoryService
EndTime set endTime
func (*MarginInterestRateHistoryService) StartTime ¶
func (s *MarginInterestRateHistoryService) StartTime(startTime uint64) *MarginInterestRateHistoryService
StartTime set startTime
func (*MarginInterestRateHistoryService) VipLevel ¶
func (s *MarginInterestRateHistoryService) VipLevel(vipLevel int) *MarginInterestRateHistoryService
VipLevel set vipLevel
type MarginIsolatedAccountDisableResponse ¶
type MarginIsolatedAccountDisableResponse struct {
Success bool `json:"success"`
}
MarginIsolatedAccountDisableService response
type MarginIsolatedAccountDisableService ¶
type MarginIsolatedAccountDisableService struct {
// contains filtered or unexported fields
}
func (*MarginIsolatedAccountDisableService) Do ¶
func (s *MarginIsolatedAccountDisableService) Do(ctx context.Context, opts ...RequestOption) (res *MarginIsolatedAccountDisableResponse, err error)
Do send request
func (*MarginIsolatedAccountDisableService) Symbol ¶
func (s *MarginIsolatedAccountDisableService) Symbol(symbol string) *MarginIsolatedAccountDisableService
Symbol set symbol
type MarginIsolatedAccountEnableResponse ¶
type MarginIsolatedAccountEnableResponse struct {
Success bool `json:"success"`
}
MarginIsolatedAccountEnableService response
type MarginIsolatedAccountEnableService ¶
type MarginIsolatedAccountEnableService struct {
// contains filtered or unexported fields
}
func (*MarginIsolatedAccountEnableService) Do ¶
func (s *MarginIsolatedAccountEnableService) Do(ctx context.Context, opts ...RequestOption) (res *MarginIsolatedAccountEnableResponse, err error)
Do send request
func (*MarginIsolatedAccountEnableService) Symbol ¶
func (s *MarginIsolatedAccountEnableService) Symbol(symbol string) *MarginIsolatedAccountEnableService
Symbol set symbol
type MarginIsolatedAccountInfoAssets ¶
type MarginIsolatedAccountInfoAssets struct { BaseAsset struct { Asset string `json:"asset"` BorrowEnabled bool `json:"borrowEnabled"` Free string `json:"free"` Interest string `json:"interest"` Locked string `json:"locked"` NetAsset string `json:"netAsset"` NetAssetOfBtc string `json:"netAssetOfBtc"` RepayEnabled bool `json:"repayEnabled"` TotalAsset string `json:"totalAsset"` } `json:"baseAsset"` QuoteAsset struct { Asset string `json:"asset"` BorrowEnabled bool `json:"borrowEnabled"` Free string `json:"free"` Interest string `json:"interest"` Locked string `json:"locked"` NetAsset string `json:"netAsset"` NetAssetOfBtc string `json:"netAssetOfBtc"` RepayEnabled bool `json:"repayEnabled"` TotalAsset string `json:"totalAsset"` } `json:"quoteAsset"` Symbol string `json:"symbol"` IsolatedCreated bool `json:"isolatedCreated"` Enabled bool `json:"enabled"` MarginLevel string `json:"marginLevel"` MarginLevelStatus string `json:"marginLevelStatus"` MarginRatio string `json:"marginRatio"` IndexPrice string `json:"indexPrice"` LiquidatePrice string `json:"liquidatePrice"` LiquidateRate string `json:"liquidateRate"` TradeEnabled bool `json:"tradeEnabled"` }
type MarginIsolatedAccountInfoResponse ¶
type MarginIsolatedAccountInfoResponse struct { Assets []*MarginIsolatedAccountInfoAssets `json:"assets"` TotalAssetOfBtc string `json:"totalAssetOfBtc"` TotalLiabilityOfBtc string `json:"totalLiabilityOfBtc"` TotalNetAssetOfBtc string `json:"totalNetAssetOfBtc"` }
MarginIsolatedAccountInfoService response if symbols parameter is sent
type MarginIsolatedAccountInfoResponseSymbols ¶
type MarginIsolatedAccountInfoResponseSymbols struct {
Assets []*MarginIsolatedAccountInfoAssets `json:"assets"`
}
MarginIsolatedAccountInfoService response if symbols parameter is not sent
type MarginIsolatedAccountInfoService ¶
type MarginIsolatedAccountInfoService struct {
// contains filtered or unexported fields
}
func (*MarginIsolatedAccountInfoService) Do ¶
func (s *MarginIsolatedAccountInfoService) Do(ctx context.Context, opts ...RequestOption) (res interface{}, err error)
Do send request
func (*MarginIsolatedAccountInfoService) Symbols ¶
func (s *MarginIsolatedAccountInfoService) Symbols(symbols string) *MarginIsolatedAccountInfoService
Symbols set symbols
type MarginIsolatedAccountLimitResponse ¶
type MarginIsolatedAccountLimitResponse struct { EnabledAccount int `json:"enabledAccount"` MaxAccount int `json:"maxAccount"` }
MarginIsolatedAccountLimitService response
type MarginIsolatedAccountLimitService ¶
type MarginIsolatedAccountLimitService struct {
// contains filtered or unexported fields
}
func (*MarginIsolatedAccountLimitService) Do ¶
func (s *MarginIsolatedAccountLimitService) Do(ctx context.Context, opts ...RequestOption) (res *MarginIsolatedAccountLimitResponse, err error)
Do send request
type MarginIsolatedMarginFeeResponse ¶
type MarginIsolatedMarginFeeResponse struct { VIPLevel int `json:"vipLevel"` Symbol string `json:"symbol"` Leverage string `json:"leverage"` Data struct { Coin string `json:"coin"` DailyInterest string `json:"dailyInterest"` BorrowLimit string `json:"borrowLimit"` } `json:"data"` }
MarginIsolatedMarginFeeService response
type MarginIsolatedMarginFeeService ¶
type MarginIsolatedMarginFeeService struct {
// contains filtered or unexported fields
}
func (*MarginIsolatedMarginFeeService) Do ¶
func (s *MarginIsolatedMarginFeeService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginIsolatedMarginFeeResponse, err error)
Do send request
func (*MarginIsolatedMarginFeeService) Symbol ¶
func (s *MarginIsolatedMarginFeeService) Symbol(symbol string) *MarginIsolatedMarginFeeService
Symbol set symbol
func (*MarginIsolatedMarginFeeService) VipLevel ¶
func (s *MarginIsolatedMarginFeeService) VipLevel(vipLevel int) *MarginIsolatedMarginFeeService
VipLevel set vipLevel
type MarginIsolatedMarginTierResponse ¶
type MarginIsolatedMarginTierResponse struct { Symbol string `json:"symbol"` Tier int `json:"tier"` EffectiveMultiple string `json:"effectiveMultiple"` InitialRiskRatio string `json:"initialRiskRatio"` LiquidationRiskRatio string `json:"liquidationRiskRatio"` BaseAssetMaxBorrowable string `json:"baseAssetMaxBorrowable"` QuoteAssetMaxBorrowable string `json:"quoteAssetMaxBorrowable"` }
MarginIsolatedMarginTierService response
type MarginIsolatedMarginTierService ¶
type MarginIsolatedMarginTierService struct {
// contains filtered or unexported fields
}
func (*MarginIsolatedMarginTierService) Do ¶
func (s *MarginIsolatedMarginTierService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginIsolatedMarginTierResponse, err error)
Do send request
func (*MarginIsolatedMarginTierService) Symbol ¶
func (s *MarginIsolatedMarginTierService) Symbol(symbol string) *MarginIsolatedMarginTierService
Symbol set symbol
func (*MarginIsolatedMarginTierService) Tier ¶
func (s *MarginIsolatedMarginTierService) Tier(tier int) *MarginIsolatedMarginTierService
Tier set tier
type MarginIsolatedSymbolResponse ¶
type MarginIsolatedSymbolResponse struct { Symbol string `json:"symbol"` Base string `json:"base"` Quote string `json:"quote"` IsMarginTrade bool `json:"isMarginTrade"` IsBuyAllowed bool `json:"isBuyAllowed"` IsSellAllowed bool `json:"isSellAllowed"` }
MarginIsolatedSymbolAllService returns all isolated margin symbols
type MarginSmallLiabilityExchangeCoinListResponse ¶
type MarginSmallLiabilityExchangeCoinListResponse struct { Asset string `json:"asset"` Interest string `json:"interest"` Principal string `json:"principal"` LiabilityOfBUSD string `json:"liabilityOfBUSD"` }
MarginSmallLiabilityExchangeCoinListService response
type MarginSmallLiabilityExchangeCoinListService ¶
type MarginSmallLiabilityExchangeCoinListService struct {
// contains filtered or unexported fields
}
func (*MarginSmallLiabilityExchangeCoinListService) Do ¶
func (s *MarginSmallLiabilityExchangeCoinListService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginSmallLiabilityExchangeCoinListResponse, err error)
Do send request
type MarginSmallLiabilityExchangeHistoryResponse ¶
type MarginSmallLiabilityExchangeHistoryResponse struct { Total int `json:"total"` Rows []*struct { Asset string `json:"asset"` Amount string `json:"amount"` TargetAsset string `json:"targetAsset"` TargetAmount string `json:"targetAmount"` BizType string `json:"bizType"` Timestamp uint64 `json:"timestamp"` } `json:"rows"` }
MarginSmallLiabilityExchangeHistoryService response
type MarginSmallLiabilityExchangeHistoryService ¶
type MarginSmallLiabilityExchangeHistoryService struct {
// contains filtered or unexported fields
}
func (*MarginSmallLiabilityExchangeHistoryService) Current ¶
func (s *MarginSmallLiabilityExchangeHistoryService) Current(current int) *MarginSmallLiabilityExchangeHistoryService
Current set current
func (*MarginSmallLiabilityExchangeHistoryService) Do ¶
func (s *MarginSmallLiabilityExchangeHistoryService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginSmallLiabilityExchangeHistoryResponse, err error)
Do send request
func (*MarginSmallLiabilityExchangeHistoryService) EndTime ¶
func (s *MarginSmallLiabilityExchangeHistoryService) EndTime(endTime uint64) *MarginSmallLiabilityExchangeHistoryService
EndTime set endTime
func (*MarginSmallLiabilityExchangeHistoryService) Size ¶
func (s *MarginSmallLiabilityExchangeHistoryService) Size(size int) *MarginSmallLiabilityExchangeHistoryService
Size set size
func (*MarginSmallLiabilityExchangeHistoryService) StartTime ¶
func (s *MarginSmallLiabilityExchangeHistoryService) StartTime(startTime uint64) *MarginSmallLiabilityExchangeHistoryService
StartTime set startTime
type MarginSmallLiabilityExchangeResponse ¶
type MarginSmallLiabilityExchangeResponse struct { }
MarginSmallLiabilityExchangeService response
type MarginSmallLiabilityExchangeService ¶
type MarginSmallLiabilityExchangeService struct {
// contains filtered or unexported fields
}
func (*MarginSmallLiabilityExchangeService) AssetNames ¶
func (s *MarginSmallLiabilityExchangeService) AssetNames(assetNames string) *MarginSmallLiabilityExchangeService
AssetNames set assetNames
func (*MarginSmallLiabilityExchangeService) Do ¶
func (s *MarginSmallLiabilityExchangeService) Do(ctx context.Context, opts ...RequestOption) (res []*MarginSmallLiabilityExchangeResponse, err error)
Do send request
type MarginToggleBnbBurnResponse ¶
type MarginToggleBnbBurnResponse struct { SpotBNBBurn bool `json:"spotBNBBurn"` InterestBNBBurn bool `json:"interestBNBBurn"` }
MarginToggleBnbBurnService response
type MarginToggleBnbBurnService ¶
type MarginToggleBnbBurnService struct {
// contains filtered or unexported fields
}
func (*MarginToggleBnbBurnService) Do ¶
func (s *MarginToggleBnbBurnService) Do(ctx context.Context, opts ...RequestOption) (res *MarginToggleBnbBurnResponse, err error)
Do send request
func (*MarginToggleBnbBurnService) InterestBNBBurn ¶
func (s *MarginToggleBnbBurnService) InterestBNBBurn(interestBNBBurn string) *MarginToggleBnbBurnService
InterestBNBBurn set interestBNBBurn
func (*MarginToggleBnbBurnService) SpotBNBBurn ¶
func (s *MarginToggleBnbBurnService) SpotBNBBurn(spotBNBBurn string) *MarginToggleBnbBurnService
SpotBNBBurn set spotBNBBurn
type MarginTransferForSubAccountResp ¶
type MarginTransferForSubAccountResp struct {
TxnId int `json:"txnId"`
}
type MarginTransferForSubAccountService ¶
type MarginTransferForSubAccountService struct {
// contains filtered or unexported fields
}
func (*MarginTransferForSubAccountService) Amount ¶
func (s *MarginTransferForSubAccountService) Amount(amount float32) *MarginTransferForSubAccountService
func (*MarginTransferForSubAccountService) Asset ¶
func (s *MarginTransferForSubAccountService) Asset(asset string) *MarginTransferForSubAccountService
func (*MarginTransferForSubAccountService) Do ¶
func (s *MarginTransferForSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *MarginTransferForSubAccountResp, err error)
func (*MarginTransferForSubAccountService) Email ¶
func (s *MarginTransferForSubAccountService) Email(email string) *MarginTransferForSubAccountService
func (*MarginTransferForSubAccountService) TransferType ¶
func (s *MarginTransferForSubAccountService) TransferType(transferType int) *MarginTransferForSubAccountService
type NewAllOrdersResponse ¶
type NewAllOrdersResponse struct { Symbol string `json:"symbol"` ListClientOrderId string `json:"listClientOrderId"` OrderId int64 `json:"orderId"` OrderListId int64 `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CumulativeQuoteQty string `json:"cumulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` StopPrice string `json:"stopPrice"` IcebergQty string `json:"icebergQty,omitempty"` Time uint64 `json:"time"` UpdateTime uint64 `json:"updateTime"` IsWorking bool `json:"isWorking"` OrigQuoteOrderQty string `json:"origQuoteOrderQty"` WorkingTime uint64 `json:"workingTime"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` PreventedMatchId int64 `json:"preventedMatchId,omitempty"` PreventedQuantity string `json:"preventedQuantity,omitempty"` StrategyId int64 `json:"strategyId,omitempty"` StrategyType int64 `json:"strategyType,omitempty"` TrailingDelta string `json:"trailingDelta,omitempty"` TrailingTime int64 `json:"trailingTime,omitempty"` }
Create NewAllOrdersResponse
type NewOCOService ¶
type NewOCOService struct {
// contains filtered or unexported fields
}
Binance New OCO (TRADE) (POST /api/v3/order/oco) NewOCOService create new OCO order
func (*NewOCOService) Do ¶
func (s *NewOCOService) Do(ctx context.Context, opts ...RequestOption) (res *OrderOCOResponse, err error)
Do send request
func (*NewOCOService) LimitClientOrderId ¶
func (s *NewOCOService) LimitClientOrderId(limitClientOrderId string) *NewOCOService
LimitClientOrderId set limitClientOrderId
func (*NewOCOService) LimitIcebergQty ¶
func (s *NewOCOService) LimitIcebergQty(limitIcebergQty float64) *NewOCOService
LimitIcebergQty set limitIcebergQty
func (*NewOCOService) LimitStrategyId ¶
func (s *NewOCOService) LimitStrategyId(limitStrategyId int) *NewOCOService
LimitStrategyId set limitStrategyId
func (*NewOCOService) LimitStrategyType ¶
func (s *NewOCOService) LimitStrategyType(limitStrategyType int) *NewOCOService
LimitStrategyType set limitStrategyType
func (*NewOCOService) ListClientOrderId ¶
func (s *NewOCOService) ListClientOrderId(listClientOrderId string) *NewOCOService
ListClientOrderId set listClientOrderId
func (*NewOCOService) NewOrderRespType ¶
func (s *NewOCOService) NewOrderRespType(newOrderRespType string) *NewOCOService
NewOrderRespType set newOrderRespType
func (*NewOCOService) Price ¶
func (s *NewOCOService) Price(price float64) *NewOCOService
Price set price
func (*NewOCOService) Quantity ¶
func (s *NewOCOService) Quantity(quantity float64) *NewOCOService
Quantity set quantity
func (*NewOCOService) SelfTradePreventionMode ¶
func (s *NewOCOService) SelfTradePreventionMode(selfTradePreventionMode string) *NewOCOService
selfTradePreventionMode set selfTradePreventionMode
func (*NewOCOService) Side ¶
func (s *NewOCOService) Side(side string) *NewOCOService
Side set side
func (*NewOCOService) StopClientOrderId ¶
func (s *NewOCOService) StopClientOrderId(stopClientOrderId string) *NewOCOService
StopClientOrderId set stopClientOrderId
func (*NewOCOService) StopIcebergQty ¶
func (s *NewOCOService) StopIcebergQty(stopIcebergQty float64) *NewOCOService
StopIcebergQty set stopIcebergQty
func (*NewOCOService) StopLimitPrice ¶
func (s *NewOCOService) StopLimitPrice(stopLimitPrice float64) *NewOCOService
StopLimitPrice set stopLimitPrice
func (*NewOCOService) StopLimitTimeInForce ¶
func (s *NewOCOService) StopLimitTimeInForce(stopLimitTimeInForce string) *NewOCOService
StopLimitTimeInForce set stopLimitTimeInForce
func (*NewOCOService) StopPrice ¶
func (s *NewOCOService) StopPrice(stopPrice float64) *NewOCOService
StopPrice set stopPrice
func (*NewOCOService) StopStrategyId ¶
func (s *NewOCOService) StopStrategyId(stopStrategyId int) *NewOCOService
StopStrategyId set stopStrategyId
func (*NewOCOService) StopStrategyType ¶
func (s *NewOCOService) StopStrategyType(stopStrategyType int) *NewOCOService
StopStrategyType set stopStrategyType
func (*NewOCOService) Symbol ¶
func (s *NewOCOService) Symbol(symbol string) *NewOCOService
Symbol set symbol
func (*NewOCOService) TrailingDelta ¶
func (s *NewOCOService) TrailingDelta(trailingDelta int) *NewOCOService
TrailingDelta set trailingDelta
type NewOpenOrdersResponse ¶
type NewOpenOrdersResponse struct { Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` OrderListId int64 `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CumulativeQuoteQty string `json:"cumulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` StopPrice string `json:"stopPrice"` IcebergQty string `json:"icebergQty,omitempty"` Time uint64 `json:"time"` UpdateTime uint64 `json:"updateTime"` IsWorking bool `json:"isWorking"` WorkingTime uint64 `json:"workingTime"` OrigQuoteOrderQty string `json:"origQuoteOrderQty"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` PreventedMatchId int64 `json:"preventedMatchId,omitempty"` PreventedQuantity string `json:"preventedQuantity,omitempty"` StrategyId int64 `json:"strategyId,omitempty"` StrategyType int64 `json:"strategyType,omitempty"` TrailingDelta string `json:"trailingDelta,omitempty"` TrailingTime int64 `json:"trailingTime,omitempty"` }
Create NewOpenOrdersResponse
type OCOChild ¶
type OCOChild struct { Symbol string `json:"symbol"` OrderID int64 `json:"orderId"` ClientOrderID string `json:"clientOrderId"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CummulativeQuote string `json:"cummulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` StopPrice string `json:"stopPrice"` IcebergQty string `json:"icebergQty"` Time int64 `json:"time"` Update int64 `json:"updateTime"` IsWorking bool `json:"isWorking"` }
type OCOOrder ¶
type OCOOrder struct { OrderListID int64 `json:"orderListId"` ContingencyType string `json:"contingencyType"` ListStatusType string `json:"listStatusType"` ListOrderStatus string `json:"listOrderStatus"` TransactionTime int64 `json:"transactionTime"` Symbol string `json:"symbol"` Orders []*OCOChild `json:"orders"` }
type OCOResponse ¶
type OCOResponse struct { OrderListId int64 `json:"orderListId"` ContingencyType string `json:"contingencyType"` ListStatusType string `json:"listStatusType"` ListOrderStatus string `json:"listOrderStatus"` ListClientOrderId string `json:"listClientOrderId"` TransactionTime uint64 `json:"transactionTime"` Symbol string `json:"symbol"` Orders []struct { Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` ClientOrderId string `json:"clientOrderId"` } `json:"orders"` }
Create OCOResponse
type OpenOrderListItem ¶
type OpenOrderListsResult ¶
type OpenOrderListsResult struct { OrderListId int `json:"orderListId"` ContingencyType string `json:"contingencyType"` ListStatusType string `json:"listStatusType"` ListOrderStatus string `json:"listOrderStatus"` ListClientOrderId string `json:"listClientOrderId"` TransactionTime uint64 `json:"transactionTime"` Symbol string `json:"symbol"` Orders []*OpenOrderListItem `json:"orders"` }
type OpenOrderListsStatusResponse ¶
type OpenOrderListsStatusResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result []*OpenOrderListsResult `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type OpenOrderListsStatusService ¶
type OpenOrderListsStatusService struct {
// contains filtered or unexported fields
}
func (*OpenOrderListsStatusService) Do ¶
func (s *OpenOrderListsStatusService) Do(ctx context.Context) (*OpenOrderListsStatusResponse, error)
type OpenOrdersCancelAllResponse ¶
type OpenOrdersCancelAllResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result []*OpenOrdersCancelResult `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type OpenOrdersCancelAllService ¶
type OpenOrdersCancelAllService struct {
// contains filtered or unexported fields
}
func (*OpenOrdersCancelAllService) Do ¶
func (s *OpenOrdersCancelAllService) Do(ctx context.Context) (*OpenOrdersCancelAllResponse, error)
func (*OpenOrdersCancelAllService) RecvWindow ¶
func (s *OpenOrdersCancelAllService) RecvWindow(recvWindow int64) *OpenOrdersCancelAllService
func (*OpenOrdersCancelAllService) Symbol ¶
func (s *OpenOrdersCancelAllService) Symbol(symbol string) *OpenOrdersCancelAllService
type OpenOrdersCancelResult ¶
type OpenOrdersCancelResult struct { Symbol string `json:"symbol"` OrigClientOrderId string `json:"origClientOrderId"` OrderId int64 `json:"orderId"` OrderListId int `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CummulativeQuoteQty string `json:"cummulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` StopPrice string `json:"stopPrice"` IcebergQty string `json:"icebergQty"` StrategyId int64 `json:"strategyId"` StrategyType int64 `json:"strategyType"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` }
type OpenOrdersResult ¶
type OpenOrdersResult struct { Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` OrderListId int `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CummulativeQuoteQty string `json:"cummulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` StopPrice string `json:"stopPrice"` IcebergQty string `json:"icebergQty"` Time uint64 `json:"time"` UpdateTime uint64 `json:"updateTime"` IsWorking bool `json:"isWorking"` WorkingTime uint64 `json:"workingTime"` OrigQuoteOrderQty string `json:"origQuoteOrderQty"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` }
type OpenOrdersStatusResponse ¶
type OpenOrdersStatusResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result []*OpenOrdersResult `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type OpenOrdersStatusService ¶
type OpenOrdersStatusService struct {
// contains filtered or unexported fields
}
func (*OpenOrdersStatusService) Do ¶
func (s *OpenOrdersStatusService) Do(ctx context.Context) (*OpenOrdersStatusResponse, error)
func (*OpenOrdersStatusService) RecvWindow ¶
func (s *OpenOrdersStatusService) RecvWindow(recvWindow int64) *OpenOrdersStatusService
func (*OpenOrdersStatusService) Symbol ¶
func (s *OpenOrdersStatusService) Symbol(symbol string) *OpenOrdersStatusService
type OrderBook ¶
type OrderBook struct {
// contains filtered or unexported fields
}
Binance Order Book endpoint (GET /api/v3/depth)
func (*OrderBook) Do ¶
func (s *OrderBook) Do(ctx context.Context, opts ...RequestOption) (res *OrderBookResponse, err error)
Send the request
type OrderBookResponse ¶
type OrderBookResponse struct { LastUpdateId uint64 `json:"lastUpdateId"` Bids [][]*big.Float `json:"bids"` Asks [][]*big.Float `json:"asks"` }
OrderBookResponse define order book response
type OrderCancelReplaceResponse ¶
type OrderCancelReplaceResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result *OrderCancelReplaceResult `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type OrderCancelReplaceResult ¶
type OrderCancelReplaceResult struct { CancelResult string `json:"cancelResult,omitempty"` NewOrderResult string `json:"newOrderResult,omitempty"` CancelResponse *OrderCancelledResult `json:"cancelResponse,omitempty"` NewOrderResponse *OrderPlacedResult `json:"newOrderResponse,omitempty"` }
type OrderCancelReplaceService ¶
type OrderCancelReplaceService struct {
// contains filtered or unexported fields
}
func (*OrderCancelReplaceService) CancelNewClientOrderId ¶
func (s *OrderCancelReplaceService) CancelNewClientOrderId(cancelNewClientOrderId string) *OrderCancelReplaceService
func (*OrderCancelReplaceService) CancelOrderId ¶
func (s *OrderCancelReplaceService) CancelOrderId(cancelOrderId int64) *OrderCancelReplaceService
func (*OrderCancelReplaceService) CancelOrigClientOrderId ¶
func (s *OrderCancelReplaceService) CancelOrigClientOrderId(cancelOrigClientOrderId string) *OrderCancelReplaceService
func (*OrderCancelReplaceService) CancelReplaceMode ¶
func (s *OrderCancelReplaceService) CancelReplaceMode(cancelReplaceMode string) *OrderCancelReplaceService
func (*OrderCancelReplaceService) CancelRestrictions ¶
func (s *OrderCancelReplaceService) CancelRestrictions(cancelRestrictions string) *OrderCancelReplaceService
func (*OrderCancelReplaceService) Do ¶
func (s *OrderCancelReplaceService) Do(ctx context.Context) (*OrderCancelReplaceResponse, error)
func (*OrderCancelReplaceService) IcebergQty ¶
func (s *OrderCancelReplaceService) IcebergQty(icebergQty float64) *OrderCancelReplaceService
func (*OrderCancelReplaceService) NewClientOrderId ¶
func (s *OrderCancelReplaceService) NewClientOrderId(newClientOrderId string) *OrderCancelReplaceService
func (*OrderCancelReplaceService) NewOrderRespType ¶
func (s *OrderCancelReplaceService) NewOrderRespType(newOrderRespType string) *OrderCancelReplaceService
func (*OrderCancelReplaceService) OrderType ¶
func (s *OrderCancelReplaceService) OrderType(orderType string) *OrderCancelReplaceService
func (*OrderCancelReplaceService) Price ¶
func (s *OrderCancelReplaceService) Price(price float64) *OrderCancelReplaceService
func (*OrderCancelReplaceService) Quantity ¶
func (s *OrderCancelReplaceService) Quantity(quantity float64) *OrderCancelReplaceService
func (*OrderCancelReplaceService) QuoteOrderQty ¶
func (s *OrderCancelReplaceService) QuoteOrderQty(quoteOrderQty float64) *OrderCancelReplaceService
func (*OrderCancelReplaceService) RecvWindow ¶
func (s *OrderCancelReplaceService) RecvWindow(recvWindow int64) *OrderCancelReplaceService
func (*OrderCancelReplaceService) SelfTradePreventionMode ¶
func (s *OrderCancelReplaceService) SelfTradePreventionMode(selfTradePreventionMode string) *OrderCancelReplaceService
func (*OrderCancelReplaceService) Side ¶
func (s *OrderCancelReplaceService) Side(side string) *OrderCancelReplaceService
func (*OrderCancelReplaceService) StopPrice ¶
func (s *OrderCancelReplaceService) StopPrice(stopPrice float64) *OrderCancelReplaceService
func (*OrderCancelReplaceService) StrategyId ¶
func (s *OrderCancelReplaceService) StrategyId(strategyId int) *OrderCancelReplaceService
func (*OrderCancelReplaceService) StrategyType ¶
func (s *OrderCancelReplaceService) StrategyType(strategyType int) *OrderCancelReplaceService
func (*OrderCancelReplaceService) Symbol ¶
func (s *OrderCancelReplaceService) Symbol(symbol string) *OrderCancelReplaceService
func (*OrderCancelReplaceService) TimeInForce ¶
func (s *OrderCancelReplaceService) TimeInForce(timeInForce string) *OrderCancelReplaceService
func (*OrderCancelReplaceService) TrailingDelta ¶
func (s *OrderCancelReplaceService) TrailingDelta(trailingDelta float64) *OrderCancelReplaceService
type OrderCancelResponse ¶
type OrderCancelResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result *OrderCancelResult `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type OrderCancelResult ¶
type OrderCancelResult struct { Symbol string `json:"symbol"` OrigClientOrderId string `json:"origClientOrderId"` OrderId int64 `json:"orderId"` OrderListId int `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CummulativeQuoteQty string `json:"cummulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` IcebergQty string `json:"icebergQty,omitempty"` PreventedMatchId int64 `json:"preventedMatchId,omitempty"` PreventedQuantity string `json:"preventedQuantity,omitempty"` StopPrice string `json:"stopPrice,omitempty"` StrategyId int64 `json:"strategyId,omitempty"` StrategyType int64 `json:"strategyType,omitempty"` TrailingDelta string `json:"trailingDelta,omitempty"` TrailingTime int64 `json:"trailingTime,omitempty"` }
type OrderCancelService ¶
type OrderCancelService struct {
// contains filtered or unexported fields
}
func (*OrderCancelService) CancelRestrictions ¶
func (s *OrderCancelService) CancelRestrictions(cancelRestrictions string) *OrderCancelService
func (*OrderCancelService) Do ¶
func (s *OrderCancelService) Do(ctx context.Context) (*OrderCancelResponse, error)
func (*OrderCancelService) NewClientOrderId ¶
func (s *OrderCancelService) NewClientOrderId(newClientOrderId string) *OrderCancelService
func (*OrderCancelService) OrderId ¶
func (s *OrderCancelService) OrderId(orderId int64) *OrderCancelService
func (*OrderCancelService) OrigClientOrderId ¶
func (s *OrderCancelService) OrigClientOrderId(origClientOrderId string) *OrderCancelService
func (*OrderCancelService) RecvWindow ¶
func (s *OrderCancelService) RecvWindow(recvWindow int64) *OrderCancelService
func (*OrderCancelService) Symbol ¶
func (s *OrderCancelService) Symbol(symbol string) *OrderCancelService
type OrderCancelledResult ¶
type OrderCancelledResult struct { Symbol string `json:"symbol,omitempty"` OrigClientOrderId string `json:"origClientOrderId,omitempty"` OrderId int64 `json:"orderId,omitempty"` OrderListId int `json:"orderListId,omitempty"` ClientOrderId string `json:"clientOrderId,omitempty"` Price string `json:"price,omitempty"` OrigQty string `json:"origQty,omitempty"` ExecutedQty string `json:"executedQty,omitempty"` CummulativeQuoteQty string `json:"cummulativeQuoteQty,omitempty"` Status string `json:"status,omitempty"` TimeInForce string `json:"timeInForce,omitempty"` Type string `json:"type,omitempty"` Side string `json:"side,omitempty"` SelfTradePreventionMode string `json:"selfTradePreventionMode,omitempty"` }
type OrderHistoryItem ¶
type OrderHistoryItem struct { Symbol string `json:"symbol"` OrderID int64 `json:"orderId"` OrderListID int64 `json:"orderListId"` ClientOrderID string `json:"clientOrderId"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CumulativeQuoteQty string `json:"cummulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` StopPrice string `json:"stopPrice"` IcebergQty string `json:"icebergQty,omitempty"` Time int64 `json:"time"` UpdateTime int64 `json:"updateTime"` IsWorking bool `json:"isWorking"` WorkingTime int64 `json:"workingTime"` OrigQuoteOrderQty string `json:"origQuoteOrderQty"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` PreventedMatchID int64 `json:"preventedMatchId,omitempty"` PreventedQuantity string `json:"preventedQuantity,omitempty"` }
type OrderListCancelOrder ¶
type OrderListCancelOrderReport ¶
type OrderListCancelOrderReport struct { Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` OrderListId int64 `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` TransactionTime uint64 `json:"transactTime"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CummulativeQuoteQty string `json:"cummulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` }
type OrderListCancelResponse ¶
type OrderListCancelResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result *OrderListCancelResult `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type OrderListCancelResult ¶
type OrderListCancelResult struct { OrderListId int64 `json:"orderListId"` ContingencyType string `json:"contingencyType"` ListStatusType string `json:"listStatusType"` ListOrderStatus string `json:"listOrderStatus"` ListClientOrderId string `json:"listClientOrderId"` TransactionTime uint64 `json:"transactionTime"` Symbol string `json:"symbol"` Orders []*OrderListCancelOrder `json:"orders"` OrderReports []*OrderListCancelOrderReport `json:"orderReports"` }
type OrderListCancelService ¶
type OrderListCancelService struct {
// contains filtered or unexported fields
}
func (*OrderListCancelService) Do ¶
func (s *OrderListCancelService) Do(ctx context.Context) (*OrderListCancelResponse, error)
func (*OrderListCancelService) ListClientOrderId ¶
func (s *OrderListCancelService) ListClientOrderId(listClientOrderId string) *OrderListCancelService
func (*OrderListCancelService) NewClientOrderId ¶
func (s *OrderListCancelService) NewClientOrderId(newClientOrderId string) *OrderListCancelService
func (*OrderListCancelService) OrderListId ¶
func (s *OrderListCancelService) OrderListId(orderListId int) *OrderListCancelService
func (*OrderListCancelService) RecvWindow ¶
func (s *OrderListCancelService) RecvWindow(recvWindow int64) *OrderListCancelService
func (*OrderListCancelService) Symbol ¶
func (s *OrderListCancelService) Symbol(symbol string) *OrderListCancelService
type OrderListPlaceResponse ¶
type OrderListPlaceResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result *OrderListPlaceResult `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type OrderListPlaceResult ¶
type OrderListPlaceResult struct { OrderListId int `json:"orderListId"` ContingencyType string `json:"contingencyType"` ListStatusType string `json:"listStatusType"` ListOrderStatus string `json:"listOrderStatus"` ListClientOrderId string `json:"listClientOrderId"` TransactionTime int64 `json:"transactionTime"` Symbol string `json:"symbol"` Orders []*OrderInfo `json:"orders"` OrderReports []*OrderReport `json:"orderReports"` }
type OrderListPlaceService ¶
type OrderListPlaceService struct {
// contains filtered or unexported fields
}
func (*OrderListPlaceService) Do ¶
func (s *OrderListPlaceService) Do(ctx context.Context) (*OrderListPlaceResponse, error)
func (*OrderListPlaceService) LimitClientOrderId ¶
func (s *OrderListPlaceService) LimitClientOrderId(limitClientOrderId string) *OrderListPlaceService
func (*OrderListPlaceService) LimitIcebergQty ¶
func (s *OrderListPlaceService) LimitIcebergQty(limitIcebergQty float64) *OrderListPlaceService
func (*OrderListPlaceService) LimitStrategyId ¶
func (s *OrderListPlaceService) LimitStrategyId(limitStrategyId int) *OrderListPlaceService
func (*OrderListPlaceService) LimitStrategyType ¶
func (s *OrderListPlaceService) LimitStrategyType(limitStrategyType int) *OrderListPlaceService
func (*OrderListPlaceService) ListClientOrderId ¶
func (s *OrderListPlaceService) ListClientOrderId(listClientOrderId string) *OrderListPlaceService
func (*OrderListPlaceService) NewOrderRespType ¶
func (s *OrderListPlaceService) NewOrderRespType(newOrderRespType string) *OrderListPlaceService
func (*OrderListPlaceService) Price ¶
func (s *OrderListPlaceService) Price(price float64) *OrderListPlaceService
func (*OrderListPlaceService) Quantity ¶
func (s *OrderListPlaceService) Quantity(quantity float64) *OrderListPlaceService
func (*OrderListPlaceService) RecvWindow ¶
func (s *OrderListPlaceService) RecvWindow(recvWindow int64) *OrderListPlaceService
func (*OrderListPlaceService) SelfTradePreventionMode ¶
func (s *OrderListPlaceService) SelfTradePreventionMode(selfTradePreventionMode string) *OrderListPlaceService
func (*OrderListPlaceService) Side ¶
func (s *OrderListPlaceService) Side(side string) *OrderListPlaceService
func (*OrderListPlaceService) StopClientOrderId ¶
func (s *OrderListPlaceService) StopClientOrderId(stopClientOrderId string) *OrderListPlaceService
func (*OrderListPlaceService) StopIcebergQty ¶
func (s *OrderListPlaceService) StopIcebergQty(stopIcebergQty float64) *OrderListPlaceService
func (*OrderListPlaceService) StopLimitPrice ¶
func (s *OrderListPlaceService) StopLimitPrice(stopLimitPrice float64) *OrderListPlaceService
func (*OrderListPlaceService) StopLimitTimeInForce ¶
func (s *OrderListPlaceService) StopLimitTimeInForce(stopLimitTimeInForce string) *OrderListPlaceService
func (*OrderListPlaceService) StopPrice ¶
func (s *OrderListPlaceService) StopPrice(stopPrice float64) *OrderListPlaceService
func (*OrderListPlaceService) StopStrategyId ¶
func (s *OrderListPlaceService) StopStrategyId(stopStrategyId int) *OrderListPlaceService
func (*OrderListPlaceService) StopStrategyType ¶
func (s *OrderListPlaceService) StopStrategyType(stopStrategyType int) *OrderListPlaceService
func (*OrderListPlaceService) Symbol ¶
func (s *OrderListPlaceService) Symbol(symbol string) *OrderListPlaceService
type OrderListStatusOrder ¶
type OrderListStatusResponse ¶
type OrderListStatusResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result *OrderListStatusResult `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type OrderListStatusResult ¶
type OrderListStatusResult struct { OrderListId int `json:"orderListId"` ContingencyType string `json:"contingencyType"` ListStatusType string `json:"listStatusType"` ListOrderStatus string `json:"listOrderStatus"` ListClientOrderId string `json:"listClientOrderId"` TransactionTime uint64 `json:"transactionTime"` Symbol string `json:"symbol"` Orders []*OrderListStatusOrder `json:"orders"` }
type OrderListStatusService ¶
type OrderListStatusService struct {
// contains filtered or unexported fields
}
func (*OrderListStatusService) Do ¶
func (s *OrderListStatusService) Do(ctx context.Context) (*OrderListStatusResponse, error)
func (*OrderListStatusService) OrderListId ¶
func (s *OrderListStatusService) OrderListId(orderListId int) *OrderListStatusService
func (*OrderListStatusService) OrigClientOrderId ¶
func (s *OrderListStatusService) OrigClientOrderId(origClientOrderId string) *OrderListStatusService
func (*OrderListStatusService) RecvWindow ¶
func (s *OrderListStatusService) RecvWindow(recvWindow int64) *OrderListStatusService
type OrderOCOResponse ¶
type OrderOCOResponse struct { OrderListId int64 `json:"orderListId"` ContingencyType string `json:"contingencyType"` ListStatusType string `json:"listStatusType"` ListOrderStatus string `json:"listOrderStatus"` ListClientOrderId string `json:"listClientOrderId"` TransactionTime uint64 `json:"transactionTime"` Symbol string `json:"symbol"` Orders []struct { Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` ClientOrderId string `json:"clientOrderId"` } `json:"orders"` OrderReports []struct { Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` OrderListId int64 `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` TransactTime uint64 `json:"transactTime"` Price float64 `json:"price"` OrigQty float64 `json:"origQty"` ExecutedQty float64 `json:"executedQty"` CummulativeQuoteQty float64 `json:"cummulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` StopPrice string `json:"stopPrice"` WorkingTime uint64 `json:"workingTime"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` IcebergQty string `json:"icebergQty,omitempty"` PreventedMatchId int64 `json:"preventedMatchId,omitempty"` PreventedQuantity string `json:"preventedQuantity,omitempty"` StrategyId int64 `json:"strategyId,omitempty"` StrategyType int64 `json:"strategyType,omitempty"` TrailingDelta string `json:"trailingDelta,omitempty"` TrailingTime int64 `json:"trailingTime,omitempty"` } `json:"orderReports"` }
type OrderPlacedResult ¶
type OrderPlacedResult struct { Symbol string `json:"symbol,omitempty"` OrderId int64 `json:"orderId,omitempty"` OrderListId int `json:"orderListId,omitempty"` ClientOrderId string `json:"clientOrderId,omitempty"` TransactTime int64 `json:"transactTime,omitempty"` Price string `json:"price,omitempty"` OrigQty string `json:"origQty,omitempty"` ExecutedQty string `json:"executedQty,omitempty"` CummulativeQuoteQty string `json:"cummulativeQuoteQty,omitempty"` Status string `json:"status,omitempty"` TimeInForce string `json:"timeInForce,omitempty"` Type string `json:"type,omitempty"` Side string `json:"side,omitempty"` WorkingTime uint64 `json:"workingTime,omitempty"` Fills []*Fill `json:"fills,omitempty"` SelfTradePreventionMode string `json:"selfTradePreventionMode,omitempty"` }
type OrderPlacementResponse ¶
type OrderPlacementResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result *OrderPlacementResult `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type OrderPlacementResult ¶
type OrderPlacementResult struct { Symbol string `json:"symbol,omitempty"` OrderID int64 `json:"orderId,omitempty"` OrderListID int64 `json:"orderListId,omitempty"` ClientOrderID string `json:"clientOrderId,omitempty"` TransactTime int64 `json:"transactTime,omitempty"` Price string `json:"price,omitempty"` OrigQty string `json:"origQty,omitempty"` ExecutedQty string `json:"executedQty,omitempty"` CummulativeQuoteQty string `json:"cummulativeQuoteQty,omitempty"` Status string `json:"status,omitempty"` TimeInForce string `json:"timeInForce,omitempty"` Type string `json:"type,omitempty"` Side string `json:"side,omitempty"` WorkingTime int64 `json:"workingTime,omitempty"` IcebergQty string `json:"icebergQty,omitempty"` PreventedMatchId int64 `json:"preventedMatchId,omitempty"` PreventedQuantity string `json:"preventedQuantity,omitempty"` StopPrice string `json:"stopPrice,omitempty"` StrategyId int64 `json:"strategyId,omitempty"` StrategyType int64 `json:"strategyType,omitempty"` TrailingDelta string `json:"trailingDelta,omitempty"` TrailingTime int64 `json:"trailingTime,omitempty"` Fills []OrderFill `json:"fills,omitempty"` SelfTradePrevention string `json:"selfTradePreventionMode,omitempty"` }
type OrderPlacementService ¶
type OrderPlacementService struct {
// contains filtered or unexported fields
}
func (*OrderPlacementService) Do ¶
func (s *OrderPlacementService) Do(ctx context.Context) (*OrderPlacementResponse, error)
func (*OrderPlacementService) IcebergQty ¶
func (s *OrderPlacementService) IcebergQty(icebergQty float64) *OrderPlacementService
func (*OrderPlacementService) NewClientOrderId ¶
func (s *OrderPlacementService) NewClientOrderId(newClientOrderId string) *OrderPlacementService
func (*OrderPlacementService) NewOrderRespType ¶
func (s *OrderPlacementService) NewOrderRespType(newOrderRespType string) *OrderPlacementService
func (*OrderPlacementService) OrderType ¶
func (s *OrderPlacementService) OrderType(orderType string) *OrderPlacementService
func (*OrderPlacementService) Price ¶
func (s *OrderPlacementService) Price(price float64) *OrderPlacementService
func (*OrderPlacementService) Quantity ¶
func (s *OrderPlacementService) Quantity(quantity float64) *OrderPlacementService
func (*OrderPlacementService) QuoteOrderQty ¶
func (s *OrderPlacementService) QuoteOrderQty(quoteOrderQty float64) *OrderPlacementService
func (*OrderPlacementService) RecvWindow ¶
func (s *OrderPlacementService) RecvWindow(recvWindow int64) *OrderPlacementService
func (*OrderPlacementService) SelfTradePreventionMode ¶
func (s *OrderPlacementService) SelfTradePreventionMode(selfTradePreventionMode string) *OrderPlacementService
func (*OrderPlacementService) Side ¶
func (s *OrderPlacementService) Side(side string) *OrderPlacementService
func (*OrderPlacementService) StopPrice ¶
func (s *OrderPlacementService) StopPrice(stopPrice float64) *OrderPlacementService
func (*OrderPlacementService) StrategyId ¶
func (s *OrderPlacementService) StrategyId(strategyId int) *OrderPlacementService
func (*OrderPlacementService) StrategyType ¶
func (s *OrderPlacementService) StrategyType(strategyType int) *OrderPlacementService
func (*OrderPlacementService) Symbol ¶
func (s *OrderPlacementService) Symbol(symbol string) *OrderPlacementService
func (*OrderPlacementService) TimeInForce ¶
func (s *OrderPlacementService) TimeInForce(timeInForce string) *OrderPlacementService
func (*OrderPlacementService) TrailingDelta ¶
func (s *OrderPlacementService) TrailingDelta(trailingDelta int64) *OrderPlacementService
type OrderReport ¶
type OrderReport struct { Symbol string `json:"symbol"` OrderId int64 `json:"orderId"` OrderListId int `json:"orderListId"` ClientOrderId string `json:"clientOrderId"` TransactTime uint64 `json:"transactTime"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CummulativeQuoteQty string `json:"cummulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` WorkingTime uint64 `json:"workingTime"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` }
type OrderStatusResponse ¶
type OrderStatusResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result *OrderStatusResult `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type OrderStatusResult ¶
type OrderStatusResult struct { Symbol string `json:"symbol"` OrderID int64 `json:"orderId"` OrderListID int `json:"orderListId"` ClientOrderID string `json:"clientOrderId"` Price string `json:"price"` OrigQty string `json:"origQty"` ExecutedQty string `json:"executedQty"` CummulativeQuoteQty string `json:"cummulativeQuoteQty"` Status string `json:"status"` TimeInForce string `json:"timeInForce"` Type string `json:"type"` Side string `json:"side"` StopPrice string `json:"stopPrice,omitempty"` IcebergQty string `json:"icebergQty"` Time uint64 `json:"time"` UpdateTime uint64 `json:"updateTime"` IsWorking bool `json:"isWorking"` WorkingTime uint64 `json:"workingTime"` OrigQuoteOrderQty string `json:"origQuoteOrderQty"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` PreventedMatchId int64 `json:"preventedMatchId,omitempty"` PreventedQuantity string `json:"preventedQuantity,omitempty"` StrategyId int64 `json:"strategyId,omitempty"` StrategyType int64 `json:"strategyType,omitempty"` TrailingDelta string `json:"trailingDelta,omitempty"` TrailingTime int64 `json:"trailingTime,omitempty"` }
type OrderStatusService ¶
type OrderStatusService struct {
// contains filtered or unexported fields
}
func (*OrderStatusService) ClientOrderID ¶
func (s *OrderStatusService) ClientOrderID(origClientOrderId string) *OrderStatusService
func (*OrderStatusService) Do ¶
func (s *OrderStatusService) Do(ctx context.Context) (*OrderStatusResponse, error)
func (*OrderStatusService) OrderId ¶
func (s *OrderStatusService) OrderId(orderId int64) *OrderStatusService
func (*OrderStatusService) RecvWindow ¶
func (s *OrderStatusService) RecvWindow(recvWindow int64) *OrderStatusService
func (*OrderStatusService) Symbol ¶
func (s *OrderStatusService) Symbol(symbol string) *OrderStatusService
type Ping ¶
type Ping struct {
// contains filtered or unexported fields
}
Binance Test Connectivity endpoint (GET /api/v3/ping)
type PingUserDataStreamResponse ¶
type PingUserDataStreamResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Response struct{} `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits,omitempty"` }
type PingUserDataStreamService ¶
type PingUserDataStreamService struct {
// contains filtered or unexported fields
}
func (*PingUserDataStreamService) Do ¶
func (s *PingUserDataStreamService) Do(ctx context.Context) (*PingUserDataStreamResponse, error)
func (*PingUserDataStreamService) ListenKey ¶
func (s *PingUserDataStreamService) ListenKey(listenKey string) *PingUserDataStreamService
type PingUserStream ¶
type PingUserStream struct {
// contains filtered or unexported fields
}
Keep Alive/Ping User Stream
func (*PingUserStream) Do ¶
func (s *PingUserStream) Do(ctx context.Context, opts ...RequestOption) (err error)
Do send request
func (*PingUserStream) ListenKey ¶
func (s *PingUserStream) ListenKey(listenKey string) *PingUserStream
ListenKey set listen key
type PreventedMatch ¶
type PreventedMatch struct { Symbol string `json:"symbol"` PreventedMatchId int64 `json:"preventedMatchId"` TakerOrderId int64 `json:"takerOrderId"` MakerOrderId int64 `json:"makerOrderId"` TradeGroupId int64 `json:"tradeGroupId"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` Price string `json:"price"` MakerPreventedQuantity string `json:"makerPreventedQuantity"` TransactTime uint64 `json:"transactTime"` }
type PriceLevel ¶
type QueryAllOCOService ¶
type QueryAllOCOService struct {
// contains filtered or unexported fields
}
Binance Query all OCO (USER_DATA) (GET /api/v3/allOrderList) QueryAllOCOService query all OCO order
func (*QueryAllOCOService) Do ¶
func (s *QueryAllOCOService) Do(ctx context.Context, opts ...RequestOption) (res []*OCOResponse, err error)
Do send request
func (*QueryAllOCOService) EndTime ¶
func (s *QueryAllOCOService) EndTime(endTime uint64) *QueryAllOCOService
EndTime set endTime
func (*QueryAllOCOService) FromId ¶
func (s *QueryAllOCOService) FromId(fromId int64) *QueryAllOCOService
FromId set fromId
func (*QueryAllOCOService) Limit ¶
func (s *QueryAllOCOService) Limit(limit int) *QueryAllOCOService
Limit set limit
func (*QueryAllOCOService) StartTime ¶
func (s *QueryAllOCOService) StartTime(startTime uint64) *QueryAllOCOService
StartTime set startTime
type QueryCurrentOrderCountUsageResponse ¶
type QueryCurrentOrderCountUsageResponse struct { RateLimitType string `json:"rateLimitType"` Interval string `json:"interval"` IntervalNum int `json:"intervalNum"` Limit int `json:"limit"` Count int `json:"count"` }
Create QueryCurrentOrderCountUsageResponse
type QueryManagedSubAccountAssetDetailsResp ¶
type QueryManagedSubAccountAssetDetailsResp struct { AssetDetail []struct { Coin string `json:"coin"` Name string `json:"name"` TotalBalance string `json:"totalBalance"` AvailableBalance string `json:"availableBalance"` InOrder string `json:"inOrder"` BtcValue string `json:"btcValue"` } `json:"assetDetail"` }
type QueryManagedSubAccountAssetDetailsService ¶
type QueryManagedSubAccountAssetDetailsService struct {
// contains filtered or unexported fields
}
func (*QueryManagedSubAccountAssetDetailsService) Do ¶
func (s *QueryManagedSubAccountAssetDetailsService) Do(ctx context.Context, opts ...RequestOption) (res *QueryManagedSubAccountAssetDetailsResp, err error)
func (*QueryManagedSubAccountAssetDetailsService) Email ¶
func (s *QueryManagedSubAccountAssetDetailsService) Email(email string) *QueryManagedSubAccountAssetDetailsService
type QueryManagedSubAccountFuturesAssetDetailsResp ¶
type QueryManagedSubAccountFuturesAssetDetailsResp struct { Code int `json:"code"` Message string `json:"message"` SnapshotVos []struct { Type string `json:"type"` UpdateTime uint64 `json:"updateTime"` Data struct { Assets []struct { Asset string `json:"asset"` MarginBalance int64 `json:"marginBalance"` WalletBalance int64 `json:"walletBalance"` } `json:"assets"` Position []struct { Symbol string `json:"symbol"` EntryPrice int64 `json:"entryPrice"` MarkPrice int64 `json:"markPrice"` PositionAmt int64 `json:"positionAmt"` } `json:"position"` } `json:"data"` } `json:"snapshotVos"` }
type QueryManagedSubAccountFuturesAssetDetailsService ¶
type QueryManagedSubAccountFuturesAssetDetailsService struct {
// contains filtered or unexported fields
}
func (*QueryManagedSubAccountFuturesAssetDetailsService) Do ¶
func (s *QueryManagedSubAccountFuturesAssetDetailsService) Do(ctx context.Context, opts ...RequestOption) (res *QueryManagedSubAccountFuturesAssetDetailsResp, err error)
func (*QueryManagedSubAccountFuturesAssetDetailsService) Email ¶
func (s *QueryManagedSubAccountFuturesAssetDetailsService) Email(email string) *QueryManagedSubAccountFuturesAssetDetailsService
type QueryManagedSubAccountList ¶
type QueryManagedSubAccountList struct {
// contains filtered or unexported fields
}
func (*QueryManagedSubAccountList) Do ¶
func (s *QueryManagedSubAccountList) Do(ctx context.Context, opts ...RequestOption) (res *QueryManagedSubAccountListResp, err error)
func (*QueryManagedSubAccountList) Email ¶
func (s *QueryManagedSubAccountList) Email(email string) *QueryManagedSubAccountList
func (*QueryManagedSubAccountList) Limit ¶
func (s *QueryManagedSubAccountList) Limit(limit int) *QueryManagedSubAccountList
func (*QueryManagedSubAccountList) Page ¶
func (s *QueryManagedSubAccountList) Page(page int) *QueryManagedSubAccountList
type QueryManagedSubAccountListResp ¶
type QueryManagedSubAccountListResp struct { Total int `json:"total"` ManagerSubUserInfoVoList []struct { RootUserId int `json:"rootUserId"` ManagersubUserId int `json:"managersubUserId"` BindParentUserId int `json:"bindParentUserId"` Email string `json:"email"` InsertTimestamp uint64 `json:"insertTimestamp"` BindParentEmail string `json:"bindParentEmail"` IsSubUserEnabled bool `json:"isSubUserEnabled"` IsUserActive bool `json:"isUserActive"` IsMarginEnabled bool `json:"isMarginEnabled"` IsFutureEnabled bool `json:"isFutureEnabled"` IsSignedLVTRiskAgreement bool `json:"isSignedLVTRiskAgreement"` } `json:"managerSubUserInfoVoList"` }
type QueryManagedSubAccountMarginAssetDetailsResp ¶
type QueryManagedSubAccountMarginAssetDetailsResp struct { MarginLevel string `json:"marginLevel"` TotalAssetOfBtc string `json:"totalAssetOfBtc"` TotalLiabilityOfBtc string `json:"totalLiabilityOfBtc"` TotalNetAssetOfBtc string `json:"totalNetAssetOfBtc"` UserAssets []struct { Asset string `json:"asset"` Borrowed string `json:"borrowed"` Free string `json:"free"` Interest string `json:"interest"` Locked string `json:"locked"` NetAsset string `json:"netAsset"` } `json:"userAssets"` }
type QueryManagedSubAccountMarginAssetDetailsService ¶
type QueryManagedSubAccountMarginAssetDetailsService struct {
// contains filtered or unexported fields
}
func (*QueryManagedSubAccountMarginAssetDetailsService) Do ¶
func (s *QueryManagedSubAccountMarginAssetDetailsService) Do(ctx context.Context, opts ...RequestOption) (res *QueryManagedSubAccountMarginAssetDetailsResp, err error)
func (*QueryManagedSubAccountMarginAssetDetailsService) Email ¶
func (s *QueryManagedSubAccountMarginAssetDetailsService) Email(email string) *QueryManagedSubAccountMarginAssetDetailsService
type QueryManagedSubAccountSnapshotResp ¶
type QueryManagedSubAccountSnapshotResp struct { Code int `json:"code"` Msg string `json:"msg"` SnapshotVos []struct { Data []struct { Balances []struct { Asset string `json:"asset"` Free string `json:"free"` Locked string `json:"locked"` } `json:"balances"` TotalAssetOfBtc string `json:"totalAssetOfBtc"` } `json:"data"` Type string `json:"type"` UpdateTime uint64 `json:"updateTime"` } `json:"snapshotVos"` }
type QueryManagedSubAccountSnapshotService ¶
type QueryManagedSubAccountSnapshotService struct {
// contains filtered or unexported fields
}
func (*QueryManagedSubAccountSnapshotService) Do ¶
func (s *QueryManagedSubAccountSnapshotService) Do(ctx context.Context, opts ...RequestOption) (res *QueryManagedSubAccountSnapshotResp, err error)
func (*QueryManagedSubAccountSnapshotService) Email ¶
func (s *QueryManagedSubAccountSnapshotService) Email(email string) *QueryManagedSubAccountSnapshotService
func (*QueryManagedSubAccountSnapshotService) EndTime ¶
func (s *QueryManagedSubAccountSnapshotService) EndTime(endTime uint64) *QueryManagedSubAccountSnapshotService
func (*QueryManagedSubAccountSnapshotService) Limit ¶
func (s *QueryManagedSubAccountSnapshotService) Limit(limit int) *QueryManagedSubAccountSnapshotService
func (*QueryManagedSubAccountSnapshotService) StartTime ¶
func (s *QueryManagedSubAccountSnapshotService) StartTime(startTime uint64) *QueryManagedSubAccountSnapshotService
func (*QueryManagedSubAccountSnapshotService) SubType ¶
func (s *QueryManagedSubAccountSnapshotService) SubType(subType string) *QueryManagedSubAccountSnapshotService
type QueryManagedSubAccountTransferLogForTradingTeamResp ¶
type QueryManagedSubAccountTransferLogForTradingTeamResp struct { ManagerSubTransferHistoryVos []struct { FromEmail string `json:"fromEmail"` FromAccountType string `json:"fromAccountType"` ToEmail string `json:"toEmail"` ToAccountType string `json:"toAccountType"` Asset string `json:"asset"` Amount string `json:"amount"` ScheduledData int64 `json:"scheduledData"` CreateTime uint64 `json:"createTime"` Status string `json:"status"` } `json:"managerSubTransferHistoryVos"` Count int `json:"count"` }
type QueryManagedSubAccountTransferLogForTradingTeamService ¶
type QueryManagedSubAccountTransferLogForTradingTeamService struct {
// contains filtered or unexported fields
}
func (*QueryManagedSubAccountTransferLogForTradingTeamService) Do ¶
func (s *QueryManagedSubAccountTransferLogForTradingTeamService) Do(ctx context.Context, opts ...RequestOption) (res *QueryManagedSubAccountTransferLogForTradingTeamResp, err error)
func (*QueryManagedSubAccountTransferLogForTradingTeamService) EndTime ¶
func (s *QueryManagedSubAccountTransferLogForTradingTeamService) EndTime(endTime uint64) *QueryManagedSubAccountTransferLogForTradingTeamService
func (*QueryManagedSubAccountTransferLogForTradingTeamService) StartTime ¶
func (s *QueryManagedSubAccountTransferLogForTradingTeamService) StartTime(startTime uint64) *QueryManagedSubAccountTransferLogForTradingTeamService
func (*QueryManagedSubAccountTransferLogForTradingTeamService) TransferFunctionAccountType ¶
func (s *QueryManagedSubAccountTransferLogForTradingTeamService) TransferFunctionAccountType(transferFunctionAccountType string) *QueryManagedSubAccountTransferLogForTradingTeamService
func (*QueryManagedSubAccountTransferLogForTradingTeamService) Transfers ¶
func (s *QueryManagedSubAccountTransferLogForTradingTeamService) Transfers(transfers string) *QueryManagedSubAccountTransferLogForTradingTeamService
type QueryManagedSubAccountTransferLogResp ¶
type QueryManagedSubAccountTransferLogResp struct { ManagerSubTransferHistoryVos []struct { FromEmail string `json:"fromEmail"` FromAccountType string `json:"fromAccountType"` ToEmail string `json:"toEmail"` ToAccountType string `json:"toAccountType"` Asset string `json:"asset"` Amount int `json:"amount"` ScheduledData int `json:"scheduledData"` CreateTime uint64 `json:"createTime"` Status string `json:"status"` } `json:"managerSubTransferHistoryVos"` Count int `json:"count"` }
type QueryManagedSubAccountTransferLogService ¶
type QueryManagedSubAccountTransferLogService struct {
// contains filtered or unexported fields
}
func (*QueryManagedSubAccountTransferLogService) Do ¶
func (s *QueryManagedSubAccountTransferLogService) Do(ctx context.Context, opts ...RequestOption) (res *QueryManagedSubAccountTransferLogResp, err error)
func (*QueryManagedSubAccountTransferLogService) Email ¶
func (s *QueryManagedSubAccountTransferLogService) Email(email string) *QueryManagedSubAccountTransferLogService
func (*QueryManagedSubAccountTransferLogService) EndTime ¶
func (s *QueryManagedSubAccountTransferLogService) EndTime(endTime uint64) *QueryManagedSubAccountTransferLogService
func (*QueryManagedSubAccountTransferLogService) Limit ¶
func (s *QueryManagedSubAccountTransferLogService) Limit(limit int) *QueryManagedSubAccountTransferLogService
func (*QueryManagedSubAccountTransferLogService) Page ¶
func (s *QueryManagedSubAccountTransferLogService) Page(page int) *QueryManagedSubAccountTransferLogService
func (*QueryManagedSubAccountTransferLogService) StartTime ¶
func (s *QueryManagedSubAccountTransferLogService) StartTime(startTime uint64) *QueryManagedSubAccountTransferLogService
func (*QueryManagedSubAccountTransferLogService) TransferFunctionAccountType ¶
func (s *QueryManagedSubAccountTransferLogService) TransferFunctionAccountType(transferFunctionAccountType string) *QueryManagedSubAccountTransferLogService
func (*QueryManagedSubAccountTransferLogService) Transfers ¶
func (s *QueryManagedSubAccountTransferLogService) Transfers(transfers string) *QueryManagedSubAccountTransferLogService
type QueryMarginPriceIndexResponse ¶
type QueryMarginPriceIndexResponse struct { CalcTime int64 `json:"calcTime"` Price string `json:"price"` Symbol string `json:"symbol"` }
QueryMarginPriceIndexResponse define query margin price index response
type QueryMarginPriceIndexService ¶
type QueryMarginPriceIndexService struct {
// contains filtered or unexported fields
}
QueryMarginPriceIndexService query margin price index
func (*QueryMarginPriceIndexService) Do ¶
func (s *QueryMarginPriceIndexService) Do(ctx context.Context, opts ...RequestOption) (res *QueryMarginPriceIndexResponse, err error)
Do send request
func (*QueryMarginPriceIndexService) Symbol ¶
func (s *QueryMarginPriceIndexService) Symbol(symbol string) *QueryMarginPriceIndexService
Symbol set symbol
type QueryOCOService ¶
type QueryOCOService struct {
// contains filtered or unexported fields
}
Binance Query OCO (USER_DATA) (GET /api/v3/orderList) QueryOCOService query OCO order
func (*QueryOCOService) Do ¶
func (s *QueryOCOService) Do(ctx context.Context, opts ...RequestOption) (res *OCOResponse, err error)
Do send request
func (*QueryOCOService) OrderListId ¶
func (s *QueryOCOService) OrderListId(orderListId int64) *QueryOCOService
OrderListId set orderListId
func (*QueryOCOService) OrigClientOrderId ¶
func (s *QueryOCOService) OrigClientOrderId(origClientOrderId string) *QueryOCOService
OrigClientOrderId set origClientOrderId
type QueryOpenOCOService ¶
type QueryOpenOCOService struct {
// contains filtered or unexported fields
}
Binance Query open OCO (USER_DATA) (GET /api/v3/openOrderList) QueryOpenOCOService query open OCO order
func (*QueryOpenOCOService) Do ¶
func (s *QueryOpenOCOService) Do(ctx context.Context, opts ...RequestOption) (res *OCOResponse, err error)
Do send request
type QueryPreventedMatchesResponse ¶
type QueryPreventedMatchesResponse struct { PreventedMatches []struct { Symbol string `json:"symbol"` PreventedMatchId int64 `json:"preventedMatchId"` TakerOrderId int64 `json:"takerOrderId"` MakerOrderId int64 `json:"makerOrderId"` TradeGroupId int64 `json:"tradeGroupId"` SelfTradePreventionMode string `json:"selfTradePreventionMode"` Price string `json:"price"` MakerPreventedQuantity string `json:"makerPreventedQuantity"` TransactTime uint64 `json:"transactTime"` } `json:"preventedMatches"` }
Create QueryPreventedMatchesResponse
type QuerySubAccountAssetsForMasterAccountService ¶
type QuerySubAccountAssetsForMasterAccountService struct {
// contains filtered or unexported fields
}
func (*QuerySubAccountAssetsForMasterAccountService) Do ¶
func (s *QuerySubAccountAssetsForMasterAccountService) Do(ctx context.Context, opts ...RequestOption) (res *QuerySubAccountAssetsForMasterAccountResp, err error)
func (*QuerySubAccountAssetsForMasterAccountService) Email ¶
func (s *QuerySubAccountAssetsForMasterAccountService) Email(email string) *QuerySubAccountAssetsForMasterAccountService
type QuerySubAccountAssetsService ¶
type QuerySubAccountAssetsService struct {
// contains filtered or unexported fields
}
func (*QuerySubAccountAssetsService) Do ¶
func (s *QuerySubAccountAssetsService) Do(ctx context.Context, opts ...RequestOption) (res *QuerySubAccountAssetsResp, err error)
func (*QuerySubAccountAssetsService) Email ¶
func (s *QuerySubAccountAssetsService) Email(email string) *QuerySubAccountAssetsService
type QuerySubAccountFuturesAssetTransferHistoryResp ¶
type QuerySubAccountFuturesAssetTransferHistoryResp struct { Success bool `json:"success"` FuturesType int64 `json:"futuresType"` Transfers []struct { From string `json:"from"` To string `json:"to"` Asset string `json:"asset"` Qty string `json:"qty"` TranId int64 `json:"tranId"` Time uint64 `json:"time"` } `json:"transfers"` }
type QuerySubAccountFuturesAssetTransferHistoryService ¶
type QuerySubAccountFuturesAssetTransferHistoryService struct {
// contains filtered or unexported fields
}
func (*QuerySubAccountFuturesAssetTransferHistoryService) Do ¶
func (s *QuerySubAccountFuturesAssetTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *QuerySubAccountFuturesAssetTransferHistoryResp, err error)
func (*QuerySubAccountFuturesAssetTransferHistoryService) Email ¶
func (s *QuerySubAccountFuturesAssetTransferHistoryService) Email(email string) *QuerySubAccountFuturesAssetTransferHistoryService
func (*QuerySubAccountFuturesAssetTransferHistoryService) EndTime ¶
func (s *QuerySubAccountFuturesAssetTransferHistoryService) EndTime(endTime uint64) *QuerySubAccountFuturesAssetTransferHistoryService
func (*QuerySubAccountFuturesAssetTransferHistoryService) FuturesType ¶
func (s *QuerySubAccountFuturesAssetTransferHistoryService) FuturesType(futuresType int) *QuerySubAccountFuturesAssetTransferHistoryService
func (*QuerySubAccountFuturesAssetTransferHistoryService) Limit ¶
func (s *QuerySubAccountFuturesAssetTransferHistoryService) Limit(limit int) *QuerySubAccountFuturesAssetTransferHistoryService
func (*QuerySubAccountFuturesAssetTransferHistoryService) StartTime ¶
func (s *QuerySubAccountFuturesAssetTransferHistoryService) StartTime(startTime uint64) *QuerySubAccountFuturesAssetTransferHistoryService
type QuerySubAccountListService ¶
type QuerySubAccountListService struct {
// contains filtered or unexported fields
}
func (*QuerySubAccountListService) Do ¶
func (s *QuerySubAccountListService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountListResp, err error)
func (*QuerySubAccountListService) Email ¶
func (s *QuerySubAccountListService) Email(email string) *QuerySubAccountListService
func (*QuerySubAccountListService) IsFreeze ¶
func (s *QuerySubAccountListService) IsFreeze(isFreeze string) *QuerySubAccountListService
func (*QuerySubAccountListService) Limit ¶
func (s *QuerySubAccountListService) Limit(limit int) *QuerySubAccountListService
func (*QuerySubAccountListService) Page ¶
func (s *QuerySubAccountListService) Page(page int) *QuerySubAccountListService
type QuerySubAccountSpotAssetTransferHistoryService ¶
type QuerySubAccountSpotAssetTransferHistoryService struct {
// contains filtered or unexported fields
}
func (*QuerySubAccountSpotAssetTransferHistoryService) Do ¶
func (s *QuerySubAccountSpotAssetTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *QuerySubAccountSpotAssetTransferHistoryResp, err error)
func (*QuerySubAccountSpotAssetTransferHistoryService) EndTime ¶
func (s *QuerySubAccountSpotAssetTransferHistoryService) EndTime(endTime uint64) *QuerySubAccountSpotAssetTransferHistoryService
func (*QuerySubAccountSpotAssetTransferHistoryService) FromEmail ¶
func (s *QuerySubAccountSpotAssetTransferHistoryService) FromEmail(fromEmail string) *QuerySubAccountSpotAssetTransferHistoryService
func (*QuerySubAccountSpotAssetTransferHistoryService) Limit ¶
func (s *QuerySubAccountSpotAssetTransferHistoryService) Limit(limit int) *QuerySubAccountSpotAssetTransferHistoryService
func (*QuerySubAccountSpotAssetTransferHistoryService) Page ¶
func (s *QuerySubAccountSpotAssetTransferHistoryService) Page(page int) *QuerySubAccountSpotAssetTransferHistoryService
func (*QuerySubAccountSpotAssetTransferHistoryService) StartTime ¶
func (s *QuerySubAccountSpotAssetTransferHistoryService) StartTime(startTime uint64) *QuerySubAccountSpotAssetTransferHistoryService
func (*QuerySubAccountSpotAssetTransferHistoryService) ToEmail ¶
func (s *QuerySubAccountSpotAssetTransferHistoryService) ToEmail(toEmail string) *QuerySubAccountSpotAssetTransferHistoryService
type QuerySubAccountSpotAssetsSummaryService ¶
type QuerySubAccountSpotAssetsSummaryService struct {
// contains filtered or unexported fields
}
func (*QuerySubAccountSpotAssetsSummaryService) Do ¶
func (s *QuerySubAccountSpotAssetsSummaryService) Do(ctx context.Context, opts ...RequestOption) (res *QuerySubAccountSpotAssetsSummaryResp, err error)
func (*QuerySubAccountSpotAssetsSummaryService) Email ¶
func (s *QuerySubAccountSpotAssetsSummaryService) Email(email string) *QuerySubAccountSpotAssetsSummaryService
func (*QuerySubAccountSpotAssetsSummaryService) Page ¶
func (s *QuerySubAccountSpotAssetsSummaryService) Page(page int) *QuerySubAccountSpotAssetsSummaryService
func (*QuerySubAccountSpotAssetsSummaryService) Size ¶
func (s *QuerySubAccountSpotAssetsSummaryService) Size(size int) *QuerySubAccountSpotAssetsSummaryService
type QuerySubAccountTransactionTatistics ¶
type QuerySubAccountTransactionTatistics struct {
// contains filtered or unexported fields
}
func (*QuerySubAccountTransactionTatistics) Do ¶
func (s *QuerySubAccountTransactionTatistics) Do(ctx context.Context, opts ...RequestOption) (res *QuerySubAccountTransactionTatisticsResp, err error)
func (*QuerySubAccountTransactionTatistics) Email ¶
func (s *QuerySubAccountTransactionTatistics) Email(email string) *QuerySubAccountTransactionTatistics
type QuerySubAccountTransactionTatisticsResp ¶
type QuerySubAccountTransactionTatisticsResp struct { Recent30BtcTotal string `json:"recent30BtcTotal"` Recent30BtcFuturesTotal string `json:"recent30BtcFuturesTotal"` Recent30BtcMarginTotal string `json:"recent30BtcMarginTotal"` Recent30BusdTotal string `json:"recent30BusdTotal"` Recent30BusdFuturesTotal string `json:"recent30BusdFuturesTotal"` Recent30BusdMarginTotal string `json:"recent30BusdMarginTotal"` TradeInfoVos []struct { UserId int64 `json:"userId"` Btc int `json:"btc"` BtcFutures int `json:"btcFutures"` BtcMargin int `json:"btcMargin"` Busd int `json:"busd"` BusdFutures int `json:"busdFutures"` BusdMargin int `json:"busdMargin"` Date int64 `json:"date"` } `json:"tradeInfoVos"` }
type QueryUniversalTransferHistoryResp ¶
type QueryUniversalTransferHistoryResp struct { Result []*InternalUniversalTransfer `json:"result"` TotalCount int `json:"totalCount"` }
type QueryUniversalTransferHistoryService ¶
type QueryUniversalTransferHistoryService struct {
// contains filtered or unexported fields
}
func (*QueryUniversalTransferHistoryService) ClientTranId ¶
func (s *QueryUniversalTransferHistoryService) ClientTranId(clientTranId string) *QueryUniversalTransferHistoryService
func (*QueryUniversalTransferHistoryService) Do ¶
func (s *QueryUniversalTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res QueryUniversalTransferHistoryResp, err error)
func (*QueryUniversalTransferHistoryService) EndTime ¶
func (s *QueryUniversalTransferHistoryService) EndTime(endTime uint64) *QueryUniversalTransferHistoryService
func (*QueryUniversalTransferHistoryService) FromEmail ¶
func (s *QueryUniversalTransferHistoryService) FromEmail(fromEmail string) *QueryUniversalTransferHistoryService
func (*QueryUniversalTransferHistoryService) Limit ¶
func (s *QueryUniversalTransferHistoryService) Limit(limit int) *QueryUniversalTransferHistoryService
func (*QueryUniversalTransferHistoryService) Page ¶
func (s *QueryUniversalTransferHistoryService) Page(page int) *QueryUniversalTransferHistoryService
func (*QueryUniversalTransferHistoryService) StartTime ¶
func (s *QueryUniversalTransferHistoryService) StartTime(startTime uint64) *QueryUniversalTransferHistoryService
func (*QueryUniversalTransferHistoryService) ToEmail ¶
func (s *QueryUniversalTransferHistoryService) ToEmail(toEmail string) *QueryUniversalTransferHistoryService
type RateLimit ¶
type RateLimit struct { RateLimitType string `json:"rateLimitType"` Interval string `json:"interval"` Limit int `json:"limit"` }
RateLimit define rate limit
type RecentTradeResult ¶
type RecentTradesList ¶
type RecentTradesList struct {
// contains filtered or unexported fields
}
Binance Recent Trades List endpoint (GET /api/v3/trades)
func (*RecentTradesList) Do ¶
func (s *RecentTradesList) Do(ctx context.Context, opts ...RequestOption) (res []*RecentTradesListResponse, err error)
Send the request
func (*RecentTradesList) Limit ¶
func (s *RecentTradesList) Limit(limit int) *RecentTradesList
Limit set limit
func (*RecentTradesList) Symbol ¶
func (s *RecentTradesList) Symbol(symbol string) *RecentTradesList
Symbol set symbol
type RecentTradesListResponse ¶
type RecentTradesListResponse struct { Id uint64 `json:"id"` Price string `json:"price"` Qty string `json:"qty"` Time uint64 `json:"time"` QuoteQty string `json:"quoteQty"` IsBuyerMaker bool `json:"isBuyerMaker"` IsBest bool `json:"isBestMatch"` }
RecentTradesListResponse define recent trades list response
type RecentTradesResponse ¶
type RecentTradesResponse struct { ID string `json:"id"` Status int `json:"status"` Result []*RecentTradeResult `json:"result"` Error *WsAPIErrorResponse `json:"error,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type RecentTradesService ¶
type RecentTradesService struct {
// contains filtered or unexported fields
}
func (*RecentTradesService) Do ¶
func (s *RecentTradesService) Do(ctx context.Context) (*RecentTradesResponse, error)
func (*RecentTradesService) Limit ¶
func (s *RecentTradesService) Limit(limit int) *RecentTradesService
func (*RecentTradesService) Symbol ¶
func (s *RecentTradesService) Symbol(symbol string) *RecentTradesService
type RequestOption ¶
type RequestOption func(*request)
RequestOption define option type for request
func WithRecvWindow ¶
func WithRecvWindow(recvWindow int64) RequestOption
Append `WithRecvWindow(insert_recvwindow)` to request to modify the default recvWindow value
type ServerTime ¶
type ServerTime struct {
// contains filtered or unexported fields
}
Binance Check Server Time endpoint (GET /api/v3/time)
func (*ServerTime) Do ¶
func (s *ServerTime) Do(ctx context.Context, opts ...RequestOption) (res *ServerTimeResponse, err error)
Send the request
type ServerTimeResponse ¶
type ServerTimeResponse struct {
ServerTime uint64 `json:"serverTime"`
}
ServerTimeResponse define server time response
type StartUserDataStreamResponse ¶
type StartUserDataStreamResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result struct { ListenKey string `json:"listenKey,omitempty"` } `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits,omitempty"` }
type StartUserDataStreamService ¶
type StartUserDataStreamService struct {
// contains filtered or unexported fields
}
func (*StartUserDataStreamService) Do ¶
func (s *StartUserDataStreamService) Do(ctx context.Context) (*StartUserDataStreamResponse, error)
type StopUserDataStreamResponse ¶
type StopUserDataStreamResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Response struct{} `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits,omitempty"` }
type StopUserDataStreamService ¶
type StopUserDataStreamService struct {
// contains filtered or unexported fields
}
func (*StopUserDataStreamService) Do ¶
func (s *StopUserDataStreamService) Do(ctx context.Context) (*StopUserDataStreamResponse, error)
func (*StopUserDataStreamService) ListenKey ¶
func (s *StopUserDataStreamService) ListenKey(listenKey string) *StopUserDataStreamService
type SubAccount ¶
type SubAccountFuturesAssetTransferService ¶
type SubAccountFuturesAssetTransferService struct {
// contains filtered or unexported fields
}
func (*SubAccountFuturesAssetTransferService) Amount ¶
func (s *SubAccountFuturesAssetTransferService) Amount(amount float32) *SubAccountFuturesAssetTransferService
func (*SubAccountFuturesAssetTransferService) Asset ¶
func (s *SubAccountFuturesAssetTransferService) Asset(asset string) *SubAccountFuturesAssetTransferService
func (*SubAccountFuturesAssetTransferService) Do ¶
func (s *SubAccountFuturesAssetTransferService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountFuturesAssetTransferResp, err error)
func (*SubAccountFuturesAssetTransferService) FromEmail ¶
func (s *SubAccountFuturesAssetTransferService) FromEmail(fromEmail string) *SubAccountFuturesAssetTransferService
func (*SubAccountFuturesAssetTransferService) FuturesType ¶
func (s *SubAccountFuturesAssetTransferService) FuturesType(futuresType int64) *SubAccountFuturesAssetTransferService
func (*SubAccountFuturesAssetTransferService) ToEmail ¶
func (s *SubAccountFuturesAssetTransferService) ToEmail(toEmail string) *SubAccountFuturesAssetTransferService
type SubAccountListResp ¶
type SubAccountListResp struct {
SubAccounts []SubAccount `json:"subAccounts"`
}
type SubAccountTransferHistoryResp ¶
type SubAccountTransferHistoryResp struct { CounterParty string `json:"counterParty"` Email string `json:"email"` Type int `json:"type"` Asset string `json:"asset"` Qty string `json:"qty"` FromAccountType string `json:"fromAccountType"` ToAccountType string `json:"toAccountType"` Status string `json:"status"` TranId int `json:"tranId"` Time uint64 `json:"time"` }
type SubAccountTransferHistoryService ¶
type SubAccountTransferHistoryService struct {
// contains filtered or unexported fields
}
func (*SubAccountTransferHistoryService) Asset ¶
func (s *SubAccountTransferHistoryService) Asset(asset string) *SubAccountTransferHistoryService
func (*SubAccountTransferHistoryService) Do ¶
func (s *SubAccountTransferHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *SubAccountTransferHistoryResp, err error)
func (*SubAccountTransferHistoryService) EndTime ¶
func (s *SubAccountTransferHistoryService) EndTime(endTime uint64) *SubAccountTransferHistoryService
func (*SubAccountTransferHistoryService) Limit ¶
func (s *SubAccountTransferHistoryService) Limit(limit int) *SubAccountTransferHistoryService
func (*SubAccountTransferHistoryService) StartTime ¶
func (s *SubAccountTransferHistoryService) StartTime(startTime uint64) *SubAccountTransferHistoryService
func (*SubAccountTransferHistoryService) TransferType ¶
func (s *SubAccountTransferHistoryService) TransferType(transferType int) *SubAccountTransferHistoryService
type SymbolFilter ¶
type SymbolFilter struct { FilterType string `json:"filterType"` MinPrice string `json:"minPrice"` MaxPrice string `json:"maxPrice"` TickSize string `json:"tickSize"` MinQty string `json:"minQty"` MaxQty string `json:"maxQty"` StepSize string `json:"stepSize"` MinNotional string `json:"minNotional"` Limit uint `json:"limit"` MaxNumAlgoOrders int64 `json:"maxNumAlgoOrders"` }
SymbolFilter define symbol filter
type SymbolInfo ¶
type SymbolInfo struct { Symbol string `json:"symbol"` Status string `json:"status"` BaseAsset string `json:"baseAsset"` BaseAssetPrecision int64 `json:"baseAssetPrecision"` QuoteAsset string `json:"quoteAsset"` QuotePrecision int64 `json:"quotePrecision"` OrderTypes []string `json:"orderTypes"` IcebergAllowed bool `json:"icebergAllowed"` OcoAllowed bool `json:"ocoAllowed"` QuoteOrderQtyMarketAllowed bool `json:"quoteOrderQtyMarketAllowed"` IsSpotTradingAllowed bool `json:"isSpotTradingAllowed"` IsMarginTradingAllowed bool `json:"isMarginTradingAllowed"` Filters []*SymbolFilter `json:"filters"` Permissions []string `json:"permissions"` }
Symbol define symbol
type SystemStatusResponse ¶
SystemStatusResponse define response of GetSystemStatusService
type TestConnectivityResponse ¶
type TestConnectivityResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result struct{} `json:"result,omitempty"` RateLimits WsAPIRateLimit `json:"rateLimits,omitempty"` }
type TestConnectivityService ¶
type TestConnectivityService struct {
// contains filtered or unexported fields
}
func (*TestConnectivityService) Do ¶
func (s *TestConnectivityService) Do(ctx context.Context) (*TestConnectivityResponse, error)
type TestNewOrder ¶
type TestNewOrder struct {
// contains filtered or unexported fields
}
Binance Test New Order endpoint (POST /api/v3/order/test)
func (*TestNewOrder) Do ¶
func (s *TestNewOrder) Do(ctx context.Context, opts ...RequestOption) (res *AccountOrderBookResponse, err error)
Send the request
func (*TestNewOrder) IcebergQty ¶
func (s *TestNewOrder) IcebergQty(icebergQty float64) *TestNewOrder
IcebergQty set icebergQty
func (*TestNewOrder) NewClientOrderId ¶
func (s *TestNewOrder) NewClientOrderId(newClientOrderId string) *TestNewOrder
NewClientOrderId set newClientOrderId
func (*TestNewOrder) NewOrderRespType ¶
func (s *TestNewOrder) NewOrderRespType(newOrderRespType string) *TestNewOrder
NewOrderRespType set newOrderRespType
func (*TestNewOrder) OrderType ¶
func (s *TestNewOrder) OrderType(orderType string) *TestNewOrder
OrderType set orderType
func (*TestNewOrder) Price ¶
func (s *TestNewOrder) Price(price float64) *TestNewOrder
Price set price
func (*TestNewOrder) Quantity ¶
func (s *TestNewOrder) Quantity(quantity float64) *TestNewOrder
Quantity set quantity
func (*TestNewOrder) QuoteOrderQty ¶
func (s *TestNewOrder) QuoteOrderQty(quoteOrderQty float64) *TestNewOrder
QuoteOrderQty set quoteOrderQty
func (*TestNewOrder) SelfTradePrevention ¶
func (s *TestNewOrder) SelfTradePrevention(selfTradePrevention string) *TestNewOrder
SelfTradePrevention set selfTradePrevention
func (*TestNewOrder) StopPrice ¶
func (s *TestNewOrder) StopPrice(stopPrice float64) *TestNewOrder
StopPrice set stopPrice
func (*TestNewOrder) StrategyId ¶
func (s *TestNewOrder) StrategyId(strategyId int) *TestNewOrder
StrategyId set strategyId
func (*TestNewOrder) StrategyType ¶
func (s *TestNewOrder) StrategyType(strategyType int) *TestNewOrder
StrategyType set strategyType
func (*TestNewOrder) Symbol ¶
func (s *TestNewOrder) Symbol(symbol string) *TestNewOrder
Symbol set symbol
func (*TestNewOrder) TimeInForce ¶
func (s *TestNewOrder) TimeInForce(timeInForce string) *TestNewOrder
TimeInForce set timeInForce
func (*TestNewOrder) TrailingDelta ¶
func (s *TestNewOrder) TrailingDelta(trailingDelta int) *TestNewOrder
TrailingDelta set trailingDelta
type TestOrderPlacementService ¶
type TestOrderPlacementService struct {
// contains filtered or unexported fields
}
func (*TestOrderPlacementService) Do ¶
func (s *TestOrderPlacementService) Do(ctx context.Context) (*OrderPlacementResponse, error)
func (*TestOrderPlacementService) IcebergQty ¶
func (s *TestOrderPlacementService) IcebergQty(icebergQty float64) *TestOrderPlacementService
func (*TestOrderPlacementService) NewClientOrderId ¶
func (s *TestOrderPlacementService) NewClientOrderId(newClientOrderId string) *TestOrderPlacementService
func (*TestOrderPlacementService) NewOrderRespType ¶
func (s *TestOrderPlacementService) NewOrderRespType(newOrderRespType string) *TestOrderPlacementService
func (*TestOrderPlacementService) OrderType ¶
func (s *TestOrderPlacementService) OrderType(orderType string) *TestOrderPlacementService
func (*TestOrderPlacementService) Price ¶
func (s *TestOrderPlacementService) Price(price float64) *TestOrderPlacementService
func (*TestOrderPlacementService) Quantity ¶
func (s *TestOrderPlacementService) Quantity(quantity float64) *TestOrderPlacementService
func (*TestOrderPlacementService) QuoteOrderQty ¶
func (s *TestOrderPlacementService) QuoteOrderQty(quoteOrderQty float64) *TestOrderPlacementService
func (*TestOrderPlacementService) RecvWindow ¶
func (s *TestOrderPlacementService) RecvWindow(recvWindow int64) *TestOrderPlacementService
func (*TestOrderPlacementService) SelfTradePreventionMode ¶
func (s *TestOrderPlacementService) SelfTradePreventionMode(selfTradePreventionMode string) *TestOrderPlacementService
func (*TestOrderPlacementService) Side ¶
func (s *TestOrderPlacementService) Side(side string) *TestOrderPlacementService
func (*TestOrderPlacementService) StopPrice ¶
func (s *TestOrderPlacementService) StopPrice(stopPrice float64) *TestOrderPlacementService
func (*TestOrderPlacementService) StrategyId ¶
func (s *TestOrderPlacementService) StrategyId(strategyId int) *TestOrderPlacementService
func (*TestOrderPlacementService) StrategyType ¶
func (s *TestOrderPlacementService) StrategyType(strategyType int) *TestOrderPlacementService
func (*TestOrderPlacementService) Symbol ¶
func (s *TestOrderPlacementService) Symbol(symbol string) *TestOrderPlacementService
func (*TestOrderPlacementService) TimeInForce ¶
func (s *TestOrderPlacementService) TimeInForce(timeInForce string) *TestOrderPlacementService
func (*TestOrderPlacementService) TrailingDelta ¶
func (s *TestOrderPlacementService) TrailingDelta(trailingDelta int64) *TestOrderPlacementService
type Ticker ¶
type Ticker struct {
// contains filtered or unexported fields
}
Binance Rolling window price change statistics (GET /api/v3/ticker)
func (*Ticker) Do ¶
func (s *Ticker) Do(ctx context.Context, opts ...RequestOption) (res *TickerResponse, err error)
Send the request
func (*Ticker) WindowSize ¶
WindowSize set windowSize
type Ticker24hr ¶
type Ticker24hr struct {
// contains filtered or unexported fields
}
Binance 24hr Ticker Price Change Statistics (GET /api/v3/ticker/24hr)
func (*Ticker24hr) Do ¶
func (s *Ticker24hr) Do(ctx context.Context, opts ...RequestOption) (res *Ticker24hrResponse, err error)
Send the request
func (*Ticker24hr) Symbol ¶
func (s *Ticker24hr) Symbol(symbol string) *Ticker24hr
Symbol set symbol
func (*Ticker24hr) Symbols ¶
func (s *Ticker24hr) Symbols(symbols []string) *Ticker24hr
Symbols set symbols
type Ticker24hrData ¶
type Ticker24hrData struct { Symbol string `json:"symbol"` PriceChange string `json:"priceChange"` PriceChangePercent string `json:"priceChangePercent"` WeightedAvgPrice string `json:"weightedAvgPrice"` PrevClosePrice string `json:"prevClosePrice"` LastPrice string `json:"lastPrice"` CloseQty string `json:"closeQty"` BidPrice string `json:"bidPrice"` BidQty string `json:"bidQty"` AskPrice string `json:"askPrice"` AskQty string `json:"askQty"` OpenPrice string `json:"openPrice"` HighPrice string `json:"highPrice"` LowPrice string `json:"lowPrice"` Volume string `json:"volume"` QuoteVolume string `json:"quoteVolume"` OpenTime int64 `json:"openTime"` CloseTime int64 `json:"closeTime"` FirstTradeId int64 `json:"firstTradeId"` LastTradeId int64 `json:"lastTradeId"` TotalTrades int64 `json:"totalTrades"` }
type Ticker24hrResponse ¶
type Ticker24hrResponse struct { Symbol string `json:"symbol"` PriceChange string `json:"priceChange"` PriceChangePercent string `json:"priceChangePercent"` WeightedAvgPrice string `json:"weightedAvgPrice"` PrevClosePrice string `json:"prevClosePrice"` LastPrice string `json:"lastPrice"` LastQty string `json:"lastQty"` BidPrice string `json:"bidPrice"` AskPrice string `json:"askPrice"` OpenPrice string `json:"openPrice"` HighPrice string `json:"highPrice"` LowPrice string `json:"lowPrice"` Volume string `json:"volume"` QuoteVolume string `json:"quoteVolume"` OpenTime uint64 `json:"openTime"` CloseTime uint64 `json:"closeTime"` FirstId uint64 `json:"firstId"` LastId uint64 `json:"lastId"` Count uint64 `json:"count"` }
Define Ticker24hr response data
type Ticker24hrService ¶
type Ticker24hrService struct {
// contains filtered or unexported fields
}
func (*Ticker24hrService) Do ¶
func (s *Ticker24hrService) Do(ctx context.Context) (*WsAPITicker24hrResponse, error)
func (*Ticker24hrService) Symbol ¶
func (s *Ticker24hrService) Symbol(symbol string) *Ticker24hrService
type TickerBookService ¶
type TickerBookService struct {
// contains filtered or unexported fields
}
func (*TickerBookService) Do ¶
func (s *TickerBookService) Do(ctx context.Context) (*WsAPIBookTickerResponse, error)
func (*TickerBookService) Symbol ¶
func (s *TickerBookService) Symbol(symbol string) *TickerBookService
type TickerBookTicker ¶
type TickerBookTicker struct {
// contains filtered or unexported fields
}
Binance Symbol Order Book Ticker (GET /api/v3/ticker/bookTicker)
func (*TickerBookTicker) Do ¶
func (s *TickerBookTicker) Do(ctx context.Context, opts ...RequestOption) (res []*TickerBookTickerResponse, err error)
func (*TickerBookTicker) Symbol ¶
func (s *TickerBookTicker) Symbol(symbol string) *TickerBookTicker
Symbol set symbol
func (*TickerBookTicker) Symbols ¶
func (s *TickerBookTicker) Symbols(symbols []string) *TickerBookTicker
Symbols set symbols
type TickerBookTickerResponse ¶
type TickerBookTickerResponse struct { Symbol string `json:"symbol"` BidPrice string `json:"bidPrice"` BidQty string `json:"bidQty"` AskPrice string `json:"askPrice"` AskQty string `json:"askQty"` }
Define TickerBookTicker response data
type TickerData ¶
type TickerData struct { Symbol string `json:"symbol"` PriceChange string `json:"priceChange"` PriceChangePercent string `json:"priceChangePercent"` WeightedAvgPrice string `json:"weightedAvgPrice"` OpenPrice string `json:"openPrice"` HighPrice string `json:"highPrice"` LowPrice string `json:"lowPrice"` LastPrice string `json:"lastPrice"` Volume string `json:"volume"` QuoteVolume string `json:"quoteVolume"` OpenTime uint64 `json:"openTime"` CloseTime uint64 `json:"closeTime"` FirstId int64 `json:"firstId"` LastId int64 `json:"lastId"` Count int64 `json:"count"` }
type TickerPrice ¶
type TickerPrice struct {
// contains filtered or unexported fields
}
Binance Symbol Price Ticker (GET /api/v3/ticker/price)
func (*TickerPrice) Do ¶
func (s *TickerPrice) Do(ctx context.Context, opts ...RequestOption) (res *TickerPriceResponse, err error)
Send the request
func (*TickerPrice) Symbol ¶
func (s *TickerPrice) Symbol(symbol string) *TickerPrice
Symbol set symbol
func (*TickerPrice) Symbols ¶
func (s *TickerPrice) Symbols(symbols []string) *TickerPrice
Symbols set symbols
type TickerPriceResponse ¶
Define TickerPrice response data
type TickerPriceService ¶
type TickerPriceService struct {
// contains filtered or unexported fields
}
func (*TickerPriceService) Do ¶
func (s *TickerPriceService) Do(ctx context.Context) (*WsAPIPriceTickerResponse, error)
func (*TickerPriceService) Symbol ¶
func (s *TickerPriceService) Symbol(symbol string) *TickerPriceService
type TickerResponse ¶
type TickerResponse struct { Symbol string `json:"symbol"` PriceChange string `json:"priceChange"` PriceChangePercent string `json:"priceChangePercent"` WeightedAvgPrice string `json:"weightedAvgPrice"` PrevClosePrice string `json:"prevClosePrice"` LastPrice string `json:"lastPrice"` LastQty string `json:"lastQty"` BidPrice string `json:"bidPrice"` AskPrice string `json:"askPrice"` OpenPrice string `json:"openPrice"` HighPrice string `json:"highPrice"` LowPrice string `json:"lowPrice"` Volume string `json:"volume"` QuoteVolume string `json:"quoteVolume"` OpenTime uint64 `json:"openTime"` CloseTime uint64 `json:"closeTime"` FirstId uint64 `json:"firstId"` LastId uint64 `json:"lastId"` Count uint64 `json:"count"` }
Define Ticker response data
type TickerService ¶
type TickerService struct {
// contains filtered or unexported fields
}
func (*TickerService) Do ¶
func (s *TickerService) Do(ctx context.Context) (*WsAPITickerResponse, error)
func (*TickerService) Symbol ¶
func (s *TickerService) Symbol(symbol string) *TickerService
type TimeInForceType ¶
type TimeInForceType string
TimeInForceType define time in force type of order
type TradeFeeResponse ¶
type TradeFeeResponse struct { Symbol string `json:"symbol"` MakerCommission string `json:"makerCommission"` TakerCommission string `json:"takerCommission"` }
TradeFeeResponse define response of TradeFeeService
type TradeFeeService ¶
type TradeFeeService struct {
// contains filtered or unexported fields
}
TradeFeeService trade fee
func (*TradeFeeService) Do ¶
func (s *TradeFeeService) Do(ctx context.Context) (res []*TradeFeeResponse, err error)
func (*TradeFeeService) Symbol ¶
func (s *TradeFeeService) Symbol(symbol string) *TradeFeeService
Symbol set symbol
type TradeHistoryItem ¶
type TradeHistoryItem struct { Symbol string `json:"symbol"` ID int64 `json:"id"` OrderID int64 `json:"orderId"` OrderListID int64 `json:"orderListId"` Price string `json:"price"` Quantity string `json:"qty"` QuoteQuantity string `json:"quoteQty"` Commission string `json:"commission"` CommissionAsset string `json:"commissionAsset"` Time int64 `json:"time"` IsBuyer bool `json:"isBuyer"` IsMaker bool `json:"isMaker"` IsBestMatch bool `json:"isBestMatch"` }
type TransferToMasterResp ¶
type TransferToMasterResp struct {
TxnId int `json:"txnId"`
}
type TransferToMasterService ¶
type TransferToMasterService struct {
// contains filtered or unexported fields
}
func (*TransferToMasterService) Amount ¶
func (s *TransferToMasterService) Amount(amount float64) *TransferToMasterService
func (*TransferToMasterService) Asset ¶
func (s *TransferToMasterService) Asset(asset string) *TransferToMasterService
func (*TransferToMasterService) Do ¶
func (s *TransferToMasterService) Do(ctx context.Context, opts ...RequestOption) (res *TransferToMasterResp, err error)
type TransferToSubAccountOfSameMasterResp ¶
type TransferToSubAccountOfSameMasterResp struct {
TxnId int `json:"txnId"`
}
type TransferToSubAccountOfSameMasterService ¶
type TransferToSubAccountOfSameMasterService struct {
// contains filtered or unexported fields
}
func (*TransferToSubAccountOfSameMasterService) Amount ¶
func (s *TransferToSubAccountOfSameMasterService) Amount(amount float64) *TransferToSubAccountOfSameMasterService
func (*TransferToSubAccountOfSameMasterService) Asset ¶
func (s *TransferToSubAccountOfSameMasterService) Asset(asset string) *TransferToSubAccountOfSameMasterService
func (*TransferToSubAccountOfSameMasterService) Do ¶
func (s *TransferToSubAccountOfSameMasterService) Do(ctx context.Context, opts ...RequestOption) (res *TransferToSubAccountOfSameMasterResp, err error)
func (*TransferToSubAccountOfSameMasterService) ToEmail ¶
func (s *TransferToSubAccountOfSameMasterService) ToEmail(toEmail string) *TransferToSubAccountOfSameMasterService
type UIKlinesResponse ¶
type UIKlinesResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result [][]interface{} `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type UIKlinesService ¶
type UIKlinesService struct {
// contains filtered or unexported fields
}
func (*UIKlinesService) Do ¶
func (s *UIKlinesService) Do(ctx context.Context) (*UIKlinesResponse, error)
func (*UIKlinesService) EndTime ¶
func (s *UIKlinesService) EndTime(endTime int64) *UIKlinesService
func (*UIKlinesService) Interval ¶
func (s *UIKlinesService) Interval(interval string) *UIKlinesService
func (*UIKlinesService) Limit ¶
func (s *UIKlinesService) Limit(limit int) *UIKlinesService
func (*UIKlinesService) StartTime ¶
func (s *UIKlinesService) StartTime(startTime int64) *UIKlinesService
func (*UIKlinesService) Symbol ¶
func (s *UIKlinesService) Symbol(symbol string) *UIKlinesService
type UiKlines ¶
type UiKlines struct {
// contains filtered or unexported fields
}
Binance UI Klines GET /api/v3/uiKlines
func (*UiKlines) Do ¶
func (s *UiKlines) Do(ctx context.Context, opts ...RequestOption) (res []*UiKlinesResponse, err error)
Send the request
type UiKlinesResponse ¶
type UiKlinesResponse struct { OpenTime uint64 `json:"openTime"` Open string `json:"open"` High string `json:"high"` Low string `json:"low"` Close string `json:"close"` Volume string `json:"volume"` CloseTime uint64 `json:"closeTime"` QuoteAssetVolume string `json:"quoteAssetVolume"` NumberOfTrades uint64 `json:"numberOfTrades"` TakerBuyBaseAssetVolume string `json:"takerBuyBaseAssetVolume"` TakerBuyQuoteAssetVolume string `json:"takerBuyQuoteAssetVolume"` }
Define UiKlines response data
type UiKlinesResponseArray ¶
type UiKlinesResponseArray [][]interface{}
type UniversalTransferResp ¶
type UniversalTransferService ¶
type UniversalTransferService struct {
// contains filtered or unexported fields
}
func (*UniversalTransferService) Amount ¶
func (s *UniversalTransferService) Amount(amount float64) *UniversalTransferService
func (*UniversalTransferService) Asset ¶
func (s *UniversalTransferService) Asset(asset string) *UniversalTransferService
func (*UniversalTransferService) ClientTranId ¶
func (s *UniversalTransferService) ClientTranId(clientTranId string) *UniversalTransferService
func (*UniversalTransferService) Do ¶
func (s *UniversalTransferService) Do(ctx context.Context, opts ...RequestOption) (res *UniversalTransferResp, err error)
func (*UniversalTransferService) FromAccountType ¶
func (s *UniversalTransferService) FromAccountType(fromAccountType string) *UniversalTransferService
func (*UniversalTransferService) FromEmail ¶
func (s *UniversalTransferService) FromEmail(fromEmail string) *UniversalTransferService
func (*UniversalTransferService) Symbol ¶
func (s *UniversalTransferService) Symbol(symbol string) *UniversalTransferService
func (*UniversalTransferService) ToAccountType ¶
func (s *UniversalTransferService) ToAccountType(toAccountType string) *UniversalTransferService
func (*UniversalTransferService) ToEmail ¶
func (s *UniversalTransferService) ToEmail(toEmail string) *UniversalTransferService
type UpdateIPRestrictionForSubAccountAPIKeyService ¶
type UpdateIPRestrictionForSubAccountAPIKeyService struct {
// contains filtered or unexported fields
}
func (*UpdateIPRestrictionForSubAccountAPIKeyService) Do ¶
func (s *UpdateIPRestrictionForSubAccountAPIKeyService) Do(ctx context.Context, opts ...RequestOption) (res *UpdateIPRestrictionForSubAccountAPIKeyResp, err error)
func (*UpdateIPRestrictionForSubAccountAPIKeyService) Email ¶
func (s *UpdateIPRestrictionForSubAccountAPIKeyService) Email(email string) *UpdateIPRestrictionForSubAccountAPIKeyService
func (*UpdateIPRestrictionForSubAccountAPIKeyService) IpAddress ¶
func (s *UpdateIPRestrictionForSubAccountAPIKeyService) IpAddress(ipAddress string) *UpdateIPRestrictionForSubAccountAPIKeyService
func (*UpdateIPRestrictionForSubAccountAPIKeyService) Status ¶
func (s *UpdateIPRestrictionForSubAccountAPIKeyService) Status(status string) *UpdateIPRestrictionForSubAccountAPIKeyService
func (*UpdateIPRestrictionForSubAccountAPIKeyService) SubAccountApiKey ¶
func (s *UpdateIPRestrictionForSubAccountAPIKeyService) SubAccountApiKey(subAccountApiKey string) *UpdateIPRestrictionForSubAccountAPIKeyService
type UserAssetDribblet ¶
type UserAssetDribblet struct { OperateTime int64 `json:"operateTime"` TotalTransferedAmount string `json:"totalTransferedAmount"` //Total transfered BNB amount for this exchange. TotalServiceChargeAmount string `json:"totalServiceChargeAmount"` //Total service charge amount for this exchange. TransId int64 `json:"transId"` UserAssetDribbletDetails []UserAssetDribbletDetail `json:"userAssetDribbletDetails"` //Details of this exchange. }
UserAssetDribblet represents one dust log row
type UserAssetDribbletDetail ¶
type UserAssetDribbletDetail struct { TransId int `json:"transId"` ServiceChargeAmount string `json:"serviceChargeAmount"` Amount string `json:"amount"` OperateTime int64 `json:"operateTime"` //The time of this exchange. TransferedAmount string `json:"transferedAmount"` FromAsset string `json:"fromAsset"` }
DustLog represents one dust log informations
type UserAssetResponse ¶
type UserAssetResponse struct { Asset string `json:"asset"` Free string `json:"free"` Locked string `json:"locked"` Freeze string `json:"freeze"` Withdrawing string `json:"withdrawing"` Ipoable string `json:"ipoable"` BtcValuation string `json:"btcValuation"` }
UserAssetResponse define response of UserAssetService
type UserAssetService ¶
type UserAssetService struct {
// contains filtered or unexported fields
}
UserAssetService user asset
func (*UserAssetService) Asset ¶
func (s *UserAssetService) Asset(asset string) *UserAssetService
Asset set asset
func (*UserAssetService) Do ¶
func (s *UserAssetService) Do(ctx context.Context) (res []*UserAssetResponse, err error)
func (*UserAssetService) NeedBtcValuation ¶
func (s *UserAssetService) NeedBtcValuation(needBtcValuation bool) *UserAssetService
NeedBtcValuation set needBtcValuation
type UserDataEventType ¶
type UserDataEventType string
UserDataEventType define spot user data event type
const ( UserDataEventTypeOutboundAccountPosition UserDataEventType = "outboundAccountPosition" UserDataEventTypeBalanceUpdate UserDataEventType = "balanceUpdate" UserDataEventTypeExecutionReport UserDataEventType = "executionReport" UserDataEventTypeListStatus UserDataEventType = "ListStatus" )
type UserUniversalTransferHistoryResponse ¶
type UserUniversalTransferHistoryResponse struct { Total int64 `json:"total"` Rows []struct { Asset string `json:"asset"` Amount string `json:"amount"` Type string `json:"type"` Status string `json:"status"` TranId int64 `json:"tranId"` Timestamp uint64 `json:"timestamp"` } `json:"rows"` }
UserUniversalTransferHistoryResponse define response of UserUniversalTransferHistoryService
type UserUniversalTransferHistoryService ¶
type UserUniversalTransferHistoryService struct {
// contains filtered or unexported fields
}
UserUniversalTransferHistoryService user universal transfer history
func (*UserUniversalTransferHistoryService) Current ¶
func (s *UserUniversalTransferHistoryService) Current(current int) *UserUniversalTransferHistoryService
Current set current
func (*UserUniversalTransferHistoryService) Do ¶
func (s *UserUniversalTransferHistoryService) Do(ctx context.Context) (res *UserUniversalTransferHistoryResponse, err error)
func (*UserUniversalTransferHistoryService) EndTime ¶
func (s *UserUniversalTransferHistoryService) EndTime(endTime uint64) *UserUniversalTransferHistoryService
EndTime set endTime
func (*UserUniversalTransferHistoryService) FromSymbol ¶
func (s *UserUniversalTransferHistoryService) FromSymbol(fromSymbol string) *UserUniversalTransferHistoryService
FromSymbol set fromSymbol
func (*UserUniversalTransferHistoryService) Size ¶
func (s *UserUniversalTransferHistoryService) Size(size int) *UserUniversalTransferHistoryService
Size set size
func (*UserUniversalTransferHistoryService) StartTime ¶
func (s *UserUniversalTransferHistoryService) StartTime(startTime uint64) *UserUniversalTransferHistoryService
StartTime set startTime
func (*UserUniversalTransferHistoryService) ToSymbol ¶
func (s *UserUniversalTransferHistoryService) ToSymbol(toSymbol string) *UserUniversalTransferHistoryService
ToSymbol set toSymbol
func (*UserUniversalTransferHistoryService) TransferType ¶
func (s *UserUniversalTransferHistoryService) TransferType(transferType string) *UserUniversalTransferHistoryService
TransferType set transferType
type UserUniversalTransferResponse ¶
type UserUniversalTransferResponse struct {
TranId int64 `json:"tranId"`
}
UserUniversalTransferResponse define response of UserUniversalTransferService
type UserUniversalTransferService ¶
type UserUniversalTransferService struct {
// contains filtered or unexported fields
}
UserUniversalTransferService user universal transfer
func (*UserUniversalTransferService) Amount ¶
func (s *UserUniversalTransferService) Amount(amount float64) *UserUniversalTransferService
Amount set amount
func (*UserUniversalTransferService) Asset ¶
func (s *UserUniversalTransferService) Asset(asset string) *UserUniversalTransferService
Asset set asset
func (*UserUniversalTransferService) Do ¶
func (s *UserUniversalTransferService) Do(ctx context.Context) (res *UserUniversalTransferResponse, err error)
func (*UserUniversalTransferService) FromSymbol ¶
func (s *UserUniversalTransferService) FromSymbol(fromSymbol string) *UserUniversalTransferService
FromSymbol set fromSymbol
func (*UserUniversalTransferService) ToSymbol ¶
func (s *UserUniversalTransferService) ToSymbol(toSymbol string) *UserUniversalTransferService
ToSymbol set toSymbol
func (*UserUniversalTransferService) TransferType ¶
func (s *UserUniversalTransferService) TransferType(transferType string) *UserUniversalTransferService
TransferType set transferType
type WebsocketAPIClient ¶
type WebsocketAPIClient struct { APIKey string APISecret string Endpoint string Conn *websocket.Conn Dialer *websocket.Dialer ReqResponseMap map[string]chan []byte }
func NewWebsocketAPIClient ¶
func NewWebsocketAPIClient(apiKey string, apiSecret string, baseURL ...string) *WebsocketAPIClient
func (*WebsocketAPIClient) Close ¶
func (c *WebsocketAPIClient) Close() error
func (*WebsocketAPIClient) Connect ¶
func (c *WebsocketAPIClient) Connect() error
func (*WebsocketAPIClient) Handler ¶
func (c *WebsocketAPIClient) Handler(message []byte)
Handler function to handle responses
func (*WebsocketAPIClient) NewAccountInformationService ¶
func (w *WebsocketAPIClient) NewAccountInformationService() *AccountInformationService
Account Websocket API Endpoints:
func (*WebsocketAPIClient) NewAccountOCOHistoryService ¶
func (w *WebsocketAPIClient) NewAccountOCOHistoryService() *AccountOCOHistoryService
func (*WebsocketAPIClient) NewAccountOrderHistoryService ¶
func (w *WebsocketAPIClient) NewAccountOrderHistoryService() *AccountOrderHistoryService
func (*WebsocketAPIClient) NewAccountOrderRateLimitsService ¶
func (w *WebsocketAPIClient) NewAccountOrderRateLimitsService() *AccountOrderRateLimitsService
func (*WebsocketAPIClient) NewAccountPreventedMatchesService ¶
func (w *WebsocketAPIClient) NewAccountPreventedMatchesService() *AccountPreventedMatchesService
func (*WebsocketAPIClient) NewAccountTradeHistoryService ¶
func (w *WebsocketAPIClient) NewAccountTradeHistoryService() *AccountTradeHistoryService
func (*WebsocketAPIClient) NewAggTradesService ¶
func (w *WebsocketAPIClient) NewAggTradesService() *AggregateTradesService
func (*WebsocketAPIClient) NewAvgPriceService ¶
func (w *WebsocketAPIClient) NewAvgPriceService() *AvgPriceService
func (*WebsocketAPIClient) NewCancelOCOService ¶
func (w *WebsocketAPIClient) NewCancelOCOService() *OrderListCancelService
func (*WebsocketAPIClient) NewCancelOpenOrdersService ¶
func (w *WebsocketAPIClient) NewCancelOpenOrdersService() *OpenOrdersCancelAllService
func (*WebsocketAPIClient) NewCancelOrderService ¶
func (w *WebsocketAPIClient) NewCancelOrderService() *OrderCancelService
func (*WebsocketAPIClient) NewCancelReplaceOrderService ¶
func (w *WebsocketAPIClient) NewCancelReplaceOrderService() *OrderCancelReplaceService
func (*WebsocketAPIClient) NewCheckServerTimeService ¶
func (w *WebsocketAPIClient) NewCheckServerTimeService() *CheckServerTimeService
func (*WebsocketAPIClient) NewCurrentOpenOCOService ¶
func (w *WebsocketAPIClient) NewCurrentOpenOCOService() *OpenOrderListsStatusService
func (*WebsocketAPIClient) NewCurrentOpenOrdersService ¶
func (w *WebsocketAPIClient) NewCurrentOpenOrdersService() *OpenOrdersStatusService
func (*WebsocketAPIClient) NewDepthService ¶
func (w *WebsocketAPIClient) NewDepthService() *DepthService
Market Websocket API Endpoints:
func (*WebsocketAPIClient) NewExchangeInformationService ¶
func (w *WebsocketAPIClient) NewExchangeInformationService() *ExchangeInformationService
func (*WebsocketAPIClient) NewHistoricalTradesService ¶
func (w *WebsocketAPIClient) NewHistoricalTradesService() *HistoricalTradesService
func (*WebsocketAPIClient) NewKlinesService ¶
func (w *WebsocketAPIClient) NewKlinesService() *KlinesService
func (*WebsocketAPIClient) NewPingUserDataStreamService ¶
func (w *WebsocketAPIClient) NewPingUserDataStreamService() *PingUserDataStreamService
func (*WebsocketAPIClient) NewPlaceNewOrderService ¶
func (w *WebsocketAPIClient) NewPlaceNewOrderService() *OrderPlacementService
Trading Websocket API Endpoints:
func (*WebsocketAPIClient) NewPlaceOCOService ¶
func (w *WebsocketAPIClient) NewPlaceOCOService() *OrderListPlaceService
func (*WebsocketAPIClient) NewQueryOCOService ¶
func (w *WebsocketAPIClient) NewQueryOCOService() *OrderListStatusService
func (*WebsocketAPIClient) NewQueryOrderService ¶
func (w *WebsocketAPIClient) NewQueryOrderService() *OrderStatusService
func (*WebsocketAPIClient) NewRecentTradesService ¶
func (w *WebsocketAPIClient) NewRecentTradesService() *RecentTradesService
func (*WebsocketAPIClient) NewStartUserDataStreamService ¶
func (w *WebsocketAPIClient) NewStartUserDataStreamService() *StartUserDataStreamService
User Data Websocket API Endpoints:
func (*WebsocketAPIClient) NewStopUserDataStreamService ¶
func (w *WebsocketAPIClient) NewStopUserDataStreamService() *StopUserDataStreamService
func (*WebsocketAPIClient) NewTestConnectivityService ¶
func (w *WebsocketAPIClient) NewTestConnectivityService() *TestConnectivityService
General Websocket API Endpoints:
func (*WebsocketAPIClient) NewTestPlaceOrderService ¶
func (w *WebsocketAPIClient) NewTestPlaceOrderService() *TestOrderPlacementService
func (*WebsocketAPIClient) NewTicker24hrService ¶
func (w *WebsocketAPIClient) NewTicker24hrService() *Ticker24hrService
func (*WebsocketAPIClient) NewTickerBookService ¶
func (w *WebsocketAPIClient) NewTickerBookService() *TickerBookService
func (*WebsocketAPIClient) NewTickerPriceService ¶
func (w *WebsocketAPIClient) NewTickerPriceService() *TickerPriceService
func (*WebsocketAPIClient) NewTickerService ¶
func (w *WebsocketAPIClient) NewTickerService() *TickerService
func (*WebsocketAPIClient) NewUiKlinesService ¶
func (w *WebsocketAPIClient) NewUiKlinesService() *UIKlinesService
func (*WebsocketAPIClient) RequestHandler ¶
func (c *WebsocketAPIClient) RequestHandler(req interface{}, handler WsHandler, errHandler ErrHandler) (stopCh chan struct{}, err error)
func (*WebsocketAPIClient) SendMessage ¶
func (c *WebsocketAPIClient) SendMessage(msg interface{}) error
func (*WebsocketAPIClient) WaitForCloseSignal ¶
func (c *WebsocketAPIClient) WaitForCloseSignal()
type WebsocketClientError ¶
type WebsocketClientError struct {
Message string
}
func (*WebsocketClientError) Error ¶
func (e *WebsocketClientError) Error() string
type WebsocketStreamClient ¶
func NewWebsocketStreamClient ¶
func NewWebsocketStreamClient(isCombined bool, baseURL ...string) *WebsocketStreamClient
func (*WebsocketStreamClient) WsAggTradeServe ¶
func (c *WebsocketStreamClient) WsAggTradeServe(symbol string, handler WsAggTradeHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsAggTradeServe serve websocket aggregate handler with a symbol
func (*WebsocketStreamClient) WsAllMarketMiniTickersStatServe ¶
func (c *WebsocketStreamClient) WsAllMarketMiniTickersStatServe(handler WsAllMarketMiniTickersStatServeHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsAllMarketMiniTickersStatServe serve websocket that push mini version of 24hr statistics for all market every second
func (*WebsocketStreamClient) WsAllMarketRollingWindowTickersStatServe ¶
func (c *WebsocketStreamClient) WsAllMarketRollingWindowTickersStatServe(window string, handler WsAllMarketRollingWindowTickersStatHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsAllMarketRollingWindowTickersStatServe serve websocket that push 24hr statistics for all market every second
func (*WebsocketStreamClient) WsAllMarketTickersStatServe ¶
func (c *WebsocketStreamClient) WsAllMarketTickersStatServe(handler WsAllMarketTickersStatHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsAllMarketTickersStatServe serve websocket that push 24hr statistics for all market every second
func (*WebsocketStreamClient) WsBookTickerServe ¶
func (c *WebsocketStreamClient) WsBookTickerServe(symbol string, handler WsBookTickerHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsBookTickerServe serve websocket that pushes updates to the best bid or ask price or quantity in real-time for a specified symbol.
func (*WebsocketStreamClient) WsCombinedAggTradeServe ¶
func (c *WebsocketStreamClient) WsCombinedAggTradeServe(symbols []string, handler WsAggTradeHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsCombinedAggTradeServe is similar to WsAggTradeServe, but it handles multiple symbolx
func (*WebsocketStreamClient) WsCombinedBookTickerServe ¶
func (c *WebsocketStreamClient) WsCombinedBookTickerServe(symbols []string, handler WsBookTickerHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsCombinedBookTickerServe is similar to WsBookTickerServe, but it is for multiple symbols
func (*WebsocketStreamClient) WsCombinedDepthServe ¶
func (c *WebsocketStreamClient) WsCombinedDepthServe(symbols []string, handler WsDepthHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsCombinedDepthServe is similar to WsDepthServe, but it for multiple symbols
func (*WebsocketStreamClient) WsCombinedDepthServe100Ms ¶
func (c *WebsocketStreamClient) WsCombinedDepthServe100Ms(symbols []string, handler WsDepthHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
func (*WebsocketStreamClient) WsCombinedKlineServe ¶
func (c *WebsocketStreamClient) WsCombinedKlineServe(symbolIntervalPair map[string]string, handler WsKlineHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsCombinedKlineServe is similar to WsKlineServe, but it handles multiple symbols with it interval
func (*WebsocketStreamClient) WsCombinedMarketTickersStatServe ¶
func (c *WebsocketStreamClient) WsCombinedMarketTickersStatServe(symbols []string, handler WsMarketTickersStatHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsCombinedMarketTickersStatServe is similar to WsMarketTickersStatServe, but it handles multiple symbols
func (*WebsocketStreamClient) WsCombinedPartialDepthServe ¶
func (c *WebsocketStreamClient) WsCombinedPartialDepthServe(symbolLevels map[string]string, handler WsPartialDepthHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsCombinedPartialDepthServe is similar to WsPartialDepthServe, but it for multiple symbols
func (*WebsocketStreamClient) WsCombinedTradeServe ¶
func (c *WebsocketStreamClient) WsCombinedTradeServe(symbols []string, handler WsCombinedTradeHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
func (*WebsocketStreamClient) WsDepthServe ¶
func (c *WebsocketStreamClient) WsDepthServe(symbol string, handler WsDepthHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsDepthServe serve websocket depth handler with a symbol, using 1sec updates
func (*WebsocketStreamClient) WsDepthServe100Ms ¶
func (c *WebsocketStreamClient) WsDepthServe100Ms(symbol string, handler WsDepthHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsDepthServe100Ms serve websocket depth handler with a symbol, using 100msec updates
func (*WebsocketStreamClient) WsKlineServe ¶
func (c *WebsocketStreamClient) WsKlineServe(symbol string, interval string, handler WsKlineHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsKlineServe serve websocket kline handler with a symbol and interval like 15m, 30s
func (*WebsocketStreamClient) WsMarketTickersStatServe ¶
func (c *WebsocketStreamClient) WsMarketTickersStatServe(symbol string, handler WsMarketTickersStatHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsMarketTickersStatServe serve websocket that push 24hr statistics for single market every second
func (*WebsocketStreamClient) WsPartialDepthServe ¶
func (c *WebsocketStreamClient) WsPartialDepthServe(symbol string, levels string, handler WsPartialDepthHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsPartialDepthServe serve websocket partial depth handler with a symbol, using 1sec updates
func (*WebsocketStreamClient) WsPartialDepthServe100Ms ¶
func (c *WebsocketStreamClient) WsPartialDepthServe100Ms(symbol string, levels string, handler WsPartialDepthHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsPartialDepthServe100Ms serve websocket partial depth handler with a symbol, using 100msec updates
func (*WebsocketStreamClient) WsTradeServe ¶
func (c *WebsocketStreamClient) WsTradeServe(symbol string, handler WsTradeHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsTradeServe serve websocket handler with a symbol
func (*WebsocketStreamClient) WsUserDataServe ¶
func (c *WebsocketStreamClient) WsUserDataServe(listenKey string, handler WsUserDataHandler, errHandler ErrHandler) (doneCh, stopCh chan struct{}, err error)
WsUserDataServe serve user data handler with listen key
type WithdrawAssetsFromTheManagedSubAccountResp ¶
type WithdrawAssetsFromTheManagedSubAccountResp struct {
TranId int64 `json:"tranId"`
}
type WithdrawAssetsFromTheManagedSubAccountService ¶
type WithdrawAssetsFromTheManagedSubAccountService struct {
// contains filtered or unexported fields
}
func (*WithdrawAssetsFromTheManagedSubAccountService) Amount ¶
func (s *WithdrawAssetsFromTheManagedSubAccountService) Amount(amount float32) *WithdrawAssetsFromTheManagedSubAccountService
func (*WithdrawAssetsFromTheManagedSubAccountService) Asset ¶
func (s *WithdrawAssetsFromTheManagedSubAccountService) Asset(asset string) *WithdrawAssetsFromTheManagedSubAccountService
func (*WithdrawAssetsFromTheManagedSubAccountService) Do ¶
func (s *WithdrawAssetsFromTheManagedSubAccountService) Do(ctx context.Context, opts ...RequestOption) (res *WithdrawAssetsFromTheManagedSubAccountResp, err error)
func (*WithdrawAssetsFromTheManagedSubAccountService) FromEmail ¶
func (s *WithdrawAssetsFromTheManagedSubAccountService) FromEmail(fromEmail string) *WithdrawAssetsFromTheManagedSubAccountService
func (*WithdrawAssetsFromTheManagedSubAccountService) TransferDate ¶
func (s *WithdrawAssetsFromTheManagedSubAccountService) TransferDate(transferDate int64) *WithdrawAssetsFromTheManagedSubAccountService
type WithdrawHistoryResponse ¶
type WithdrawHistoryResponse struct { Id string `json:"id"` Amount string `json:"amount"` TransactionFee string `json:"transactionFee"` Coin string `json:"coin"` Status int `json:"status"` Address string `json:"address"` TxId string `json:"txId"` ApplyTime string `json:"applyTime"` Network string `json:"network"` TransferType int `json:"transferType"` WithdrawOrderId string `json:"withdrawOrderId"` Info string `json:"info"` ConfirmNo int `json:"confirmNo"` WalletType int `json:"walletType"` TxKey string `json:"txKey"` }
WithdrawHistoryResponse define response of WithdrawHistoryService
type WithdrawHistoryService ¶
type WithdrawHistoryService struct {
// contains filtered or unexported fields
}
WithdrawHistoryService withdraw history
func (*WithdrawHistoryService) Coin ¶
func (s *WithdrawHistoryService) Coin(coin string) *WithdrawHistoryService
Coin set coin
func (*WithdrawHistoryService) Do ¶
func (s *WithdrawHistoryService) Do(ctx context.Context) (res []*WithdrawHistoryResponse, err error)
func (*WithdrawHistoryService) EndTime ¶
func (s *WithdrawHistoryService) EndTime(endTime uint64) *WithdrawHistoryService
EndTime set endTime
func (*WithdrawHistoryService) Limit ¶
func (s *WithdrawHistoryService) Limit(limit int) *WithdrawHistoryService
Limit set limit
func (*WithdrawHistoryService) Offset ¶
func (s *WithdrawHistoryService) Offset(offset int) *WithdrawHistoryService
Offset set offset
func (*WithdrawHistoryService) StartTime ¶
func (s *WithdrawHistoryService) StartTime(startTime uint64) *WithdrawHistoryService
StartTime set startTime
func (*WithdrawHistoryService) Status ¶
func (s *WithdrawHistoryService) Status(status int) *WithdrawHistoryService
Status set status
func (*WithdrawHistoryService) WithdrawOrderId ¶
func (s *WithdrawHistoryService) WithdrawOrderId(withdrawOrderId string) *WithdrawHistoryService
WithdrawOrderId set withdrawOrderId
type WithdrawResponse ¶
type WithdrawResponse struct {
Id string `json:"id"`
}
WithdrawResponse define response of WithdrawService
type WithdrawService ¶
type WithdrawService struct {
// contains filtered or unexported fields
}
WithdrawService withdraw
func (*WithdrawService) Address ¶
func (s *WithdrawService) Address(address string) *WithdrawService
Address set address
func (*WithdrawService) AddressTag ¶
func (s *WithdrawService) AddressTag(addressTag string) *WithdrawService
AddressTag set addressTag
func (*WithdrawService) Amount ¶
func (s *WithdrawService) Amount(amount float64) *WithdrawService
Amount set amount
func (*WithdrawService) Coin ¶
func (s *WithdrawService) Coin(coin string) *WithdrawService
Coin set coin
func (*WithdrawService) Do ¶
func (s *WithdrawService) Do(ctx context.Context) (res *WithdrawResponse, err error)
func (*WithdrawService) Name ¶
func (s *WithdrawService) Name(name string) *WithdrawService
Name set name
func (*WithdrawService) Network ¶
func (s *WithdrawService) Network(network string) *WithdrawService
Network set network
func (*WithdrawService) TransactionFeeFlag ¶
func (s *WithdrawService) TransactionFeeFlag(transactionFeeFlag bool) *WithdrawService
TransactionFeeFlag set transactionFeeFlag
func (*WithdrawService) WalletType ¶
func (s *WithdrawService) WalletType(walletType int) *WithdrawService
WalletType set walletType
func (*WithdrawService) WithdrawOrderId ¶
func (s *WithdrawService) WithdrawOrderId(withdrawOrderId string) *WithdrawService
WithdrawOrderId set withdrawOrderId
type WsAPIAvgPriceResponse ¶
type WsAPIAvgPriceResponse struct { Id string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result *AvgPriceResult `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type WsAPIBookTickerResponse ¶
type WsAPIBookTickerResponse struct { Id string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result *BookTickerData `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type WsAPIErrorResponse ¶
type WsAPIKlinesResponse ¶
type WsAPIKlinesResponse struct { ID string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result [][]interface{} `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type WsAPIPriceTickerResponse ¶
type WsAPIPriceTickerResponse struct { Id string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result *tickerPriceData `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type WsAPIRateLimit ¶
type WsAPITicker24hrResponse ¶
type WsAPITicker24hrResponse struct { Id string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result *Ticker24hrData `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type WsAPITickerResponse ¶
type WsAPITickerResponse struct { Id string `json:"id"` Status int `json:"status"` Error *WsAPIErrorResponse `json:"error,omitempty"` Result *TickerData `json:"result,omitempty"` RateLimits []*WsAPIRateLimit `json:"rateLimits"` }
type WsAccountUpdate ¶
type WsAccountUpdate struct { Asset string `json:"a"` Free string `json:"f"` Locked string `json:"l"` }
WsAccountUpdate define account update
type WsAccountUpdateList ¶
type WsAccountUpdateList struct {
WsAccountUpdates []WsAccountUpdate `json:"B"`
}
type WsAggTradeEvent ¶
type WsAggTradeEvent struct { Event string `json:"e"` Time int64 `json:"E"` Symbol string `json:"s"` AggTradeID int64 `json:"a"` Price string `json:"p"` Quantity string `json:"q"` FirstBreakdownTradeID int64 `json:"f"` LastBreakdownTradeID int64 `json:"l"` TradeTime int64 `json:"T"` IsBuyerMaker bool `json:"m"` Placeholder bool `json:"M"` // add this field to avoid case insensitive unmarshaling }
WsAggTradeEvent define websocket aggregate trade event
type WsAggTradeHandler ¶
type WsAggTradeHandler func(event *WsAggTradeEvent)
WsAggTradeHandler handle websocket aggregate trade event
type WsAllMarketMiniTickersStatEvent ¶
type WsAllMarketMiniTickersStatEvent []*WsMarketMiniStatEvent
WsAllMarketMiniTickersStatEvent define array of websocket market mini-ticker statistics events
type WsAllMarketMiniTickersStatServeHandler ¶
type WsAllMarketMiniTickersStatServeHandler func(event WsAllMarketMiniTickersStatEvent)
WsAllMarketMiniTickersStatServeHandler handle websocket that push all mini-ticker market statistics for 24hr
type WsAllMarketRollingWindowTickersStatEvent ¶
type WsAllMarketRollingWindowTickersStatEvent []*WsMarketRollingWindowTickerStatEvent
WsAllMarketRollingWindowTickersStatEvent define array of websocket market statistics events
type WsAllMarketRollingWindowTickersStatHandler ¶
type WsAllMarketRollingWindowTickersStatHandler func(event WsAllMarketRollingWindowTickersStatEvent)
WsAllMarketRollingWindowTickersStatHandler handle websocket that push all markets statistics for 24hr for specific window size
type WsAllMarketTickersStatEvent ¶
type WsAllMarketTickersStatEvent []*WsMarketTickerStatEvent
WsAllMarketTickersStatEvent define array of websocket market statistics events
type WsAllMarketTickersStatHandler ¶
type WsAllMarketTickersStatHandler func(event WsAllMarketTickersStatEvent)
WsAllMarketTickersStatHandler handle websocket that push all markets statistics for 24hr
type WsBalanceUpdate ¶
type WsBookTickerEvent ¶
type WsBookTickerEvent struct { UpdateID int64 `json:"u"` Symbol string `json:"s"` BestBidPrice string `json:"b"` BestBidQty string `json:"B"` BestAskPrice string `json:"a"` BestAskQty string `json:"A"` }
WsBookTickerEvent define websocket best book ticker event.
type WsBookTickerHandler ¶
type WsBookTickerHandler func(event *WsBookTickerEvent)
WsBookTickerHandler handle websocket that pushes updates to the best bid or ask price or quantity in real-time for a specified symbol.
type WsCombinedBookTickerEvent ¶
type WsCombinedBookTickerEvent struct { Data *WsBookTickerEvent `json:"data"` Stream string `json:"stream"` }
type WsCombinedTradeEvent ¶
type WsCombinedTradeEvent struct { Stream string `json:"stream"` Data WsTradeEvent `json:"data"` }
type WsCombinedTradeHandler ¶
type WsCombinedTradeHandler func(event *WsCombinedTradeEvent)
type WsCommissionRates ¶
type WsDepthEvent ¶
type WsDepthEvent struct { Event string `json:"e"` Time int64 `json:"E"` Symbol string `json:"s"` FirstUpdateID int64 `json:"U"` LastUpdateID int64 `json:"u"` Bids []Bid `json:"b"` Asks []Ask `json:"a"` }
WsDepthEvent define websocket depth event
type WsDepthHandler ¶
type WsDepthHandler func(event *WsDepthEvent)
WsDepthHandler handle websocket depth event
type WsKline ¶
type WsKline struct { StartTime int64 `json:"t"` EndTime int64 `json:"T"` Symbol string `json:"s"` Interval string `json:"i"` FirstTradeID int64 `json:"f"` LastTradeID int64 `json:"L"` Open string `json:"o"` Close string `json:"c"` High string `json:"h"` Low string `json:"l"` Volume string `json:"v"` TradeNum int64 `json:"n"` IsFinal bool `json:"x"` QuoteVolume string `json:"q"` ActiveBuyVolume string `json:"V"` ActiveBuyQuoteVolume string `json:"Q"` }
WsKline define websocket kline
type WsKlineEvent ¶
type WsKlineEvent struct { Event string `json:"e"` Time int64 `json:"E"` Symbol string `json:"s"` Kline WsKline `json:"k"` }
WsKlineEvent define websocket kline event
type WsKlineHandler ¶
type WsKlineHandler func(event *WsKlineEvent)
WsKlineHandler handle websocket kline event
type WsMarketMiniStatEvent ¶
type WsMarketMiniStatEvent struct { Event string `json:"e"` Time int64 `json:"E"` Symbol string `json:"s"` LastPrice string `json:"c"` OpenPrice string `json:"o"` HighPrice string `json:"h"` LowPrice string `json:"l"` BaseVolume string `json:"v"` QuoteVolume string `json:"q"` }
WsMarketMiniStatEvent define websocket market mini-ticker statistics event
type WsMarketRollingWindowTickerStatEvent ¶
type WsMarketRollingWindowTickerStatEvent struct { Event string `json:"e"` Time int64 `json:"E"` Symbol string `json:"s"` PriceChange string `json:"p"` PriceChangePercent string `json:"P"` OpenPrice string `json:"o"` HighPrice string `json:"h"` LowPrice string `json:"l"` LastPrice string `json:"c"` WeightedAvgPrice string `json:"w"` BaseVolume string `json:"v"` QuoteVolume string `json:"q"` OpenTime int64 `json:"O"` CloseTime int64 `json:"C"` FirstID int64 `json:"F"` LastID int64 `json:"L"` Count int64 `json:"n"` }
WsMarketRollingWindowTickerStatEvent define websocket market statistics event
type WsMarketTickerStatEvent ¶
type WsMarketTickerStatEvent struct { Event string `json:"e"` Time int64 `json:"E"` Symbol string `json:"s"` PriceChange string `json:"p"` PriceChangePercent string `json:"P"` WeightedAvgPrice string `json:"w"` PrevClosePrice string `json:"x"` LastPrice string `json:"c"` CloseQty string `json:"Q"` BidPrice string `json:"b"` BidQty string `json:"B"` AskPrice string `json:"a"` AskQty string `json:"A"` OpenPrice string `json:"o"` HighPrice string `json:"h"` LowPrice string `json:"l"` BaseVolume string `json:"v"` QuoteVolume string `json:"q"` OpenTime int64 `json:"O"` CloseTime int64 `json:"C"` FirstID int64 `json:"F"` LastID int64 `json:"L"` Count int64 `json:"n"` }
WsMarketTickerStatEvent define websocket market statistics event
type WsMarketTickersStatHandler ¶
type WsMarketTickersStatHandler func(event *WsMarketTickerStatEvent)
WsMarketTickersStatHandler handle websocket that push single market statistics for 24hr
type WsOCOOrder ¶
type WsOCOOrderList ¶
type WsOCOOrderList struct {
WsOCOOrders []WsOCOOrder `json:"O"`
}
type WsOCOUpdate ¶
type WsOrderUpdate ¶
type WsOrderUpdate struct { Symbol string `json:"s"` ClientOrderId string `json:"c"` Side string `json:"S"` Type string `json:"o"` TimeInForce TimeInForceType `json:"f"` Volume string `json:"q"` Price string `json:"p"` StopPrice string `json:"P"` TrailingDelta int64 `json:"d"` // Trailing Delta IceBergVolume string `json:"F"` OrderListId int64 `json:"g"` // for OCO OrigCustomOrderId string `json:"C"` // customized order ID for the original order ExecutionType string `json:"x"` // execution type for this event NEW/TRADE... Status string `json:"X"` // order status RejectReason string `json:"r"` Id int64 `json:"i"` // order id LatestVolume string `json:"l"` // quantity for the latest trade FilledVolume string `json:"z"` LatestPrice string `json:"L"` // price for the latest trade FeeAsset string `json:"N"` FeeCost string `json:"n"` TransactionTime int64 `json:"T"` TradeId int64 `json:"t"` IsInOrderBook bool `json:"w"` // is the order in the order book? IsMaker bool `json:"m"` // is this order maker? CreateTime int64 `json:"O"` FilledQuoteVolume string `json:"Z"` // the quote volume that already filled LatestQuoteVolume string `json:"Y"` // the quote volume for the latest trade QuoteVolume string `json:"Q"` TrailingTime int64 `json:"D"` // Trailing Time StrategyId int64 `json:"j"` // Strategy ID StrategyType int64 `json:"J"` // Strategy Type WorkingTime int64 `json:"W"` // Working Time SelfTradePreventionMode string `json:"V"` }
type WsPartialDepthEvent ¶
type WsPartialDepthEvent struct { Symbol string LastUpdateID int64 `json:"lastUpdateId"` Bids []Bid `json:"bids"` Asks []Ask `json:"asks"` }
WsPartialDepthEvent define websocket partial depth book event
type WsPartialDepthHandler ¶
type WsPartialDepthHandler func(event *WsPartialDepthEvent)
WsPartialDepthHandler handle websocket partial depth event
type WsTradeEvent ¶
type WsTradeEvent struct { Event string `json:"e"` Time int64 `json:"E"` Symbol string `json:"s"` TradeID int64 `json:"t"` Price string `json:"p"` Quantity string `json:"q"` BuyerOrderId int64 `json:"b"` SellerOrderId int64 `json:"a"` TradeTime int64 `json:"T"` IsBuyerMaker bool `json:"m"` Placeholder bool `json:"M"` // add this field to avoid case insensitive unmarshaling }
WsTradeEvent define websocket trade event
type WsTradeHandler ¶
type WsTradeHandler func(event *WsTradeEvent)
WsTradeHandler handle websocket trade event
type WsUserDataEvent ¶
type WsUserDataEvent struct { Event UserDataEventType `json:"e"` Time int64 `json:"E"` TransactionTime int64 `json:"T"` AccountUpdateTime int64 `json:"u"` AccountUpdate WsAccountUpdateList BalanceUpdate WsBalanceUpdate OrderUpdate WsOrderUpdate OCOUpdate WsOCOUpdate }
WsUserDataEvent define user data event
type WsUserDataHandler ¶
type WsUserDataHandler func(event *WsUserDataEvent)
WsUserDataHandler handle WsUserDataEvent