CryptoCom.Net AI API Quick Map

June 29, 2026 ยท View on GitHub

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

Client Roots

IntentUse
REST callsnew CryptoComRestClient()
WebSocket streams and socket API requestsnew CryptoComSocketClient()
API key authenticationoptions.ApiCredentials = new CryptoComCredentials("key", "secret")
Live environmentCryptoComEnvironment.Live
Sandbox environmentCryptoComEnvironment.Sandbox
Dependency injectionservices.AddCryptoCom(options => { ... })
REST API rootclient.ExchangeApi
Socket API rootsocketClient.ExchangeApi

Exchange Data REST

User intentCryptoCom.Net member
Get server timeclient.ExchangeApi.ExchangeData.GetServerTimeAsync()
Get instruments / symbolsclient.ExchangeApi.ExchangeData.GetSymbolsAsync()
Get risk parametersclient.ExchangeApi.ExchangeData.GetRiskParametersAsync()
Get one tickerclient.ExchangeApi.ExchangeData.GetTickersAsync("BTC_USDT")
Get all tickersclient.ExchangeApi.ExchangeData.GetTickersAsync()
Get order bookclient.ExchangeApi.ExchangeData.GetOrderBookAsync("BTC_USDT", 50)
Get recent public tradesclient.ExchangeApi.ExchangeData.GetTradeHistoryAsync("BTC_USDT")
Get klines/candlesclient.ExchangeApi.ExchangeData.GetKlinesAsync("BTC_USDT", KlineInterval.OneMinute)
Get index/mark/funding valuation historyclient.ExchangeApi.ExchangeData.GetValuationsAsync(symbol, valuationType)
Get expired settlement pricesclient.ExchangeApi.ExchangeData.GetExpiredSettlementPriceAsync(SymbolType.Perpetual)
Get insurance fund historyclient.ExchangeApi.ExchangeData.GetInsuranceAsync(asset)
Get announcementsclient.ExchangeApi.ExchangeData.GetAnnouncementsAsync()

Account REST

User intentCryptoCom.Net member
Get balancesclient.ExchangeApi.Account.GetBalancesAsync()
Get balance historyclient.ExchangeApi.Account.GetBalanceHistoryAsync(Timeframe.OneDay)
Get account infoclient.ExchangeApi.Account.GetAccountInfoAsync()
Get account settingsclient.ExchangeApi.Account.GetAccountSettingsAsync()
Set account settingsclient.ExchangeApi.Account.SetAccountSettingsAsync(...)
Set account leverageclient.ExchangeApi.Account.SetAccountLeverageAsync(accountId, leverage)
Get transaction historyclient.ExchangeApi.Account.GetTransactionHistoryAsync(...)
Get fee ratesclient.ExchangeApi.Account.GetFeeRatesAsync()
Get symbol fee rateclient.ExchangeApi.Account.GetSymbolFeeRateAsync("BTC_USDT")
Get asset network infoclient.ExchangeApi.Account.GetAssetsAsync()
Get deposit addressesclient.ExchangeApi.Account.GetDepositAddressesAsync("USDT")
Get deposit historyclient.ExchangeApi.Account.GetDepositHistoryAsync(...)
Get withdrawal historyclient.ExchangeApi.Account.GetWithdrawalHistoryAsync(...)
Withdraw assetclient.ExchangeApi.Account.WithdrawAsync(...)
Create isolated margin transferclient.ExchangeApi.Account.CreateIsolatedMarginTransferAsync(...)
Set isolated margin leverageclient.ExchangeApi.Account.SetIsolatedMarginLeverageAsync(...)

Trading REST

User intentCryptoCom.Net member
Get positionsclient.ExchangeApi.Trading.GetPositionsAsync()
Get one symbol positionsclient.ExchangeApi.Trading.GetPositionsAsync("ETHUSD_PERP")
Place orderclient.ExchangeApi.Trading.PlaceOrderAsync(...)
Place spot limit orderclient.ExchangeApi.Trading.PlaceOrderAsync("BTC_USDT", OrderSide.Buy, OrderType.Limit, quantity: ..., price: ...)
Place market order by base quantityclient.ExchangeApi.Trading.PlaceOrderAsync(symbol, side, OrderType.Market, quantity: ...)
Place market order by quote quantityclient.ExchangeApi.Trading.PlaceOrderAsync(symbol, side, OrderType.Market, quoteQuantity: ...)
Place trigger orderclient.ExchangeApi.Trading.PlaceOrderAsync(..., triggerPrice: ..., triggerPriceType: ...)
Place isolated margin orderclient.ExchangeApi.Trading.PlaceOrderAsync(..., isolatedMargin: true, leverage: ...)
Cancel orderclient.ExchangeApi.Trading.CancelOrderAsync(orderId: orderId)
Cancel by client order idclient.ExchangeApi.Trading.CancelOrderAsync(clientOrderId: clientOrderId)
Cancel all ordersclient.ExchangeApi.Trading.CancelAllOrdersAsync(symbol)
Close positionclient.ExchangeApi.Trading.ClosePositionAsync("ETHUSD_PERP", OrderType.Market)
Get open ordersclient.ExchangeApi.Trading.GetOpenOrdersAsync(symbol)
Get order detailclient.ExchangeApi.Trading.GetOrderAsync(orderId: orderId)
Get order by client idclient.ExchangeApi.Trading.GetOrderAsync(clientOrderId: clientOrderId)
Get closed ordersclient.ExchangeApi.Trading.GetClosedOrdersAsync(...)
Get user tradesclient.ExchangeApi.Trading.GetUserTradesAsync(...)
Place multiple ordersclient.ExchangeApi.Trading.PlaceMultipleOrdersAsync(orders)
Cancel multiple ordersclient.ExchangeApi.Trading.CancelOrdersAsync(orders)
Place OCO orderclient.ExchangeApi.Trading.PlaceOcoOrderAsync(order1, order2)
Cancel OCO orderclient.ExchangeApi.Trading.CancelOcoOrderAsync(symbol, listId)
Get OCO orderclient.ExchangeApi.Trading.GetOcoOrderAsync(symbol, listId)
Edit orderclient.ExchangeApi.Trading.EditOrderAsync(newQuantity, newPrice, orderId: orderId)

Staking REST

User intentCryptoCom.Net member
Stakeclient.ExchangeApi.Staking.StakeAsync(symbol, quantity)
Unstakeclient.ExchangeApi.Staking.UnstakeAsync(symbol, quantity)
Get staking positionsclient.ExchangeApi.Staking.GetStakingPositionsAsync(symbol)
Get staking symbolsclient.ExchangeApi.Staking.GetStakingSymbolsAsync()
Get open stake/unstake requestsclient.ExchangeApi.Staking.GetOpenStakingRequestsAsync(...)
Get staking historyclient.ExchangeApi.Staking.GetStakingHistoryAsync(...)
Get staking reward historyclient.ExchangeApi.Staking.GetStakingRewardHistoryAsync(...)
Convert staking assetclient.ExchangeApi.Staking.ConvertAsync(...)
Get open conversion requestsclient.ExchangeApi.Staking.GetOpenConvertRequestsAsync(...)
Get conversion rateclient.ExchangeApi.Staking.GetConvertRateAsync(symbol)

Public WebSocket

User intentCryptoCom.Net member
Subscribe ticker updatessocketClient.ExchangeApi.SubscribeToTickerUpdatesAsync(symbol, handler)
Subscribe many ticker updatessocketClient.ExchangeApi.SubscribeToTickerUpdatesAsync(symbols, handler)
Subscribe order book snapshotssocketClient.ExchangeApi.SubscribeToOrderBookSnapshotUpdatesAsync(symbol, depth, handler)
Subscribe order book deltassocketClient.ExchangeApi.SubscribeToOrderBookUpdatesAsync(symbol, depth, handler)
Subscribe klinessocketClient.ExchangeApi.SubscribeToKlineUpdatesAsync(symbol, interval, handler)
Subscribe public tradessocketClient.ExchangeApi.SubscribeToTradeUpdatesAsync(symbol, handler)
Subscribe index pricesocketClient.ExchangeApi.SubscribeToIndexPriceUpdatesAsync(symbol, handler)
Subscribe mark pricesocketClient.ExchangeApi.SubscribeToMarkPriceUpdatesAsync(symbol, handler)
Subscribe settlement pricessocketClient.ExchangeApi.SubscribeToSettlementUpdatesAsync(symbol, handler)
Subscribe funding ratessocketClient.ExchangeApi.SubscribeToFundingRateUpdatesAsync(symbol, handler)
Subscribe estimated funding ratessocketClient.ExchangeApi.SubscribeToEstimatedFundingRateUpdatesAsync(symbol, handler)

Private WebSocket And Socket API

User intentCryptoCom.Net member
Subscribe user orderssocketClient.ExchangeApi.SubscribeToOrderUpdatesAsync(handler)
Subscribe symbol user orderssocketClient.ExchangeApi.SubscribeToOrderUpdatesAsync(symbol, handler)
Subscribe user tradessocketClient.ExchangeApi.SubscribeToUserTradeUpdatesAsync(handler)
Subscribe balancessocketClient.ExchangeApi.SubscribeToBalanceUpdatesAsync(handler)
Subscribe positionssocketClient.ExchangeApi.SubscribeToPositionUpdatesAsync(handler)
Subscribe position and balance updatessocketClient.ExchangeApi.SubscribeToPositionBalanceUpdatesAsync(handler)
Socket API get balancessocketClient.ExchangeApi.GetBalancesAsync()
Socket API get positionssocketClient.ExchangeApi.GetPositionsAsync(symbol)
Socket API place ordersocketClient.ExchangeApi.PlaceOrderAsync(...)
Socket API cancel ordersocketClient.ExchangeApi.CancelOrderAsync(orderId: orderId)
Socket API cancel all orderssocketClient.ExchangeApi.CancelAllOrdersAsync(symbol)
Socket API close positionsocketClient.ExchangeApi.ClosePositionAsync(symbol, OrderType.Market)
Socket API get open orderssocketClient.ExchangeApi.GetOpenOrdersAsync(symbol)
Socket API place multiple orderssocketClient.ExchangeApi.PlaceMultipleOrdersAsync(orders)
Socket API cancel multiple orderssocketClient.ExchangeApi.CancelOrdersAsync(orders)
Socket API place OCO ordersocketClient.ExchangeApi.PlaceOcoOrderAsync(order1, order2)
Socket API withdrawsocketClient.ExchangeApi.WithdrawAsync(...)
Cancel orders on disconnectsocketClient.ExchangeApi.SetCancelOnDisconnectAsync()

SharedApis

Use SharedApis for exchange-agnostic code across Crypto.com, Binance, Bybit, OKX, Kraken, and other CryptoExchange.Net libraries.

User intentCryptoCom.Net member or interface
Shared REST clientnew CryptoComRestClient().ExchangeApi.SharedClient
Shared socket clientnew CryptoComSocketClient().ExchangeApi.SharedClient
Discover shared capabilitiesclient.ExchangeApi.SharedClient.Discover()
Shared spot ticker RESTISpotTickerRestClient.GetSpotTickerAsync(new GetTickerRequest(symbol))
Shared futures ticker RESTIFuturesTickerRestClient.GetFuturesTickerAsync(new GetTickerRequest(symbol))
Shared spot order RESTISpotOrderRestClient.PlaceSpotOrderAsync(...)
Shared futures order RESTIFuturesOrderRestClient.PlaceFuturesOrderAsync(...)
Shared balances RESTIBalanceRestClient.GetBalancesAsync(...)
Shared fees RESTIFeeRestClient.GetFeeAsync(...)
Shared ticker socketITickerSocketClient.SubscribeToTickerUpdatesAsync(...)
Shared order book socketIOrderBookSocketClient.SubscribeToOrderBookUpdatesAsync(...)
Shared balance socketIBalanceSocketClient.SubscribeToBalanceUpdatesAsync(...)
Shared position socketIPositionSocketClient.SubscribeToPositionUpdatesAsync(...)

Shared REST methods return HttpResult<T> / HttpResult; shared socket subscriptions return WebSocketResult<UpdateSubscription>; shared symbol/cache helpers such as SupportsSpotSymbolAsync and SupportsFuturesSymbolAsync can 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 checkif (!sub.Success) { Console.WriteLine(sub.Error); return; } where sub is WebSocketResult<UpdateSubscription>
Socket request success checkif (!query.Success) { Console.WriteLine(query.Error); return; } where query is QueryResult<T> or QueryResult
Read REST dataRead result.Data only after result.Success
Read shared helper dataRead ExchangeCallResult<T>.Data only after .Success
Retry decisionRetry only when result.Error?.IsTransient == true
CancellationPass ct: cancellationToken
Batch order resultCheck each nested CallResult<T> in the response data

Common Routing Pitfalls

Do not useUse instead
CryptoComClientCryptoComRestClient
ApiCredentialsCryptoComCredentials
SpotApiExchangeApi
UsdFuturesApi / CoinFuturesApiExchangeApi.Trading with derivative symbols
GeneralApiExchangeApi.Account, ExchangeApi.Trading, or ExchangeApi.Staking
GetTickerAsyncGetTickersAsync
BTCUSDT by defaultBTC_USDT for spot examples, or exact symbol from GetSymbolsAsync()
.Data without .Success checkCheck .Success first
ITickerSocketClient.UnsubscribeAsync(...)Keep the concrete socket client and call socketClient.UnsubscribeAsync(subscription.Data)
Custom clientOrderId by defaultOmit it unless external correlation is required