-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Exception: While running tt pf positions beta-weighting after choosing N #11
Comments
Okay so the application is exiting as intended I guess (default or tastytrade-cli/ttcli/portfolio.py Line 340 in 5248282
close = get_confirmation("Close out a position? y/N ", default=False)
if not close:
return I just thought there's an error. Might be due to the async parts for streaming the data from tasty. |
Hey, thanks for opening! You're right that this isn't a "real" error, however we don't really want to display it! Turns out closing the data streamer isn't handled correctly in the SDK v9.4, so if you downgrade to v9.3 for now you won't see the annoying messages. I'll fix this in the next SDK release, so it'll be fixed by upgrading to v9.5 down the road. So I'm going to reopen this actually. |
Hi, quick update. I have cloned the repo and installed using
Warning: Portfolio beta-weighting misses target of 0 substantially!
Close out a position? y/N N The only difference is first when encountering this issue I have manually created a Both environments seem to run the same verion tt --version
tt, version 0.4 |
Between now and when you opened the issue, the SDK version 9.5 has been released! So that's why it's working now. I'll close this when I update the CLI to use the latest SDK version. |
I can confirm, after updating the tastytrade package with pip list --outdated
Package Version Latest Type
------------- --------- ---------- -----
certifi 2024.8.30 2024.12.14 wheel
pydantic 2.10.3 2.10.4 wheel
pydantic_core 2.27.1 2.27.2 wheel
tastytrade 9.4 9.5 wheel
❯ pip install --upgrade tastytrade
Uninstalling tastytrade-9.4:
Successfully uninstalled tastytrade-9.4
Successfully installed tastytrade-9.5 Thank you, I will play with the cli and let you know! Maybe I can write some notes and some docs. |
Go for it! Would be appreciated :) |
Intro
Hello,
I find the terminal very practical on a daily basis, great initiative with the project.
Thank you!
Two months ago, after a sabbatical I started a small account with tasty.
Then I discovered your project on reddit.
I was also thinking of brushing-up my python skills and was thinking of using the tasty API, but then you are way ahead.
Environment
venv
which I sourcedpython --version Python 3.13.1
pip install tastytrade-cli
Error Description
tt pf positions
N
because I did not want to close any positionI did not go deep into the code yet, as I wanted first to have a look at the current state of the app.
I was thinking about writing a quick-start guide or readme if you need some help with the project.
Best regards,
Raz
The text was updated successfully, but these errors were encountered: