-
-
Notifications
You must be signed in to change notification settings - Fork 78
options streaming example #97
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
base: main
Are you sure you want to change the base?
Conversation
to_date = from_date + timedelta(days=3) | ||
|
||
for instrument in instruments: | ||
chain = await client.get_option_chain( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await
needs to be removed from here....I was not able to get this running with await
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you use async client?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran it in the vscode terminal.
self.token_path, api_key=self.api_key, app_secret=self.client_secret | ||
) | ||
|
||
response = await self.schwab_client.get_account_numbers() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same....await
did not work for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment....
Instead of printing the output (which just scrolls by), how would you modify the code to say, get the updated quote for 'key': 'SPXW 240617C05440000'? |
No description provided.