Actions20
- Get 24hr Ticker Statistics
- Get Account Information
- Get All Orders
- Get Asset Detail
- Get Asset Dividend Record
- Get Convert History
- Get Deposit Address
- Get Deposit History
- Get Dust Log
- Get Exchange Information
- Get Kline/Candlestick Data
- Get Open Orders
- Get Order Book
- Get Simple Earn Positions
- Get Sub-Account List
- Get Ticker Price
- Get Trade Fee
- Get Trade List
- Get Withdraw History
- Withdraw
Get Order Book
AI-generatedOverview
This node interacts with the Binance API to retrieve the order book for a specified trading pair symbol. It is useful for users who want to get real-time market depth data, including the list of buy and sell orders at different price levels. Practical applications include market analysis, algorithmic trading, and monitoring liquidity for a specific cryptocurrency pair.
Use Case Examples
- A trader wants to see the current order book for BTCUSDT to analyze market depth before placing a trade.
- A developer builds a dashboard that displays live order book data for various trading pairs to help users make informed trading decisions.
Properties
| Name | Meaning |
|---|---|
| Symbol | The trading pair symbol for which to retrieve the order book, e.g., BTCUSDT. |
| Limit | The maximum number of order book entries to return, controlling the depth of the order book data. |
Output
JSON
bids- List of buy orders in the order book, each with price and quantity.asks- List of sell orders in the order book, each with price and quantity.lastUpdateId- The last update ID of the order book snapshot.
Dependencies
- Binance API credentials (API key and secret) are required for authenticated endpoints, but this operation uses a public endpoint and does not require authentication.
Troubleshooting
- Ensure the symbol parameter is correctly formatted and supported by Binance (e.g., BTCUSDT).
- The limit parameter must be a positive integer; invalid values may cause errors or unexpected results.
- Network issues or Binance API downtime can cause request failures; retry or check API status.
- If the node throws an error about unknown operation, verify that the operation is set to 'Get Order Book'.
Links
- Binance API Documentation - Order Book - Official Binance API documentation for the order book endpoint, detailing parameters and response structure.