Max Duration Per Bar Size

View as MarkdownOpen in Claude

The table below displays the maximum duration values allowed for a given bar.

As an example, the maximum duration for Seconds values supported for 5 seconds bars are 86400 S. This means that if I want to retrieve more than 1 day’s worth of 5 second bars, I will then need to request data in increments of D (days).

Bar SizeMax Second DurationMax Day DurationMax Week DurationMax Month DurationMax Year Duration
1 secs2000 S{Not Supported}{Not Supported}{Not Supported}{Not Supported}
5 secs86400 S365 D52 W12 M68 Y
10 secs86400 S365 D52 W12 M68 Y
15 secs86400 S365 D52 W12 M68 Y
30 secs86400 S365 D52 W12 M68 Y
1 min86400 S365 D52 W12 M68 Y
2 mins86400 S365 D52 W12 M68 Y
3 mins86400 S365 D52 W12 M68 Y
5 mins86400 S365 D52 W12 M68 Y
10 mins86400 S365 D52 W12 M68 Y
15 mins86400 S365 D52 W12 M68 Y
20 mins86400 S365 D52 W12 M68 Y
30 mins86400 S365 D52 W12 M68 Y
1 hour86400 S365 D52 W12 M68 Y
2 hours86400 S365 D52 W12 M68 Y
3 hours86400 S365 D52 W12 M68 Y
4 hours86400 S365 D52 W12 M68 Y
8 hours86400 S365 D52 W12 M68 Y
1 day86400 S365 D52 W12 M68 Y
1M86400 S365 D52 W12 M68 Y
1W86400 S365 D52 W12 M68 Y