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
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Successful Response