Weex.Net AI API Quick Map

July 21, 2026 ยท View on GitHub

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

Client Roots

IntentUse
REST callsnew WeexRestClient()
WebSocket streamsnew WeexSocketClient()
API key authenticationoptions.ApiCredentials = new WeexCredentials("key", "secret", "passphrase")
Live environmentWeexEnvironment.Live
Custom environmentWeexEnvironment.CreateCustom(...)
Dependency injectionservices.AddWeex(options => { ... })

Spot REST

User intentWeex.Net member
Get server timeclient.SpotApi.ExchangeData.GetServerTimeAsync()
Get assets and network infoclient.SpotApi.ExchangeData.GetAssetsAsync()
Get spot exchange infoclient.SpotApi.ExchangeData.GetExchangeInfoAsync()
Get spot exchange info for symbolsclient.SpotApi.ExchangeData.GetExchangeInfoAsync(new[] { "ETHUSDT" })
Get spot pricesclient.SpotApi.ExchangeData.GetPricesAsync(new[] { "ETHUSDT" })
Get all spot pricesclient.SpotApi.ExchangeData.GetPricesAsync()
Get spot 24h tickerclient.SpotApi.ExchangeData.GetTickersAsync(new[] { "ETHUSDT" })
Get all spot tickersclient.SpotApi.ExchangeData.GetTickersAsync()
Get recent tradesclient.SpotApi.ExchangeData.GetRecentTradesAsync("ETHUSDT")
Get klines/candlesclient.SpotApi.ExchangeData.GetKlinesAsync("ETHUSDT", KlineInterval.OneMinute)
Get order bookclient.SpotApi.ExchangeData.GetOrderBookAsync("ETHUSDT")
Get book tickerclient.SpotApi.ExchangeData.GetBookTickersAsync(new[] { "ETHUSDT" })
Get trading symbolsclient.SpotApi.Account.GetTradingSymbolsAsync()
Get account info and balancesclient.SpotApi.Account.GetAccountInfoAsync()
Get account billsclient.SpotApi.Account.GetAccountBillsAsync(...)
Get funding billsclient.SpotApi.Account.GetFundingBillsAsync(...)
Get transfer historyclient.SpotApi.Account.GetTransferHistoryAsync(...)
Place spot orderclient.SpotApi.Trading.PlaceOrderAsync(...)
Cancel spot orderclient.SpotApi.Trading.CancelOrderAsync(orderId: orderId)
Cancel spot order by client idclient.SpotApi.Trading.CancelOrderAsync(clientOrderId: clientOrderId)
Cancel all spot orders for symbolclient.SpotApi.Trading.CancelAllSymbolOrdersAsync("ETHUSDT")
Cancel multiple spot ordersclient.SpotApi.Trading.CancelOrdersAsync(orderIds: orderIds)
Query spot orderclient.SpotApi.Trading.GetOrderAsync(orderId: orderId)
Query spot order by client idclient.SpotApi.Trading.GetOrderAsync(clientOrderId: clientOrderId)
Get open spot ordersclient.SpotApi.Trading.GetOpenOrdersAsync("ETHUSDT")
Get spot order historyclient.SpotApi.Trading.GetOrderHistoryAsync("ETHUSDT")
Get spot user tradesclient.SpotApi.Trading.GetUserTradesAsync("ETHUSDT")

Futures REST

User intentWeex.Net member
Get futures server timeclient.FuturesApi.ExchangeData.GetServerTimeAsync()
Get futures exchange infoclient.FuturesApi.ExchangeData.GetExchangeInfoAsync()
Get futures exchange info for symbolclient.FuturesApi.ExchangeData.GetExchangeInfoAsync("ETHUSDT")
Get futures order bookclient.FuturesApi.ExchangeData.GetOrderBookAsync("ETHUSDT")
Get futures 24h tickerclient.FuturesApi.ExchangeData.GetTickersAsync("ETHUSDT")
Get all futures 24h tickersclient.FuturesApi.ExchangeData.GetTickersAsync()
Get futures book tickerclient.FuturesApi.ExchangeData.GetBookTickersAsync("ETHUSDT")
Get futures recent tradesclient.FuturesApi.ExchangeData.GetRecentTradesAsync("ETHUSDT")
Get futures klinesclient.FuturesApi.ExchangeData.GetKlinesAsync("ETHUSDT", FuturesKlineInterval.OneMinute)
Get index price klinesclient.FuturesApi.ExchangeData.GetIndexPriceKlinesAsync("ETHUSDT", FuturesKlineInterval.OneMinute)
Get mark price klinesclient.FuturesApi.ExchangeData.GetMarkPriceKlinesAsync("ETHUSDT", FuturesKlineInterval.OneMinute)
Get kline historyclient.FuturesApi.ExchangeData.GetKlineHistoryAsync("ETHUSDT", KlineInterval.OneMinute)
Get index/mark priceclient.FuturesApi.ExchangeData.GetPriceAsync("ETHUSDT")
Get open interestclient.FuturesApi.ExchangeData.GetOpenInterestAsync("ETHUSDT")
Get current funding rateclient.FuturesApi.ExchangeData.GetFundingRateAsync("ETHUSDT")
Get funding rate historyclient.FuturesApi.ExchangeData.GetFundingRateHistoryAsync("ETHUSDT")
Get futures trading symbolsclient.FuturesApi.ExchangeData.GetTradingSymbolsAsync()
Get futures balancesclient.FuturesApi.Account.GetBalancesAsync()
Get futures feesclient.FuturesApi.Account.GetTradingFeesAsync("ETHUSDT")
Get account configclient.FuturesApi.Account.GetAccountConfigAsync()
Get symbol configclient.FuturesApi.Account.GetSymbolConfigAsync("ETHUSDT")
Get futures account billsclient.FuturesApi.Account.GetAccountBillsAsync(...)
Set margin modeclient.FuturesApi.Account.SetMarginModeAsync("ETHUSDT", MarginType.Isolated)
Set leverageclient.FuturesApi.Account.SetLeverageAsync("ETHUSDT", marginMode: MarginType.Isolated, isolatedLongLeverage: 5, isolatedShortLeverage: 5)
Adjust isolated marginclient.FuturesApi.Account.AdjustIsolatedMarginAsync(positionId, quantity, MarginAdjustType.Increase)
Set auto append marginclient.FuturesApi.Account.SetAutoAppendMarginAsync(positionId, true)
Get all positionsclient.FuturesApi.Trading.GetPositionsAsync()
Get symbol positionsclient.FuturesApi.Trading.GetPositionAsync("ETHUSDT")
Place futures orderclient.FuturesApi.Trading.PlaceOrderAsync(...)
Cancel futures orderclient.FuturesApi.Trading.CancelOrderAsync(orderId: orderId)
Cancel futures order by client idclient.FuturesApi.Trading.CancelOrderAsync(clientOrderId: clientOrderId)
Cancel all futures ordersclient.FuturesApi.Trading.CancelAllOrdersAsync("ETHUSDT")
Cancel multiple futures ordersclient.FuturesApi.Trading.CancelOrdersAsync(orderIds: orderIds)
Close positionsclient.FuturesApi.Trading.ClosePositionsAsync("ETHUSDT")
Query futures orderclient.FuturesApi.Trading.GetOrderAsync(orderId)
Get open futures ordersclient.FuturesApi.Trading.GetOpenOrdersAsync("ETHUSDT")
Get futures order historyclient.FuturesApi.Trading.GetOrderHistoryAsync("ETHUSDT")
Get futures user tradesclient.FuturesApi.Trading.GetUserTradesAsync("ETHUSDT")
Place conditional orderclient.FuturesApi.Trading.PlaceConditionalOrderAsync(...)
Cancel conditional orderclient.FuturesApi.Trading.CancelConditionalOrderAsync(orderId)
Cancel all conditional ordersclient.FuturesApi.Trading.CancelAllConditionalOrdersAsync("ETHUSDT")
Get open conditional ordersclient.FuturesApi.Trading.GetOpenConditionalOrdersAsync("ETHUSDT")
Get conditional order historyclient.FuturesApi.Trading.GetConditionalOrderHistoryAsync("ETHUSDT")
Place take-profit/stop-loss orderclient.FuturesApi.Trading.PlaceTpSlOrderAsync(...)
Edit take-profit/stop-loss orderclient.FuturesApi.Trading.EditTpSlOrderAsync(orderId, triggerPrice)

Spot WebSocket

User intentWeex.Net member
Subscribe spot ticker updatessocketClient.SpotApi.SubscribeToTickerUpdatesAsync(symbol, handler)
Subscribe many spot ticker updatessocketClient.SpotApi.SubscribeToTickerUpdatesAsync(symbols, handler)
Subscribe spot book tickersocketClient.SpotApi.SubscribeToBookTickerUpdatesAsync(symbol, handler)
Subscribe spot order booksocketClient.SpotApi.SubscribeToOrderBookUpdatesAsync(symbol, 15, handler)
Subscribe spot klinessocketClient.SpotApi.SubscribeToKlineUpdatesAsync(symbol, KlineInterval.OneMinute, handler)
Subscribe spot tradessocketClient.SpotApi.SubscribeToTradeUpdatesAsync(symbol, handler)
Subscribe spot account updatessocketClient.SpotApi.SubscribeToAccountUpdatesAsync(handler)
Subscribe spot order updatessocketClient.SpotApi.SubscribeToOrderUpdatesAsync(handler)
Subscribe spot user trade updatessocketClient.SpotApi.SubscribeToUserTradeUpdatesAsync(handler)

Futures WebSocket

User intentWeex.Net member
Subscribe futures ticker updatessocketClient.FuturesApi.SubscribeToTickerUpdatesAsync(symbol, handler)
Subscribe many futures ticker updatessocketClient.FuturesApi.SubscribeToTickerUpdatesAsync(symbols, handler)
Subscribe futures klinessocketClient.FuturesApi.SubscribeToKlineUpdatesAsync(symbol, KlineInterval.OneMinute, handler)
Subscribe futures order booksocketClient.FuturesApi.SubscribeToOrderBookUpdatesAsync(symbol, 15, handler)
Subscribe futures tradessocketClient.FuturesApi.SubscribeToTradeUpdatesAsync(symbol, handler)
Subscribe futures account updatessocketClient.FuturesApi.SubscribeToAccountUpdatesAsync(handler)
Subscribe futures position updatessocketClient.FuturesApi.SubscribeToPositionUpdatesAsync(handler)
Subscribe futures order updatessocketClient.FuturesApi.SubscribeToOrderUpdatesAsync(handler)
Subscribe futures user trade updatessocketClient.FuturesApi.SubscribeToUserTradeUpdatesAsync(handler)

SharedApis

User intentWeex.Net member or interface
Shared spot REST clientnew WeexRestClient().SpotApi.SharedClient
Shared futures REST clientnew WeexRestClient().FuturesApi.SharedClient
Shared spot socket clientnew WeexSocketClient().SpotApi.SharedClient
Shared futures socket clientnew WeexSocketClient().FuturesApi.SharedClient
Query/filter shared spot symbolsISpotSymbolRestClient.GetSpotSymbolsAsync(new GetSymbolsRequest(...))
Read cached shared spot symbol metadataISpotSymbolRestClient.SpotSymbolCatalog (refreshed by a successful symbol query)
Query/filter shared futures symbolsIFuturesSymbolRestClient.GetFuturesSymbolsAsync(new GetSymbolsRequest(...))
Read cached shared futures symbol metadataIFuturesSymbolRestClient.FuturesSymbolCatalog (refreshed by a successful symbol query)
Shared spot ticker RESTISpotTickerRestClient.GetSpotTickerAsync(new GetTickerRequest(symbol))
Shared spot order RESTISpotOrderRestClient.PlaceSpotOrderAsync(...)
Shared futures order RESTIFuturesOrderRestClient.PlaceFuturesOrderAsync(...)
Shared funding RESTIFundingRateRestClient.GetFundingRateAsync(...)
Shared leverage RESTILeverageRestClient.SetLeverageAsync(...)
Shared ticker socketITickerSocketClient.SubscribeToTickerUpdatesAsync(...)
Shared order socketISpotOrderSocketClient / IFuturesOrderSocketClient
Shared position socketIPositionSocketClient
Discover shared capabilitiesclient.SpotApi.SharedClient.Discover() or the equivalent futures/socket SharedClient root

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

Shared spot and futures symbol results include display names and asset type/subtype metadata. GetSymbolsRequest filters are applied before results are returned.

Result Handling

SituationPattern
REST success checkDirect and shared REST methods return HttpResult<T> / HttpResult
Socket subscription success checkDirect and shared subscriptions return WebSocketResult<UpdateSubscription>
Generic success checkif (!result.Success) { Console.WriteLine(result.Error); return; }
Read result dataRead result.Data only after result.Success
Retry decisionRetry only when result.Error?.IsTransient == true
CancellationPass ct: cancellationToken

Common Routing Pitfalls

Do not useUse instead
WeexClientWeexRestClient
ApiCredentialsWeexCredentials("key", "secret", "passphrase")
UsdFuturesApi / CoinFuturesApiFuturesApi
SpotApi.ExchangeData.GetTickerAsync(...)SpotApi.ExchangeData.GetTickersAsync(new[] { symbol })
FuturesOrderType for regular futures ordersOrderType
SpotApi.Trading.CancelOrderAsync(symbol, orderId)SpotApi.Trading.CancelOrderAsync(orderId: orderId)
.Data without .Success checkCheck .Success first
ITickerSocketClient.UnsubscribeAsync(...)Keep the concrete socket client and call socketClient.UnsubscribeAsync(subscription.Data)
Testnet environmentWeexEnvironment.Live or WeexEnvironment.CreateCustom(...)