Retrieve orders for the entire exchange at a specific time

Hi everyone,

Currently, I have learned how to build a centralized limit order book from scratch. However, I’m encountering difficulties in obtaining the data to simulate my simple program.

I found that there is an API called “allOrders,” but it only fetches orders’ data for the authenticated user.

Can I obtain a small set of orders data for the spot orders of two tokens, such as BTC USDT? (I don’t need the details; I just require real data on price and quantity for the purpose of comparing the efficiency of different architectures)

Thank you.

This endpoint Binance API Documentation may provide the info you need.

1 Like

Thanks for your response, but that endpoint only provides the trade data. Can I get the IDs, prices, quantities, and sides of all the orders on an exchange within a few hours of the timestamp?