Market Data

Get real-time candles data for a specific trading pair.

This endpoint uses the MarketDataProvider to get or create a candles feed that will automatically start and maintain real-time updates. Subsequent requests with the same configuration will reuse the existing feed for up-to-date data.

Args: request: FastAPI request object candles_config: Configuration for the candles including connector, trading_pair, interval, and max_records

Returns: Real-time candles data or error message

post/market-data/candles

Request

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

Request body

connector_namestring required
trading_pairstring required
intervalstring
max_recordsinteger

Response

Successful Response

unknown required

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 response's body type changed from object to no type for status