Skip to content

Interface: WsAPIOperationResponseMap ​

Response structure expected for each operation

  • Each "key" here is a command/request supported by the WS API
  • Each "value" here is the response schema for that command.

Indexable ​

ts
[key: string]: unknown

Properties ​

PropertyTypeDescription
account.balanceWSAPIResponse<WSAPIFuturesAccountBalanceItem[]>-
account.commissionWSAPIResponse<WSAPIAccountCommission>-
account.positionWSAPIResponse<WSAPIFuturesPosition[]>Futures account responses: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/websocket-api
account.rateLimits.ordersWSAPIResponse<WSAPIRateLimit[]>-
account.statusWSAPIResponse< | WSAPIAccountInformation | WSAPIFuturesAccountStatus>Account responses: https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/account-requests
algoOrder.cancelWSAPIResponse<WSAPIFuturesAlgoOrderCancelResponse>-
algoOrder.placeWSAPIResponse<WSAPIFuturesAlgoOrder>-
allOrderListsWSAPIResponse<WSAPIOrderListStatusResponse[]>-
allOrdersWSAPIResponse<WSAPIOrder[]>-
avgPriceWSAPIResponse<WSAPIAvgPrice>-
blockTrades.historicalWSAPIResponse<WSAPIBlockTrade[]>-
depthWSAPIResponse< | WSAPIOrderBook | WSAPIFuturesOrderBook>Market data responses - Spot: https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests - Futures: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/websocket-api
exchangeInfoWSAPIResponse< | FuturesExchangeInfo | ExchangeInfo>-
executionRulesWSAPIResponse<SpotExecutionRulesResponse>-
GET_PROPERTYnever-
klinesWSAPIResponse<WSAPIKline[]>-
LIST_SUBSCRIPTIONSnever-
myAllocationsWSAPIResponse<WSAPIAllocation[]>-
myPreventedMatchesWSAPIResponse<WSAPIPreventedMatch[]>-
myTradesWSAPIResponse<WSAPITrade[]>-
openOrderLists.statusWSAPIResponse<WSAPIOrderListStatusResponse[]>-
openOrders.cancelAllWSAPIResponse<( | WSAPIOrderCancel | WSAPIOrderListCancelResponse)[]>-
openOrders.statusWSAPIResponse< | WSAPIOrder[] | WSAPIFuturesOrder[]>-
order.cancelWSAPIResponse< | WSAPIOrderCancel | WSAPIFuturesOrder>-
order.cancelReplaceWSAPIResponse<WSAPIOrderCancelReplaceResponse>-
order.modifyWSAPIResponse<WSAPIFuturesOrder>-
order.placeWSAPIResponse< | WSAPIFuturesOrder | WSAPISpotOrderResponse>Trading responses - Spot: https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests - Futures: https://developers.binance.com/docs/derivatives/usds-margined-futures/trading/websocket-api
order.statusWSAPIResponse< | WSAPIOrder | WSAPIFuturesOrder>-
order.testWSAPIResponse< | WSAPIOrderTestResponse | WSAPIOrderTestWithCommission>-
orderList.cancelWSAPIResponse<WSAPIOrderListCancelResponse>-
orderList.placeWSAPIResponse<WSAPIOrderListPlaceResponse>Order list responses
orderList.place.ocoWSAPIResponse<WSAPIOrderListPlaceResponse>-
orderList.place.opoWSAPIResponse<WSAPIOrderListPlaceResponse>-
orderList.place.opocoWSAPIResponse<WSAPIOrderListPlaceResponse>-
orderList.place.otoWSAPIResponse<WSAPIOrderListPlaceResponse>-
orderList.place.otocoWSAPIResponse<WSAPIOrderListPlaceResponse>-
orderList.statusWSAPIResponse<WSAPIOrderListStatusResponse>-
pingunknownGeneral responses: https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/general-requests
referencePriceWSAPIResponse<SpotReferencePriceResult>-
referencePrice.calculationWSAPIResponse<SpotReferencePriceCalculationResponse>-
session.loginWSAPIResponse<WSAPISessionStatus>Session authentication responses: https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/session-authentication https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/authentication-requests
session.logoutWSAPIResponse<WSAPISessionStatus>-
session.statusWSAPIResponse<WSAPISessionStatus>-
SET_PROPERTYnever-
sor.order.placeWSAPIResponse<WSAPISOROrderPlaceResponse>SOR responses
sor.order.testWSAPIResponse< | WSAPISOROrderTestResponse | WSAPISOROrderTestResponseWithCommission>-
SUBSCRIBEnever-
tickerWSAPIResponse< | WSAPIFullTicker | WSAPIMiniTicker | WSAPIFullTicker[] | WSAPIMiniTicker[]>-
ticker.24hrWSAPIResponse< | WSAPIFullTicker | WSAPIMiniTicker | WSAPIFullTicker[] | WSAPIMiniTicker[]>-
ticker.bookWSAPIResponse< | WSAPIBookTicker | WSAPIFuturesBookTicker | WSAPIBookTicker[] | WSAPIFuturesBookTicker[]>-
ticker.priceWSAPIResponse< | WSAPIPriceTicker | WSAPIFuturesPriceTicker | WSAPIPriceTicker[] | WSAPIFuturesPriceTicker[]>-
ticker.tradingDayWSAPIResponse< | WSAPIFullTicker | WSAPIMiniTicker | WSAPIFullTicker[] | WSAPIMiniTicker[]>-
timeWSAPIResponse<WSAPIServerTime>-
trades.aggregateWSAPIResponse<WSAPIAggregateTrade[]>-
trades.historicalWSAPIResponse<WSAPITrade[]>-
trades.recentWSAPIResponse<WSAPITrade[]>-
uiKlinesWSAPIResponse<WSAPIKline[]>-
UNSUBSCRIBEnever-
userDataStream.pingWSAPIResponse<object>-
userDataStream.startWSAPIResponse<{ listenKey: string; }>-
userDataStream.stopWSAPIResponse<object>-
userDataStream.subscribeWSAPIResponse<object>-
userDataStream.subscribe.signatureWSAPIResponse<object>-
userDataStream.unsubscribeWSAPIResponse<object>-
v2/account.balanceWSAPIResponse<WSAPIFuturesAccountBalanceItem[]>-
v2/account.positionWSAPIResponse<WSAPIFuturesPositionV2[]>-
v2/account.statusWSAPIResponse<WSAPIFuturesAccountStatus>-

Built by Siebly. Open source SDKs for exchange APIs.