Format Date Received

View as MarkdownOpen in Claude

Interactive Brokers will return historical market data based on the format set from the request. The formatDate parameter can be provided an integer value to indicate how data should be returned.

Note: Day bars will only return dates in the yyyyMMdd format. Time data is not available.

ValueDescriptionExample
1String Time Zone Date”20231019 16:11:48 America/New_York”
2Epoch Date1697746308
3Day & Time Date”1019 16:11:48 America/New_York”