JKorf / Binance.Net

A C# .netstandard client library for the Binance REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/Binance.Net/
MIT License
1.02k stars 420 forks source link

BinanceSocketClient Orderbook explained #1348

Open dungtrandk opened 4 months ago

dungtrandk commented 4 months ago

I am using the class BinanceSocketClient and IBinanceSocketClientUsdFuturesApi to get the orderbook updates on for instance btcusdt. I call the method SubscribeToOrderBookUpdatesAsync with the pair and 500 update interval.

Then in the handling of the data I get the Asks and Bids by: data.Data.Asks and data.Data.Bids. In these lists I get bids/asks with price and quantities.

My question is, what do those price and quantities represent?

Is it the actual limit orders on the orderbook at that specific time? Or is it limit orders added to the orderbook so its an accumulated value? Or is it something else?