BloFin.Net AI API Map

June 29, 2026 ยท View on GitHub

This map helps AI assistants route common user intents to the actual BloFin.Net methods.

Client Roots

NeedUse
REST clientnew BloFinRestClient(...)
Socket clientnew BloFinSocketClient(...)
General account and asset endpointsrestClient.AccountApi
Futures market datarestClient.FuturesApi.ExchangeData
Futures account settingsrestClient.FuturesApi.Account
Futures tradingrestClient.FuturesApi.Trading
Futures websocket subscriptionssocketClient.FuturesApi
Shared REST abstractionrestClient.AccountApi.SharedClient / restClient.FuturesApi.SharedClient
Shared socket abstractionsocketClient.FuturesApi.SharedClient
Shared capability discoveryrestClient.AccountApi.SharedClient.Discover() / restClient.FuturesApi.SharedClient.Discover() / socketClient.FuturesApi.SharedClient.Discover()

AccountApi

IntentMethod
Account balancesAccountApi.GetAccountBalancesAsync(accountType, asset)
Transfer fundsAccountApi.TransferAsync(asset, fromAccount, toAccount, quantity, clientId)
Account configAccountApi.GetAccountConfigAsync()
API key infoAccountApi.GetApiKeyInfoAsync()
Transfer historyAccountApi.GetTransferHistoryAsync(...)
Withdrawal historyAccountApi.GetWithdrawalHistoryAsync(...)
Deposit historyAccountApi.GetDepositHistoryAsync(...)

Futures Market Data

IntentMethod
SymbolsFuturesApi.ExchangeData.GetSymbolsAsync()
TickersFuturesApi.ExchangeData.GetTickersAsync(symbol)
Order bookFuturesApi.ExchangeData.GetOrderBookAsync(symbol, depth)
Recent tradesFuturesApi.ExchangeData.GetRecentTradesAsync(symbol, limit)
Index/mark priceFuturesApi.ExchangeData.GetIndexMarkPriceAsync(symbol)
Funding rateFuturesApi.ExchangeData.GetFundingRateAsync(symbol)
Funding historyFuturesApi.ExchangeData.GetFundingRateHistoryAsync(symbol, ...)
KlinesFuturesApi.ExchangeData.GetKlinesAsync(symbol, KlineInterval.OneMinute, ...)
Index klinesFuturesApi.ExchangeData.GetIndexPriceKlinesAsync(symbol, KlineInterval.OneMinute, ...)
Mark klinesFuturesApi.ExchangeData.GetMarkPriceKlinesAsync(symbol, KlineInterval.OneMinute, ...)
Position tiersFuturesApi.ExchangeData.GetPositionTiersAsync(symbol, marginMode)

Futures Account

IntentMethod
Futures balancesFuturesApi.Account.GetBalancesAsync(productType)
Margin modeFuturesApi.Account.GetMarginModeAsync()
Set margin modeFuturesApi.Account.SetMarginModeAsync(marginMode)
Position modeFuturesApi.Account.GetPositionModeAsync()
Set position modeFuturesApi.Account.SetPositionModeAsync(positionMode)
Leverage settingsFuturesApi.Account.GetLeverageAsync(symbol, marginMode)
Set leverageFuturesApi.Account.SetLeverageAsync(symbol, leverage, marginMode, positionSide)

Futures Trading

IntentMethod
PositionsFuturesApi.Trading.GetPositionsAsync(symbol)
Place orderFuturesApi.Trading.PlaceOrderAsync(...)
Place batch ordersFuturesApi.Trading.PlaceMultipleOrdersAsync(orders)
Place TP/SLFuturesApi.Trading.PlaceTpSlOrderAsync(...)
Place trigger orderFuturesApi.Trading.PlaceTriggerOrderAsync(...)
Cancel orderFuturesApi.Trading.CancelOrderAsync(orderId: ...) or CancelOrderAsync(symbol: ..., clientOrderId: ...)
Open ordersFuturesApi.Trading.GetOpenOrdersAsync(...)
Open TP/SL ordersFuturesApi.Trading.GetOpenTpSlOrdersAsync(...)
Open trigger ordersFuturesApi.Trading.GetOpenTriggerOrdersAsync(...)
Close positionFuturesApi.Trading.ClosePositionAsync(...)
Order detailsFuturesApi.Trading.GetOrderAsync(...)
Closed ordersFuturesApi.Trading.GetClosedOrdersAsync(...)
User tradesFuturesApi.Trading.GetUserTradesAsync(...)
Price limitsFuturesApi.Trading.GetPriceLimitsAsync(symbol, side)
Position historyFuturesApi.Trading.GetPositionHistoryAsync(...)

Sockets

IntentMethod
TradesSubscribeToTradeUpdatesAsync(symbol, ...)
KlinesSubscribeToKlineUpdatesAsync(symbol, KlineInterval.OneMinute, ...)
Order bookSubscribeToOrderBookUpdatesAsync(symbol, depth, ...)
TickersSubscribeToTickerUpdatesAsync(symbol, ...)
FundingSubscribeToFundingRateUpdatesAsync(symbol, ...)
Private positionsSubscribeToPositionUpdatesAsync(...)
Private ordersSubscribeToOrderUpdatesAsync(...)
Private trigger ordersSubscribeToTriggerOrderUpdatesAsync(...)
Private balancesSubscribeToBalanceUpdatesAsync(...)

Shared API 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
Capability discoveryCall .Discover() on a shared client and inspect Features.Where(x => x.Supported)

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>.

Avoid / Replace

AvoidUse
ExchangeApiAccountApi or FuturesApi
SpotApiFuturesApi where applicable
UsdFuturesApiFuturesApi
FuturesApiV2FuturesApi
BinPeriod.OneMinuteKlineInterval.OneMinute
ETHUSDT, ETH_USDT, ETH/USDT, tETHUSDBloFin-native symbols such as ETH-USDT
BloFinCredentials(key, secret)BloFinCredentials(key, secret, passphrase)