binancebinance-api-client

How to get the order book list with Binance API?


I would like to get the same information (opened orders) as displayed in order book on Binance site here:

enter image description here

I tried:

/api/v3/allOrders -- this apparently shows all MY orders

api/v3/openOrders -- this apparently shows opened MY orders

and

/api/v3/trades -- this apparently shows closed orders

How to see OPENED EVERYBODY'S orders?


Solution

  • You're looking for the Order Book endpoint.

    Docs: https://binance-docs.github.io/apidocs/spot/en/#order-book

    Example: https://api.binance.com/api/v3/depth?limit=10&symbol=BTCUSDT