BitMEX.Net AI API Map

June 29, 2026 ยท View on GitHub

This map helps AI assistants route common user intents to the actual BitMEX.Net methods.

Client Roots

NeedUse
REST clientnew BitMEXRestClient(...)
Socket clientnew BitMEXSocketClient(...)
Public market datarestClient.ExchangeApi.ExchangeData
Authenticated account datarestClient.ExchangeApi.Account
Orders, executions, positionsrestClient.ExchangeApi.Trading
Websocket subscriptionssocketClient.ExchangeApi
Shared REST abstractionrestClient.ExchangeApi.SharedClient
Shared socket abstractionsocketClient.ExchangeApi.SharedClient
Discover shared capabilitiesclient.ExchangeApi.SharedClient.Discover()

Market Data

IntentMethod
Server timeExchangeData.GetServerTimeAsync()
Active instrumentsExchangeData.GetActiveSymbolsAsync()
Instrument queryExchangeData.GetSymbolsAsync(...)
Active intervalsExchangeData.GetActiveIntervalsAsync()
Composite indexesExchangeData.GetCompositeIndexesAsync(...)
IndicesExchangeData.GetIndicesAsync()
Symbol USD volumesExchangeData.GetSymbolVolumesAsync()
Public tradesExchangeData.GetTradesAsync(symbol, ...)
CandlesExchangeData.GetKlinesAsync(symbol, BinPeriod.OneMinute, ...)
Order bookExchangeData.GetOrderBookAsync(symbol, limit)
Book ticker historyExchangeData.GetBookTickerHistoryAsync(symbol, ...)
Aggregated quote candlesExchangeData.GetAggregatedBookTickerHistoryAsync(symbol, BinPeriod.OneMinute, ...)
Funding historyExchangeData.GetFundingHistoryAsync(symbol, ...)
Settlement historyExchangeData.GetSettlementHistoryAsync(symbol, ...)
LiquidationsExchangeData.GetLiquidationsAsync(symbol, ...)
Insurance historyExchangeData.GetInsuranceAsync(asset, ...)
Public announcementsExchangeData.GetAnnouncementsAsync()
AssetsExchangeData.GetAssetsAsync()
Asset networksExchangeData.GetAssetNetworksAsync()

Account

IntentMethod
Account infoAccount.GetAccountInfoAsync()
BalancesAccount.GetBalancesAsync(asset)
Balance historyAccount.GetBalanceHistoryAsync(...)
Balance summaryAccount.GetBalanceSummaryAsync(...)
FeesAccount.GetFeesAsync()
Deposit addressAccount.GetDepositAddressAsync(asset, network)
Margin statusAccount.GetMarginStatusAsync(asset)
Transfer between accountsAccount.TransferAsync(asset, fromAccountId, toAccountId, quantity)
WithdrawAccount.WithdrawAsync(asset, network, quantity, ...)
Cancel withdrawalAccount.CancelWithdrawalAsync(transactId)
Saved addressesAccount.GetSavedAddressesAsync()
API key infoAccount.GetApiKeyInfoAsync()

Trading

IntentMethod
Place orderTrading.PlaceOrderAsync(...)
Get ordersTrading.GetOrdersAsync(...)
Edit orderTrading.EditOrderAsync(...)
Cancel one orderTrading.CancelOrderAsync(orderId: ...) or Trading.CancelOrderAsync(clientOrderId: ...)
Cancel multiple ordersTrading.CancelOrdersAsync(...)
Cancel all ordersTrading.CancelAllOrdersAsync(...)
Dead-man switchTrading.CancelAllAfterAsync(timeout)
User executionsTrading.GetUserExecutionsAsync(...)
User tradesTrading.GetUserTradesAsync(...)
PositionsTrading.GetPositionsAsync(...)
Cross leverageTrading.SetCrossMarginLeverageAsync(symbol, leverage)
Isolated leverageTrading.SetIsolatedMarginLeverageAsync(symbol, leverage)

Sockets

IntentMethod
TradesSubscribeToTradeUpdatesAsync(symbol, ...)
KlinesSubscribeToKlineUpdatesAsync(symbol, BinPeriod.OneMinute, ...)
Book tickerSubscribeToBookTickerUpdatesAsync(symbol, ...)
Aggregated book tickerSubscribeToAggregatedBookTickerUpdatesAsync(symbol, BinPeriod.OneMinute, ...)
Top order bookSubscribeToOrderBookUpdatesAsync(symbol, ...)
Incremental bookSubscribeToIncrementalOrderBookUpdatesAsync(symbol, IncrementalBookLimit.Top25, ...)
Symbol updatesSubscribeToSymbolUpdatesAsync(symbol, ...) or SubscribeToSymbolUpdatesAsync(SymbolCategory.Spot, ...)
FundingSubscribeToFundingUpdatesAsync(symbol, ...)
LiquidationsSubscribeToLiquidationUpdatesAsync(...)
Private balancesSubscribeToBalanceUpdatesAsync(...)
Private ordersSubscribeToOrderUpdatesAsync(...)
Private positionsSubscribeToPositionUpdatesAsync(...)
Private executionsSubscribeToUserTradeUpdatesAsync(...)

Shared APIs

Use SharedApis for exchange-agnostic code across BitMEX.Net and other CryptoExchange.Net exchange libraries.

IntentPattern
Shared REST clientnew BitMEXRestClient().ExchangeApi.SharedClient
Shared socket clientnew BitMEXSocketClient().ExchangeApi.SharedClient
Discover shared capabilitiesclient.ExchangeApi.SharedClient.Discover()
Shared assetsIAssetsRestClient.GetAssetsAsync(new GetAssetsRequest())
Shared spot symbolsISpotSymbolRestClient.GetSpotSymbolsAsync(new GetSymbolsRequest())
Shared futures symbolsIFuturesSymbolRestClient.GetFuturesSymbolsAsync(new GetSymbolsRequest())
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

Symbol And Quantity Cheatsheet

TopicBitMEX.Net guidance
Classic inverse perpXBTUSD
Spot exampleETH_USDT
Discover symbolsExchangeData.GetActiveSymbolsAsync()
Kline enumBinPeriod
Spot/asset conversionBitMEXUtils.UpdateSymbolInfoAsync() plus extension methods
Credential shapenew BitMEXCredentials(key, secret)

Avoid / Replace

AvoidUse
SpotApiExchangeApi
UsdFuturesApiExchangeApi
FuturesApiV2ExchangeApi
SpotApiV3ExchangeApi
GetOpenOrdersAsyncGetOrdersAsync with filters when needed
GetTickerAsyncGetSymbolsAsync or GetActiveSymbolsAsync for current instrument fields
KlineInterval.OneMinuteBinPeriod.OneMinute
OrderType.StopOrderType.StopMarket
BTC-USDT, BTC/USDT, tBTCUSDBitMEX-native symbols such as XBTUSD
BitMEXCredentials(key, secret, passphrase)BitMEXCredentials(key, secret)