I’ve seen some developers create charts that have data on orders for BTCUSDT around 30k, the price right now is 30600. If you get the next 5000 (max on stream) orders, you only get to about 30500. How are they getting the orders sitting that far from the current price? How would you know if a 10M order for BTC was placed at say 29900? Are they tracking all orders and saving them locally? If so, how would you know if that order was cancelled. Confused on how they are getting this data…
Hi @Carey_Richardson, please be more specific on your question description, so that people viewing the post can understand completely, e.g what does the 30k represent? How is 30500 calculated? “orders sitting that far from the current price?”, what is being compared here exactly?
How would you know if a 10M order for BTC was placed at say 29900?
This could be tracked via Aggregate Trades Binance API Documentation.
Are they tracking all orders and saving them locally? If so, how would you know if that order was cancelled.
The order book can be created locally using these steps:
https://binance-docs.github.io/apidocs/spot/en/#how-to-manage-a-local-order-book-correctly