Versions in this module Expand all Collapse all v2 v2.20.2 Jul 10, 2023 v2.20.1 Jul 9, 2023 v2.0.1 Jul 9, 2023 Changes in this version + const AccountTypeV5CONTRACT + const AccountTypeV5FUND + const AccountTypeV5INVESTMENT + const AccountTypeV5OPTION + const AccountTypeV5SPOT + const AccountTypeV5UNIFIED + const CategoryDerivativeInverse + const CategoryDerivativeLinear + const CategoryDerivativeOption + const CategoryV5Inverse + const CategoryV5Linear + const CategoryV5Option + const CategoryV5Spot + const CoinBTC + const CoinEOS + const CoinETH + const CoinUSDT + const CoinXRP + const ContractTypeDerivativeInverseFutures + const ContractTypeDerivativeInversePerpetual + const ContractTypeDerivativeLinearPerpetual + const ContractTypeInverseFutures + const ContractTypeInversePerpetual + const ContractTypeLinearPerpetual + const DepositStatusV5Failed + const DepositStatusV5Processing + const DepositStatusV5Success + const DepositStatusV5ToBeConfirmed + const DepositStatusV5Unknown + const DirectionNext + const DirectionPrev + const ExecTypeAdlTrade + const ExecTypeBustTrade + const ExecTypeFunding + const ExecTypeTrade + const ExecTypeV5BustTrade + const ExecTypeV5SessionSettlePnL + const ExecTypeV5Settle + const ExecTypeV5Trade + const InnovationFalse + const InnovationTrue + const InstrumentStatusAvailable + const InstrumentStatusClosed + const InstrumentStatusDelivering + const InstrumentStatusOffline + const InstrumentStatusOnline + const InstrumentStatusPending + const InstrumentStatusSettling + const InstrumentStatusTrading + const InstrumentStatusWaitingOnline + const InternalDepositStatusV5Failed + const InternalDepositStatusV5Processing + const InternalDepositStatusV5Success + const Interval1 + const Interval120 + const Interval15 + const Interval240 + const Interval3 + const Interval30 + const Interval360 + const Interval5 + const Interval60 + const Interval720 + const IntervalD + const IntervalM + const IntervalW + const IsLeverageFalse + const IsLeverageTrue + const IsLowestRiskFalse + const IsLowestRiskTrue + const MainNetBaseURL + const MainNetBaseURL2 + const MarginModePortfolio + const MarginModeRegular + const OptionsTypeCall + const OptionsTypePut + const OrderAsc + const OrderDesc + const OrderFilterOrder + const OrderFilterStopOrder + const OrderFilterTpSlOrder + const OrderStatusActive + const OrderStatusCancelled + const OrderStatusCreated + const OrderStatusDeactivated + const OrderStatusFilled + const OrderStatusNew + const OrderStatusPartiallyFilled + const OrderStatusPendingCancel + const OrderStatusRejected + const OrderStatusSpotCanceled + const OrderStatusSpotFilled + const OrderStatusSpotNew + const OrderStatusSpotPartiallyFilled + const OrderStatusSpotPendingCancel + const OrderStatusSpotPendingNew + const OrderStatusSpotRejected + const OrderStatusTriggered + const OrderStatusUntriggered + const OrderTypeLimit + const OrderTypeMarket + const OrderTypeSpotLimit + const OrderTypeSpotLimitMaker + const OrderTypeSpotMarket + const Period15min + const Period1d + const Period1h + const Period30min + const Period4h + const Period5min + const PositionIdxHedgeBuy + const PositionIdxHedgeSell + const PositionIdxOneWay + const PositionMarginCross + const PositionMarginIsolated + const PositionModeBothSides + const PositionModeMergedSingle + const SideBuy + const SideNone + const SideSell + const SpotInterval12h + const SpotInterval15m + const SpotInterval1M + const SpotInterval1d + const SpotInterval1h + const SpotInterval1m + const SpotInterval1w + const SpotInterval2h + const SpotInterval30m + const SpotInterval3m + const SpotInterval4h + const SpotInterval5m + const SpotInterval6h + const SpotWebsocketV1PrivateEventTypeOutboundAccountInfo + const SpotWebsocketV1PrivatePath + const SpotWebsocketV1PublicV1EventSubscribe + const SpotWebsocketV1PublicV1EventUnsubscribe + const SpotWebsocketV1PublicV1Path + const SpotWebsocketV1PublicV1TopicTrade + const SpotWebsocketV1PublicV2EventSubscribe + const SpotWebsocketV1PublicV2EventUnsubscribe + const SpotWebsocketV1PublicV2Path + const SpotWebsocketV1PublicV2TopicTrade + const StatusDerivativeClosed + const StatusDerivativePending + const StatusDerivativeSettling + const StatusDerivativeTrading + const StopOrderTypeFutureStop + const StopOrderTypeFutureStopLoss + const StopOrderTypeFutureTakeProfit + const StopOrderTypeFutureTrailingStop + const SymbolDerivativeBTC31MAR23_40000C + const SymbolDerivativeBTCUSDT + const SymbolFuture10000NFTUSDT + const SymbolFuture1000BTTUSDT + const SymbolFuture1000LUNCUSDT + const SymbolFuture1000XECUSDT + const SymbolFuture1INCHUSDT + const SymbolFutureAAVEUSDT + const SymbolFutureACHUSDT + const SymbolFutureADAUSD + const SymbolFutureADAUSDT + const SymbolFutureAGLDUSDT + const SymbolFutureAKROUSDT + const SymbolFutureALGOUSDT + const SymbolFutureALICEUSDT + const SymbolFutureALPHAUSDT + const SymbolFutureANKRUSDT + const SymbolFutureANTUSDT + const SymbolFutureAPEUSDT + const SymbolFutureAPI3USDT + const SymbolFutureARPAUSDT + const SymbolFutureARUSDT + const SymbolFutureASTRUSDT + const SymbolFutureAUDIOUSDT + const SymbolFutureAVAXUSDT + const SymbolFutureAXSUSDT + const SymbolFutureBAKEUSDT + const SymbolFutureBALUSDT + const SymbolFutureBANDUSDT + const SymbolFutureBATUSDT + const SymbolFutureBCHUSDT + const SymbolFutureBELUSDT + const SymbolFutureBICOUSDT + const SymbolFutureBITUSD + const SymbolFutureBITUSDT + const SymbolFutureBLZUSDT + const SymbolFutureBNBUSDT + const SymbolFutureBNXUSDT + const SymbolFutureBOBAUSDT + const SymbolFutureBSVUSDT + const SymbolFutureBSWUSDT + const SymbolFutureBTCUSD + const SymbolFutureBTCUSDH23 + const SymbolFutureBTCUSDT + const SymbolFutureBTCUSDZ22 + const SymbolFutureC98USDT + const SymbolFutureCEEKUSDT + const SymbolFutureCELOUSDT + const SymbolFutureCELRUSDT + const SymbolFutureCELUSDT + const SymbolFutureCHRUSDT + const SymbolFutureCHZUSDT + const SymbolFutureCKBUSDT + const SymbolFutureCOMPUSDT + const SymbolFutureCOTIUSDT + const SymbolFutureCREAMUSDT + const SymbolFutureCROUSDT + const SymbolFutureCRVUSDT + const SymbolFutureCTCUSDT + const SymbolFutureCTKUSDT + const SymbolFutureCTSIUSDT + const SymbolFutureCVCUSDT + const SymbolFutureCVXUSDT + const SymbolFutureDARUSDT + const SymbolFutureDASHUSDT + const SymbolFutureDENTUSDT + const SymbolFutureDGBUSDT + const SymbolFutureDODOUSDT + const SymbolFutureDOGEUSDT + const SymbolFutureDOTUSD + const SymbolFutureDOTUSDT + const SymbolFutureDUSKUSDT + const SymbolFutureDYDXUSDT + const SymbolFutureEGLDUSDT + const SymbolFutureENJUSDT + const SymbolFutureENSUSDT + const SymbolFutureEOSUSD + const SymbolFutureEOSUSDT + const SymbolFutureETCUSDT + const SymbolFutureETHUSD + const SymbolFutureETHUSDH23 + const SymbolFutureETHUSDT + const SymbolFutureETHUSDZ22 + const SymbolFutureETHWUSDT + const SymbolFutureFILUSDT + const SymbolFutureFITFIUSDT + const SymbolFutureFLMUSDT + const SymbolFutureFLOWUSDT + const SymbolFutureFTMUSDT + const SymbolFutureFTTUSDT + const SymbolFutureFXSUSDT + const SymbolFutureGALAUSDT + const SymbolFutureGALUSDT + const SymbolFutureGLMRUSDT + const SymbolFutureGMTUSDT + const SymbolFutureGRTUSDT + const SymbolFutureGTCUSDT + const SymbolFutureHBARUSDT + const SymbolFutureHNTUSDT + const SymbolFutureHOTUSDT + const SymbolFutureICPUSDT + const SymbolFutureICXUSDT + const SymbolFutureILVUSDT + const SymbolFutureIMXUSDT + const SymbolFutureINJUSDT + const SymbolFutureIOSTUSDT + const SymbolFutureIOTAUSDT + const SymbolFutureIOTXUSDT + const SymbolFutureJASMYUSDT + const SymbolFutureJSTUSDT + const SymbolFutureKAVAUSDT + const SymbolFutureKDAUSDT + const SymbolFutureKLAYUSDT + const SymbolFutureKNCUSDT + const SymbolFutureKSMUSDT + const SymbolFutureLDOUSDT + const SymbolFutureLINAUSDT + const SymbolFutureLINKUSDT + const SymbolFutureLITUSDT + const SymbolFutureLOOKSUSDT + const SymbolFutureLPTUSDT + const SymbolFutureLRCUSDT + const SymbolFutureLTCUSD + const SymbolFutureLTCUSDT + const SymbolFutureLUNA2USDT + const SymbolFutureMANAUSD + const SymbolFutureMANAUSDT + const SymbolFutureMASKUSDT + const SymbolFutureMATICUSDT + const SymbolFutureMINAUSDT + const SymbolFutureMKRUSDT + const SymbolFutureMTLUSDT + const SymbolFutureNEARUSDT + const SymbolFutureNEOUSDT + const SymbolFutureOCEANUSDT + const SymbolFutureOGNUSDT + const SymbolFutureOMGUSDT + const SymbolFutureONEUSDT + const SymbolFutureONTUSDT + const SymbolFutureOPUSDT + const SymbolFuturePAXGUSDT + const SymbolFuturePEOPLEUSDT + const SymbolFutureQNTUSDT + const SymbolFutureQTUMUSDT + const SymbolFutureRAYUSDT + const SymbolFutureREEFUSDT + const SymbolFutureRENUSDT + const SymbolFutureREQUSDT + const SymbolFutureRNDRUSDT + const SymbolFutureROSEUSDT + const SymbolFutureRSRUSDT + const SymbolFutureRSS3USDT + const SymbolFutureRUNEUSDT + const SymbolFutureRVNUSDT + const SymbolFutureSANDUSDT + const SymbolFutureSCRTUSDT + const SymbolFutureSCUSDT + const SymbolFutureSFPUSDT + const SymbolFutureSHIB1000USDT + const SymbolFutureSKLUSDT + const SymbolFutureSLPUSDT + const SymbolFutureSNXUSDT + const SymbolFutureSOLUSD + const SymbolFutureSOLUSDT + const SymbolFutureSRMUSDT + const SymbolFutureSTGUSDT + const SymbolFutureSTMXUSDT + const SymbolFutureSTORJUSDT + const SymbolFutureSTXUSDT + const SymbolFutureSUNUSDT + const SymbolFutureSUSHIUSDT + const SymbolFutureSXPUSDT + const SymbolFutureTHETAUSDT + const SymbolFutureTLMUSDT + const SymbolFutureTOMOUSDT + const SymbolFutureTRBUSDT + const SymbolFutureTRXUSDT + const SymbolFutureUNFIUSDT + const SymbolFutureUNIUSDT + const SymbolFutureUSDCUSDT + const SymbolFutureVETUSDT + const SymbolFutureWAVESUSDT + const SymbolFutureWOOUSDT + const SymbolFutureXEMUSDT + const SymbolFutureXLMUSDT + const SymbolFutureXMRUSDT + const SymbolFutureXNOUSDT + const SymbolFutureXRPUSD + const SymbolFutureXRPUSDT + const SymbolFutureXTZUSDT + const SymbolFutureYFIUSDT + const SymbolFutureYGGUSDT + const SymbolFutureZECUSDT + const SymbolFutureZENUSDT + const SymbolFutureZILUSDT + const SymbolFutureZRXUSDT + const SymbolSpotAAVEBTC + const SymbolSpotADAUSDC + const SymbolSpotADAUSDT + const SymbolSpotAVAXUSDT + const SymbolSpotAXSUSDT + const SymbolSpotBITETH + const SymbolSpotBITUSDC + const SymbolSpotBITUSDT + const SymbolSpotBRLUSDT + const SymbolSpotBTC3LUSDT + const SymbolSpotBTC3SUSDT + const SymbolSpotBTCBIT + const SymbolSpotBTCETH + const SymbolSpotBTCTEST + const SymbolSpotBTCUSDC + const SymbolSpotBTCUSDT + const SymbolSpotBTGBIT + const SymbolSpotBTGETH + const SymbolSpotBTGUSDC + const SymbolSpotBTTETH + const SymbolSpotBTTUSDT + const SymbolSpotBUSDUSDT + const SymbolSpotDCRUSDT + const SymbolSpotDFGUSDT + const SymbolSpotDOGEBRL + const SymbolSpotDOGEDYDX + const SymbolSpotDOGEUSDT + const SymbolSpotDONNYTEST02USDT + const SymbolSpotDONNYTESTUSDT + const SymbolSpotDOTUSDC + const SymbolSpotDOTUSDT + const SymbolSpotDYDXDOGE + const SymbolSpotDYDXETH + const SymbolSpotDYDXNEO + const SymbolSpotDYDXPIG + const SymbolSpotDYDXQQT + const SymbolSpotDYDXUSDT + const SymbolSpotDYDXXRP + const SymbolSpotEOS3LUSDT + const SymbolSpotEOSBIT + const SymbolSpotEOSDAI + const SymbolSpotEOSDYDX + const SymbolSpotEOSETH + const SymbolSpotEOSHT + const SymbolSpotEOSUSDT + const SymbolSpotETH3LUSDT + const SymbolSpotETHBTC + const SymbolSpotETHDYDX + const SymbolSpotETHUSDC + const SymbolSpotETHUSDT + const SymbolSpotFFFFUSDT + const SymbolSpotGRPCBTC + const SymbolSpotGRPCETH + const SymbolSpotGRPCUSDT + const SymbolSpotGRTUSDT + const SymbolSpotHNTUSDT + const SymbolSpotHTEOS + const SymbolSpotHTQQT + const SymbolSpotICPETH + const SymbolSpotICXUSDT + const SymbolSpotLANG1ETH + const SymbolSpotLTCBTC + const SymbolSpotLTCUSDT + const SymbolSpotLTCXLM + const SymbolSpotLUNCEOS + const SymbolSpotLUNCUSDT + const SymbolSpotLUNCXRP + const SymbolSpotMFTDYDX + const SymbolSpotMVUSDT + const SymbolSpotNEOBIT + const SymbolSpotNEOBTC + const SymbolSpotNEODYDX + const SymbolSpotNEOEOS + const SymbolSpotNEOETH + const SymbolSpotOMGUSDT + const SymbolSpotPERPUSDT + const SymbolSpotPMTEST001USDT + const SymbolSpotPMTEST03EOS + const SymbolSpotPMTEST03ETH + const SymbolSpotPMTEST03XRP + const SymbolSpotPMTEST047USDT + const SymbolSpotPMTEST12BTC + const SymbolSpotPMTEST12DAI + const SymbolSpotPMTEST12ETH + const SymbolSpotPMTEST12USDT + const SymbolSpotPMTEST12UST + const SymbolSpotPMTEST15BTC + const SymbolSpotPMTEST15USDT + const SymbolSpotPMTEST16USDT + const SymbolSpotPMTEST2USDC + const SymbolSpotPMTEST2USDT + const SymbolSpotPMTEST6USDC + const SymbolSpotPMTEST7ETH + const SymbolSpotPMTEST7USDC + const SymbolSpotPMTEST8PMTEST7 + const SymbolSpotPMTEST8USDC + const SymbolSpotPMTESTABTC + const SymbolSpotPMTESTAUSDT + const SymbolSpotPMTESTBUSDT + const SymbolSpotPMTESTCUSDT + const SymbolSpotPMTESTDUSDT + const SymbolSpotPMTESTEUSDT + const SymbolSpotPMTESTZUSDT + const SymbolSpotPORTUGALEOS + const SymbolSpotPORTUGALETH + const SymbolSpotPORTUGALUSDT + const SymbolSpotQQTDYDX + const SymbolSpotQQTHT + const SymbolSpotQTHQQQT + const SymbolSpotSANDUSDT + const SymbolSpotSHIBIDAI + const SymbolSpotSOL3LUSDT + const SymbolSpotSOL3SUSDT + const SymbolSpotSOLBIT + const SymbolSpotSOLEOS + const SymbolSpotSOLOETH + const SymbolSpotSOLOUSDT + const SymbolSpotSOLUSD + const SymbolSpotSOLUSDC + const SymbolSpotSOLUSDT + const SymbolSpotSOS3LBTC + const SymbolSpotSOS3LUSDT + const SymbolSpotSOS3SUSDT + const SymbolSpotSPOTTEST3USDT + const SymbolSpotSTXUSDT + const SymbolSpotTESTTUSDT + const SymbolSpotTRIBLUSDT + const SymbolSpotUNIBIT + const SymbolSpotUNIBTC + const SymbolSpotUNIETH + const SymbolSpotUNILTC + const SymbolSpotUNINEO + const SymbolSpotUNIUSDT + const SymbolSpotUSDCUSDT + const SymbolSpotUSDEUR + const SymbolSpotUSDTBIT + const SymbolSpotUSDTDAI + const SymbolSpotUSDTETH + const SymbolSpotUSDTEUR + const SymbolSpotUSDTTEST + const SymbolSpotUSDTTESTNETCS1 + const SymbolSpotUSDTUSD + const SymbolSpotUSDTUST + const SymbolSpotUSTCUSDT + const SymbolSpotWERUSDT + const SymbolSpotXLMBTC + const SymbolSpotXLMEOS + const SymbolSpotXLMMFT + const SymbolSpotXLMNEO + const SymbolSpotXLMQQT + const SymbolSpotXLMQTHQ + const SymbolSpotXLMSHIBI + const SymbolSpotXLMTRX + const SymbolSpotXLMUSDT + const SymbolSpotXLMXRP + const SymbolSpotXRP3LUSDT + const SymbolSpotXRP3SUSDT + const SymbolSpotXRPBIT + const SymbolSpotXRPBTC + const SymbolSpotXRPDYDX + const SymbolSpotXRPEOS + const SymbolSpotXRPUSDC + const SymbolSpotXRPUSDT + const SymbolSpotXTZUSDT + const SymbolSpotXXXXYFI + const SymbolSpotZENUSDT + const SymbolV5BTCPERP + const SymbolV5BTCUSD + const SymbolV5BTCUSDH23 + const SymbolV5BTCUSDM23 + const SymbolV5BTCUSDT + const SymbolV5BTCUSDU23 + const SymbolV5BTCUSDZ23 + const SymbolV5ETHPERP + const SymbolV5ETHUSD + const SymbolV5ETHUSDC + const SymbolV5ETHUSDT + const TestNetBaseURL + const TestWebsocketBaseURL + const TickDirectionMinusTick + const TickDirectionPlusTick + const TickDirectionZeroMinusTick + const TickDirectionZeroPlusTick + const TimeInForceFillOrKill + const TimeInForceGoodTillCancel + const TimeInForceImmediateOrCancel + const TimeInForcePostOnly + const TimeInForceSpotFOK + const TimeInForceSpotGTC + const TimeInForceSpotIOC + const TpSlModeFull + const TpSlModePartial + const TransactionLogTypeV5BONUS + const TransactionLogTypeV5CURRENCYBUY + const TransactionLogTypeV5CURRENCYSELL + const TransactionLogTypeV5DELIVERY + const TransactionLogTypeV5FEEREFUND + const TransactionLogTypeV5INTEREST + const TransactionLogTypeV5LIQUIDATION + const TransactionLogTypeV5SETTLEMENT + const TransactionLogTypeV5TRADE + const TransactionLogTypeV5TRANSFERIN + const TransactionLogTypeV5TRANSFEROUT + const TransferStatusV5FAILED + const TransferStatusV5PENDING + const TransferStatusV5SUCCESS + const TriggerByFutureIndexPrice + const TriggerByFutureLastPrice + const TriggerByFutureMarkPrice + const TriggerByFutureUNKNOWN + const TriggerByIndexPrice + const TriggerByLastPrice + const TriggerByMarkPrice + const TriggerDirectionFall + const TriggerDirectionRise + const UnifiedMarginStatusRegular + const UnifiedMarginStatusUnifiedMargin + const UnifiedMarginStatusUnifiedTrade + const V5WebsocketPrivatePath + const V5WebsocketPublicPath + const V5WebsocketPublicTopicKline + const V5WebsocketPublicTopicOrderBook + const V5WebsocketPublicTopicTicker + const WebsocketBaseURL + const WebsocketBaseURL2 + const WithdrawStatusV5BlockchainConfirmed + const WithdrawStatusV5CancelByUser + const WithdrawStatusV5Fail + const WithdrawStatusV5Pending + const WithdrawStatusV5Reject + const WithdrawStatusV5SecurityCheck + const WithdrawStatusV5Success + const WithdrawTypeAll + const WithdrawTypeOffChain + const WithdrawTypeOnChain + var ErrAccessDenied = errors.New("access denied") + var ErrPathNotFound = errors.New("path not found") + func IsErrWebsocketClosed(err error) bool + func V5WebsocketPublicPathFor(category CategoryV5) string + type APIKeyInfoResponse struct + Result []APIKeyInfoResult + type APIKeyInfoResult struct + APIKey string + AffiliateID int + CreatedAt time.Time + ExpiredAt time.Time + InviterID int + Ips []string + MktMakerLevel string + Note string + Permissions []string + ReadOnly bool + Type string + UserID int + VipLevel string + type AccountAssetService struct + type AccountRatioParam struct + Limit *int + Period Period + Symbol SymbolFuture + type AccountRatioResponse struct + Result []AccountRatioResult + type AccountRatioResult struct + BuyRatio float64 + SellRatio float64 + Symbol SymbolFuture + Timestamp int + type AccountType string + const AccountTypeNormal + const AccountTypeUnified + type AccountTypeV5 string + type Balance struct + AvailableBalance float64 + CumRealisedPnl float64 + Equity float64 + GivenCash float64 + OccClosingFee float64 + OccFundingFee float64 + OrderMargin float64 + PositionMargin float64 + RealisedPnl float64 + ServiceCash float64 + UnrealisedPnl float64 + UsedMargin float64 + WalletBalance float64 + type BalanceResponse struct + Result BalanceResult + type BalanceResult struct + Balance map[Coin]Balance + func (r *BalanceResult) UnmarshalJSON(data []byte) error + type BigDealParam struct + Limit *int + Symbol SymbolFuture + type BigDealResponse struct + Result []BigDealResult + type BigDealResult struct + Side Side + Symbol SymbolFuture + Timestamp int + Value float64 + type CancelAllFuturesOrderParam struct + Symbol SymbolFuture + type CancelAllFuturesOrderResponse struct + Result []CancelAllFuturesOrderResult + type CancelAllFuturesOrderResult struct + CancelType string + ClOrdID string + CreateType string + CreatedAt string + CrossSeq int + CrossStatus string + LeavesQty float64 + LeavesValue string + OrderStatus OrderStatus + OrderType OrderType + Price string + Qty float64 + Side Side + Symbol SymbolFuture + TimeInForce TimeInForce + UpdatedAt string + UserID int + type CancelAllFuturesStopOrderParam struct + Symbol SymbolFuture + type CancelAllFuturesStopOrderResponse struct + Result []CancelAllFuturesStopOrderResult + type CancelAllFuturesStopOrderResult struct + BasePrice string + CancelType string + ClOrdID string + CreateType string + CreatedAt string + CrossSeq int + CrossStatus string + ExpectedDirection string + LeavesQty float64 + LeavesValue string + OrderStatus OrderStatus + OrderType OrderType + Price string + Qty float64 + Side Side + StopOrderType StopOrderTypeFuture + Symbol SymbolFuture + TimeInForce TimeInForce + TriggerBy TriggerByFuture + UpdatedAt string + UserID int + type CancelAllLinearStopOrderParam struct + Symbol SymbolFuture + type CancelAllLinearStopOrderResponse struct + Result CancelAllLinearStopOrderResult + type CancelAllLinearStopOrderResult []string + type CancelAllOrderParam struct + Symbol SymbolFuture + type CancelAllOrderResponse struct + Result []CancelAllOrderResult + type CancelAllOrderResult struct + CancelType string + ClOrdID string + CreateType string + CreatedAt string + CrossSeq int + CrossStatus string + LeavesQty float64 + LeavesValue string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + Price string + Qty float64 + Side Side + Symbol SymbolFuture + TimeInForce TimeInForce + UpdatedAt string + UserID int + type CancelAllStopOrderParam struct + Symbol SymbolFuture + type CancelAllStopOrderResponse struct + Result []CancelAllStopOrderResult + type CancelAllStopOrderResult struct + BasePrice string + CancelType string + ClOrdID string + CreateType string + CreatedAt string + CrossSeq int + CrossStatus string + ExpectedDirection string + LeavesQty float64 + LeavesValue string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + Price string + Qty float64 + Side Side + StopOrderType StopOrderTypeFuture + Symbol SymbolFuture + TimeInForce TimeInForce + TriggerBy TriggerByFuture + UpdatedAt string + UserID int + type CancelFuturesOrderParam struct + OrderID *string + OrderLinkID *string + Symbol SymbolFuture + type CancelFuturesOrderResponse struct + Result CancelFuturesOrderResult + type CancelFuturesOrderResult struct + CreatedAt string + CumExecFee float64 + CumExecQty float64 + CumExecValue float64 + LastExecPrice float64 + LastExecTime float64 + LeavesQty float64 + OrderID string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + Price float64 + Qty float64 + RejectReason string + Side Side + Symbol SymbolFuture + TimeInForce TimeInForce + UpdatedAt string + UserID int + type CancelFuturesStopOrderParam struct + OrderLinkID *string + StopOrderID *string + Symbol SymbolFuture + type CancelFuturesStopOrderResponse struct + Result CancelFuturesStopOrderResult + type CancelFuturesStopOrderResult struct + StopOrderID string + type CancelLinearOrder struct + OrderID string + type CancelLinearOrderParam struct + OrderID *string + OrderLinkID *string + Symbol SymbolFuture + type CancelLinearOrderResponse struct + Result CancelLinearOrderResult + type CancelLinearOrderResult struct + type CancelLinearStopOrderParam struct + OrderLinkID *string + StopOrderID *string + Symbol SymbolFuture + type CancelLinearStopOrderResponse struct + Result CancelLinearStopOrderResult + type CancelLinearStopOrderResult struct + StopOrderID string + type CancelOrder struct + CreatedAt string + CumExecFee float64 + CumExecQty float64 + CumExecValue float64 + LastExecPrice float64 + LastExecTime float64 + LeavesQty float64 + OrderID string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + Price float64 + Qty float64 + RejectReason string + Side Side + Symbol SymbolFuture + TimeInForce TimeInForce + UpdatedAt string + UserID int + type CancelOrderParam struct + OrderID *string + OrderLinkID *string + Symbol SymbolFuture + type CancelOrderResponse struct + Result CancelOrderResult + type CancelOrderResult struct + type CancelStopOrderParam struct + OrderLinkID *string + StopOrderID *string + Symbol SymbolFuture + type CancelStopOrderResponse struct + Result CancelStopOrderResult + type CancelStopOrderResult struct + StopOrderID string + type CategoryDerivative string + type CategoryV5 string + type Client struct + func NewClient() *Client + func (c *Client) AccountAsset() *AccountAssetService + func (c *Client) CopyTrading() *CopyTradingService + func (c *Client) Derivative() DerivativeServiceI + func (c *Client) Future() FutureServiceI + func (c *Client) Request(req *http.Request, dst interface{}) error + func (c *Client) Spot() SpotServiceI + func (c *Client) USDCContract() USDCContractServiceI + func (c *Client) V5() V5ServiceI + func (c *Client) WithAuth(key string, secret string) *Client + func (c *Client) WithBaseURL(url string) *Client + func (c *Client) WithHTTPClient(httpClient *http.Client) *Client + type Coin string + type CommonResponse struct + ExtCode string + ExtInfo string + RateLimit int + RateLimitResetMs int + RateLimitStatus int + RetCode int + RetMsg string + TimeNow string + type CommonV3Response struct + RetCode int + RetExtInfo interface{} + RetMsg string + Time int + type CommonV5Response struct + RetCode int + RetExtInfo interface{} + RetMsg string + Time int + type ContractType string + type ContractTypeDerivative string + type CopyTradingService struct + type CreateFuturesOrderParam struct + CloseOnTrigger *bool + OrderLinkID *string + OrderType OrderType + PositionIdx *int + Price *float64 + Qty int + ReduceOnly *bool + Side Side + SlTriggerBy *TriggerByFuture + StopLoss *float64 + Symbol SymbolFuture + TakeProfit *float64 + TimeInForce TimeInForce + TpTriggerBy *TriggerByFuture + type CreateFuturesOrderResponse struct + Result CreateFuturesOrderResult + type CreateFuturesOrderResult struct + CreatedAt string + CumExecFee float64 + CumExecQty float64 + CumExecValue float64 + LastExecPrice float64 + LastExecTime float64 + LeavesQty float64 + OrderID string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + Price float64 + Qty float64 + RejectReason string + Side Side + SlTriggerBy TriggerByFuture + StopLoss string + Symbol SymbolFuture + TakeProfit string + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + UpdatedAt string + UserID int + type CreateFuturesStopOrderParam struct + BasePrice float64 + CloseOnTrigger *bool + OrderLinkID *string + OrderType OrderType + PositionIdx *int + Price *float64 + Qty float64 + Side Side + SlTriggerBy *TriggerByFuture + StopLoss *float64 + StopPx float64 + Symbol SymbolFuture + TakeProfit *float64 + TimeInForce TimeInForce + TpTriggerBy *TriggerByFuture + TriggerBy *TriggerByFuture + type CreateFuturesStopOrderResponse struct + Result CreateFuturesStopOrderResult + type CreateFuturesStopOrderResult struct + BasePrice string + CreatedAt string + LeavesQty string + LeavesValue string + OrderLinkID string + OrderType OrderType + Price string + Qty string + RejectReason string + Remark string + Side Side + SlTriggerBy TriggerByFuture + StopLoss string + StopOrderID string + StopPx string + Symbol SymbolFuture + TakeProfit string + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + TriggerBy TriggerByFuture + UpdatedAt string + UserID int + type CreateLinearOrder struct + CloseOnTrigger bool + CreatedTime string + CumExecFee float64 + CumExecQty float64 + CumExecValue float64 + LastExecPrice float64 + OrderID string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + Price float64 + Qty float64 + ReduceOnly bool + Side Side + SlTriggerBy TriggerByFuture + StopLoss float64 + Symbol SymbolFuture + TakeProfit float64 + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + UpdatedTime string + UserID int + type CreateLinearOrderParam struct + CloseOnTrigger bool + OrderLinkID *string + OrderType OrderType + PositionIdx *int + Price *float64 + Qty float64 + ReduceOnly bool + Side Side + SlTriggerBy *TriggerByFuture + StopLoss *float64 + Symbol SymbolFuture + TakeProfit *float64 + TimeInForce TimeInForce + TpTriggerBy *TriggerByFuture + type CreateLinearOrderResponse struct + Result CreateLinearOrderResult + type CreateLinearOrderResult struct + type CreateLinearStopOrderParam struct + BasePrice float64 + CloseOnTrigger bool + OrderLinkID *string + OrderType OrderType + PositionIdx *int + Price *float64 + Qty float64 + ReduceOnly bool + Side Side + SlTriggerBy *TriggerByFuture + StopLoss *float64 + StopPx float64 + Symbol SymbolFuture + TakeProfit *float64 + TimeInForce TimeInForce + TpTriggerBy *TriggerByFuture + TriggerBy TriggerByFuture + type CreateLinearStopOrderResponse struct + Result CreateLinearStopOrderResult + type CreateLinearStopOrderResult struct + BasePrice string + CloseOnTrigger bool + CreatedTime string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + PositionIdx int + Price float64 + Qty float64 + ReduceOnly bool + Side Side + SlTriggerBy TriggerByFuture + StopLoss float64 + StopOrderID string + Symbol SymbolFuture + TakeProfit float64 + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + TriggerBy TriggerByFuture + TriggerPrice float64 + UpdatedTime string + UserID int + type CreateOrder struct + CreatedAt string + CumExecFee float64 + CumExecQty float64 + CumExecValue float64 + LastExecPrice float64 + LastExecTime float64 + LeavesQty float64 + OrderID string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + Price float64 + Qty float64 + RejectReason string + Side Side + Symbol SymbolFuture + TimeInForce TimeInForce + UpdatedAt string + UserID int + type CreateOrderParam struct + CloseOnTrigger *bool + OrderLinkID *string + OrderType OrderType + Price *float64 + Qty int + ReduceOnly *bool + Side Side + StopLoss *float64 + Symbol SymbolFuture + TakeProfit *float64 + TimeInForce TimeInForce + type CreateOrderResponse struct + Result CreateOrderResult + type CreateOrderResult struct + type CreateStopOrderParam struct + BasePrice float64 + CloseOnTrigger *bool + OrderLinkID *string + OrderType OrderType + Price *float64 + Qty int + Side Side + SlTriggerBy *TriggerByFuture + StopLoss *float64 + StopPx float64 + Symbol SymbolFuture + TakeProfit *float64 + TimeInForce TimeInForce + TpTriggerBy *TriggerByFuture + TriggerBy *TriggerByFuture + type CreateStopOrderResponse struct + Result CreateStopOrderResult + type CreateStopOrderResult struct + BasePrice string + CreatedAt string + LeavesQty string + LeavesValue string + OrderLinkID string + OrderType OrderType + Price string + Qty string + RejectReason string + Remark string + Side Side + SlTriggerBy TriggerByFuture + StopLoss string + StopOrderID string + StopPx string + Symbol SymbolFuture + TakeProfit string + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + TriggerBy TriggerByFuture + UpdatedAt string + UserID int + type DepositStatusV5 int + type DerivativeCommonService struct + func (s *DerivativeCommonService) DerivativesIndexPriceKline(param DerivativesIndexPriceKlineParam) (*DerivativesIndexPriceKlineResponse, error) + func (s *DerivativeCommonService) DerivativesInstruments(param DerivativesInstrumentsParam) (*DerivativesInstrumentsResponse, error) + func (s *DerivativeCommonService) DerivativesInstrumentsForOption(param DerivativesInstrumentsForOptionParam) (*DerivativesInstrumentsForOptionResponse, error) + func (s *DerivativeCommonService) DerivativesKline(param DerivativesKlineParam) (*DerivativesKlineResponse, error) + func (s *DerivativeCommonService) DerivativesMarkPriceKline(param DerivativesMarkPriceKlineParam) (*DerivativesMarkPriceKlineResponse, error) + func (s *DerivativeCommonService) DerivativesOrderBook(param DerivativesOrderBookParam) (*DerivativesOrderBookResponse, error) + func (s *DerivativeCommonService) DerivativesTickers(param DerivativesTickersParam) (*DerivativesTickersResponse, error) + func (s *DerivativeCommonService) DerivativesTickersForOption(param DerivativesTickersForOptionParam) (*DerivativesTickersForOptionResponse, error) + type DerivativeContractService struct + type DerivativeContractServiceI interface + DerivativesIndexPriceKline func(DerivativesIndexPriceKlineParam) (*DerivativesIndexPriceKlineResponse, error) + DerivativesInstruments func(DerivativesInstrumentsParam) (*DerivativesInstrumentsResponse, error) + DerivativesInstrumentsForOption func(DerivativesInstrumentsForOptionParam) (*DerivativesInstrumentsForOptionResponse, error) + DerivativesKline func(DerivativesKlineParam) (*DerivativesKlineResponse, error) + DerivativesMarkPriceKline func(DerivativesMarkPriceKlineParam) (*DerivativesMarkPriceKlineResponse, error) + DerivativesOrderBook func(DerivativesOrderBookParam) (*DerivativesOrderBookResponse, error) + DerivativesTickers func(DerivativesTickersParam) (*DerivativesTickersResponse, error) + DerivativesTickersForOption func(DerivativesTickersForOptionParam) (*DerivativesTickersForOptionResponse, error) + type DerivativeService struct + func (s *DerivativeService) Contract() DerivativeContractServiceI + func (s *DerivativeService) UnifiedMargin() DerivativeUnifiedMarginServiceI + type DerivativeServiceI interface + Contract func() DerivativeContractServiceI + UnifiedMargin func() DerivativeUnifiedMarginServiceI + type DerivativeUnifiedMarginService struct + type DerivativeUnifiedMarginServiceI interface + DerivativesIndexPriceKline func(DerivativesIndexPriceKlineParam) (*DerivativesIndexPriceKlineResponse, error) + DerivativesInstruments func(DerivativesInstrumentsParam) (*DerivativesInstrumentsResponse, error) + DerivativesInstrumentsForOption func(DerivativesInstrumentsForOptionParam) (*DerivativesInstrumentsForOptionResponse, error) + DerivativesKline func(DerivativesKlineParam) (*DerivativesKlineResponse, error) + DerivativesMarkPriceKline func(DerivativesMarkPriceKlineParam) (*DerivativesMarkPriceKlineResponse, error) + DerivativesOrderBook func(DerivativesOrderBookParam) (*DerivativesOrderBookResponse, error) + DerivativesTickers func(DerivativesTickersParam) (*DerivativesTickersResponse, error) + DerivativesTickersForOption func(DerivativesTickersForOptionParam) (*DerivativesTickersForOptionResponse, error) + type DerivativesIndexPriceKlineParam struct + Category CategoryDerivative + End int + Interval Interval + Limit *int + Start int + Symbol SymbolDerivative + type DerivativesIndexPriceKlineResponse struct + Result DerivativesIndexPriceKlineResult + type DerivativesIndexPriceKlineResult struct + Category CategoryDerivative + List []DerivativesIndexPriceKlineResultListItem + Symbol SymbolDerivative + type DerivativesIndexPriceKlineResultListItem struct + Close string + High string + Low string + Open string + Start string + func (r *DerivativesIndexPriceKlineResultListItem) UnmarshalJSON(data []byte) error + type DerivativesInstrumentsForOptionParam struct + Cursor *string + Limit *int + Symbol *SymbolDerivative + type DerivativesInstrumentsForOptionResponse struct + Result DerivativesInstrumentsForOptionResult + type DerivativesInstrumentsForOptionResult struct + Cursor string + List []struct{ ... } + ResultTotalSize int + type DerivativesInstrumentsParam struct + Category CategoryDerivative + Cursor *string + Limit *int + Symbol *SymbolDerivative + type DerivativesInstrumentsResponse struct + Result DerivativesInstrumentsResult + type DerivativesInstrumentsResult struct + Category CategoryDerivative + List []struct{ ... } + NextPageCursor string + type DerivativesKlineParam struct + Category CategoryDerivative + End int + Interval Interval + Limit *int + Start int + Symbol SymbolDerivative + type DerivativesKlineResponse struct + Result DerivativesKlineResult + type DerivativesKlineResult struct + Category CategoryDerivative + Lists []DerivativesKlineResultList + Symbol SymbolDerivative + type DerivativesKlineResultList struct + Close string + High string + Low string + Open string + Start string + Turnover string + Volume string + func (r *DerivativesKlineResultList) UnmarshalJSON(data []byte) error + type DerivativesMarkPriceKlineParam struct + Category CategoryDerivative + End int + Interval Interval + Limit *int + Start int + Symbol SymbolDerivative + type DerivativesMarkPriceKlineResponse struct + Result DerivativesMarkPriceKlineResult + type DerivativesMarkPriceKlineResult struct + Category CategoryDerivative + List []DerivativesMarkPriceKlineResultListItem + Symbol SymbolDerivative + type DerivativesMarkPriceKlineResultListItem struct + Close string + High string + Low string + Open string + Start string + func (r *DerivativesMarkPriceKlineResultListItem) UnmarshalJSON(data []byte) error + type DerivativesOrderBookParam struct + Category CategoryDerivative + Limit *int + Symbol SymbolDerivative + type DerivativesOrderBookResponse struct + Result DerivativesOrderBookResult + type DerivativesOrderBookResult struct + Buyers DerivativesOrderBookResultBuyers + ID int + Sellers DerivativesOrderBookResultSellers + Symbol SymbolDerivative + Timestamp int + type DerivativesOrderBookResultBuyer struct + Price string + Qty string + type DerivativesOrderBookResultBuyers []DerivativesOrderBookResultBuyer + func (r *DerivativesOrderBookResultBuyers) UnmarshalJSON(data []byte) error + type DerivativesOrderBookResultSeller struct + Price string + Qty string + type DerivativesOrderBookResultSellers []DerivativesOrderBookResultSeller + func (r *DerivativesOrderBookResultSellers) UnmarshalJSON(data []byte) error + type DerivativesTickersForOptionParam struct + Symbol SymbolDerivative + type DerivativesTickersForOptionResponse struct + Result DerivativesTickersForOptionResult + type DerivativesTickersForOptionResult struct + AskIv string + AskPrice string + AskSize string + BidIv string + BidPrice string + BidSize string + Category CategoryDerivative + Change24h string + Delta string + Gamma string + HighPrice24h string + IndexPrice string + LastPrice string + LowPrice24h string + MarkPrice string + MarkPriceIv string + OpenInterest string + PredictedDeliveryPrice string + Symbol SymbolDerivative + Theta string + TotalTurnover string + TotalVolume string + Turnover24h string + UnderlyingPrice string + Vega string + Volume24h string + type DerivativesTickersParam struct + Category CategoryDerivative + Symbol *SymbolDerivative + type DerivativesTickersResponse struct + Result DerivativesTickersResult + type DerivativesTickersResult struct + Category CategoryDerivative + Lists []DerivativesTickersResultList + type DerivativesTickersResultList struct + AskPrice string + BasisRate string + BidPrice string + DeliveryFeeRate string + DeliveryTime string + FundingRate string + HighPrice24h string + IndexPrice string + LastPrice string + LastTickDirection string + LowPrice24h string + MarkPrice string + NextFundingTime string + OpenInterest string + PredictedDeliveryPrice string + PrevPrice1h string + PrevPrice24h string + Price24hPcnt string + Symbol SymbolDerivative + Turnover24h string + Volume24h string + type Direction string + type ErrHandler func(isWebsocketClosed bool, err error) + type ErrorResponse struct + RetCode int + RetMsg string + func (r *ErrorResponse) Error() string + type ExecType string + type ExecTypeV5 string + type FutureCommonService struct + func (s *FutureCommonService) APIKeyInfo() (*APIKeyInfoResponse, error) + func (s *FutureCommonService) AccountRatio(param AccountRatioParam) (*AccountRatioResponse, error) + func (s *FutureCommonService) Balance(coin Coin) (*BalanceResponse, error) + func (s *FutureCommonService) BigDeal(param BigDealParam) (*BigDealResponse, error) + func (s *FutureCommonService) IndexPriceKline(param IndexPriceKlineParam) (*IndexPriceKlineResponse, error) + func (s *FutureCommonService) ListKline(param ListKlineParam) (*ListKlineResponse, error) + func (s *FutureCommonService) ListLinearKline(param ListLinearKlineParam) (*ListLinearKlineResponse, error) + func (s *FutureCommonService) MarkPriceKline(param MarkPriceKlineParam) (*MarkPriceKlineResponse, error) + func (s *FutureCommonService) OpenInterest(param OpenInterestParam) (*OpenInterestResponse, error) + func (s *FutureCommonService) OrderBook(symbol SymbolFuture) (*OrderBookResponse, error) + func (s *FutureCommonService) Symbols() (*SymbolsResponse, error) + func (s *FutureCommonService) Tickers(symbol SymbolFuture) (*TickersResponse, error) + func (s *FutureCommonService) TradingRecords(param TradingRecordsParam) (*TradingRecordsResponse, error) + type FutureInverseFutureService struct + func (s *FutureInverseFutureService) CancelAllFuturesOrder(param CancelAllFuturesOrderParam) (*CancelAllFuturesOrderResponse, error) + func (s *FutureInverseFutureService) CancelAllFuturesStopOrder(param CancelAllFuturesStopOrderParam) (*CancelAllFuturesStopOrderResponse, error) + func (s *FutureInverseFutureService) CancelFuturesOrder(param CancelFuturesOrderParam) (*CancelFuturesOrderResponse, error) + func (s *FutureInverseFutureService) CancelFuturesStopOrder(param CancelFuturesStopOrderParam) (*CancelFuturesStopOrderResponse, error) + func (s *FutureInverseFutureService) CreateFuturesOrder(param CreateFuturesOrderParam) (*CreateFuturesOrderResponse, error) + func (s *FutureInverseFutureService) CreateFuturesStopOrder(param CreateFuturesStopOrderParam) (*CreateFuturesStopOrderResponse, error) + func (s *FutureInverseFutureService) FuturesSaveLeverage(param FuturesSaveLeverageParam) (*FuturesSaveLeverageResponse, error) + func (s *FutureInverseFutureService) FuturesTradingStop(param FuturesTradingStopParam) (*FuturesTradingStopResponse, error) + func (s *FutureInverseFutureService) ListFuturesOrder(param ListFuturesOrderParam) (*ListFuturesOrderResponse, error) + func (s *FutureInverseFutureService) ListFuturesPositions(symbol SymbolFuture) (*ListFuturesPositionsResponse, error) + func (s *FutureInverseFutureService) ListFuturesStopOrder(param ListFuturesStopOrderParam) (*ListFuturesStopOrderResponse, error) + func (s *FutureInverseFutureService) QueryFuturesOrder(param QueryFuturesOrderParam) (*QueryFuturesOrderResponse, error) + func (s *FutureInverseFutureService) QueryFuturesStopOrder(param QueryFuturesStopOrderParam) (*QueryFuturesStopOrderResponse, error) + type FutureInverseFutureServiceI interface + APIKeyInfo func() (*APIKeyInfoResponse, error) + AccountRatio func(AccountRatioParam) (*AccountRatioResponse, error) + Balance func(Coin) (*BalanceResponse, error) + BigDeal func(BigDealParam) (*BigDealResponse, error) + CancelAllFuturesOrder func(CancelAllFuturesOrderParam) (*CancelAllFuturesOrderResponse, error) + CancelAllFuturesStopOrder func(CancelAllFuturesStopOrderParam) (*CancelAllFuturesStopOrderResponse, error) + CancelFuturesOrder func(CancelFuturesOrderParam) (*CancelFuturesOrderResponse, error) + CancelFuturesStopOrder func(CancelFuturesStopOrderParam) (*CancelFuturesStopOrderResponse, error) + CreateFuturesOrder func(CreateFuturesOrderParam) (*CreateFuturesOrderResponse, error) + CreateFuturesStopOrder func(CreateFuturesStopOrderParam) (*CreateFuturesStopOrderResponse, error) + FuturesSaveLeverage func(FuturesSaveLeverageParam) (*FuturesSaveLeverageResponse, error) + FuturesTradingStop func(FuturesTradingStopParam) (*FuturesTradingStopResponse, error) + IndexPriceKline func(IndexPriceKlineParam) (*IndexPriceKlineResponse, error) + ListFuturesOrder func(ListFuturesOrderParam) (*ListFuturesOrderResponse, error) + ListFuturesPositions func(SymbolFuture) (*ListFuturesPositionsResponse, error) + ListFuturesStopOrder func(ListFuturesStopOrderParam) (*ListFuturesStopOrderResponse, error) + ListKline func(ListKlineParam) (*ListKlineResponse, error) + MarkPriceKline func(MarkPriceKlineParam) (*MarkPriceKlineResponse, error) + OpenInterest func(OpenInterestParam) (*OpenInterestResponse, error) + OrderBook func(SymbolFuture) (*OrderBookResponse, error) + QueryFuturesOrder func(QueryFuturesOrderParam) (*QueryFuturesOrderResponse, error) + QueryFuturesStopOrder func(QueryFuturesStopOrderParam) (*QueryFuturesStopOrderResponse, error) + Symbols func() (*SymbolsResponse, error) + Tickers func(SymbolFuture) (*TickersResponse, error) + TradingRecords func(TradingRecordsParam) (*TradingRecordsResponse, error) + type FutureInversePerpetualService struct + func (s *FutureInversePerpetualService) CancelAllOrder(param CancelAllOrderParam) (*CancelAllOrderResponse, error) + func (s *FutureInversePerpetualService) CancelAllStopOrder(param CancelAllStopOrderParam) (*CancelAllStopOrderResponse, error) + func (s *FutureInversePerpetualService) CancelOrder(param CancelOrderParam) (*CancelOrderResponse, error) + func (s *FutureInversePerpetualService) CancelStopOrder(param CancelStopOrderParam) (*CancelStopOrderResponse, error) + func (s *FutureInversePerpetualService) CreateOrder(param CreateOrderParam) (*CreateOrderResponse, error) + func (s *FutureInversePerpetualService) CreateStopOrder(param CreateStopOrderParam) (*CreateStopOrderResponse, error) + func (s *FutureInversePerpetualService) ListOrder(param ListOrderParam) (*ListOrderResponse, error) + func (s *FutureInversePerpetualService) ListPosition(symbol SymbolFuture) (*ListPositionResponse, error) + func (s *FutureInversePerpetualService) ListPositions() (*ListPositionsResponse, error) + func (s *FutureInversePerpetualService) ListStopOrder(param ListStopOrderParam) (*ListStopOrderResponse, error) + func (s *FutureInversePerpetualService) PremiumIndexKline(param PremiumIndexKlineParam) (*PremiumIndexKlineResponse, error) + func (s *FutureInversePerpetualService) QueryOrder(param QueryOrderParam) (*QueryOrderResponse, error) + func (s *FutureInversePerpetualService) QueryStopOrder(param QueryStopOrderParam) (*QueryStopOrderResponse, error) + func (s *FutureInversePerpetualService) SaveLeverage(param SaveLeverageParam) (*SaveLeverageResponse, error) + func (s *FutureInversePerpetualService) TradingStop(param TradingStopParam) (*TradingStopResponse, error) + type FutureInversePerpetualServiceI interface + APIKeyInfo func() (*APIKeyInfoResponse, error) + AccountRatio func(AccountRatioParam) (*AccountRatioResponse, error) + Balance func(Coin) (*BalanceResponse, error) + BigDeal func(BigDealParam) (*BigDealResponse, error) + CancelAllOrder func(CancelAllOrderParam) (*CancelAllOrderResponse, error) + CancelAllStopOrder func(CancelAllStopOrderParam) (*CancelAllStopOrderResponse, error) + CancelOrder func(CancelOrderParam) (*CancelOrderResponse, error) + CancelStopOrder func(CancelStopOrderParam) (*CancelStopOrderResponse, error) + CreateOrder func(CreateOrderParam) (*CreateOrderResponse, error) + CreateStopOrder func(CreateStopOrderParam) (*CreateStopOrderResponse, error) + IndexPriceKline func(IndexPriceKlineParam) (*IndexPriceKlineResponse, error) + ListKline func(ListKlineParam) (*ListKlineResponse, error) + ListOrder func(ListOrderParam) (*ListOrderResponse, error) + ListPosition func(SymbolFuture) (*ListPositionResponse, error) + ListPositions func() (*ListPositionsResponse, error) + ListStopOrder func(ListStopOrderParam) (*ListStopOrderResponse, error) + MarkPriceKline func(MarkPriceKlineParam) (*MarkPriceKlineResponse, error) + OpenInterest func(OpenInterestParam) (*OpenInterestResponse, error) + OrderBook func(SymbolFuture) (*OrderBookResponse, error) + PremiumIndexKline func(PremiumIndexKlineParam) (*PremiumIndexKlineResponse, error) + QueryOrder func(QueryOrderParam) (*QueryOrderResponse, error) + QueryStopOrder func(QueryStopOrderParam) (*QueryStopOrderResponse, error) + SaveLeverage func(SaveLeverageParam) (*SaveLeverageResponse, error) + Symbols func() (*SymbolsResponse, error) + Tickers func(SymbolFuture) (*TickersResponse, error) + TradingRecords func(TradingRecordsParam) (*TradingRecordsResponse, error) + TradingStop func(TradingStopParam) (*TradingStopResponse, error) + type FutureService struct + func (s *FutureService) InverseFuture() FutureInverseFutureServiceI + func (s *FutureService) InversePerpetual() FutureInversePerpetualServiceI + func (s *FutureService) USDTPerpetual() FutureUSDTPerpetualServiceI + type FutureServiceI interface + InverseFuture func() FutureInverseFutureServiceI + InversePerpetual func() FutureInversePerpetualServiceI + USDTPerpetual func() FutureUSDTPerpetualServiceI + type FutureUSDTPerpetualService struct + func (s *FutureUSDTPerpetualService) CancelAllLinearStopOrder(param CancelAllLinearStopOrderParam) (*CancelAllLinearStopOrderResponse, error) + func (s *FutureUSDTPerpetualService) CancelLinearOrder(param CancelLinearOrderParam) (*CancelLinearOrderResponse, error) + func (s *FutureUSDTPerpetualService) CancelLinearStopOrder(param CancelLinearStopOrderParam) (*CancelLinearStopOrderResponse, error) + func (s *FutureUSDTPerpetualService) CreateLinearOrder(param CreateLinearOrderParam) (*CreateLinearOrderResponse, error) + func (s *FutureUSDTPerpetualService) CreateLinearStopOrder(param CreateLinearStopOrderParam) (*CreateLinearStopOrderResponse, error) + func (s *FutureUSDTPerpetualService) LinearCancelAllOrder(param LinearCancelAllParam) (*LinearCancelAllResponse, error) + func (s *FutureUSDTPerpetualService) LinearExecutionList(param LinearExecutionListParam) (*LinearExecutionListResponse, error) + func (s *FutureUSDTPerpetualService) LinearTradingStop(param LinearTradingStopParam) (*LinearTradingStopResponse, error) + func (s *FutureUSDTPerpetualService) ListLinearOrder(param ListLinearOrderParam) (*ListLinearOrderResponse, error) + func (s *FutureUSDTPerpetualService) ListLinearPosition(symbol SymbolFuture) (*ListLinearPositionResponse, error) + func (s *FutureUSDTPerpetualService) ListLinearPositions() (*ListLinearPositionsResponse, error) + func (s *FutureUSDTPerpetualService) ListLinearStopOrder(param ListLinearStopOrderParam) (*ListLinearStopOrderResponse, error) + func (s *FutureUSDTPerpetualService) QueryLinearOrder(param QueryLinearOrderParam) (*QueryLinearOrderResponse, error) + func (s *FutureUSDTPerpetualService) QueryLinearStopOrder(param QueryLinearStopOrderParam) (*QueryLinearStopOrderResponse, error) + func (s *FutureUSDTPerpetualService) ReplaceLinearOrder(param ReplaceLinearOrderParam) (*ReplaceLinearOrderResponse, error) + func (s *FutureUSDTPerpetualService) SaveLinearLeverage(param SaveLinearLeverageParam) (*SaveLinearLeverageResponse, error) + type FutureUSDTPerpetualServiceI interface + APIKeyInfo func() (*APIKeyInfoResponse, error) + AccountRatio func(AccountRatioParam) (*AccountRatioResponse, error) + Balance func(Coin) (*BalanceResponse, error) + BigDeal func(BigDealParam) (*BigDealResponse, error) + CancelAllLinearStopOrder func(CancelAllLinearStopOrderParam) (*CancelAllLinearStopOrderResponse, error) + CancelLinearOrder func(CancelLinearOrderParam) (*CancelLinearOrderResponse, error) + CancelLinearStopOrder func(CancelLinearStopOrderParam) (*CancelLinearStopOrderResponse, error) + CreateLinearOrder func(CreateLinearOrderParam) (*CreateLinearOrderResponse, error) + CreateLinearStopOrder func(CreateLinearStopOrderParam) (*CreateLinearStopOrderResponse, error) + LinearCancelAllOrder func(LinearCancelAllParam) (*LinearCancelAllResponse, error) + LinearExecutionList func(LinearExecutionListParam) (*LinearExecutionListResponse, error) + LinearTradingStop func(LinearTradingStopParam) (*LinearTradingStopResponse, error) + ListLinearKline func(ListLinearKlineParam) (*ListLinearKlineResponse, error) + ListLinearOrder func(ListLinearOrderParam) (*ListLinearOrderResponse, error) + ListLinearPosition func(SymbolFuture) (*ListLinearPositionResponse, error) + ListLinearPositions func() (*ListLinearPositionsResponse, error) + ListLinearStopOrder func(ListLinearStopOrderParam) (*ListLinearStopOrderResponse, error) + OpenInterest func(OpenInterestParam) (*OpenInterestResponse, error) + OrderBook func(SymbolFuture) (*OrderBookResponse, error) + QueryLinearOrder func(QueryLinearOrderParam) (*QueryLinearOrderResponse, error) + QueryLinearStopOrder func(QueryLinearStopOrderParam) (*QueryLinearStopOrderResponse, error) + ReplaceLinearOrder func(ReplaceLinearOrderParam) (*ReplaceLinearOrderResponse, error) + SaveLinearLeverage func(SaveLinearLeverageParam) (*SaveLinearLeverageResponse, error) + Symbols func() (*SymbolsResponse, error) + Tickers func(SymbolFuture) (*TickersResponse, error) + type FuturesSaveLeverageParam struct + BuyLeverage float64 + SellLeverage float64 + Symbol SymbolFuture + type FuturesSaveLeverageResponse struct + Result float64 + type FuturesTradingStopParam struct + NewTrailingActive *float64 + PositionIdx *int + SlSize *float64 + SlTriggerBy *TriggerByFuture + StopLoss *float64 + Symbol SymbolFuture + TakeProfit *float64 + TpSize *float64 + TpTriggerBy *TriggerByFuture + TrailingStop *float64 + type FuturesTradingStopResponse struct + Result FuturesTradingStopResult + type FuturesTradingStopResult struct + AutoAddMargin float64 + BustPrice float64 + CreatedAt string + CrossSeq float64 + CumCommission float64 + CumRealisedPnl float64 + DeleverageIndicator int + EntryPrice float64 + ExtFields map[string]interface{} + ID int + Leverage float64 + LiqPrice float64 + OcCalcData string + OccClosingFee float64 + OccFundingFee float64 + OrderMargin float64 + PositionMargin float64 + PositionSeq float64 + PositionStatus string + PositionValue float64 + RealisedPnl float64 + RiskID int + Side Side + Size float64 + StopLoss float64 + Symbol SymbolFuture + TakeProfit float64 + TrailingStop float64 + UpdatedAt string + UserID int + WalletBalance float64 + type IndexPriceKlineParam struct + From int64 + Interval Interval + Limit *int + Symbol SymbolFuture + type IndexPriceKlineResponse struct + Result []IndexPriceKlineResult + type IndexPriceKlineResult struct + Close string + High string + Low string + Open string + OpenTime int + Period Period + Symbol SymbolFuture + type Innovation string + type InstrumentStatus string + type InternalDepositStatusV5 int + type Interval string + type IsLeverage int + type IsLowestRisk int + type LeverageFilter struct + LeverageStep string + MaxLeverage float64 + MinLeverage float64 + type LinearCancelAllParam struct + Symbol SymbolFuture + type LinearCancelAllResponse struct + Result LinearCancelAllResult + type LinearCancelAllResult []string + type LinearExecutionList struct + ClosedSize float64 + ExecFee float64 + ExecPrice float64 + ExecQty float64 + ExecType ExecType + ExecValue float64 + FeeRate float64 + LastLiquidityInd string + LeavesQty float64 + OrderID string + OrderLinkID string + OrderPrice float64 + OrderQty float64 + OrderType OrderType + Side Side + Symbol SymbolFuture + TradeTimeMs float64 + type LinearExecutionListParam struct + EndTime *int + ExecType *ExecType + Limit *int + Page *int + StartTime *int + Symbol SymbolFuture + type LinearExecutionListResponse struct + Result LinearExecutionListResult + type LinearExecutionListResult struct + CurrentPage int + LinearExecutionLists []LinearExecutionList + type LinearTradingStopParam struct + PositionIdx *int + Side Side + SlSize *float64 + SlTriggerBy *TriggerByFuture + StopLoss *float64 + Symbol SymbolFuture + TakeProfit *float64 + TpSize *float64 + TpTriggerBy *TriggerByFuture + TrailingStop *float64 + type LinearTradingStopResponse struct + type ListFuturesOrder struct + CreatedAt string + CumExecFee string + CumExecQty string + CumExecValue string + Cursor string + LeavesQty string + LeavesValue string + OrderID string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + PositionIdx int + Price string + Qty string + RejectReason string + Side Side + SlTriggerBy TriggerByFuture + StopLoss string + Symbol SymbolFuture + TakeProfit string + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + UpdatedAt string + UserID int + type ListFuturesOrderParam struct + Cursor *string + Direction *Direction + Limit *int + OrderStatus *OrderStatus + Symbol SymbolFuture + type ListFuturesOrderResponse struct + Result ListFuturesOrderResult + type ListFuturesOrderResult struct + ListFuturesOrders []ListFuturesOrder + type ListFuturesPositionsResponse struct + Result []ListFuturesPositionsResult + type ListFuturesPositionsResult struct + Data ListFuturesPositionsResultData + type ListFuturesPositionsResultData struct + AutoAddMargin float64 + BustPrice string + CreatedAt string + CrossSeq float64 + CumRealisedPnl string + DeleverageIndicator int + EffectiveLeverage string + EntryPrice string + ID int + IsIsolated bool + Leverage string + LiqPrice string + Mode int + OcCalcData string + OccClosingFee string + OccFundingFee string + OrderMargin string + PositionIdx int + PositionMargin string + PositionSeq float64 + PositionStatus string + PositionValue string + RealisedPnl string + RiskID int + Side Side + Size float64 + StopLoss string + Symbol SymbolFuture + TakeProfit string + TpSlMode TpSlMode + TrailingStop string + UnrealisedPnl float64 + UpdatedAt string + UserID int + WalletBalance string + type ListFuturesStopOrder struct + BasePrice string + CreatedAt string + Cursor string + OrderLinkID string + OrderType OrderType + PositionIdx int + Price string + Qty string + Side Side + SlTriggerBy TriggerByFuture + StopLoss string + StopOrderID string + StopOrderStatus OrderStatus + StopOrderType StopOrderTypeFuture + StopPx string + Symbol SymbolFuture + TakeProfit string + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + TriggerBy TriggerByFuture + UpdatedAt string + UserID int + type ListFuturesStopOrderParam struct + Cursor *string + Direction *Direction + Limit *int + StopOrderStatus *OrderStatus + Symbol SymbolFuture + type ListFuturesStopOrderResponse struct + Result ListFuturesStopOrderResult + type ListFuturesStopOrderResult struct + ListFuturesStopOrders []ListFuturesStopOrder + type ListKlineParam struct + From int64 + Interval Interval + Limit *int + Symbol SymbolFuture + type ListKlineResponse struct + Result []ListKlineResult + type ListKlineResult struct + Close string + High string + Interval string + Low string + Open string + OpenTime int + Symbol SymbolFuture + Turnover string + Volume string + type ListLinearKlineParam struct + From int64 + Interval Interval + Limit *int + Symbol SymbolFuture + type ListLinearKlineResponse struct + Result []ListLinearKlineResult + type ListLinearKlineResult struct + Close float64 + High float64 + Interval string + Low float64 + Open float64 + OpenTime int + Period Period + StartAt int + Symbol SymbolFuture + Turnover float64 + Volume float64 + type ListLinearOrderParam struct + Limit *int + Order *Order + OrderID *string + OrderLinkID *string + OrderStatus *OrderStatus + Page *int + Symbol SymbolFuture + type ListLinearOrderResponse struct + Result ListLinearOrderResult + type ListLinearOrderResult struct + Content []ListLinearOrderResultContent + CurrentPage int + type ListLinearOrderResultContent struct + CloseOnTrigger bool + CreatedTime string + CumExecFee float64 + CumExecQty float64 + CumExecValue float64 + LastExecPrice float64 + OrderID string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + Price float64 + Qty float64 + ReduceOnly bool + Side Side + SlTriggerBy TriggerByFuture + StopLoss float64 + Symbol SymbolFuture + TakeProfit float64 + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + UpdatedTime string + UserID int + type ListLinearPositionResponse struct + Result []ListLinearPositionResult + type ListLinearPositionResult struct + AutoAddMargin float64 + BustPrice float64 + CumRealisedPnl float64 + DeleverageIndicator int + EntryPrice float64 + FreeQty float64 + IsIsolated bool + Leverage float64 + LiqPrice float64 + OccClosingFee float64 + PositionMargin float64 + PositionValue float64 + RealisedPnl float64 + RiskID int + Side Side + Size float64 + Symbol SymbolFuture + TpSlMode TpSlMode + UnrealisedPnl float64 + UserID int + type ListLinearPositionsResponse struct + Result []ListLinearPositionsResult + type ListLinearPositionsResult struct + IsValid bool + type ListLinearStopOrderParam struct + Limit *int + Order *Order + OrderLinkID *string + Page *int + StopOrderID *string + StopOrderStatus *OrderStatus + Symbol SymbolFuture + type ListLinearStopOrderResponse struct + Result ListLinearStopOrderResult + type ListLinearStopOrderResult struct + Content []ListLinearStopOrderResultContent + CurrentPage int + LastPage int + type ListLinearStopOrderResultContent struct + BasePrice string + CloseOnTrigger bool + CreatedTime string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + Price float64 + Qty float64 + ReduceOnly bool + Side Side + SlTriggerBy TriggerByFuture + StopLoss float64 + StopOrderID string + Symbol SymbolFuture + TakeProfit float64 + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + TriggerBy TriggerByFuture + TriggerPrice float64 + UpdatedTime string + UserID int + type ListOrder struct + CreatedAt string + CumExecFee string + CumExecQty string + CumExecValue string + LeavesQty string + LeavesValue string + OrderID string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + Price string + Qty string + RejectReason string + Side Side + SlTriggerBy TriggerByFuture + StopLoss string + Symbol SymbolFuture + TakeProfit string + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + UserID int + type ListOrderParam struct + Cursor *string + Direction *Direction + OrderStatus *OrderStatus + Size *int + Symbol SymbolFuture + type ListOrderResponse struct + Result ListOrderResult + type ListOrderResult struct + ListOrders []ListOrder + type ListPositionResponse struct + Result ListPositionResult + type ListPositionResult struct + AutoAddMargin float64 + BustPrice string + CreatedAt string + CrossSeq float64 + CumRealisedPnl string + DeleverageIndicator int + EffectiveLeverage string + EntryPrice string + ID int + IsIsolated bool + Leverage string + LiqPrice string + OcCalcData string + OccClosingFee string + OccFundingFee string + OrderMargin string + PositionMargin string + PositionSeq float64 + PositionStatus string + PositionValue string + RealisedPnl string + RiskID int + Side Side + Size float64 + StopLoss string + Symbol SymbolFuture + TakeProfit string + TrailingStop string + UnrealisedPnl float64 + UpdatedAt string + UserID int + WalletBalance string + type ListPositionsResponse struct + Result []ListPositionsResult + type ListPositionsResult struct + IsValid bool + type ListStopOrder struct + BasePrice string + CreatedAt string + Cursor string + OrderLinkID string + OrderType OrderType + PositionIdx int + Price string + Qty string + Side Side + SlTriggerBy TriggerByFuture + StopLoss string + StopOrderID string + StopOrderStatus OrderStatus + StopOrderType StopOrderTypeFuture + StopPx string + Symbol SymbolFuture + TakeProfit string + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + TriggerBy TriggerByFuture + UpdatedAt string + UserID int + type ListStopOrderParam struct + Cursor *string + Direction *Direction + Limit *int + StopOrderStatus *OrderStatus + Symbol SymbolFuture + type ListStopOrderResponse struct + Result ListStopOrderResult + type ListStopOrderResult struct + ListStopOrders []ListStopOrder + type LotSizeFilter struct + MaxTradingQty float64 + MinTradingQty float64 + QtyStep float64 + type MarginMode string + type MarkPriceKlineParam struct + From int64 + Interval Interval + Limit *int + Symbol SymbolFuture + type MarkPriceKlineResponse struct + Result []MarkPriceKlineResult + type MarkPriceKlineResult struct + Close float64 + High float64 + Low float64 + Open float64 + Period Period + StartAt int + Symbol SymbolFuture + type OpenInterestParam struct + Limit *int + Period Period + Symbol SymbolFuture + type OpenInterestResponse struct + Result []OpenInterestResult + type OpenInterestResult struct + OpenInterest float64 + Symbol SymbolFuture + Timestamp int + type OptionsType string + type Order string + type OrderBookResponse struct + Result []OrderBookResult + type OrderBookResult struct + Price string + Side Side + Size float64 + Symbol SymbolFuture + type OrderFilter string + type OrderStatus string + type OrderStatusSpot string + type OrderType string + type OrderTypeSpot string + type Period string + type PositionIdx int + type PositionMarginMode int + type PositionMode int + type PremiumIndexKlineParam struct + From int64 + Interval Interval + Limit *int + Symbol SymbolFuture + type PremiumIndexKlineResponse struct + Result []PremiumIndexKlineResult + type PremiumIndexKlineResult struct + Close string + High string + Low string + Open string + OpenTime int + Period Period + Symbol SymbolFuture + type PriceFilter struct + MaxPrice string + MinPrice string + TickSize string + type QueryFuturesOrderParam struct + OrderID *string + OrderLinkID *string + Symbol SymbolFuture + type QueryFuturesOrderResponse struct + Result QueryFuturesOrderResult + type QueryFuturesOrderResult struct + CancelType string + CreatedAt string + CumExecFee string + CumExecQty int + CumExecValue string + ExtFields map[string]interface{} + LastExecTime string + LeavesQty int + LeavesValue string + OrderID string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + PositionIdx int + Price string + Qty float64 + RejectReason string + Side Side + SlTriggerBy TriggerByFuture + StopLoss string + Symbol SymbolFuture + TakeProfit string + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + UpdatedAt string + UserID int + type QueryFuturesStopOrderParam struct + OrderLinkID *string + StopOrderID *string + Symbol SymbolFuture + type QueryFuturesStopOrderResponse struct + Result QueryFuturesStopOrderResult + type QueryFuturesStopOrderResult struct + BasePrice string + CreatedAt string + CumExecFee string + CumExecQty int + CumExecValue string + ExtFields map[string]interface{} + LeavesQty int + LeavesValue string + OrderID string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + PositionIdx int + Price string + Qty float64 + RejectReason string + Side Side + SlTriggerBy TriggerByFuture + StopLoss string + StopPx string + Symbol SymbolFuture + TakeProfit string + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + TriggerBy TriggerByFuture + UpdatedAt string + UserID int + type QueryLinearOrderParam struct + OrderID *string + OrderLinkID *string + Symbol SymbolFuture + type QueryLinearOrderResponse struct + Result []QueryLinearOrderResult + type QueryLinearOrderResult struct + CloseOnTrigger bool + CreatedTime string + CumExecFee float64 + CumExecQty float64 + CumExecValue float64 + LastExecPrice float64 + OrderID string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + Price float64 + Qty float64 + ReduceOnly bool + Side Side + SlTriggerBy TriggerByFuture + StopLoss float64 + Symbol SymbolFuture + TakeProfit float64 + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + UpdatedTime string + UserID int + type QueryLinearStopOrderParam struct + OrderLinkID *string + StopOrderID *string + Symbol SymbolFuture + type QueryLinearStopOrderResponse struct + Result []QueryLinearStopOrderResult + type QueryLinearStopOrderResult struct + BasePrice string + CloseOnTrigger bool + CreatedTime string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + Price float64 + Qty float64 + ReduceOnly bool + Side Side + SlTriggerBy TriggerByFuture + StopLoss float64 + StopOrderID string + Symbol SymbolFuture + TakeProfit float64 + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + TriggerBy TriggerByFuture + TriggerPrice float64 + UpdatedTime string + UserID int + type QueryOrderParam struct + OrderID *string + OrderLinkID *string + Symbol SymbolFuture + type QueryOrderResponse struct + Result []QueryOrderResult + type QueryOrderResult struct + CancelType string + CreatedAt string + CumExecFee string + CumExecQty int + CumExecValue string + ExtFields map[string]interface{} + LastExecTime string + LeavesQty int + LeavesValue string + OrderID string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + PositionIdx int + Price string + Qty float64 + RejectReason string + Side Side + SlTriggerBy TriggerByFuture + StopLoss string + Symbol SymbolFuture + TakeProfit string + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + UpdatedAt string + UserID int + type QueryStopOrderParam struct + OrderLinkID *string + StopOrderID *string + Symbol SymbolFuture + type QueryStopOrderResponse struct + Result []QueryStopOrderResult + type QueryStopOrderResult struct + BasePrice string + CreatedAt string + CumExecFee string + CumExecQty int + CumExecValue string + ExtFields map[string]interface{} + LeavesQty int + LeavesValue string + OrderID string + OrderLinkID string + OrderType OrderType + PositionIdx int + Price string + Qty float64 + RejectReason string + Side Side + SlTriggerBy TriggerByFuture + StopLoss string + StopOrderStatus OrderStatus + StopPx string + Symbol SymbolFuture + TakeProfit string + TimeInForce TimeInForce + TpTriggerBy TriggerByFuture + TriggerBy TriggerByFuture + UpdatedAt string + UserID int + type RateLimitError struct + func (r *RateLimitError) Error() string + type ReplaceLinearOrderParam struct + NewPrice *float64 + NewQuantity *float64 + OrderID *string + OrderLinkID *string + SlTriggerBy *TriggerByFuture + StopLoss *float64 + Symbol SymbolFuture + TakeProfit *float64 + TpTriggerBy *TriggerByFuture + type ReplaceLinearOrderResponse struct + Result ReplaceLinearOrderResult + type ReplaceLinearOrderResult struct + OrderID string + type SaveLeverageParam struct + Leverage float64 + Symbol SymbolFuture + type SaveLeverageResponse struct + Result float64 + type SaveLinearLeverageParam struct + BuyLeverage float64 + SellLeverage float64 + Symbol SymbolFuture + type SaveLinearLeverageResponse struct + type Side string + type SpotDeleteOrderFastParam struct + OrderID *string + OrderLinkID *string + Symbol SymbolSpot + type SpotDeleteOrderFastResponse struct + Result SpotDeleteOrderFastResult + type SpotDeleteOrderFastResult struct + IsCancelled bool + type SpotDeleteOrderParam struct + OrderID *string + OrderLinkID *string + type SpotDeleteOrderResponse struct + Result SpotDeleteOrderResult + type SpotDeleteOrderResult struct + AccountId string + ExecutedQty string + OrderId string + OrderLinkId string + OrigQty string + Price string + Side string + Status string + Symbol string + TimeInForce string + TransactTime string + Type string + type SpotGetOrderParam struct + OrderID *string + OrderLinkID *string + type SpotGetOrderResponse struct + Result SpotGetOrderResult + type SpotGetOrderResult struct + AccountId string + AvgPrice string + CummulativeQuoteQty string + ExchangeId string + ExecutedQty string + IcebergQty string + IsWorking bool + OrderId string + OrderLinkId string + OrigQty string + Price string + Side string + Status string + StopPrice string + Symbol string + SymbolName string + Time string + TimeInForce string + Type string + UpdateTime string + type SpotGetWalletBalanceResponse struct + Result SpotGetWalletBalanceResult + type SpotGetWalletBalanceResult struct + Balances []SpotGetWalletBalanceResultBalance + type SpotGetWalletBalanceResultBalance struct + Coin string + CoinID string + CoinName string + Free string + Locked string + Total string + type SpotInterval string + type SpotOpenOrdersParam struct + Limit *int + OrderID *string + Symbol *SymbolSpot + type SpotOpenOrdersResponse struct + Result []SpotOpenOrdersResult + type SpotOpenOrdersResult struct + AccountID string + AvgPrice string + CummulativeQuoteQty string + ExchangeID string + ExecutedQty string + IcebergQty string + IsWorking bool + OrderID string + OrderLinkID string + OrigQty string + Price string + Side string + Status string + StopPrice string + Symbol string + SymbolName string + Time string + TimeInForce string + Type string + UpdateTime string + type SpotOrderBatchCancelByIDsResponse struct + Result []SpotOrderBatchCancelByIDsResult + type SpotOrderBatchCancelByIDsResult struct + Code string + OrderID string + type SpotOrderBatchCancelParam struct + Side *Side + Symbol SymbolSpot + Types []OrderTypeSpot + type SpotOrderBatchCancelResponse struct + Result SpotOrderBatchCancelResult + type SpotOrderBatchCancelResult struct + Success bool + type SpotOrderBatchFastCancelParam struct + Side *Side + Symbol SymbolSpot + Types []OrderTypeSpot + type SpotOrderBatchFastCancelResponse struct + Result SpotOrderBatchFastCancelResult + type SpotOrderBatchFastCancelResult struct + Success bool + type SpotPostOrderParam struct + OrderLinkID *string + Price *float64 + Qty float64 + Side Side + Symbol SymbolSpot + TimeInForce *TimeInForceSpot + Type OrderTypeSpot + type SpotPostOrderResponse struct + Result SpotPostOrderResult + type SpotPostOrderResult struct + AccountID string + ExecutedQty string + OrderID string + OrderLinkID string + OrigQty string + Price string + Side string + Status OrderStatusSpot + Symbol string + SymbolName string + TimeInForce TimeInForceSpot + TransactTime string + Type OrderTypeSpot + type SpotQuoteDepthBidAsk struct + Price string + Quantity string + type SpotQuoteDepthBidsAsks []SpotQuoteDepthBidAsk + func (r *SpotQuoteDepthBidsAsks) UnmarshalJSON(data []byte) error + type SpotQuoteDepthMergedParam struct + Limit *int + Scale *int + Symbol SymbolSpot + type SpotQuoteDepthMergedResponse struct + Result SpotQuoteDepthMergedResult + type SpotQuoteDepthMergedResult struct + Asks SpotQuoteDepthBidsAsks + Bids SpotQuoteDepthBidsAsks + Time int + type SpotQuoteDepthParam struct + Limit *int + Symbol SymbolSpot + type SpotQuoteDepthResponse struct + Result SpotQuoteDepthResult + type SpotQuoteDepthResult struct + Asks SpotQuoteDepthBidsAsks + Bids SpotQuoteDepthBidsAsks + Time int + type SpotQuoteKline struct + Close string + EndTime int + High string + Low string + Open string + QuoteAssetVolume string + StartTime int + TakerBaseVolume float64 + TakerQuoteVolume float64 + Trades int + Volume string + type SpotQuoteKlineParam struct + EndTime *int + Interval Interval + Limit *int + StartTime *int + Symbol SymbolSpot + type SpotQuoteKlineResponse struct + Result []SpotQuoteKlineResult + type SpotQuoteKlineResult struct + SpotQuoteKline SpotQuoteKline + func (r *SpotQuoteKlineResult) UnmarshalJSON(data []byte) error + type SpotQuoteTicker24hrParam struct + Symbol *SymbolSpot + type SpotQuoteTicker24hrResponse struct + Result SpotQuoteTicker24hrResult + type SpotQuoteTicker24hrResult struct + BestAskPrice string + BestBidPrice string + HighPrice string + LastPrice string + LowPrice string + OpenPrice string + QuoteVolume string + Symbol string + Time int + Volume string + type SpotQuoteTickerBookTickerParam struct + Symbol *SymbolSpot + type SpotQuoteTickerBookTickerResponse struct + Result SpotQuoteTickerBookTickerResult + type SpotQuoteTickerBookTickerResult struct + AskPrice string + AskQty string + BidPrice string + BidQty string + Symbol string + Time int + type SpotQuoteTickerPriceParam struct + Symbol *SymbolSpot + type SpotQuoteTickerPriceResponse struct + Result SpotQuoteTickerPriceResult + type SpotQuoteTickerPriceResult struct + Price string + Symbol string + type SpotQuoteTradesParam struct + Limit *int + Symbol SymbolSpot + type SpotQuoteTradesResponse struct + Result []SpotQuoteTradesResult + type SpotQuoteTradesResult struct + IsBuyerMaker bool + Price string + Qty string + Time int + type SpotService struct + func (s *SpotService) V1() SpotV1ServiceI + func (s *SpotService) V3() *SpotV3Service + type SpotServiceI interface + V1 func() SpotV1ServiceI + V3 func() *SpotV3Service + type SpotSymbolsResponse struct + Result []SpotSymbolsResult + type SpotSymbolsResult struct + Alias string + BaseCurrency string + BasePrecision string + Category int + MaxTradeAmount string + MaxTradeQuantity string + MinPricePrecision string + MinTradeAmount string + MinTradeQuantity string + Name string + QuoteCurrency string + QuotePrecision string + type SpotV1Service struct + func (s *SpotV1Service) SpotDeleteOrder(param SpotDeleteOrderParam) (*SpotDeleteOrderResponse, error) + func (s *SpotV1Service) SpotDeleteOrderFast(param SpotDeleteOrderFastParam) (*SpotDeleteOrderFastResponse, error) + func (s *SpotV1Service) SpotGetOrder(param SpotGetOrderParam) (*SpotGetOrderResponse, error) + func (s *SpotV1Service) SpotGetWalletBalance() (*SpotGetWalletBalanceResponse, error) + func (s *SpotV1Service) SpotOpenOrders(param SpotOpenOrdersParam) (*SpotOpenOrdersResponse, error) + func (s *SpotV1Service) SpotOrderBatchCancel(param SpotOrderBatchCancelParam) (*SpotOrderBatchCancelResponse, error) + func (s *SpotV1Service) SpotOrderBatchCancelByIDs(orderIDs []string) (*SpotOrderBatchCancelByIDsResponse, error) + func (s *SpotV1Service) SpotOrderBatchFastCancel(param SpotOrderBatchFastCancelParam) (*SpotOrderBatchFastCancelResponse, error) + func (s *SpotV1Service) SpotPostOrder(param SpotPostOrderParam) (*SpotPostOrderResponse, error) + func (s *SpotV1Service) SpotQuoteDepth(param SpotQuoteDepthParam) (*SpotQuoteDepthResponse, error) + func (s *SpotV1Service) SpotQuoteDepthMerged(param SpotQuoteDepthMergedParam) (*SpotQuoteDepthMergedResponse, error) + func (s *SpotV1Service) SpotQuoteKline(param SpotQuoteKlineParam) (*SpotQuoteKlineResponse, error) + func (s *SpotV1Service) SpotQuoteTicker24hr(param SpotQuoteTicker24hrParam) (*SpotQuoteTicker24hrResponse, error) + func (s *SpotV1Service) SpotQuoteTickerBookTicker(param SpotQuoteTickerBookTickerParam) (*SpotQuoteTickerBookTickerResponse, error) + func (s *SpotV1Service) SpotQuoteTickerPrice(param SpotQuoteTickerPriceParam) (*SpotQuoteTickerPriceResponse, error) + func (s *SpotV1Service) SpotQuoteTrades(param SpotQuoteTradesParam) (*SpotQuoteTradesResponse, error) + func (s *SpotV1Service) SpotSymbols() (*SpotSymbolsResponse, error) + type SpotV1ServiceI interface + SpotDeleteOrder func(SpotDeleteOrderParam) (*SpotDeleteOrderResponse, error) + SpotDeleteOrderFast func(SpotDeleteOrderFastParam) (*SpotDeleteOrderFastResponse, error) + SpotGetOrder func(SpotGetOrderParam) (*SpotGetOrderResponse, error) + SpotGetWalletBalance func() (*SpotGetWalletBalanceResponse, error) + SpotOpenOrders func(SpotOpenOrdersParam) (*SpotOpenOrdersResponse, error) + SpotOrderBatchCancel func(SpotOrderBatchCancelParam) (*SpotOrderBatchCancelResponse, error) + SpotOrderBatchCancelByIDs func(orderIDs []string) (*SpotOrderBatchCancelByIDsResponse, error) + SpotOrderBatchFastCancel func(SpotOrderBatchFastCancelParam) (*SpotOrderBatchFastCancelResponse, error) + SpotPostOrder func(SpotPostOrderParam) (*SpotPostOrderResponse, error) + SpotQuoteDepth func(SpotQuoteDepthParam) (*SpotQuoteDepthResponse, error) + SpotQuoteDepthMerged func(SpotQuoteDepthMergedParam) (*SpotQuoteDepthMergedResponse, error) + SpotQuoteKline func(SpotQuoteKlineParam) (*SpotQuoteKlineResponse, error) + SpotQuoteTicker24hr func(SpotQuoteTicker24hrParam) (*SpotQuoteTicker24hrResponse, error) + SpotQuoteTickerBookTicker func(SpotQuoteTickerBookTickerParam) (*SpotQuoteTickerBookTickerResponse, error) + SpotQuoteTickerPrice func(SpotQuoteTickerPriceParam) (*SpotQuoteTickerPriceResponse, error) + SpotQuoteTrades func(SpotQuoteTradesParam) (*SpotQuoteTradesResponse, error) + SpotSymbols func() (*SpotSymbolsResponse, error) + type SpotV3Service struct + type SpotWebsocketService struct + func (s *SpotWebsocketService) V1() *SpotWebsocketV1Service + type SpotWebsocketV1PrivateEventType string + type SpotWebsocketV1PrivateOutboundAccountInfoResponse struct + Content SpotWebsocketV1PrivateOutboundAccountInfoResponseContent + func (r *SpotWebsocketV1PrivateOutboundAccountInfoResponse) Key() SpotWebsocketV1PrivateParamKey + func (r *SpotWebsocketV1PrivateOutboundAccountInfoResponse) MarshalJSON() ([]byte, error) + func (r *SpotWebsocketV1PrivateOutboundAccountInfoResponse) UnmarshalJSON(data []byte) error + type SpotWebsocketV1PrivateOutboundAccountInfoResponseContent struct + AllowTrade bool + AllowWDeposit bool + AllowWithdraw bool + EventType SpotWebsocketV1PrivateEventType + Timestamp string + WalletBalanceChanges []SpotWebsocketV1PrivateOutboundAccountInfoResponseWalletBalanceChange + type SpotWebsocketV1PrivateOutboundAccountInfoResponseWalletBalanceChange struct + AvailableBalance string + ReservedBalance string + SymbolName string + type SpotWebsocketV1PrivateParamKey struct + EventType SpotWebsocketV1PrivateEventType + type SpotWebsocketV1PrivateService struct + func (s *SpotWebsocketV1PrivateService) Close() error + func (s *SpotWebsocketV1PrivateService) Ping() error + func (s *SpotWebsocketV1PrivateService) RegisterFuncOutboundAccountInfo(f func(SpotWebsocketV1PrivateOutboundAccountInfoResponse) error) error + func (s *SpotWebsocketV1PrivateService) Run() error + func (s *SpotWebsocketV1PrivateService) Start(ctx context.Context) + func (s *SpotWebsocketV1PrivateService) Subscribe() error + type SpotWebsocketV1PublicV1Event string + type SpotWebsocketV1PublicV1Service struct + func (s *SpotWebsocketV1PublicV1Service) Close() error + func (s *SpotWebsocketV1PublicV1Service) Ping() error + func (s *SpotWebsocketV1PublicV1Service) Run() error + func (s *SpotWebsocketV1PublicV1Service) Start(ctx context.Context) + func (s *SpotWebsocketV1PublicV1Service) SubscribeTrade(symbol SymbolSpot, f func(response SpotWebsocketV1PublicV1TradeResponse) error) (func() error, error) + type SpotWebsocketV1PublicV1Topic string + type SpotWebsocketV1PublicV1TradeContent struct + IsBuySideTaker bool + Price string + Quantity string + Timestamp int + TradeID string + type SpotWebsocketV1PublicV1TradeParam struct + Event SpotWebsocketV1PublicV1Event + Params SpotWebsocketV1PublicV1TradeParamChild + Symbol SymbolSpot + Topic SpotWebsocketV1PublicV1Topic + func (p *SpotWebsocketV1PublicV1TradeParam) Key() SpotWebsocketV1PublicV1TradeParamKey + type SpotWebsocketV1PublicV1TradeParamChild struct + Binary bool + type SpotWebsocketV1PublicV1TradeParamKey struct + Symbol SymbolSpot + Topic SpotWebsocketV1PublicV1Topic + type SpotWebsocketV1PublicV1TradeResponse struct + Data []SpotWebsocketV1PublicV1TradeContent + IsFirstMessage bool + Params SpotWebsocketV1PublicV1TradeResponseParams + SendTime int + Symbol SymbolSpot + SymbolName string + Topic SpotWebsocketV1PublicV1Topic + func (p *SpotWebsocketV1PublicV1TradeResponse) Key() SpotWebsocketV1PublicV1TradeParamKey + type SpotWebsocketV1PublicV1TradeResponseParams struct + Binary string + RealtimeInterval string + type SpotWebsocketV1PublicV2Event string + type SpotWebsocketV1PublicV2Service struct + func (s *SpotWebsocketV1PublicV2Service) Close() error + func (s *SpotWebsocketV1PublicV2Service) Ping() error + func (s *SpotWebsocketV1PublicV2Service) Run() error + func (s *SpotWebsocketV1PublicV2Service) Start(ctx context.Context) + func (s *SpotWebsocketV1PublicV2Service) SubscribeTrade(symbol SymbolSpot, f func(response SpotWebsocketV1PublicV2TradeResponse) error) (func() error, error) + type SpotWebsocketV1PublicV2Topic string + type SpotWebsocketV1PublicV2TradeContent struct + IsBuySideTaker bool + Price string + Quantity string + Timestamp int + TradeID string + type SpotWebsocketV1PublicV2TradeParam struct + Event SpotWebsocketV1PublicV2Event + Params SpotWebsocketV1PublicV2TradeParamChild + Topic SpotWebsocketV1PublicV2Topic + func (p *SpotWebsocketV1PublicV2TradeParam) Key() SpotWebsocketV1PublicV2TradeParamKey + type SpotWebsocketV1PublicV2TradeParamChild struct + Binary bool + Symbol SymbolSpot + type SpotWebsocketV1PublicV2TradeParamKey struct + Symbol SymbolSpot + Topic SpotWebsocketV1PublicV2Topic + type SpotWebsocketV1PublicV2TradeResponse struct + Data SpotWebsocketV1PublicV2TradeContent + Params SpotWebsocketV1PublicV2TradeResponseParams + Topic SpotWebsocketV1PublicV2Topic + func (p *SpotWebsocketV1PublicV2TradeResponse) Key() SpotWebsocketV1PublicV2TradeParamKey + type SpotWebsocketV1PublicV2TradeResponseParams struct + Binary string + Symbol SymbolSpot + SymbolName string + type SpotWebsocketV1Service struct + func (s *SpotWebsocketV1Service) Private() (*SpotWebsocketV1PrivateService, error) + func (s *SpotWebsocketV1Service) PublicV1() (*SpotWebsocketV1PublicV1Service, error) + func (s *SpotWebsocketV1Service) PublicV2() (*SpotWebsocketV1PublicV2Service, error) + type StatusDerivative string + type StopOrderTypeFuture string + type SymbolDerivative string + type SymbolFuture string + type SymbolSpot string + type SymbolV5 string + type SymbolsResponse struct + Result []SymbolsResult + type SymbolsResult struct + BaseCurrency string + LeverageFilter LeverageFilter + LotSizeFilter LotSizeFilter + MakerFee string + Name string + PriceFilter PriceFilter + PriceScale float64 + QuoteCurrency string + TakerFee string + type TestClient struct + func NewTestClient() *TestClient + func (c *TestClient) WithAuthFromEnv() *TestClient + type TestWebSocketClient struct + func NewTestWebsocketClient() *TestWebSocketClient + func (c *TestWebSocketClient) WithAuthFromEnv() *TestWebSocketClient + type TickDirection string + type TickersResponse struct + Result []TickersResult + type TickersResult struct + AskPrice string + BidPrice string + CountdownHour float64 + FundingRate string + HighPrice24h string + IndexPrice string + LastPrice string + LastTickDirection TickDirection + LowPrice24h string + MarkPrice string + NextFundingTime string + OpenInterest float64 + OpenValue string + PredictedFundingRate string + PrevPrice1h string + PrevPrice24h string + Price1hPcnt string + Price24hPcnt string + Symbol SymbolFuture + TotalTurnover string + TotalVolume float64 + Turnover24h string + Volume24h float64 + type TimeInForce string + type TimeInForceSpot string + type TpSlMode string + type TradingRecordsParam struct + From *int + Limit *int + Symbol SymbolFuture + type TradingRecordsResponse struct + Result []TradingRecordsResult + type TradingRecordsResult struct + ID float64 + Price float64 + Qty float64 + Side Side + Symbol SymbolFuture + Time string + type TradingStopParam struct + NewTrailingActive *float64 + SlSize *float64 + SlTriggerBy *TriggerByFuture + StopLoss *float64 + Symbol SymbolFuture + TakeProfit *float64 + TpSize *float64 + TpTriggerBy *TriggerByFuture + TrailingStop *float64 + type TradingStopResponse struct + Result TradingStopResult + type TradingStopResult struct + AutoAddMargin float64 + BustPrice float64 + CreatedAt string + CrossSeq float64 + CumCommission float64 + CumRealisedPnl float64 + DeleverageIndicator int + EntryPrice float64 + ExtFields map[string]interface{} + ID int + Leverage float64 + LiqPrice float64 + OcCalcData string + OccClosingFee float64 + OccFundingFee float64 + OrderMargin float64 + PositionMargin float64 + PositionSeq float64 + PositionStatus string + PositionValue float64 + RealisedPnl float64 + RiskID int + Side Side + Size float64 + StopLoss float64 + Symbol SymbolFuture + TakeProfit float64 + TrailingStop float64 + UpdatedAt string + UserID int + WalletBalance float64 + type TransactionLogTypeV5 string + type TransferStatusV5 string + type TriggerBy string + type TriggerByFuture string + type TriggerDirection int + type USDCContractOptionService struct + type USDCContractPerpetualService struct + type USDCContractService struct + func (s *USDCContractService) Option() *USDCContractOptionService + func (s *USDCContractService) Perpetual() *USDCContractPerpetualService + type USDCContractServiceI interface + Option func() *USDCContractOptionService + Perpetual func() *USDCContractPerpetualService + type UnifiedMarginStatus int + type V5APIKeyResponse struct + Result V5ApiKeyResult + type V5AccountInfoResult struct + MarginMode MarginMode + UnifiedMarginStatus UnifiedMarginStatus + UpdatedTime string + type V5AccountService struct + func (s *V5AccountService) GetAccountInfo() (*V5GetAccountInfoResponse, error) + func (s *V5AccountService) GetTransactionLog(param V5GetTransactionLogParam) (*V5GetTransactionLogResponse, error) + func (s *V5AccountService) GetWalletBalance(at AccountType, coins []Coin) (*V5GetWalletBalanceResponse, error) + type V5AccountServiceI interface + GetAccountInfo func() (*V5GetAccountInfoResponse, error) + GetTransactionLog func(V5GetTransactionLogParam) (*V5GetTransactionLogResponse, error) + GetWalletBalance func(AccountType, []Coin) (*V5GetWalletBalanceResponse, error) + type V5AmendOrderParam struct + Category CategoryV5 + OrderID *string + OrderIv *string + OrderLinkID *string + Price *string + Qty *string + SlTriggerBy *TriggerBy + StopLoss *string + Symbol SymbolV5 + TakeProfit *string + TpTriggerBy *TriggerBy + TriggerBy *TriggerBy + TriggerPrice *string + type V5AmendOrderResponse struct + Result V5AmendOrderResult + type V5AmendOrderResult struct + OrderID string + OrderLinkID string + type V5ApiKeyResult struct + APIKey string + AffiliateID int + CreatedAt time.Time + DeadlineDay int + ExpiredAt time.Time + ID string + InviterID int + Ips []string + MktMakerLevel string + Note string + Permissions struct{ ... } + ReadOnly int + Secret string + Type int + Unified int + UserID int + Uta int + VipLevel string + type V5AssetService struct + func (s *V5AssetService) GetDepositRecords(param V5GetDepositRecordsParam) (*V5GetDepositRecordsResponse, error) + func (s *V5AssetService) GetInternalDepositRecords(param V5GetInternalDepositRecordsParam) (*V5GetInternalDepositRecordsResponse, error) + func (s *V5AssetService) GetInternalTransferRecords(param V5GetInternalTransferRecordsParam) (*V5GetInternalTransferRecordsResponse, error) + func (s *V5AssetService) GetSubDepositRecords(param V5GetSubDepositRecordsParam) (*V5GetSubDepositRecordsResponse, error) + func (s *V5AssetService) GetWithdrawalRecords(param V5GetWithdrawalRecordsParam) (*V5GetWithdrawalRecordsResponse, error) + type V5AssetServiceI interface + GetDepositRecords func(V5GetDepositRecordsParam) (*V5GetDepositRecordsResponse, error) + GetInternalDepositRecords func(V5GetInternalDepositRecordsParam) (*V5GetInternalDepositRecordsResponse, error) + GetInternalTransferRecords func(V5GetInternalTransferRecordsParam) (*V5GetInternalTransferRecordsResponse, error) + GetSubDepositRecords func(V5GetSubDepositRecordsParam) (*V5GetSubDepositRecordsResponse, error) + GetWithdrawalRecords func(V5GetWithdrawalRecordsParam) (*V5GetWithdrawalRecordsResponse, error) + type V5CancelAllOrdersLinearInverseOptionResult struct + List []struct{ ... } + type V5CancelAllOrdersParam struct + BaseCoin *Coin + Category CategoryV5 + OrderFilter *OrderFilter + SettleCoin *Coin + Symbol *SymbolV5 + type V5CancelAllOrdersResponse struct + Result V5CancelAllOrdersResult + type V5CancelAllOrdersResult struct + LinearInverseOption *V5CancelAllOrdersLinearInverseOptionResult + Spot *V5CancelAllOrdersSpotResult + func (r *V5CancelAllOrdersResult) UnmarshalJSON(data []byte) error + type V5CancelAllOrdersSpotResult struct + Success string + type V5CancelOrderParam struct + Category CategoryV5 + OrderFilter *OrderFilter + OrderID *string + OrderLinkID *string + Symbol SymbolV5 + type V5CancelOrderResponse struct + Result V5CancelOrderResult + type V5CancelOrderResult struct + OrderID string + OrderLinkID string + type V5CreateOrderParam struct + Category CategoryV5 + CloseOnTrigger *bool + IsLeverage *IsLeverage + MarketMakerProtection *bool + OrderFilter *OrderFilter + OrderIv *string + OrderLinkID *string + OrderType OrderType + PositionIdx *PositionIdx + Price *string + Qty string + ReduceOnly *bool + Side Side + SlTriggerBy *TriggerBy + StopLoss *string + Symbol SymbolV5 + TakeProfit *string + TimeInForce *TimeInForce + TpTriggerBy *TriggerBy + TriggerBy *TriggerBy + TriggerDirection *TriggerDirection + TriggerPrice *string + type V5CreateOrderResponse struct + Result V5CreateOrderResult + type V5CreateOrderResult struct + OrderID string + OrderLinkID string + type V5ExecutionService struct + type V5ExecutionServiceI interface + type V5GetAccountInfoResponse struct + Result V5AccountInfoResult + type V5GetClosedPnLItem struct + AvgEntryPrice string + AvgExitPrice string + ClosedPnl string + ClosedSize string + CreatedTime string + CumEntryValue string + CumExitValue string + ExecType ExecTypeV5 + FillCount string + Leverage string + OrderID string + OrderPrice string + OrderType OrderType + Qty string + Side Side + Symbol SymbolV5 + UpdatedTime string + type V5GetClosedPnLList []V5GetClosedPnLItem + type V5GetClosedPnLParam struct + Category CategoryV5 + Cursor *string + EndTime *int64 + Limit *int + StartTime *int64 + Symbol *SymbolV5 + type V5GetClosedPnLResponse struct + Result V5GetClosedPnLResult + type V5GetClosedPnLResult struct + Category CategoryV5 + List V5GetClosedPnLList + NextPageCursor string + type V5GetDepositRecordsParam struct + Coin *Coin + Cursor *string + EndTime *int64 + Limit *int + StartTime *int64 + type V5GetDepositRecordsResponse struct + Result V5GetDepositRecordsResult + type V5GetDepositRecordsResult struct + NextPageCursor string + Rows V5GetDepositRecordsRows + type V5GetDepositRecordsRow struct + Amount string + BlockHash string + Chain string + Coin Coin + Confirmations string + DepositFee string + Status DepositStatusV5 + SuccessAt string + Tag string + ToAddress string + TxID string + TxIndex string + type V5GetDepositRecordsRows []V5GetDepositRecordsRow + type V5GetFundingRateHistoryParam struct + Category CategoryV5 + EndTime *int64 + Limit *int + StartTime *int64 + Symbol SymbolV5 + type V5GetFundingRateHistoryResponse struct + Result V5GetFundingRateHistoryResult + type V5GetFundingRateHistoryResult struct + Category CategoryV5 + List []struct{ ... } + type V5GetHistoricalVolatilityListItem struct + Period int + Time string + Value string + type V5GetHistoricalVolatilityParam struct + BaseCoin *Coin + Category CategoryV5 + EndTime *int64 + Period *int + StartTime *int64 + type V5GetHistoricalVolatilityResponse struct + Result V5GetHistoricalVolatilityResult + func (r *V5GetHistoricalVolatilityResponse) UnmarshalJSON(data []byte) error + type V5GetHistoricalVolatilityResult struct + Category CategoryV5 + List []V5GetHistoricalVolatilityListItem + type V5GetHistoryOrdersParam struct + BaseCoin *Coin + Category CategoryV5 + Cursor *string + EndTime *int + Limit *int + OrderFilter *OrderFilter + OrderID *string + OrderLinkID *string + OrderStatus *OrderStatus + StartTime *int + Symbol *SymbolV5 + type V5GetIndexPriceKlineItem struct + Close string + High string + Low string + Open string + StartTime string + type V5GetIndexPriceKlineList []V5GetIndexPriceKlineItem + func (l *V5GetIndexPriceKlineList) UnmarshalJSON(data []byte) error + type V5GetIndexPriceKlineParam struct + Category CategoryV5 + End *int + Interval Interval + Limit *int + Start *int + Symbol SymbolV5 + type V5GetIndexPriceKlineResponse struct + Result V5GetIndexPriceKlineResult + type V5GetIndexPriceKlineResult struct + Category CategoryV5 + List V5GetIndexPriceKlineList + Symbol SymbolV5 + type V5GetInstrumentsInfoLinearInverseResult struct + Category CategoryV5 + List []struct{ ... } + NextPageCursor string + type V5GetInstrumentsInfoOptionResult struct + Category CategoryV5 + List []struct{ ... } + NextPageCursor string + type V5GetInstrumentsInfoParam struct + BaseCoin *Coin + Category CategoryV5 + Cursor *string + Limit *int + Symbol *SymbolV5 + type V5GetInstrumentsInfoResponse struct + Result V5GetInstrumentsInfoResult + type V5GetInstrumentsInfoResult struct + LinearInverse *V5GetInstrumentsInfoLinearInverseResult + Option *V5GetInstrumentsInfoOptionResult + Spot *V5GetInstrumentsInfoSpotResult + func (r *V5GetInstrumentsInfoResult) UnmarshalJSON(data []byte) error + type V5GetInstrumentsInfoSpotResult struct + Category CategoryV5 + List []struct{ ... } + type V5GetInsuranceParam struct + Coin *Coin + type V5GetInsuranceResponse struct + Result V5GetInsuranceResult + type V5GetInsuranceResult struct + List []struct{ ... } + UpdatedTime string + type V5GetInternalDepositRecordsParam struct + Coin *Coin + Cursor *string + EndTime *int64 + Limit *int + StartTime *int64 + type V5GetInternalDepositRecordsResponse struct + Result V5GetInternalDepositRecordsResult + type V5GetInternalDepositRecordsResult struct + NextPageCursor string + Rows V5GetInternalDepositRecordsRows + type V5GetInternalDepositRecordsRow struct + Address string + Amount string + Coin Coin + CreatedTime string + ID string + Status InternalDepositStatusV5 + Type string + type V5GetInternalDepositRecordsRows []V5GetInternalDepositRecordsRow + type V5GetInternalTransferRecordsItem struct + Amount string + Coin Coin + FromAccountType AccountTypeV5 + Status TransferStatusV5 + Timestamp string + ToAccountType AccountTypeV5 + TransferID string + type V5GetInternalTransferRecordsList []V5GetInternalTransferRecordsItem + type V5GetInternalTransferRecordsParam struct + Coin *Coin + Cursor *string + EndTime *int64 + Limit *int + StartTime *int64 + Status *TransferStatusV5 + TransferID *string + type V5GetInternalTransferRecordsResponse struct + Result V5GetInternalTransferRecordsResult + type V5GetInternalTransferRecordsResult struct + List V5GetInternalTransferRecordsList + NextPageCursor string + type V5GetKlineItem struct + Close string + High string + Low string + Open string + StartTime string + Turnover string + Volume string + type V5GetKlineList []V5GetKlineItem + func (l *V5GetKlineList) UnmarshalJSON(data []byte) error + type V5GetKlineParam struct + Category CategoryV5 + End *int + Interval Interval + Limit *int + Start *int + Symbol SymbolV5 + type V5GetKlineResponse struct + Result V5GetKlineResult + type V5GetKlineResult struct + Category CategoryV5 + List V5GetKlineList + Symbol SymbolV5 + type V5GetMarkPriceKlineItem struct + Close string + High string + Low string + Open string + StartTime string + type V5GetMarkPriceKlineList []V5GetMarkPriceKlineItem + func (l *V5GetMarkPriceKlineList) UnmarshalJSON(data []byte) error + type V5GetMarkPriceKlineParam struct + Category CategoryV5 + End *int + Interval Interval + Limit *int + Start *int + Symbol SymbolV5 + type V5GetMarkPriceKlineResponse struct + Result V5GetMarkPriceKlineResult + type V5GetMarkPriceKlineResult struct + Category CategoryV5 + List V5GetMarkPriceKlineList + Symbol SymbolV5 + type V5GetOpenInterestParam struct + Category CategoryV5 + Cursor *string + EndTime *int64 + IntervalTime Period + Limit *int + StartTime *int64 + Symbol SymbolV5 + type V5GetOpenInterestResponse struct + Result V5GetOpenInterestResult + type V5GetOpenInterestResult struct + Category CategoryV5 + List []struct{ ... } + NextPageCursor string + Symbol SymbolV5 + type V5GetOpenOrdersParam struct + BaseCoin *Coin + Category CategoryV5 + Cursor *string + Limit *int + OpenOnly *int + OrderFilter *OrderFilter + OrderID *string + OrderLinkID *string + SettleCoin *Coin + Symbol *SymbolV5 + type V5GetOrder struct + AvgPrice string + CancelType string + CloseOnTrigger bool + CreatedTime string + CumExecFee string + CumExecQty string + CumExecValue string + IsLeverage string + LastPriceOnCreated string + LeavesQty string + LeavesValue string + OrderID string + OrderIv string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + PositionIdx int + Price string + Qty string + ReduceOnly bool + RejectReason string + Side Side + SlTriggerBy string + StopLoss string + StopOrderType string + Symbol SymbolV5 + TakeProfit string + TimeInForce TimeInForce + TpTriggerBy string + TriggerBy TriggerBy + TriggerDirection int + TriggerPrice string + UpdatedTime string + type V5GetOrderbookBidAsk struct + Price string + Quantity string + type V5GetOrderbookBidAsks []V5GetOrderbookBidAsk + func (b *V5GetOrderbookBidAsks) UnmarshalJSON(data []byte) error + type V5GetOrderbookParam struct + Category CategoryV5 + Limit *int + Symbol SymbolV5 + type V5GetOrderbookResponse struct + Result V5GetOrderbookResult + type V5GetOrderbookResult struct + Asks V5GetOrderbookBidAsks + Bids V5GetOrderbookBidAsks + Symbol SymbolV5 + Timestamp int64 + UpdateID int + type V5GetOrdersResponse struct + Result V5GetOrdersResult + type V5GetOrdersResult struct + Category CategoryV5 + List []V5GetOrder + NextPageCursor string + type V5GetPositionInfoItem struct + AvgPrice string + BustPrice string + CreatedTime string + CumRealisedPnl string + Leverage string + LiqPrice string + MarkPrice string + PositionIM string + PositionIdx int + PositionMM string + PositionStatus string + PositionValue string + RiskID int + RiskLimitValue string + Side Side + Size string + StopLoss string + Symbol SymbolV5 + TakeProfit string + TpSlMode TpSlMode + TradeMode int + TrailingStop string + UnrealisedPnl string + UpdatedTime string + type V5GetPositionInfoList []V5GetPositionInfoItem + type V5GetPositionInfoParam struct + BaseCoin *Coin + Category CategoryV5 + Cursor *string + Limit *int + SettleCoin *Coin + Symbol *SymbolV5 + type V5GetPositionInfoResponse struct + Result V5GetPositionInfoResult + type V5GetPositionInfoResult struct + Category CategoryV5 + List V5GetPositionInfoList + NextPageCursor string + type V5GetPremiumIndexPriceKlineItem struct + Close string + High string + Low string + Open string + StartTime string + type V5GetPremiumIndexPriceKlineList []V5GetPremiumIndexPriceKlineItem + func (l *V5GetPremiumIndexPriceKlineList) UnmarshalJSON(data []byte) error + type V5GetPremiumIndexPriceKlineParam struct + Category CategoryV5 + End *int + Interval Interval + Limit *int + Start *int + Symbol SymbolV5 + type V5GetPremiumIndexPriceKlineResponse struct + Result V5GetPremiumIndexPriceKlineResult + type V5GetPremiumIndexPriceKlineResult struct + Category CategoryV5 + List V5GetPremiumIndexPriceKlineList + Symbol SymbolV5 + type V5GetPublicTradingHistoryParam struct + BaseCoin *Coin + Category CategoryV5 + Limit *int + OptionType *OptionsType + Symbol SymbolV5 + type V5GetPublicTradingHistoryResponse struct + Result V5GetPublicTradingHistoryResult + type V5GetPublicTradingHistoryResult struct + Category CategoryV5 + List []struct{ ... } + type V5GetRiskLimitParam struct + Category CategoryV5 + Symbol *SymbolV5 + type V5GetRiskLimitResponse struct + Result V5GetRiskLimitResult + type V5GetRiskLimitResult struct + Category CategoryV5 + List []struct{ ... } + type V5GetSubDepositRecordsParam struct + Coin *Coin + Cursor *string + EndTime *int64 + Limit *int + StartTime *int64 + SubMemberID string + type V5GetSubDepositRecordsResponse struct + Result V5GetSubDepositRecordsResult + type V5GetSubDepositRecordsResult struct + NextPageCursor string + Rows V5GetSubDepositRecordsRows + type V5GetSubDepositRecordsRow struct + Amount string + BlockHash string + Chain string + Coin Coin + Confirmations string + DepositFee string + Status DepositStatusV5 + SuccessAt string + Tag string + ToAddress string + TxID string + TxIndex string + type V5GetSubDepositRecordsRows []V5GetSubDepositRecordsRow + type V5GetTickersLinearInverseResult struct + Category CategoryV5 + List []struct{ ... } + type V5GetTickersOptionResult struct + Category CategoryV5 + List []struct{ ... } + type V5GetTickersParam struct + BaseCoin *Coin + Category CategoryV5 + ExpDate *string + Symbol *SymbolV5 + type V5GetTickersResponse struct + Result V5GetTickersResult + type V5GetTickersResult struct + LinearInverse *V5GetTickersLinearInverseResult + Option *V5GetTickersOptionResult + Spot *V5GetTickersSpotResult + func (r *V5GetTickersResult) UnmarshalJSON(data []byte) error + type V5GetTickersSpotResult struct + Category CategoryV5 + List []struct{ ... } + type V5GetTransactionLogItem struct + BonusChange string + CashBalance string + CashFlow string + Category CategoryV5 + Change string + Currency string + Fee string + FeeRate string + Funding string + OrderID string + OrderLinkID string + Qty string + Side Side + Size string + Symbol SymbolV5 + TradeID string + TradePrice string + TransactionTime string + Type TransactionLogTypeV5 + type V5GetTransactionLogList []V5GetTransactionLogItem + type V5GetTransactionLogParam struct + AccountType *AccountTypeV5 + BaseCoin *Coin + Category *CategoryV5 + Currency *string + Cursor *string + EndTime *int64 + Limit *int + StartTime *int64 + Type *TransactionLogTypeV5 + type V5GetTransactionLogResponse struct + Result V5GetTransactionLogResult + type V5GetTransactionLogResult struct + List V5GetTransactionLogList + NextPageCursor string + type V5GetWalletBalanceResponse struct + Result V5WalletBalanceResult + type V5GetWithdrawalRecordsParam struct + Coin *Coin + Cursor *string + EndTime *int64 + Limit *int + StartTime *int64 + WithdrawID *string + WithdrawType *WithdrawTypeV5 + type V5GetWithdrawalRecordsResponse struct + Result V5GetWithdrawalRecordsResult + type V5GetWithdrawalRecordsResult struct + NextPageCursor string + Rows V5GetWithdrawalRecordsRows + type V5GetWithdrawalRecordsRow struct + Amount string + Chain string + Coin Coin + CreatedTime string + Status WithdrawStatusV5 + Tag string + ToAddress string + TxID string + UpdatedTime string + WithdrawFee string + WithdrawId string + WithdrawType WithdrawTypeV5 + type V5GetWithdrawalRecordsRows []V5GetWithdrawalRecordsRow + type V5MarketService struct + func (s *V5MarketService) GetFundingRateHistory(param V5GetFundingRateHistoryParam) (*V5GetFundingRateHistoryResponse, error) + func (s *V5MarketService) GetHistoricalVolatility(param V5GetHistoricalVolatilityParam) (*V5GetHistoricalVolatilityResponse, error) + func (s *V5MarketService) GetIndexPriceKline(param V5GetIndexPriceKlineParam) (*V5GetIndexPriceKlineResponse, error) + func (s *V5MarketService) GetInstrumentsInfo(param V5GetInstrumentsInfoParam) (*V5GetInstrumentsInfoResponse, error) + func (s *V5MarketService) GetInsurance(param V5GetInsuranceParam) (*V5GetInsuranceResponse, error) + func (s *V5MarketService) GetKline(param V5GetKlineParam) (*V5GetKlineResponse, error) + func (s *V5MarketService) GetMarkPriceKline(param V5GetMarkPriceKlineParam) (*V5GetMarkPriceKlineResponse, error) + func (s *V5MarketService) GetOpenInterest(param V5GetOpenInterestParam) (*V5GetOpenInterestResponse, error) + func (s *V5MarketService) GetOrderbook(param V5GetOrderbookParam) (*V5GetOrderbookResponse, error) + func (s *V5MarketService) GetPremiumIndexPriceKline(param V5GetPremiumIndexPriceKlineParam) (*V5GetPremiumIndexPriceKlineResponse, error) + func (s *V5MarketService) GetPublicTradingHistory(param V5GetPublicTradingHistoryParam) (*V5GetPublicTradingHistoryResponse, error) + func (s *V5MarketService) GetRiskLimit(param V5GetRiskLimitParam) (*V5GetRiskLimitResponse, error) + func (s *V5MarketService) GetTickers(param V5GetTickersParam) (*V5GetTickersResponse, error) + type V5MarketServiceI interface + GetFundingRateHistory func(V5GetFundingRateHistoryParam) (*V5GetFundingRateHistoryResponse, error) + GetHistoricalVolatility func(V5GetHistoricalVolatilityParam) (*V5GetHistoricalVolatilityResponse, error) + GetIndexPriceKline func(V5GetIndexPriceKlineParam) (*V5GetIndexPriceKlineResponse, error) + GetInstrumentsInfo func(V5GetInstrumentsInfoParam) (*V5GetInstrumentsInfoResponse, error) + GetInsurance func(V5GetInsuranceParam) (*V5GetInsuranceResponse, error) + GetKline func(V5GetKlineParam) (*V5GetKlineResponse, error) + GetMarkPriceKline func(V5GetMarkPriceKlineParam) (*V5GetMarkPriceKlineResponse, error) + GetOpenInterest func(V5GetOpenInterestParam) (*V5GetOpenInterestResponse, error) + GetOrderbook func(V5GetOrderbookParam) (*V5GetOrderbookResponse, error) + GetPremiumIndexPriceKline func(V5GetPremiumIndexPriceKlineParam) (*V5GetPremiumIndexPriceKlineResponse, error) + GetPublicTradingHistory func(V5GetPublicTradingHistoryParam) (*V5GetPublicTradingHistoryResponse, error) + GetRiskLimit func(V5GetRiskLimitParam) (*V5GetRiskLimitResponse, error) + GetTickers func(V5GetTickersParam) (*V5GetTickersResponse, error) + type V5OrderService struct + func (s *V5OrderService) AmendOrder(param V5AmendOrderParam) (*V5AmendOrderResponse, error) + func (s *V5OrderService) CancelAllOrders(param V5CancelAllOrdersParam) (*V5CancelAllOrdersResponse, error) + func (s *V5OrderService) CancelOrder(param V5CancelOrderParam) (*V5CancelOrderResponse, error) + func (s *V5OrderService) CreateOrder(param V5CreateOrderParam) (*V5CreateOrderResponse, error) + func (s *V5OrderService) GetHistoryOrders(param V5GetHistoryOrdersParam) (*V5GetOrdersResponse, error) + func (s *V5OrderService) GetOpenOrders(param V5GetOpenOrdersParam) (*V5GetOrdersResponse, error) + type V5OrderServiceI interface + AmendOrder func(V5AmendOrderParam) (*V5AmendOrderResponse, error) + CancelAllOrders func(V5CancelAllOrdersParam) (*V5CancelAllOrdersResponse, error) + CancelOrder func(V5CancelOrderParam) (*V5CancelOrderResponse, error) + CreateOrder func(V5CreateOrderParam) (*V5CreateOrderResponse, error) + GetHistoryOrders func(V5GetHistoryOrdersParam) (*V5GetOrdersResponse, error) + GetOpenOrders func(V5GetOpenOrdersParam) (*V5GetOrdersResponse, error) + type V5PositionService struct + func (s *V5PositionService) GetClosedPnL(param V5GetClosedPnLParam) (*V5GetClosedPnLResponse, error) + func (s *V5PositionService) GetPositionInfo(param V5GetPositionInfoParam) (*V5GetPositionInfoResponse, error) + func (s *V5PositionService) SetLeverage(param V5SetLeverageParam) (*V5SetLeverageResponse, error) + func (s *V5PositionService) SetTpSlMode(param V5SetTpSlModeParam) (*V5SetTpSlModeResponse, error) + func (s *V5PositionService) SetTradingStop(param V5SetTradingStopParam) (*V5SetTradingStopResponse, error) + func (s *V5PositionService) SwitchPositionMarginMode(param V5SwitchPositionMarginModeParam) (*V5SwitchPositionMarginModeResponse, error) + func (s *V5PositionService) SwitchPositionMode(param V5SwitchPositionModeParam) (*V5SwitchPositionModeResponse, error) + type V5PositionServiceI interface + GetClosedPnL func(V5GetClosedPnLParam) (*V5GetClosedPnLResponse, error) + GetPositionInfo func(V5GetPositionInfoParam) (*V5GetPositionInfoResponse, error) + SetLeverage func(V5SetLeverageParam) (*V5SetLeverageResponse, error) + SetTpSlMode func(V5SetTpSlModeParam) (*V5SetTpSlModeResponse, error) + SetTradingStop func(V5SetTradingStopParam) (*V5SetTradingStopResponse, error) + SwitchPositionMarginMode func(V5SwitchPositionMarginModeParam) (*V5SwitchPositionMarginModeResponse, error) + SwitchPositionMode func(V5SwitchPositionModeParam) (*V5SwitchPositionModeResponse, error) + type V5Service struct + func (s *V5Service) Account() V5AccountServiceI + func (s *V5Service) Asset() V5AssetServiceI + func (s *V5Service) Execution() V5ExecutionServiceI + func (s *V5Service) Market() V5MarketServiceI + func (s *V5Service) Order() V5OrderServiceI + func (s *V5Service) Position() V5PositionServiceI + func (s *V5Service) SpotLeverageToken() V5SpotLeverageTokenServiceI + func (s *V5Service) SpotMarginTrade() V5SpotMarginTradeServiceI + func (s *V5Service) User() V5UserServiceI + type V5ServiceI interface + Account func() V5AccountServiceI + Asset func() V5AssetServiceI + Execution func() V5ExecutionServiceI + Market func() V5MarketServiceI + Order func() V5OrderServiceI + Position func() V5PositionServiceI + SpotLeverageToken func() V5SpotLeverageTokenServiceI + SpotMarginTrade func() V5SpotMarginTradeServiceI + User func() V5UserServiceI + type V5SetLeverageParam struct + BuyLeverage string + Category CategoryV5 + SellLeverage string + Symbol SymbolV5 + type V5SetLeverageResponse struct + Result interface{} + type V5SetTpSlModeParam struct + Category CategoryV5 + Symbol SymbolV5 + TpSlMode TpSlMode + type V5SetTpSlModeResponse struct + Result V5SetTpSlModeResult + type V5SetTpSlModeResult struct + TpSlMode TpSlMode + type V5SetTradingStopParam struct + ActivePrice *string + Category CategoryV5 + PositionIdx PositionIdx + SlLimitPrice *string + SlOrderType *OrderType + SlSize *string + SlTriggerBy *TriggerBy + StopLoss *string + Symbol SymbolV5 + TakeProfit *string + TpLimitPrice *string + TpOrderType *OrderType + TpSize *string + TpTriggerBy *TriggerBy + TpslMode *TpSlMode + TrailingStop *string + type V5SetTradingStopResponse struct + Result interface{} + type V5SpotLeverageTokenService struct + type V5SpotLeverageTokenServiceI interface + type V5SpotMarginTradeService struct + type V5SpotMarginTradeServiceI interface + type V5SwitchPositionMarginModeParam struct + BuyLeverage string + Category CategoryV5 + SellLeverage string + Symbol SymbolV5 + TradeMode PositionMarginMode + type V5SwitchPositionMarginModeResponse struct + Result interface{} + type V5SwitchPositionModeParam struct + Category CategoryV5 + Coin *Coin + Mode PositionMode + Symbol *SymbolV5 + type V5SwitchPositionModeResponse struct + Result interface{} + type V5UserService struct + func (s *V5UserService) GetAPIKey() (*V5APIKeyResponse, error) + type V5UserServiceI interface + GetAPIKey func() (*V5APIKeyResponse, error) + type V5WalletBalanceCoin struct + AccruedInterest string + AvailableToBorrow string + AvailableToWithdraw string + BorrowAmount string + Coin Coin + CumRealisedPnl string + Equity string + TotalOrderIM string + TotalPositionIM string + TotalPositionMM string + UnrealisedPnl string + UsdValue string + WalletBalance string + type V5WalletBalanceList struct + AccountIMRate string + AccountMMRate string + AccountType string + Coin []V5WalletBalanceCoin + TotalAvailableBalance string + TotalEquity string + TotalInitialMargin string + TotalMaintenanceMargin string + TotalMarginBalance string + TotalPerpUPL string + TotalWalletBalance string + type V5WalletBalanceResult struct + List []V5WalletBalanceList + type V5WebsocketPrivateOrderData struct + AvgPrice string + BlockTradeID string + CancelType string + Category string + CloseOnTrigger bool + CreatedTime string + CumExecFee string + CumExecQty string + CumExecValue string + IsLeverage string + LastPriceOnCreated string + LeavesQty string + LeavesValue string + OrderID string + OrderIv string + OrderLinkID string + OrderStatus OrderStatus + OrderType OrderType + PositionIdx int + Price string + Qty string + ReduceOnly bool + RejectReason string + Side Side + SlTriggerBy TriggerBy + StopLoss string + StopOrderType string + Symbol SymbolV5 + TakeProfit string + TimeInForce TimeInForce + TpTriggerBy TriggerBy + TriggerBy TriggerBy + TriggerDirection TriggerDirection + TriggerPrice string + UpdatedTime string + type V5WebsocketPrivateOrderResponse struct + CreationTime int64 + Data []V5WebsocketPrivateOrderData + ID string + Topic V5WebsocketPrivateTopic + func (r *V5WebsocketPrivateOrderResponse) Key() V5WebsocketPrivateParamKey + type V5WebsocketPrivateParamKey struct + Topic V5WebsocketPrivateTopic + type V5WebsocketPrivatePositionData struct + AutoAddMargin int + BustPrice string + Category CategoryV5 + CreatedTime string + CumRealisedPnl string + EntryPrice string + Leverage string + LiqPrice string + MarkPrice string + PositionBalance string + PositionIM string + PositionIdx int + PositionMM string + PositionStatus string + PositionValue string + RiskID int + RiskLimitValue string + Side Side + Size string + StopLoss string + Symbol SymbolV5 + TakeProfit string + TpslMode TpSlMode + TradeMode int + TrailingStop string + UnrealisedPnl string + UpdatedTime string + type V5WebsocketPrivatePositionResponse struct + CreationTime int64 + Data []V5WebsocketPrivatePositionData + ID string + Topic V5WebsocketPrivateTopic + func (r *V5WebsocketPrivatePositionResponse) Key() V5WebsocketPrivateParamKey + type V5WebsocketPrivateService struct + func (s *V5WebsocketPrivateService) Close() error + func (s *V5WebsocketPrivateService) Ping() error + func (s *V5WebsocketPrivateService) Run() error + func (s *V5WebsocketPrivateService) Start(ctx context.Context, errHandler ErrHandler) error + func (s *V5WebsocketPrivateService) Subscribe() error + func (s *V5WebsocketPrivateService) SubscribeOrder(f func(V5WebsocketPrivateOrderResponse) error) (func() error, error) + func (s *V5WebsocketPrivateService) SubscribePosition(f func(V5WebsocketPrivatePositionResponse) error) (func() error, error) + func (s *V5WebsocketPrivateService) SubscribeWallet(f func(V5WebsocketPrivateWalletResponse) error) (func() error, error) + type V5WebsocketPrivateServiceI interface + Close func() error + Ping func() error + Run func() error + Start func(context.Context, ErrHandler) error + Subscribe func() error + SubscribeOrder func(func(V5WebsocketPrivateOrderResponse) error) (func() error, error) + SubscribePosition func(func(V5WebsocketPrivatePositionResponse) error) (func() error, error) + SubscribeWallet func(func(V5WebsocketPrivateWalletResponse) error) (func() error, error) + type V5WebsocketPrivateTopic string + const V5WebsocketPrivateTopicOrder + const V5WebsocketPrivateTopicPong + const V5WebsocketPrivateTopicPosition + const V5WebsocketPrivateTopicWallet + type V5WebsocketPrivateWalletCoin struct + AccruedInterest string + AvailableToBorrow string + AvailableToWithdraw string + BorrowAmount string + Coin Coin + CumRealisedPnl string + Equity string + TotalOrderIM string + TotalPositionIM string + TotalPositionMM string + UnrealisedPnl string + UsdValue string + WalletBalance string + type V5WebsocketPrivateWalletData struct + AccountIMRate string + AccountMMRate string + AccountType AccountType + Coins []V5WebsocketPrivateWalletCoin + TotalAvailableBalance string + TotalEquity string + TotalInitialMargin string + TotalMaintenanceMargin string + TotalMarginBalance string + TotalPerpUPL string + TotalWalletBalance string + type V5WebsocketPrivateWalletResponse struct + CreationTime int64 + Data []V5WebsocketPrivateWalletData + ID string + Topic V5WebsocketPrivateTopic + func (r *V5WebsocketPrivateWalletResponse) Key() V5WebsocketPrivateParamKey + type V5WebsocketPublicKlineData struct + Close string + Confirm bool + End int + High string + Interval Interval + Low string + Open string + Start int + Timestamp int + Turnover string + Volume string + type V5WebsocketPublicKlineParamKey struct + Interval Interval + Symbol SymbolV5 + func (k *V5WebsocketPublicKlineParamKey) Topic() string + type V5WebsocketPublicKlineResponse struct + Data []V5WebsocketPublicKlineData + TimeStamp int64 + Topic string + Type string + func (r *V5WebsocketPublicKlineResponse) Key() V5WebsocketPublicKlineParamKey + type V5WebsocketPublicOrderBookAsks []struct + func (b *V5WebsocketPublicOrderBookAsks) UnmarshalJSON(data []byte) error + type V5WebsocketPublicOrderBookBids []struct + func (b *V5WebsocketPublicOrderBookBids) UnmarshalJSON(data []byte) error + type V5WebsocketPublicOrderBookData struct + Asks V5WebsocketPublicOrderBookAsks + Bids V5WebsocketPublicOrderBookBids + Seq int + Symbol SymbolV5 + UpdateID int + type V5WebsocketPublicOrderBookParamKey struct + Depth int + Symbol SymbolV5 + func (k *V5WebsocketPublicOrderBookParamKey) Topic() string + type V5WebsocketPublicOrderBookResponse struct + Data V5WebsocketPublicOrderBookData + TimeStamp int64 + Topic string + Type string + func (r *V5WebsocketPublicOrderBookResponse) Key() V5WebsocketPublicOrderBookParamKey + type V5WebsocketPublicService struct + func (s *V5WebsocketPublicService) Close() error + func (s *V5WebsocketPublicService) Ping() error + func (s *V5WebsocketPublicService) Run() error + func (s *V5WebsocketPublicService) Start(ctx context.Context, errHandler ErrHandler) error + func (s *V5WebsocketPublicService) SubscribeKline(key V5WebsocketPublicKlineParamKey, ...) (func() error, error) + func (s *V5WebsocketPublicService) SubscribeOrderBook(key V5WebsocketPublicOrderBookParamKey, ...) (func() error, error) + func (s *V5WebsocketPublicService) SubscribeTicker(key V5WebsocketPublicTickerParamKey, ...) (func() error, error) + type V5WebsocketPublicServiceI interface + Close func() error + Ping func() error + Run func() error + Start func(context.Context, ErrHandler) error + SubscribeKline func(V5WebsocketPublicKlineParamKey, func(V5WebsocketPublicKlineResponse) error) (func() error, error) + SubscribeOrderBook func(V5WebsocketPublicOrderBookParamKey, ...) (func() error, error) + SubscribeTicker func(V5WebsocketPublicTickerParamKey, func(V5WebsocketPublicTickerResponse) error) (func() error, error) + type V5WebsocketPublicTickerData struct + LinearInverse *V5WebsocketPublicTickerLinearInverseResult + Option *V5WebsocketPublicTickerOptionResult + Spot *V5WebsocketPublicTickerSpotResult + func (r *V5WebsocketPublicTickerData) UnmarshalJSON(data []byte) error + type V5WebsocketPublicTickerLinearInverseResult struct + Ask1Price string + Ask1Size string + BasisRate string + Bid1Price string + Bid1Size string + DeliveryFeeRate string + DeliveryTime string + FundingRate string + HighPrice24h string + IndexPrice string + LastPrice string + LowPrice24h string + MarkPrice string + NextFundingTime string + OpenInterest string + OpenInterestValue string + PredictedDeliveryPrice string + PrevPrice1h string + PrevPrice24h string + Price24hPercent string + Symbol SymbolV5 + TickDirection TickDirection + Turnover24h string + Volume24h string + type V5WebsocketPublicTickerOptionResult struct + AskIv string + AskPrice string + AskSize string + BidIv string + BidPrice string + BidSize string + Change24H string + Delta string + Gamma string + HighPrice24H string + IndexPrice string + LastPrice string + LowPrice24H string + MarkPrice string + MarkPriceIv string + OpenInterest string + PredictedDeliveryPrice string + Symbol SymbolV5 + Theta string + TotalTurnover string + TotalVolume string + Turnover24H string + UnderlyingPrice string + Vega string + Volume24H string + type V5WebsocketPublicTickerParamKey struct + Symbol SymbolV5 + func (k *V5WebsocketPublicTickerParamKey) Topic() string + type V5WebsocketPublicTickerResponse struct + CrossSeq int64 + Data V5WebsocketPublicTickerData + ID string + TimeStamp int64 + Topic string + Type string + func (r *V5WebsocketPublicTickerResponse) Key() V5WebsocketPublicTickerParamKey + type V5WebsocketPublicTickerSpotResult struct + HighPrice24H string + LastPrice string + LowPrice24H string + PrevPrice24H string + Price24HPcnt string + Symbol SymbolV5 + Turnover24H string + UsdIndexPrice string + Volume24H string + type V5WebsocketPublicTopic string + func (t V5WebsocketPublicTopic) String() string + type V5WebsocketService struct + func (s *V5WebsocketService) Private() (V5WebsocketPrivateServiceI, error) + func (s *V5WebsocketService) Public(category CategoryV5) (V5WebsocketPublicServiceI, error) + type V5WebsocketServiceI interface + Private func() (V5WebsocketPrivateService, error) + Public func(CategoryV5) (V5WebsocketPublicService, error) + type WebSocketClient struct + func NewWebsocketClient() *WebSocketClient + func (c *WebSocketClient) Spot() *SpotWebsocketService + func (c *WebSocketClient) Start(ctx context.Context, executors []WebsocketExecutor) + func (c *WebSocketClient) V5() *V5WebsocketService + func (c *WebSocketClient) WithAuth(key string, secret string) *WebSocketClient + func (c *WebSocketClient) WithBaseURL(url string) *WebSocketClient + type WebsocketExecutor interface + Close func() error + Ping func() error + Run func() error + type WithdrawStatusV5 string + type WithdrawTypeV5 int