Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bustrama
Copy link
Contributor

No description provided.

to_date = from_date + timedelta(days=3)

for instrument in instruments:
chain = await client.get_option_chain(
Copy link

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

Copy link
Contributor Author

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?

Copy link

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()
Copy link

@arsaboo arsaboo Jun 14, 2024

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment....

@arsaboo
Copy link

arsaboo commented Jun 14, 2024

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'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants