cURL
curl --request GET \ --url 'https://market-data.trade.rails.xyz/api/v2/order-book?market=ETH-USD'
{ "orders": [ { "quantity": "0.1", "price": "4355.1", "orderType": "buy" }, { "quantity": "0.2", "price": "4355.2", "orderType": "sell" } ], "ts": 1772576154169 }
This endpoint retrieves the latest order book snapshot for a given market with a timestamp.
Market name. Example value: ETH-USD. To get all supported markets, call /api/v1/markets endpoint.
ETH-USD
Show child attributes
Timestamp (milliseconds since epoch) when this snapshot was generated.