CoinW.Net AI API Quick Map

June 29, 2026 ยท View on GitHub

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

Client Roots

IntentUse
REST callsnew CoinWRestClient()
WebSocket streamsnew CoinWSocketClient()
API key authenticationoptions.ApiCredentials = new CoinWCredentials("key", "secret")
Live environmentCoinWEnvironment.Live
Custom environmentCoinWEnvironment.CreateCustom(...)
Dependency injectionservices.AddCoinW(options => { ... })
Spot symbol format"BTC_USDT"
USDT futures symbol format"BTC" / "ETH"

Spot REST

User intentCoinW.Net member
Get all spot tickersclient.SpotApi.ExchangeData.GetTickersAsync()
Get latest spot ticker for one symbolclient.SpotApi.ExchangeData.GetTickersAsync() then filter by Symbol == "BTC_USDT"
Get spot assets and networksclient.SpotApi.ExchangeData.GetAssetsAsync()
Get spot symbolsclient.SpotApi.ExchangeData.GetSymbolsAsync()
Get spot order bookclient.SpotApi.ExchangeData.GetOrderBookAsync("BTC_USDT")
Get spot order book with limitclient.SpotApi.ExchangeData.GetOrderBookAsync("BTC_USDT", limit)
Get recent spot tradesclient.SpotApi.ExchangeData.GetRecentTradesAsync("BTC_USDT")
Get recent spot trades by timeclient.SpotApi.ExchangeData.GetRecentTradesAsync("BTC_USDT", startTime, endTime)
Get spot klines/candlesclient.SpotApi.ExchangeData.GetKlinesAsync("BTC_USDT", KlineInterval.OneMinute)
Get spot balancesclient.SpotApi.Account.GetBalancesAsync()
Get detailed spot balancesclient.SpotApi.Account.GetBalancesDetailsAsync()
Get deposit/withdrawal history for one assetclient.SpotApi.Account.GetDepositWithdrawalHistoryAsync("USDT")
Get deposit/withdrawal history for assetsclient.SpotApi.Account.GetDepositWithdrawalHistoryAsync(new[] { "BTC", "USDT" })
Get deposit addressesclient.SpotApi.Account.GetDepositAddressesAsync("USDT", "TRC20")
Withdraw assetclient.SpotApi.Account.WithdrawAsync(asset, quantity, address, network, ...)
Cancel withdrawalclient.SpotApi.Account.CancelWithdrawalAsync(withdrawalId)
Transfer between account typesclient.SpotApi.Account.TransferAsync(fromAccount, toAccount, asset, quantity)
Place spot orderclient.SpotApi.Trading.PlaceOrderAsync("BTC_USDT", OrderSide.Buy, OrderType.Limit, ...)
Place spot market orderclient.SpotApi.Trading.PlaceOrderAsync("BTC_USDT", OrderSide.Buy, OrderType.Market, quantity: ...)
Cancel spot orderclient.SpotApi.Trading.CancelOrderAsync(orderId)
Cancel all spot ordersclient.SpotApi.Trading.CancelAllOrdersAsync("BTC_USDT")
Get open spot ordersclient.SpotApi.Trading.GetOpenOrdersAsync("BTC_USDT")
Get spot order detailsclient.SpotApi.Trading.GetOrderAsync(orderId)
Get spot order transaction historyclient.SpotApi.Trading.GetOrderTransactionHistoryAsync("BTC_USDT")
Get spot user tradesclient.SpotApi.Trading.GetUserTradesAsync("BTC_USDT")

Futures REST

User intentCoinW.Net member
Get futures symbols/instrumentsclient.FuturesApi.ExchangeData.GetSymbolsAsync()
Get one futures symbol/instrumentclient.FuturesApi.ExchangeData.GetSymbolsAsync("BTC")
Get futures tickerclient.FuturesApi.ExchangeData.GetTickerAsync("BTC")
Get all futures tickersclient.FuturesApi.ExchangeData.GetTickersAsync()
Get futures klinesclient.FuturesApi.ExchangeData.GetKlinesAsync("BTC", FuturesKlineInterval.OneMinute, ...)
Get last funding rateclient.FuturesApi.ExchangeData.GetLastFundingRateAsync("BTC")
Get futures order bookclient.FuturesApi.ExchangeData.GetOrderBookAsync("BTC")
Get recent futures tradesclient.FuturesApi.ExchangeData.GetRecentTradesAsync("BTC")
Get margin requirementsclient.FuturesApi.ExchangeData.GetMarginRequirementsAsync()
Get futures public trade historyclient.FuturesApi.ExchangeData.GetTradeHistoryAsync("BTC")
Get futures leverage by position or orderclient.FuturesApi.Account.GetLeverageAsync(positionId, orderId)
Get margin rate for positionclient.FuturesApi.Account.GetMarginRateAsync(positionId)
Get max buy/sell sizeclient.FuturesApi.Account.GetMaxTradeSizeAsync(symbol, leverage, marginType, orderPrice)
Get max transferable quantityclient.FuturesApi.Account.GetMaxTransferableAsync()
Get futures balancesclient.FuturesApi.Account.GetBalancesAsync()
Get futures feesclient.FuturesApi.Account.GetFeesAsync()
Get futures margin modeclient.FuturesApi.Account.GetMarginModeAsync()
Set futures margin modeclient.FuturesApi.Account.SetMarginModeAsync(marginType, positionCombineType)
Enable or disable mega couponclient.FuturesApi.Account.ToggleMegaCouponAsync(enabled)
Get max position sizeclient.FuturesApi.Account.GetMaxPositionSizeAsync("BTC")
Place futures orderclient.FuturesApi.Trading.PlaceOrderAsync("BTC", PositionSide.Long, FuturesOrderType.Market, quantity, leverage, ...)
Place futures limit/planned orderclient.FuturesApi.Trading.PlaceOrderAsync("BTC", PositionSide.Long, FuturesOrderType.Plan, quantity, leverage, price: price)
Place multiple futures ordersclient.FuturesApi.Trading.PlaceMultipleOrdersAsync(requests)
Close futures positionclient.FuturesApi.Trading.ClosePositionAsync(positionId, ...)
Close futures positions by client idsclient.FuturesApi.Trading.ClosePositionsByClientOrderIdAsync(clientOrderIds)
Close all futures positions for symbolclient.FuturesApi.Trading.CloseAllPositionsAsync("BTC")
Reverse futures positionclient.FuturesApi.Trading.ReversePositionAsync(positionId)
Adjust position marginclient.FuturesApi.Trading.AdjustMarginAsync(positionId, addMargin, reduceMargin)
Set futures TP/SLclient.FuturesApi.Trading.SetTpSlAsync(orderOrPositionId, symbol, ...)
Set trailing TP/SLclient.FuturesApi.Trading.SetTrailingTpSlAsync(positionId, callbackRate, ...)
Edit futures orderclient.FuturesApi.Trading.EditOrderAsync(orderId, symbol, side, orderType, quantity, leverage, ...)
Cancel futures orderclient.FuturesApi.Trading.CancelOrderAsync(orderId)
Cancel multiple futures ordersclient.FuturesApi.Trading.CancelOrdersAsync(orderIds)
Get futures open orders pageclient.FuturesApi.Trading.GetOpenOrdersAsync("BTC", FuturesOrderType.Plan)
Get futures open orders by filterclient.FuturesApi.Trading.GetOpenOrdersAsync(FuturesOrderType.Plan, symbol: "BTC")
Get futures open order countclient.FuturesApi.Trading.GetOpenOrderCountAsync()
Get futures TP/SL ordersclient.FuturesApi.Trading.GetTpSlAsync(...)
Get futures trailing TP/SL ordersclient.FuturesApi.Trading.GetTrailingTpSlAsync()
Get futures order history, 7 daysclient.FuturesApi.Trading.GetOrderHistory7DaysAsync(...)
Get futures order history, 3 monthsclient.FuturesApi.Trading.GetOrderHistory3MonthsAsync(...)
Get futures positions by symbolclient.FuturesApi.Trading.GetPositionsAsync("BTC")
Get all futures positionsclient.FuturesApi.Trading.GetPositionsAsync()
Get futures position historyclient.FuturesApi.Trading.GetPositionHistoryAsync(...)
Get futures transactions, 3 daysclient.FuturesApi.Trading.GetTransactionHistory3DaysAsync("BTC")
Get futures transactions, 3 monthsclient.FuturesApi.Trading.GetTransactionHistory3MonthsAsync("BTC")

Spot WebSocket

User intentCoinW.Net member
Subscribe spot ticker updatessocketClient.SpotApi.SubscribeToTickerUpdatesAsync("BTC_USDT", handler)
Subscribe all spot ticker updatessocketClient.SpotApi.SubscribeToAllTickerUpdatesAsync(handler)
Subscribe spot incremental order booksocketClient.SpotApi.SubscribeToOrderBookUpdatesAsync("BTC_USDT", handler)
Subscribe spot partial order book snapshotssocketClient.SpotApi.SubscribeToPartialOrderBookUpdatesAsync("BTC_USDT", handler)
Subscribe spot klinessocketClient.SpotApi.SubscribeToKlineUpdatesAsync("BTC_USDT", KlineIntervalStream.OneMinute, handler)
Subscribe spot tradessocketClient.SpotApi.SubscribeToTradeUpdatesAsync("BTC_USDT", handler)
Subscribe spot balance updatessocketClient.SpotApi.SubscribeToBalanceUpdatesAsync(handler)
Subscribe spot order updatessocketClient.SpotApi.SubscribeToOrderUpdatesAsync(handler)

Futures WebSocket

User intentCoinW.Net member
Subscribe futures ticker updatessocketClient.FuturesApi.SubscribeToTickerUpdatesAsync("BTC", handler)
Subscribe futures order book updatessocketClient.FuturesApi.SubscribeToOrderBookUpdatesAsync("BTC", handler)
Subscribe futures trade updatessocketClient.FuturesApi.SubscribeToTradeUpdatesAsync("BTC", handler)
Subscribe futures klinessocketClient.FuturesApi.SubscribeToKlineUpdatesAsync("BTC", FuturesKlineIntervalStream.OneMinute, handler)
Subscribe futures index pricesocketClient.FuturesApi.SubscribeToIndexPriceUpdatesAsync("BTC", handler)
Subscribe futures mark pricesocketClient.FuturesApi.SubscribeToMarkPriceUpdatesAsync("BTC", handler)
Subscribe futures funding ratesocketClient.FuturesApi.SubscribeToFundingRateUpdatesAsync("BTC", handler)
Subscribe futures order updatessocketClient.FuturesApi.SubscribeToOrderUpdatesAsync(handler)
Subscribe futures position updatessocketClient.FuturesApi.SubscribeToPositionUpdatesAsync(handler)
Subscribe futures position detail updatessocketClient.FuturesApi.SubscribeToPositionDetailUpdatesAsync(handler)
Subscribe futures balance updatessocketClient.FuturesApi.SubscribeToBalanceUpdatesAsync(handler)
Subscribe futures margin config updatessocketClient.FuturesApi.SubscribeToMarginConfigUpdatesAsync(handler)

SharedApis

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

User intentCoinW.Net member or interface
Shared spot REST clientnew CoinWRestClient().SpotApi.SharedClient
Shared futures REST clientnew CoinWRestClient().FuturesApi.SharedClient
Shared spot socket clientnew CoinWSocketClient().SpotApi.SharedClient
Shared futures socket clientnew CoinWSocketClient().FuturesApi.SharedClient
Discover shared capabilitiesclient.SpotApi.SharedClient.Discover() / client.FuturesApi.SharedClient.Discover()
Shared spot ticker RESTISpotTickerRestClient.GetSpotTickerAsync(new GetTickerRequest(symbol))
Shared spot order RESTISpotOrderRestClient.PlaceSpotOrderAsync(...)
Shared futures order RESTIFuturesOrderRestClient.PlaceFuturesOrderAsync(...)
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
Retry decisionRetry only when result.Error?.IsTransient == true
CancellationPass ct: cancellationToken

Common Routing Pitfalls

Do not useUse instead
CoinWClientCoinWRestClient / CoinWSocketClient
ApiCredentialsCoinWCredentials
SpotApi.ExchangeData.GetTickerAsync("BTC_USDT")GetTickersAsync() then filter the returned array
SpotApi.ExchangeData.GetServerTimeAsync()CoinW.Net does not expose a server time method
UsdFuturesApi / CoinFuturesApiFuturesApi
Binance spot symbol "BTCUSDT"CoinW spot symbol "BTC_USDT"
Futures symbol "BTC_USDT" for USDT perpetualsCoinW futures symbol "BTC"
.Data without .Success checkCheck .Success first
Custom clientOrderId by defaultLet CoinW generate ids unless correlation is required