Market Data

Get current prices for specified trading pairs from a connector.

Args: request: Price request with connector name and trading pairs market_data_manager: Injected market data feed manager

Returns: Current prices for the specified trading pairs

Raises: HTTPException: 500 if there's an error fetching prices

post/market-data/prices

Request

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

Request body

connector_namestring required

Name of the connector

trading_pairsstring[] required

List of trading pairs to get prices for

Response

Successful Response

connectorstring required

Connector name

pricesobject required

Trading pair to price mapping

timestampnumber required

Response timestamp

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • breaking

      the request property's minItems was increased to 1