Market Data

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

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/market-data/order-book
  • Auth
    HTTP basic

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