That should work, according to the documentation. At least if your TWS is using a US time zone.
Why don't you try "20210904 00:00:00 US/Eastern", that we use:
- We found that 00:00:00 on the day following the end date works more reliably than 23:59:59 on end date.
- We found that it is more convenient and more reliable when the instrument's native time zone is appended (from the contract object). That reduces confusion especially when the "end of day" is involved and works well regardless of the of TWS time zone.
- And finally, we use dateFormat = 2 to be independent from the TWS time zone. That way you get a time stamp in seconds (which is always in GMT by definition) instead of a structured date/time format.
The value of useRTH makes no difference for TICK-AMEX since the contract indicates the exact same time frames of 06:00 through 20:00 Eastern for tradingHours and liquidHours.
闯ü谤驳别苍
toggle quoted message
Show quoted text
On Tue, Sep 7, 2021 at 01:24 PM, <nshale2@...> wrote:
Actually the exact string for endDateTime is?"20210903 23:59:59" with no timezone specified.