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

watchlists #57

Merged
merged 4 commits into from
Mar 9, 2021
Merged

watchlists #57

merged 4 commits into from
Mar 9, 2021

Conversation

bandwiches
Copy link
Contributor

Problem addressed

Watchlists

Solution

  • Migrated to new API
  • Increased scope to include custom watchlists as well as public watchlists
  • Created checks for instability in Tastyworks API data
    • Some watchlists return instrument-type, instrument_type or they do not return anything.
    • Some watchlists do not return a group-name
    • New API does not return a slug

Checklist

@bandwiches
Copy link
Contributor Author

#55

@bandwiches
Copy link
Contributor Author

I also added support & tests for symbol search in this update (Reference: #50). I chose not to remove the dough module just yet, here's my reasoning.

  • The Dough API and Tastyworks API both have symbol_search endpoints
  • Dough API is deprecated
    • I have no historical data of what this endpoint used to return
  • Tastyworks API seems like it's reusing the name for a new process

Based on the code for the dough module, it seems like it used to return a lot more than it does now. Because of this, I have added support for market-metrics in its own module, but chose to exclude it from this PR.

If you think it would be good to include that, I can commit and push. The tally at that point would be [3] Features as opposed to [2].

Features in this commit:

  • Watchlists (public & custom)
  • Symbol Search

Optional Features awaiting commit:

  • Market Metrics

Copy link
Owner

@boyan-soubachov boyan-soubachov left a comment

Choose a reason for hiding this comment

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

Thank you very much for you time and submission 🙂 🙏 . I've left a few comments if you don't mind addressing? Please let me know if you'd like to discuss them

tastyworks/models/symbol_search.py Outdated Show resolved Hide resolved
tastyworks/models/watchlists.py Show resolved Hide resolved
tastyworks/models/watchlists.py Outdated Show resolved Hide resolved
tastyworks/models/watchlists.py Outdated Show resolved Hide resolved
tastyworks/models/watchlists.py Outdated Show resolved Hide resolved
tests/models/test_symbol_search.py Outdated Show resolved Hide resolved
tests/models/test_watchlists.py Outdated Show resolved Hide resolved
@bandwiches
Copy link
Contributor Author

@boyan-soubachov Am I finally ready? 😆

@boyan-soubachov
Copy link
Owner

Looks great. Thanks for all your hard work :) Merging

@boyan-soubachov boyan-soubachov merged commit a54aa87 into boyan-soubachov:master Mar 9, 2021
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