-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development version of xts breaks twsInstrument::get_quote() #297
Comments
Thanks for the report! I will investigate. |
Hi Samo. I'm trying to replicate this using the demo account, but I'm not able to. Can you try replicating this issue with the demo account? That would confirm whether my inability to replicate is due to the demo account, or something with my local setup. |
Hi Joshua. Have you tried during regular trading hours (RTH) for SPY (form 09:30 to 16:00 EST)? Most of the time, if I run this outside RTH there is no data being sent from IB so therefore no error can be triggered/generated/replicated... |
It's hard for me to test during regular trading hours, because I'm almost always at work and I don't have access to TWS. I tried to replicate this issue using ES futures, since that market is open before I go to work. I also tried it using a FX ticker. I assume this error occurs for instruments other than SPY? |
I still wasn't able to reproduce the error using TWS, but the source of the problem is eWrapper.data.BID_ASK_OHLCV.R:L30, which is: attr(data[[id]],"index") <- as.numeric(Sys.time()) That line assigns to the index directly, and does not include the required My proposed patch would be to change the |
The error is thrown by this There's a check to see if |
I think the reason I made |
The 'value' object may have length > 1 (e.g. c("POSIXct", "POSIXt")). This was part of the fix for #297.
Description
twsInstrument::get_quote()
fails using latest github version of xtsExpected behavior
Backward compatibility expected.
Minimal, reproducible example
Session Info
The text was updated successfully, but these errors were encountered: