From 9902507911740e0797405d9d5e4bdee70d403cda Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Fri, 6 Mar 2026 16:50:41 -0800 Subject: [PATCH] add comment explaining why the 5k is good --- src/providers/twelvedata.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/providers/twelvedata.zig b/src/providers/twelvedata.zig index 8f3c34f..d879739 100644 --- a/src/providers/twelvedata.zig +++ b/src/providers/twelvedata.zig @@ -53,6 +53,9 @@ pub const TwelveData = struct { const from_str = from.format(&from_buf); const to_str = to.format(&to_buf); + // TwelveData's max outputsize is 5000 data points per request. + // For daily candles this covers ~20 years of trading days (~252/year), + // well beyond our typical 10-year lookback. No pagination needed. const url = try http.buildUrl(allocator, base_url ++ "/time_series", &.{ .{ "symbol", symbol }, .{ "interval", "1day" },