You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>.
Shared spot/futures symbol queries apply GetSymbolsRequest filters and include display names and base/quote asset type metadata. BitMEX commodity, fiat, and equity instruments are classified where instrument metadata identifies them; quote assets are classified as crypto stablecoins.
Shared quantity-bearing results use SharedOrderQuantity to distinguish base-asset, quote-asset, and contract values. Check SharedOrderBook.QuantityType before interpreting order-book entry quantities; shared REST spot books use base-asset units and shared REST derivative books use contracts.
For shared socket subscriptions, keep the concrete socket client and unsubscribe with await socketClient.UnsubscribeAsync(subscription.Data).
Result Handling
Situation
Pattern
REST success check
if (!result.Success) { Console.WriteLine(result.Error); return; }
Socket subscription success check
WebSocketResult<UpdateSubscription> sub = await ...; if (!sub.Success) { Console.WriteLine(sub.Error); return; }
Read REST data
Read result.Data only after result.Success
Shared helper data
Read ExchangeCallResult<T>.Data only after result.Success
Symbol And Quantity Cheatsheet
Topic
BitMEX.Net guidance
Classic inverse perp
XBTUSD
Spot example
ETH_USDT
Discover symbols
ExchangeData.GetActiveSymbolsAsync()
Kline enum
BinPeriod
Spot/asset conversion
BitMEXUtils.UpdateSymbolInfoAsync() plus extension methods
Shared quantity units
Read SharedOrderQuantity; check SharedOrderBook.QuantityType for book entries
Credential shape
new BitMEXCredentials(key, secret)
Avoid / Replace
Avoid
Use
SpotApi
ExchangeApi
UsdFuturesApi
ExchangeApi
FuturesApiV2
ExchangeApi
SpotApiV3
ExchangeApi
GetOpenOrdersAsync
GetOrdersAsync with filters when needed
GetTickerAsync
GetSymbolsAsync or GetActiveSymbolsAsync for current instrument fields