Closed Mytak closed 1 year ago
Thanks for this, can you post the code that didn't work for you?
Also, please make sure to follow the steps in CONTRIBUTING.md to run the tests on your fork.
Thanks for this, can you post the code that didn't work for you?
Also, please make sure to follow the steps in CONTRIBUTING.md to run the tests on your fork.
Here is the code:
ticker = ' LLYVK' self.session = ProductionSession(self.user, self.password) // Valid user and password extracted from keyring metrics = tastytrade.metrics.get_market_metrics(self.session, ticker)
Here is the error:
File "/home/user/.local/lib/python3.10/site-packages/tastytrade/metrics.py", line 114, in get_market_metrics
return [MarketMetricInfo(entry) for entry in data]
File "/home/user/.local/lib/python3.10/site-packages/tastytrade/metrics.py", line 114, in
Sorry for the missing checks, I added the secrets TT_USENAME and TT_PASSWORD as described in CONTRIBUTING.md but the checks did not run. I could not find out how to activate them on my fork ... any advice is appreciated
Some additional information: I am trying to get the iv_rank of the ticker LLYVK and I just saw in the tastytrade platform that iv_rank is not available ...
Did you go to the "Actions" page and enable actions for your fork? If so, you should be able to trigger the test manually from the "Actions" page, and from now on it'll run automatically whenever you make changes.
After enabling manual workflow triggering, I ran the checks and got the following errors:
The errors do not seem to be related to my code changes
Ah! Nice catch. Tests don't work for people who only have one TT account... Oops! I'll fix that
Please check out the latest commit and try again.
OK, now the checks ran successfully.
Description
Related issue(s)
Fixes ...
Pre-merge checklist
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.