curl -X GET "https://api.trusset.org/orderbooks/stocks/api/order-books/ob_abc123/snapshot?levels=10" \ -H "x-api-key: trusset_{instanceRef}_{secret}"
{ "success": true, "data": { "orderBookId": "ob_abc123", "bids": [ { "price": "99500000000000000000", "quantity": "5000000000000000000" }, { "price": "99000000000000000000", "quantity": "12000000000000000000" } ], "asks": [ { "price": "100500000000000000000", "quantity": "3000000000000000000" }, { "price": "101000000000000000000", "quantity": "8000000000000000000" } ] }, "metadata": { "requestId": "550e8400-e29b-41d4-a716-446655440000", "timestamp": "2025-01-15T10:30:00.000Z", "instanceId": "inst_abc" } }
Retrieve the current bid/ask depth of an order book
trading
20
100