-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Option modelGreeks is None #77
Comments
That's actually normal because each field is populated asynchronously, so sometimes it takes a couple seconds for all data to "appear" after being requested. You could either wait longer before reading all the fields (be sure to read the intro docs about how time needs to work if you aren't using An event handler could look something like: def checkTickerUpdates(tickers):
for ticker in tickers:
if ticker.modelGreeks:
... do something ...
ib.pendingTickersEvent += checkTickerUpdates |
Thanks for reply, I just tried the codes now when the market is open, The None results are from yesterday when the market was closed, Below is what I get today
|
I think their systems do respond to data requests faster during market hours (probably caching things), but it should at least return If you request even more detailed fields like |
Hi I'm new to ib_async
I'm trying to get the modelGreeks property of the SPY option, the codes I used is shown below
the console output are
All the greeks properties are None, did I do anything wrong? Please help, thank you very much
The text was updated successfully, but these errors were encountered: