BitMart.Net AI API Quick Map

June 29, 2026 ยท View on GitHub

Use this file to route common user intents to the correct BitMart.Net client member. If a method name or parameter is not listed here, inspect BitMart.Net/Interfaces/Clients/** before generating code.

Client Roots

IntentUse
REST callsnew BitMartRestClient()
WebSocket streamsnew BitMartSocketClient()
API key authenticationoptions.ApiCredentials = new BitMartCredentials("key", "secret", "memoOrPass")
Live environmentBitMartEnvironment.Live
Dependency injectionservices.AddBitMart(options => { ... })
Spot RESTclient.SpotApi
USD futures RESTclient.UsdFuturesApi
Spot WebSocketsocketClient.SpotApi
USD futures WebSocketsocketClient.UsdFuturesApi
Shared spot RESTclient.SpotApi.SharedClient
Shared USD futures RESTclient.UsdFuturesApi.SharedClient
Shared spot socketsocketClient.SpotApi.SharedClient
Shared USD futures socketsocketClient.UsdFuturesApi.SharedClient
Discover shared capabilitiesclient.SpotApi.SharedClient.Discover() / client.UsdFuturesApi.SharedClient.Discover()

Symbols

MarketFormat
SpotBTC_USDT, ETH_USDT
USD futuresBTCUSDT, ETHUSDT
Wrong for BitMart spotBTCUSDT, BTC-USDT, BTC/USDT, tBTCUSD
Wrong for BitMart USD futuresBTC_USDT, BTC-USDT, BTC/USDT

Spot Exchange Data REST

User intentBitMart.Net member
Get server statusclient.SpotApi.ExchangeData.GetServerStatusAsync()
Get server timeclient.SpotApi.ExchangeData.GetServerTimeAsync()
Get assetsclient.SpotApi.ExchangeData.GetAssetsAsync()
Get symbolsclient.SpotApi.ExchangeData.GetSymbolsAsync()
Get symbol namesclient.SpotApi.ExchangeData.GetSymbolNamesAsync()
Get tickerclient.SpotApi.ExchangeData.GetTickerAsync("BTC_USDT")
Get all tickersclient.SpotApi.ExchangeData.GetTickersAsync()
Get asset deposit/withdraw infoclient.SpotApi.ExchangeData.GetAssetDepositWithdrawInfoAsync("USDT")
Get klinesclient.SpotApi.ExchangeData.GetKlinesAsync("BTC_USDT", KlineInterval.OneMinute)
Get kline historyclient.SpotApi.ExchangeData.GetKlineHistoryAsync("BTC_USDT", KlineInterval.OneMinute)
Get recent tradesclient.SpotApi.ExchangeData.GetTradesAsync("BTC_USDT")
Get order bookclient.SpotApi.ExchangeData.GetOrderBookAsync("BTC_USDT", limit: 20)

Spot Account REST

User intentBitMart.Net member
Get funding balancesclient.SpotApi.Account.GetFundingBalancesAsync("USDT")
Get spot balancesclient.SpotApi.Account.GetSpotBalancesAsync()
Get deposit addressclient.SpotApi.Account.GetDepositAddressAsync("USDT")
Get withdrawal quotaclient.SpotApi.Account.GetWithdrawalQuotaAsync("USDT")
Withdrawclient.SpotApi.Account.WithdrawAsync("USDT", quantity, targetAddress: address)
Get deposit historyclient.SpotApi.Account.GetDepositHistoryAsync("USDT")
Get withdrawal historyclient.SpotApi.Account.GetWithdrawalHistoryAsync("USDT")
Get deposit/withdraw detailsclient.SpotApi.Account.GetDepositWithdrawalAsync(id)
Get isolated margin accountsclient.SpotApi.Account.GetIsolatedMarginAccountsAsync("BTC_USDT")
Isolated margin transferclient.SpotApi.Account.IsolatedMarginTransferAsync("BTC_USDT", "USDT", quantity, direction)
Get base trade feesclient.SpotApi.Account.GetBaseTradeFeesAsync()
Get symbol trade feeclient.SpotApi.Account.GetSymbolTradeFeeAsync("BTC_USDT")
Get withdrawal addressesclient.SpotApi.Account.GetWithdrawalAddressesAsync()

Spot Trading REST

User intentBitMart.Net member
Place spot orderclient.SpotApi.Trading.PlaceOrderAsync("BTC_USDT", OrderSide.Buy, OrderType.Limit, quantity, price)
Place market buy with quote quantityclient.SpotApi.Trading.PlaceOrderAsync("BTC_USDT", OrderSide.Buy, OrderType.Market, quoteQuantity: quoteQuantity)
Place multiple ordersclient.SpotApi.Trading.PlaceMultipleOrdersAsync("BTC_USDT", orders)
Cancel spot orderclient.SpotApi.Trading.CancelOrderAsync("BTC_USDT", orderId: orderId)
Cancel multiple spot ordersclient.SpotApi.Trading.CancelOrdersAsync("BTC_USDT", orderIds: ids)
Cancel all spot ordersclient.SpotApi.Trading.CancelAllOrderAsync("BTC_USDT")
Place margin orderclient.SpotApi.Trading.PlaceMarginOrderAsync("BTC_USDT", OrderSide.Buy, OrderType.Limit, quantity, price)
Get orderclient.SpotApi.Trading.GetOrderAsync(orderId)
Get order by client order idclient.SpotApi.Trading.GetOrderByClientOrderIdAsync(clientOrderId)
Get open ordersclient.SpotApi.Trading.GetOpenOrdersAsync("BTC_USDT")
Get closed ordersclient.SpotApi.Trading.GetClosedOrdersAsync("BTC_USDT")
Get user tradesclient.SpotApi.Trading.GetUserTradesAsync("BTC_USDT")
Get order tradesclient.SpotApi.Trading.GetOrderTradesAsync(orderId)

Spot Margin REST

User intentBitMart.Net member
Borrowclient.SpotApi.Margin.BorrowAsync("BTC_USDT", "USDT", quantity)
Repayclient.SpotApi.Margin.RepayAsync("BTC_USDT", "USDT", quantity)
Get borrow historyclient.SpotApi.Margin.GetBorrowHistoryAsync("BTC_USDT")
Get repay historyclient.SpotApi.Margin.GetRepayHistoryAsync("BTC_USDT", asset: "USDT")
Get borrow infoclient.SpotApi.Margin.GetBorrowInfoAsync("BTC_USDT")

Spot Subaccount REST

User intentBitMart.Net member
Transfer sub to main as mainclient.SpotApi.SubAccount.TransferSubToMainForMainAsync(clientOrderId, "USDT", quantity, subAccount)
Transfer sub to main as subclient.SpotApi.SubAccount.TransferSubToMainForSubAsync(clientOrderId, "USDT", quantity)
Transfer main to subclient.SpotApi.SubAccount.TransferMainToSubAccountAsync(clientOrderId, "USDT", quantity, subAccount)
Transfer sub to subclient.SpotApi.SubAccount.TransferSubAccountToSubAccountAsync(clientOrderId, quantity, "USDT", fromAccount, toAccount)
Main transfer historyclient.SpotApi.SubAccount.GetSubAccountTransferHistoryForMainAsync(limit)
Sub transfer historyclient.SpotApi.SubAccount.GetSubAccountTransferHistoryAsync(limit)
Get subaccount balanceclient.SpotApi.SubAccount.GetSubAcccountBalanceAsync(subAccount, "USDT")
Get subaccount listclient.SpotApi.SubAccount.GetSubAccountListAsync()

USD Futures Exchange Data REST

User intentBitMart.Net member
Get contractsclient.UsdFuturesApi.ExchangeData.GetContractsAsync("BTCUSDT")
Get order bookclient.UsdFuturesApi.ExchangeData.GetOrderBookAsync("BTCUSDT")
Get open interestclient.UsdFuturesApi.ExchangeData.GetOpenInterestAsync("BTCUSDT")
Get current funding rateclient.UsdFuturesApi.ExchangeData.GetCurrentFundingRateAsync("BTCUSDT")
Get futures klinesclient.UsdFuturesApi.ExchangeData.GetKlinesAsync("BTCUSDT", FuturesKlineInterval.OneMinute, startTime, endTime)
Get futures mark klinesclient.UsdFuturesApi.ExchangeData.GetMarkKlinesAsync("BTCUSDT", FuturesKlineInterval.OneMinute, startTime, endTime)
Get funding rate historyclient.UsdFuturesApi.ExchangeData.GetFundingRateHistoryAsync("BTCUSDT")
Get leverage bracketsclient.UsdFuturesApi.ExchangeData.GetLeverageBracketsAsync("BTCUSDT")
Get recent tradesclient.UsdFuturesApi.ExchangeData.GetRecentTradesAsync("BTCUSDT")

USD Futures Account REST

User intentBitMart.Net member
Get balancesclient.UsdFuturesApi.Account.GetBalancesAsync()
Get transfer historyclient.UsdFuturesApi.Account.GetTransferHistoryAsync("USDT")
Transfer spot/futuresclient.UsdFuturesApi.Account.TransferAsync("USDT", quantity, FuturesTransferType.SpotToContract)
Set leverageclient.UsdFuturesApi.Account.SetLeverageAsync("BTCUSDT", leverage, MarginType.CrossMargin)
Get symbol trade feeclient.UsdFuturesApi.Account.GetSymbolTradeFeeAsync("BTCUSDT")
Get transaction historyclient.UsdFuturesApi.Account.GetTransactionHistoryAsync("BTCUSDT")
Set position modeclient.UsdFuturesApi.Account.SetPositionModeAsync(PositionMode.OneWayMode)
Get position modeclient.UsdFuturesApi.Account.GetPositionModeAsync()

USD Futures Trading REST

User intentBitMart.Net member
Get orderclient.UsdFuturesApi.Trading.GetOrderAsync("BTCUSDT", orderId)
Get closed ordersclient.UsdFuturesApi.Trading.GetClosedOrdersAsync("BTCUSDT")
Get open ordersclient.UsdFuturesApi.Trading.GetOpenOrdersAsync("BTCUSDT")
Get trigger ordersclient.UsdFuturesApi.Trading.GetTriggerOrdersAsync("BTCUSDT")
Get positionsclient.UsdFuturesApi.Trading.GetPositionsAsync("BTCUSDT")
Get position riskclient.UsdFuturesApi.Trading.GetPositionRiskAsync("BTCUSDT")
Get user tradesclient.UsdFuturesApi.Trading.GetUserTradesAsync("BTCUSDT")
Place futures orderclient.UsdFuturesApi.Trading.PlaceOrderAsync("BTCUSDT", FuturesSide.BuyOpenLong, FuturesOrderType.Limit, quantity, price, leverage, marginType, orderMode)
Place trailing orderclient.UsdFuturesApi.Trading.PlaceTrailingOrderAsync(...)
Cancel trailing orderclient.UsdFuturesApi.Trading.CancelTrailingOrderAsync("BTCUSDT", orderId)
Cancel orderclient.UsdFuturesApi.Trading.CancelOrderAsync("BTCUSDT", orderId: orderId)
Cancel all futures orders on symbolclient.UsdFuturesApi.Trading.CancelOrdersAsync("BTCUSDT")
Place trigger orderclient.UsdFuturesApi.Trading.PlaceTriggerOrderAsync(...)
Cancel trigger orderclient.UsdFuturesApi.Trading.CancelTriggerOrderAsync("BTCUSDT", orderId)
Place TP/SL orderclient.UsdFuturesApi.Trading.PlaceTpSlOrderAsync(...)
Edit orderclient.UsdFuturesApi.Trading.EditOrderAsync("BTCUSDT", orderId, price, quantity)
Edit TP/SL orderclient.UsdFuturesApi.Trading.EditTpSlOrderAsync(...)
Edit trigger orderclient.UsdFuturesApi.Trading.EditTriggerOrderAsync(...)
Edit preset trigger orderclient.UsdFuturesApi.Trading.EditPresetTriggerOrderAsync(...)
Cancel all afterclient.UsdFuturesApi.Trading.CancelAllAfterAsync("BTCUSDT", TimeSpan.FromSeconds(30))

USD Futures Subaccount REST

User intentBitMart.Net member
Transfer sub to main as mainclient.UsdFuturesApi.SubAccount.TransferSubToMainForMainAsync("USDT", quantity, subAccount, clientOrderId)
Transfer main to sub as mainclient.UsdFuturesApi.SubAccount.TransferMainToSubForMainAsync("USDT", quantity, subAccount, clientOrderId)
Transfer sub to main as subclient.UsdFuturesApi.SubAccount.TransferSubToMainForSubAsync("USDT", quantity, clientOrderId)
Get subaccount balanceclient.UsdFuturesApi.SubAccount.GetSubAcccountBalanceAsync(subAccount, "USDT")
Main transfer historyclient.UsdFuturesApi.SubAccount.GetSubAccountTransferHistoryForMainAsync(subAccount, limit)
Sub transfer historyclient.UsdFuturesApi.SubAccount.GetSubAccountTransferHistoryAsync(limit)

WebSocket

User intentBitMart.Net member
Spot ticker updatessocketClient.SpotApi.SubscribeToTickerUpdatesAsync("BTC_USDT", handler)
Spot kline updatessocketClient.SpotApi.SubscribeToKlineUpdatesAsync("BTC_USDT", KlineStreamInterval.OneMinute, handler)
Spot partial order booksocketClient.SpotApi.SubscribeToPartialOrderBookUpdatesAsync("BTC_USDT", 20, handler)
Spot incremental order booksocketClient.SpotApi.SubscribeToOrderBookUpdatesAsync("BTC_USDT", handler)
Spot tradessocketClient.SpotApi.SubscribeToTradeUpdatesAsync("BTC_USDT", handler)
Spot book tickersocketClient.SpotApi.SubscribeToBookTickerUpdatesAsync("BTC_USDT", handler)
Spot private orderssocketClient.SpotApi.SubscribeToOrderUpdatesAsync(handler)
Spot private balancessocketClient.SpotApi.SubscribeToBalanceUpdatesAsync(handler)
Futures ticker updatessocketClient.UsdFuturesApi.SubscribeToTickerUpdatesAsync("BTCUSDT", handler)
Futures all ticker updatessocketClient.UsdFuturesApi.SubscribeToTickerUpdatesAsync(handler)
Futures tradessocketClient.UsdFuturesApi.SubscribeToTradeUpdatesAsync("BTCUSDT", handler)
Futures funding ratessocketClient.UsdFuturesApi.SubscribeToFundingRateUpdatesAsync("BTCUSDT", handler)
Futures order booksocketClient.UsdFuturesApi.SubscribeToOrderBookUpdatesAsync("BTCUSDT", 20, handler)
Futures order book snapshotsocketClient.UsdFuturesApi.SubscribeToOrderBookSnapshotUpdatesAsync("BTCUSDT", 20, handler)
Futures incremental order booksocketClient.UsdFuturesApi.SubscribeToOrderBookIncrementalUpdatesAsync("BTCUSDT", 20, handler)
Futures book tickersocketClient.UsdFuturesApi.SubscribeToBookTickerUpdatesAsync("BTCUSDT", handler)
Futures klinesocketClient.UsdFuturesApi.SubscribeToKlineUpdatesAsync("BTCUSDT", FuturesStreamKlineInterval.OneMinute, handler)
Futures mark klinesocketClient.UsdFuturesApi.SubscribeToMarkKlineUpdatesAsync("BTCUSDT", FuturesStreamKlineInterval.OneMinute, handler)
Futures private balancessocketClient.UsdFuturesApi.SubscribeToBalanceUpdatesAsync(handler)
Futures private positionssocketClient.UsdFuturesApi.SubscribeToPositionUpdatesAsync(handler)
Futures private orderssocketClient.UsdFuturesApi.SubscribeToOrderUpdatesAsync(handler)

SharedApis

User intentBitMart.Net member or interface
Shared spot REST clientnew BitMartRestClient().SpotApi.SharedClient
Shared futures REST clientnew BitMartRestClient().UsdFuturesApi.SharedClient
Shared spot socket clientnew BitMartSocketClient().SpotApi.SharedClient
Shared futures socket clientnew BitMartSocketClient().UsdFuturesApi.SharedClient
Discover shared capabilitiesclient.SpotApi.SharedClient.Discover() / client.UsdFuturesApi.SharedClient.Discover()
Shared spot ticker RESTISpotTickerRestClient.GetSpotTickerAsync(new GetTickerRequest(symbol))
Shared futures ticker RESTIFuturesTickerRestClient.GetFuturesTickerAsync(new GetTickerRequest(symbol))
Shared ticker socketITickerSocketClient.SubscribeToTickerUpdatesAsync(...)
Shared order book socketIOrderBookSocketClient.SubscribeToOrderBookUpdatesAsync(...)

Shared REST calls return HttpResult<T> / HttpResult. Shared socket subscriptions return WebSocketResult<UpdateSubscription>. Shared non-I/O symbol/cache helpers such as symbol support checks return ExchangeCallResult<T>.

For shared socket subscriptions, keep the concrete socket client and unsubscribe with await socketClient.UnsubscribeAsync(subscription.Data).

Result Handling

SituationPattern
REST success checkif (!result.Success) { Console.WriteLine(result.Error); return; }
Socket subscription success checkWebSocketResult<UpdateSubscription> sub = await ...; if (!sub.Success) { Console.WriteLine(sub.Error); return; }
Read REST dataRead result.Data only after result.Success
Shared helper dataRead ExchangeCallResult<T>.Data only after result.Success

Common Routing Pitfalls

Do not useUse instead
Raw HttpClientBitMartRestClient / BitMartSocketClient
Credentials without passphraseBitMartCredentials("key", "secret", "memoOrPass")
SpotApiV3SpotApi
FuturesApiV2UsdFuturesApi
CoinFuturesApiNot available in this library
Spot symbol BTCUSDTBTC_USDT
Futures symbol BTC_USDTBTCUSDT
BTC-USDT, BTC/USDT, tBTCUSDBitMart-native symbol format
.Data without .Success checkCheck .Success first
Shared socket UnsubscribeAsync(...)Keep the concrete socket client and call socketClient.UnsubscribeAsync(subscription.Data)