You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to get historical data for CONTFUT asset type, like ES, IB returns error:
[ERROR] TRADER-000.InteractiveBrokersClient-005: Setting end date/time for continuous future security type is not allowed. (code: 10339, req_id=10004).
Expected Behavior
I can download historical data without being forced to specify end_date_time
endDateTime=end_date_time.strftime("%Y%m%d %H:%M:%S %Z"),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "nattype.pyx", line 54, in pandas._libs.tslibs.nattype._make_error_func.f
ValueError: NaTType does not support strftime
July 8, 2024
updateIBKR TWS API
Please be aware that endDateTime must be left as an empty string when requesting continuous futures contracts when using the TWS API with Trader Workstation or IB Gateway releases of 10.30 and above.
Fixed in my PR, also works with instrument ids like ES.CME or ES.XCME. This was really hard to fix, something that helps though is that it's easy to debug the IB adapter as it's in python. #2647
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
When trying to get historical data for CONTFUT asset type, like ES, IB returns error:
[ERROR] TRADER-000.InteractiveBrokersClient-005: Setting end date/time for continuous future security type is not allowed. (code: 10339, req_id=10004).
Expected Behavior
I can download historical data without being forced to specify
end_date_time
end_date_time
should be optional.Actual Behavior
Steps to Reproduce the Problem
Try:
Try to omit the
end_date_time
like:You will see a crash in the console.
It is related to #2570
Specifications
3.12.10
nautilus_trader
version:1.216.0
The text was updated successfully, but these errors were encountered: