Market Data
Get Candles
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 body
Response
Successful Response
{"stackTrail":"paths:/market-data/candles:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}