depth
Retrieve order book data for cryptocurrency trading pairs to analyze market depth and liquidity for informed trading decisions.
Instructions
Get the order book for a symbol.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of results. Default 500, max 1000. | |
| symbol | Yes | Trading symbol, e.g., BTCUSDT |
Implementation Reference
- src/index.ts:55-66 (registration)Registration of the 'depth' tool, including name, description, and input schema in the tools array.{ name: 'depth', description: 'Get the order book for a symbol.', inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'Trading symbol, e.g., BTCUSDT' }, limit: { type: 'number', description: 'Number of results. Default 500, max 1000.' }, }, required: ['symbol'], }, },
- src/index.ts:58-65 (schema)Input schema for the 'depth' tool defining parameters symbol (required) and optional limit.inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'Trading symbol, e.g., BTCUSDT' }, limit: { type: 'number', description: 'Number of results. Default 500, max 1000.' }, }, required: ['symbol'], },
- src/index.ts:589-590 (handler)Handler implementation for 'depth' tool, which makes a GET request to Binance Futures API /fapi/v1/depth endpoint with provided arguments.case 'depth': return makeRequest('GET', '/fapi/v1/depth', args);