Skip to content
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

add advanced order instructions, handle CancelledError in streamer tasks #187

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

Graeme22
Copy link
Contributor

@Graeme22 Graeme22 commented Dec 13, 2024

Description

The cleanup in the streamer async iterator is currently messy, which can lead to lots of exceptions raised, which are harmless but annoying.

Also, this adds support for advanced order instructions, specifically strict_position_effect_validation, which fixes #178.

Pre-merge checklist

  • Code formatted correctly (check with make lint)
  • Code implemented for both sync and async
  • Passing tests locally (check with make test, make sure you have TT_USERNAME, TT_PASSWORD, and TT_ACCOUNT environment variables set)
  • New tests added (if applicable)

Please note that, in order to pass the tests, you'll need to set up your Tastytrade credentials as repository secrets on your local fork. Read more at CONTRIBUTING.md.

@Graeme22 Graeme22 merged commit 1ed4d8a into master Dec 16, 2024
1 check passed
@Graeme22 Graeme22 deleted the task-cancellation branch December 16, 2024 20:26
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.

How to specify advanced-instructions when placing orders
1 participant