Allow omitting limit to return all candles in range

Change default limit from 100 to None. When limit is omitted,
EDM returns all candles in the requested range without truncation.

Also increased max limit from 1000 to 10000 for large requests.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
rob 2026-03-08 01:26:31 -04:00
parent e14a607bfc
commit ab217e247f
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ async def get_candles(
timeframe: str = Query(..., description="Candle timeframe (e.g., 5m, 1h)"),
start: Optional[int] = Query(None, description="Start timestamp (Unix seconds)"),
end: Optional[int] = Query(None, description="End timestamp (Unix seconds)"),
limit: Optional[int] = Query(100, description="Maximum candles to return", le=1000),
limit: Optional[int] = Query(None, description="Maximum candles to return (omit for all)", le=10000),
session_id: Optional[str] = Query(
None,
description="Optional session ID for per-session exchange credentials",