Aster.Net AI API Quick Map

July 21, 2026 ยท View on GitHub

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

Client Roots

IntentUse
REST callsnew AsterRestClient()
WebSocket streamsnew AsterSocketClient()
V3 API authenticationoptions.ApiCredentials = new AsterCredentials().WithV3("userPrivateKey", "signerPrivateKey")
Live environmentAsterEnvironment.Live
Dependency injectionservices.AddAster(options => { ... })
Spot V3 RESTclient.SpotV3Api
Futures V3 RESTclient.FuturesV3Api
Spot V3 socketsocketClient.SpotV3Api
Futures V3 socketsocketClient.FuturesV3Api

Spot V3 REST

User intentAster.Net member
Get server timeclient.SpotV3Api.ExchangeData.GetServerTimeAsync()
Get spot exchange infoclient.SpotV3Api.ExchangeData.GetExchangeInfoAsync()
Get latest spot tickerclient.SpotV3Api.ExchangeData.GetTickerAsync("BTCUSDT")
Get all spot tickersclient.SpotV3Api.ExchangeData.GetTickersAsync()
Get spot priceclient.SpotV3Api.ExchangeData.GetPriceAsync("BTCUSDT")
Get all spot pricesclient.SpotV3Api.ExchangeData.GetPricesAsync()
Get spot order bookclient.SpotV3Api.ExchangeData.GetOrderBookAsync("BTCUSDT")
Get recent tradesclient.SpotV3Api.ExchangeData.GetRecentTradesAsync("BTCUSDT")
Get historical tradesclient.SpotV3Api.ExchangeData.GetTradeHistoryAsync("BTCUSDT")
Get aggregate tradesclient.SpotV3Api.ExchangeData.GetAggregatedTradeHistoryAsync("BTCUSDT")
Get klines/candlesclient.SpotV3Api.ExchangeData.GetKlinesAsync("BTCUSDT", KlineInterval.OneMinute)
Get book tickerclient.SpotV3Api.ExchangeData.GetBookTickerAsync("BTCUSDT")
Get book tickersclient.SpotV3Api.ExchangeData.GetBookTickersAsync()
Get account info and balancesclient.SpotV3Api.Account.GetAccountInfoAsync()
Get user commission rateclient.SpotV3Api.Account.GetUserCommissionRateAsync("BTCUSDT")
Transfer between spot and futuresclient.SpotV3Api.Account.TransferAsync(...)
Start spot user streamclient.SpotV3Api.Account.StartUserStreamAsync()
Keep alive spot user streamclient.SpotV3Api.Account.KeepAliveUserStreamAsync(listenKey)
Stop spot user streamclient.SpotV3Api.Account.StopUserStreamAsync(listenKey)
Place spot orderclient.SpotV3Api.Trading.PlaceOrderAsync(...)
Query spot orderclient.SpotV3Api.Trading.GetOrderAsync(symbol, orderId)
Get open spot ordersclient.SpotV3Api.Trading.GetOpenOrdersAsync(symbol)
Get all spot ordersclient.SpotV3Api.Trading.GetOrdersAsync(symbol)
Cancel spot orderclient.SpotV3Api.Trading.CancelOrderAsync(symbol, orderId)
Cancel all spot ordersclient.SpotV3Api.Trading.CancelAllOrdersAsync(symbol)
Get spot user tradesclient.SpotV3Api.Trading.GetUserTradesAsync(symbol)

Futures V3 REST

User intentAster.Net member
Get futures exchange infoclient.FuturesV3Api.ExchangeData.GetExchangeInfoAsync()
Get futures server timeclient.FuturesV3Api.ExchangeData.GetServerTimeAsync()
Get futures tickerclient.FuturesV3Api.ExchangeData.GetTickerAsync("ETHUSDT")
Get all futures tickersclient.FuturesV3Api.ExchangeData.GetTickersAsync()
Get futures priceclient.FuturesV3Api.ExchangeData.GetPriceAsync("ETHUSDT")
Get all futures pricesclient.FuturesV3Api.ExchangeData.GetPricesAsync()
Get futures order bookclient.FuturesV3Api.ExchangeData.GetOrderBookAsync("ETHUSDT")
Get futures klinesclient.FuturesV3Api.ExchangeData.GetKlinesAsync("ETHUSDT", KlineInterval.OneMinute)
Get mark priceclient.FuturesV3Api.ExchangeData.GetMarkPriceAsync("ETHUSDT")
Get all mark pricesclient.FuturesV3Api.ExchangeData.GetMarkPricesAsync()
Get mark price klinesclient.FuturesV3Api.ExchangeData.GetMarkPriceKlinesAsync("ETHUSDT", KlineInterval.OneMinute)
Get index price klinesclient.FuturesV3Api.ExchangeData.GetIndexPriceKlinesAsync("ETHUSDT", KlineInterval.OneMinute)
Get funding ratesclient.FuturesV3Api.ExchangeData.GetFundingRatesAsync("ETHUSDT")
Get funding infoclient.FuturesV3Api.ExchangeData.GetFundingInfoAsync()
Get book tickerclient.FuturesV3Api.ExchangeData.GetBookTickerAsync("ETHUSDT")
Get account infoclient.FuturesV3Api.Account.GetAccountInfoAsync()
Get balancesclient.FuturesV3Api.Account.GetBalancesAsync()
Set leverageclient.FuturesV3Api.Account.SetLeverageAsync(symbol, leverage)
Set margin typeclient.FuturesV3Api.Account.SetMarginTypeAsync(symbol, MarginType.Isolated)
Get position modeclient.FuturesV3Api.Account.GetPositionModeAsync()
Set position modeclient.FuturesV3Api.Account.SetPositionModeAsync(...)
Get multi-asset modeclient.FuturesV3Api.Account.GetMultiAssetModeAsync()
Set multi-asset modeclient.FuturesV3Api.Account.SetMultiAssetModeAsync(...)
Modify isolated marginclient.FuturesV3Api.Account.ModifyIsolatedMarginAsync(...)
Get position margin historyclient.FuturesV3Api.Account.GetPositionMarginChangeHistoryAsync(symbol)
Get income historyclient.FuturesV3Api.Account.GetIncomeHistoryAsync(...)
Get leverage bracketsclient.FuturesV3Api.Account.GetLeverageBracketsAsync(symbol)
Get ADL quantile estimationclient.FuturesV3Api.Account.GetPositionAdlQuantileEstimationAsync(symbol)
Get futures commission rateclient.FuturesV3Api.Account.GetUserCommissionRateAsync(symbol)
Transfer between futures and spotclient.FuturesV3Api.Account.TransferAsync(...)
Get withdraw infoclient.FuturesV3Api.Account.GetWithdrawInfoAsync()
Get deposit/withdraw historyclient.FuturesV3Api.Account.GetDepositWithdrawHistoryAsync()
Approve builderclient.FuturesV3Api.Account.ApproveBuilderAsync(...)
Get approved buildersclient.FuturesV3Api.Account.GetApprovedBuildersAsync()
Create or approve agentclient.FuturesV3Api.Account.CreateOrApproveAgentAsync(...)
Get agentsclient.FuturesV3Api.Account.GetAgentsAsync()
Place futures orderclient.FuturesV3Api.Trading.PlaceOrderAsync(...)
Place multiple futures ordersclient.FuturesV3Api.Trading.PlaceMultipleOrdersAsync(...)
Query futures orderclient.FuturesV3Api.Trading.GetOrderAsync(symbol, orderId)
Cancel futures orderclient.FuturesV3Api.Trading.CancelOrderAsync(symbol, orderId)
Cancel all futures ordersclient.FuturesV3Api.Trading.CancelAllOrdersAsync(symbol)
Cancel multiple futures ordersclient.FuturesV3Api.Trading.CancelMultipleOrdersAsync(...)
Dead man's switchclient.FuturesV3Api.Trading.CancelAllOrdersAfterTimeoutAsync(...)
Get open futures ordersclient.FuturesV3Api.Trading.GetOpenOrdersAsync(symbol)
Get all futures ordersclient.FuturesV3Api.Trading.GetOrdersAsync(symbol)
Get positionsclient.FuturesV3Api.Trading.GetPositionsAsync(symbol)
Get futures user tradesclient.FuturesV3Api.Trading.GetUserTradesAsync(symbol)
Get forced ordersclient.FuturesV3Api.Trading.GetForcedOrdersAsync(symbol)

Spot V3 WebSocket

User intentAster.Net member
Subscribe spot ticker updatessocketClient.SpotV3Api.SubscribeToTickerUpdatesAsync(symbol, handler)
Subscribe all spot ticker updatessocketClient.SpotV3Api.SubscribeToTickerUpdatesAsync(handler)
Subscribe spot mini ticker updatessocketClient.SpotV3Api.SubscribeToMiniTickerUpdatesAsync(symbol, handler)
Subscribe spot klinessocketClient.SpotV3Api.SubscribeToKlineUpdatesAsync(symbol, interval, handler)
Subscribe spot order book snapshotssocketClient.SpotV3Api.SubscribeToPartialOrderBookUpdatesAsync(...)
Subscribe spot order book updatessocketClient.SpotV3Api.SubscribeToOrderBookUpdatesAsync(...)
Subscribe spot book tickersocketClient.SpotV3Api.SubscribeToBookTickerUpdatesAsync(symbol, handler)
Subscribe spot aggregate tradessocketClient.SpotV3Api.SubscribeToAggregatedTradeUpdatesAsync(symbol, handler)
Subscribe spot user datasocketClient.SpotV3Api.SubscribeToUserDataUpdatesAsync(...)

Futures V3 WebSocket

User intentAster.Net member
Subscribe futures ticker updatessocketClient.FuturesV3Api.SubscribeToTickerUpdatesAsync(symbol, handler)
Subscribe futures klinessocketClient.FuturesV3Api.SubscribeToKlineUpdatesAsync(symbol, interval, handler)
Subscribe futures book tickersocketClient.FuturesV3Api.SubscribeToBookTickerUpdatesAsync(symbol, handler)
Subscribe futures aggregate tradessocketClient.FuturesV3Api.SubscribeToAggregatedTradeUpdatesAsync(symbol, handler)
Subscribe futures order book updatessocketClient.FuturesV3Api.SubscribeToOrderBookUpdatesAsync(...)
Subscribe futures mark pricesocketClient.FuturesV3Api.SubscribeToMarkPriceUpdatesAsync(symbol, updateInterval, handler)
Subscribe futures liquidation updatessocketClient.FuturesV3Api.SubscribeToLiquidationUpdatesAsync(symbol, handler)
Subscribe futures user datasocketClient.FuturesV3Api.SubscribeToUserDataUpdatesAsync(...)

SharedApis

User intentAster.Net member or interface
Shared spot REST clientnew AsterRestClient().SpotV3Api.SharedClient
Shared futures REST clientnew AsterRestClient().FuturesV3Api.SharedClient
Shared spot socket clientnew AsterSocketClient().SpotV3Api.SharedClient
Shared futures socket clientnew AsterSocketClient().FuturesV3Api.SharedClient
Shared spot ticker RESTISpotTickerRestClient.GetSpotTickerAsync(new GetTickerRequest(symbol))
Get/filter shared spot symbolsISpotSymbolRestClient.GetSpotSymbolsAsync(new GetSymbolsRequest(...))
Read shared spot symbol catalogISpotSymbolRestClient.SpotSymbolCatalog after a successful symbol query
Get/filter shared futures symbolsIFuturesSymbolRestClient.GetFuturesSymbolsAsync(new GetSymbolsRequest(...))
Read shared futures symbol catalogIFuturesSymbolRestClient.FuturesSymbolCatalog after a successful symbol query
Shared spot order RESTISpotOrderRestClient.PlaceSpotOrderAsync(...)
Shared futures order RESTIFuturesOrderRestClient.PlaceFuturesOrderAsync(...)
Shared ticker socketITickerSocketClient.SubscribeToTickerUpdatesAsync(...)
Shared order book socketIOrderBookSocketClient.SubscribeToOrderBookUpdatesAsync(...)

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

V3 shared symbol queries apply the asset-type filters in GetSymbolsRequest and populate DisplayName, base/quote asset types, and subtypes. Spot symbols are classified as crypto with stablecoin quotes; futures stock and commodity underlyings are classified as TradFi equities and commodities. A symbol catalog is unavailable until its corresponding symbol query has completed successfully.

Result Handling

SituationPattern
REST success checkif (!result.Success) { Console.WriteLine(result.Error); return; }
Socket subscription success checkif (!sub.Success) { Console.WriteLine(sub.Error); return; }
Read REST 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
Raw HttpClientAsterRestClient / AsterSocketClient
ApiCredentialsAsterCredentials
new AsterCredentials("key", "secret") for V3new AsterCredentials().WithV3(...)
SpotApi for new codeSpotV3Api
FuturesApi for new codeFuturesV3Api
.Data without .Success checkCheck .Success first
Shared socket UnsubscribeAsync(...)Keep the concrete socket client and call socketClient.UnsubscribeAsync(subscription.Data)
Custom clientOrderId by defaultLet Aster.Net auto-generate it
positionSide in every futures orderInclude only when hedge mode is intended