v13

latestOpenAPI 3.1.0raw.githubusercontent.com2026-04-0815390371.2 KB
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

connector_namestring required
trading_pairstring required
intervalstring
max_recordsinteger

Response

Successful Response

{"stackTrail":"paths:/market-data/candles:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}