Versions in this module Expand all Collapse all v1 v1.3.0 Oct 20, 2026 Changes in this version + const EU_TESTNET + const INVERSE_EU_MAINNET + const INVERSE_EU_TESTNET + const LINEAR_EU_MAINNET + const LINEAR_EU_TESTNET + const OPTION_EU_TESTNET + const SPOT_EU_MAINNET + const SPOT_EU_TESTNET + const SPREAD_EU_MAINNET + const SPREAD_EU_TESTNET + const WEBSOCKET_PRIVATE_EU_MAINNET + const WEBSOCKET_PRIVATE_EU_TESTNET + const WEBSOCKET_TRADE_EU_MAINNET + const WEBSOCKET_TRADE_EU_TESTNET v1.2.0 Oct 7, 2026 Changes in this version + const DEMO_ENV + const HONGKONG_ENV + const INVERSE_MAINNET + const INVERSE_TESTNET + const KAZAKHSTAN_ENV + const LINEAR_MAINNET + const LINEAR_TESTNET + const MAINNET + const MAINNET_BACKT + const NETHERLAND_ENV + const Name + const OPTION_TESTNET + const SPOT_MAINNET + const SPOT_TESTNET + const SPREAD_MAINNET + const SPREAD_TESTNET + const TESTNET + const TURKEY_ENV + const V3_CONTRACT_PRIVATE + const V3_SPOT_PRIVATE + const V3_UNIFIED_PRIVATE + const Version + const WEBSOCKET_PRIVATE_DEMO + const WEBSOCKET_PRIVATE_MAINNET + const WEBSOCKET_PRIVATE_TESTNET + const WEBSOCKET_TRADE_DEMO + const WEBSOCKET_TRADE_MAINNET + const WEBSOCKET_TRADE_TESTNET + var DebugWSRequest = false + func FormatTimestamp(t time.Time) int64 + func GetBatchOrderServerResponse(err error, data []byte, headers http.Header) (*models.BatchOrderServerResponse, error) + func GetCurrentTime() int64 + func GetIndexPriceKline(err error, data []byte, res *models.MarketIndexPriceKlineResponse) (*models.MarketIndexPriceKlineResponse, error) + func GetMarkPriceKline(err error, data []byte, res *models.MarketMarkPriceKlineResponse) (*models.MarketMarkPriceKlineResponse, error) + func GetMarketKlineResponse(err error, data []byte, res *models.MarketKlineResponse) (*models.MarketKlineResponse, *models.MarketKlineResponse, error) + func GetPremiumIndexKline(err error, data []byte, res *models.MarketPremiumIndexPriceKlineResponse) (*models.MarketPremiumIndexPriceKlineResponse, error) + func PrettyPrint(i interface{}) string + func SendRequest(ctx context.Context, opts []RequestOption, r *request, s *BybitClientRequest, ...) ([]byte, http.Header, error) + type BybitClientRequest struct + func (s *BybitClientRequest) AdjustCollateralAmount(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) AdjustCryptoLoanToValue(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) AmendBatchOrder(ctx context.Context, opts ...RequestOption) (res *models.BatchOrderServerResponse, err error) + func (s *BybitClientRequest) AmendOrder(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) AmendSpreadTradeOrder(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) ApplyFiatQuote(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) AssociateInsLoan(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) BatchSetCollateralCoin(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) BorrowCryptoLoan(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) BorrowFixedLoan(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) BorrowFlexibleLoan(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) BorrowSpotMarginLoan(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) C2cCancelRedeemFunds(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) C2cDepositFunds(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) C2cRedeemFunds(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CancelAllOrders(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CancelAllRFQ(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CancelAllSpreadTradeOrder(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CancelBatchOrder(ctx context.Context, opts ...RequestOption) (res *models.BatchOrderServerResponse, err error) + func (s *BybitClientRequest) CancelBorrowFixedLoan(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CancelOrder(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CancelRFQ(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CancelRFQQuote(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CancelSpreadTradeOrder(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CancelSupplyFixedLoan(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CancelWithdraw(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) ConfirmConvertQuote(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) ConfirmPositionRiskLimit(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CreateInternalTransfer(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CreateRFQ(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CreateRFQQuote(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CreateSubApiKey(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CreateSubMember(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CreateUniversalTransfer(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) CreateWithdraw(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) DeleteMasterAPIKey(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) DeleteSubAPIKey(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) DeleteSubUID(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) DistributeBrokerVoucher(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) ExecuteFiatTrade(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) ExecuteRFQQuote(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) ExecuteSmallBalanceConvert(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) FixedLoanRepaymentHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) FreezeSubUID(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetADLAlerts(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetAPIKeyInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetAccountInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetAccountInstrumentsInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetAccountWallet(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetAffiliateUserInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetAffiliateUserList(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetAllCoinsBalance(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetAllSubMembersDepositRecords(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetAllowedDepositCoin(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetApiRateLimit(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetAssetInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetAssetOrderRecord(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetAvailableAmountToRepay(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetBorrowHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetBorrowableCoins(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetBrokerAccountInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetBrokerEarning(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetC2cLendingAccountInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetC2cLendingCoinInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetC2cLendingOrders(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetClosePnl(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCoinGreeks(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCoinInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCoinState(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCollateralAdjustHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCollateralCoins(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCollateralInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetConvertCoinList(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetConvertHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetConvertStatus(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCryptoLoanAdjustHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCryptoLoanBorrowHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCryptoLoanBorrowInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCryptoLoanBorrowLimit(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCryptoLoanCollateralInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCryptoLoanCompletedHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCryptoLoanMaxCollateral(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCryptoLoanMaxCollateralAmount(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCryptoLoanPosition(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCryptoLoanRepaymentHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCryptoLoanUnpaidLoans(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetCustodianSubAccounts(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetDeliveryPrice(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetDeliveryRecord(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetDepositRecords(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetDisconnectProtectionInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetEarnProductInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetEarnRedeemOrder(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetEarnRedeemPosition(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetExchangeEntityList(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFeeGroupStructure(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFeeRates(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFiatBalance(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFiatCoinList(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFiatReferencePrice(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFiatTradeHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFixedBorrowContract(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFixedBorrowHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFixedBorrowingMarket(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFixedSupplyContract(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFixedSupplyHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFixedSupplyingMarket(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFlexibleBorrowHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFlexibleLoans(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFlexibleRepaymentHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetFundingRateHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetHistoryVolatility(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetHourlyYieldHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetIndexPriceComponents(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetIndexPriceKline(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetInsLoanInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetInsLoanOrders(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetInsLoanToValue(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetInsMarginCoinInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetInsRepayOrders(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetInstrumentInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetInternalDepositRecords(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetInternalTransferRecords(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetLeverageTokenInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetLeverageTokenMarket(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetLeverageTokenOrders(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetLongShortRatio(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetMMPState(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetMarkPriceKline(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetMarketInsurance(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetMarketKline(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetMarketRiskLimits(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetMarketTickers(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetMasterAccDepositAddress(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetMaxBorrowableAmount(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetMaxCollateralAmount(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetMovePositionHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetNewDeliveryPrice(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetOpenInterests(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetOpenOrders(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetOptionClosedPosition(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetOrderBookInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetOrderHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetOrderPriceLimit(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetPositionList(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetPositionTiers(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetPreUpgradeClosedPnl(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetPreUpgradeOptionDeliveryRecord(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetPreUpgradeOrderHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetPreUpgradeTradeHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetPreUpgradeTransactionLog(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetPreUpgradeUsdcSettlement(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetPremiumIndexPriceKline(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetPublicRecentTrades(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetRFQConfig(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetRFQHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetRFQList(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetRFQPublicTrades(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetRFQQuoteList(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetRFQQuoteRealtime(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetRFQRealtimePrice(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetRFQTradeList(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetRPIOrderBook(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetRenewOrderInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSelfMarketProtectionGroup(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetServerTime(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSingleCoinsBalance(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSmallBalanceConvertHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSmallBalanceConvertQuote(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSmallBalanceList(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpotBorrowQuota(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpotMarginAutoRepayMode(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpotMarginBorrowCoin(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpotMarginBorrowOrders(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpotMarginCoin(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpotMarginData(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpotMarginInterests(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpotMarginLoanAccountInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpotMarginRepaymentOrders(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpotMarginState(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpreadRecentTrade(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpreadTradeHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpreadTradeInstrumentsInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpreadTradeOrderBook(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpreadTradeOrderHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSpreadTradeTickers(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSubAccDepositAddress(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSubAccUids(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSubMemberDepositRecords(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSubUidApiKeysInfo(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSubUidList(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetSubUidListUnlimited(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetTieredCollateralData(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetTradeHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetTransactionLog(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetTransferableAmount(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetTransferableCoin(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetUidWalletType(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetUniversalTransferRecords(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetUsdcSettlement(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetUserSettingConfig(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetWithdrawalAddress(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetWithdrawalAmount(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetWithdrawalRecords(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) GetYieldHistory(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) ManualBorrow(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) ManualRepay(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) ManualRepayWithoutAssetConversion(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) ModifyMasterAPIKey(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) ModifySubAPIKey(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) MovePosition(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) PlaceBatchOrder(ctx context.Context, opts ...RequestOption) (res *models.BatchOrderServerResponse, err error) + func (s *BybitClientRequest) PlaceOrder(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) PlacePreCheckOrder(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) PlaceSpreadTradeOrder(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) PurchaseLeverageToken(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) QueryAll(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) QueryBrokerVoucherSpec(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) QueryCap(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) QueryDistributedBrokerVoucher(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) QueryFiatTrade(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) RedeemEarnOrder(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) RedeemLeverageToken(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) RenewBorrowOrder(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) RepayCollateral(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) RepayCryptoLoan(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) RepayFixedCollateral(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) RepayFixedLoan(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) RepayFlexibleLoan(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) RepayInsLoan(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) RepayLiability(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) RepaySpotMarginLoan(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) RequestConvertQuote(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) RequestTestFund(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) ResetMarketMakerProtection(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetApiRateLimit(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetCollateralCoin(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetDepositAccount(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetDisconnectCancelAll(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetLimitPriceAction(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetMarginMode(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetMarketMakerProtection(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetPositionAutoMargin(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetPositionLeverage(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetPositionRiskLimit(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetPositionTpslMode(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetPositionTradingStop(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetSpotHedgeMode(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetSpotMarginAutoRepayMode(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SetSpotMarginLeverage(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SupplyFixedLoan(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SwitchPositionMargin(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) SwitchPositionMode(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) ToggleSpotMarginTrade(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) UpdatePositionMargin(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (s *BybitClientRequest) UpgradeToUTA(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + type Client struct + APIKey string + APISecret string + BaseURL string + Debug bool + HTTPClient *http.Client + Logger *log.Logger + ProxyURL string + func NewBybitHttpClient(apiKey string, APISecret string, options ...ClientOption) *Client + func (c *Client) NewClassicalBybitServiceNoParams() *BybitClientRequest + func (c *Client) NewClassicalBybitServiceWithParams(params map[string]interface{}) *BybitClientRequest + func (c *Client) NewPlaceOrderService(category, symbol, side, orderType, qty string) *Order + func (c *Client) NewUtaBybitServiceNoParams() *BybitClientRequest + func (c *Client) NewUtaBybitServiceWithParams(params map[string]interface{}) *BybitClientRequest + type ClientOption func(*Client) + func WithBaseURL(baseURL string) ClientOption + func WithDebug(debug bool) ClientOption + func WithProxyURL(proxyURL string) ClientOption + type MessageHandler func(message string) error + type Order struct + func (order *Order) CloseOnTrigger(close bool) *Order + func (order *Order) Do(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) + func (order *Order) IsLeverage(isLeverage int) *Order + func (order *Order) MarketUnit(marketUnit string) *Order + func (order *Order) Mmp(mmp bool) *Order + func (order *Order) OrderFilter(filter string) *Order + func (order *Order) OrderIv(iv string) *Order + func (order *Order) OrderLinkId(orderLinkId string) *Order + func (order *Order) PositionIdx(idx int) *Order + func (order *Order) Price(price string) *Order + func (order *Order) ReduceOnly(reduce bool) *Order + func (order *Order) SlLimitPrice(price string) *Order + func (order *Order) SlOrderType(orderType string) *Order + func (order *Order) SlTriggerBy(triggerBy string) *Order + func (order *Order) SlippageTolerance(slippageTolerance string) *Order + func (order *Order) SlippageToleranceType(slippageToleranceType string) *Order + func (order *Order) SmpType(smp string) *Order + func (order *Order) StopLoss(loss string) *Order + func (order *Order) TakeProfit(profit string) *Order + func (order *Order) TimeInForce(tif string) *Order + func (order *Order) TpLimitPrice(price string) *Order + func (order *Order) TpOrderType(orderType string) *Order + func (order *Order) TpTriggerBy(triggerBy string) *Order + func (order *Order) TpslMode(mode string) *Order + func (order *Order) TriggerBy(triggerBy string) *Order + func (order *Order) TriggerDirection(direction int) *Order + func (order *Order) TriggerPrice(triggerPrice string) *Order + type RequestOption func(*request) + func WithRecvWindow(recvWindow string) RequestOption + type ServerResponse struct + RateLimitHeaders http.Header + Result interface{} + RetCode int + RetExtInfo struct{} + RetMsg string + Time int64 + func GetServerResponse(err error, data []byte, headers http.Header) (*ServerResponse, error) + type WebSocket struct + func NewBybitPrivateWebSocket(url, apiKey, apiSecret string, handler MessageHandler, ...) *WebSocket + func NewBybitPublicWebSocket(url string, handler MessageHandler, options ...WebsocketOption) *WebSocket + func (b *WebSocket) CloseError() error + func (b *WebSocket) Connect() *WebSocket + func (b *WebSocket) Disconnect() error + func (b *WebSocket) Done() <-chan struct{} + func (b *WebSocket) SendRequest(op string, args map[string]interface{}, headers map[string]string, ...) (*WebSocket, error) + func (b *WebSocket) SendSubscription(args []string) (*WebSocket, error) + func (b *WebSocket) SendTradeRequest(tradeTruest map[string]interface{}) (*WebSocket, error) + func (b *WebSocket) SetMessageHandler(handler MessageHandler) + type WebsocketOption func(*WebSocket) + func WithAutoReconnect(enabled bool) WebsocketOption + func WithMaxAliveTime(maxAliveTime string) WebsocketOption + func WithPingInterval(pingInterval int) WebsocketOption