Market Data

Get Order Book

Get order book snapshot with specified depth.

Args: request: Order book request with connector, trading pair, and depth market_data_manager: Injected market data feed manager

Returns: Order book snapshot with bids and asks

Raises: HTTPException: 500 if there's an error fetching order book

post/market-data/order-book

Request body

connector_namestring required

Name of the connector

trading_pairstring required

Trading pair

depthinteger

Number of price levels to return

Response

Successful Response

trading_pairstring required

Trading pair

timestampnumber required

Snapshot timestamp

Changes

Changed in 2 of the 13 revisions of this API.3

    • added the optional property detail/items/ctx to the response with the 422 status

      response-optional-property-added

    • added the optional property detail/items/input to the response with the 422 status

      response-optional-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog