{"authentication":{"header":"X-API-KEY","type":"API Key"},"description":"REST API for fetching OHLCV candles from Databento with streaming support","endpoints":{"/api/fetch-ohlcv":{"authentication":"Required (X-API-KEY header)","description":"Fetch OHLCV candles for specified symbols and time range using streaming/chunked processing","method":"POST","parameters":{"chunk_hours":"Integer (default: 1) - Hours per time chunk when streaming","dataset":"String","end":"ISO format datetime string","save_to_db":"Boolean","schema":"String (e.g., 'ohlcv-1m', 'ohlcv-1h', default: 'ohlcv-1m')","start":"ISO format datetime string","symbols":"String or array of strings","use_streaming":"Boolean (default: true) - Enable record-by-record processing to avoid Bad Gateway errors"},"streaming_info":{"description":"Data is processed record-by-record and saved immediately per symbol to avoid memory issues","env_variables":{"PER_CHUNK_TIMEOUT":"Timeout per chunk in seconds (default: 120)","RECORD_BATCH_SIZE":"Records per batch for DB writes (default: 10000)","STREAM_CHUNK_HOURS":"Default hours per chunk (default: 1)"}}}},"name":"BentFetcher API"}
