cURL
curl --request GET \ --url 'https://market-data.trade.rails.xyz/api/v1/order-book?market=ETH-USD'
[ { "quantity": "0.1", "price": "4355.1", "orderType": "buy" }, { "quantity": "0.2", "price": "4355.2", "orderType": "sell" } ]
This endpoint retrieves the latest order book snapshot for a given market.
Example value: ETH-USD. To get all supported markets, call /api/v1/markets endpoint.
ETH-USD
The response is of type object[].
object[]