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

running example.py error after a successful login #48

Open
fritol opened this issue Jul 30, 2020 · 29 comments
Open

running example.py error after a successful login #48

fritol opened this issue Jul 30, 2020 · 29 comments

Comments

@fritol
Copy link

fritol commented Jul 30, 2020

I commented out the order lines 41 to 59
then I run it
and get the error below
which does not occur if I debug break on line 65 and step into it
chain = await option_chain.get_option_chain(session, undl)
then i receive the chain
so there is perhaps some timing issue ?? (am not familiar with the async stuff)

...
client_session: <aiohttp.client.ClientSession object at 0x0000025CC8E77608>
2020-07-30 17:37:15,832 Exception in main loop
Traceback (most recent call last):
File "C:\Users\XXX\AppData\Roaming\Python\Python37\site-packages\tastyworks\models\option_chain.py", line 84, in _get_tasty_option_chain_data
raise Exception(f'Could not find option chain for symbol {underlying.ticker}')
TypeError: exceptions must derive from BaseException

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\Users\XXX\tastyworksexample.py", line 95, in main
loop.run_until_complete(main_loop(tasty_client, streamer))
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\asyncio\base_events.py", line 579, in run_until_complete
return future.result()
File "c:\Users\XXX\tastyworksexample.py", line 65, in main_loop
chain = await option_chain.get_option_chain(session, undl)
File "C:\Users\XXX\AppData\Roaming\Python\Python37\site-packages\tastyworks\models\option_chain.py", line 54, in get_option_chain
data = await _get_tasty_option_chain_data(session, underlying)
File "C:\Users\XXX\AppData\Roaming\Python\Python37\site-packages\tastyworks\models\option_chain.py", line 85, in _get_tasty_option_chain_data
resp = await response.json()
TypeError: 'TypeError' object is not callable

@bandwiches
Copy link
Contributor

Raising exception due to a bad response code (anything that's not 200). This could be a few things, but ultimately you are not receiving a 200 HTTP response back from the API endpoint. Could be that the endpoint is down, invalid endpoint, invalid session. I haven't done any aggressive testing, just what I see at a quick glance.

raise Exception(f'Could not find option chain for symbol {underlying.ticker}')

@fritol
Copy link
Author

fritol commented Aug 4, 2020

official API should come out sometimes in august 2020 said Tom Sosnoff

@bandwiches
Copy link
Contributor

I'm pretty excited! Though I'll admit, I'm feeling a little defeated too haha

@boyan-soubachov
Copy link
Owner

official API should come out sometimes in august 2020 said Tom Sosnoff

Thank you for the update. As soon as that's out, I'll archive this repo and call it a closed chapter :)

@webventurer
Copy link

No sign of the Tastyworks API and this project looks very useful. Any chance you can merge the latest changes in the issues, fix the example.py and upgrade to Python 3?

@spot92
Copy link

spot92 commented Nov 11, 2020

I emailed them today about the API and they said there is no longer a release date, but it is planned for the future at some time.

@perigvennetier
Copy link

would love to find a way to keep this project going, it's a great base for adding some good simple strategies

@ScientiaCapital
Copy link

ScientiaCapital commented Feb 5, 2021 via email

@perigvennetier
Copy link

I'm not a super coder and this is a bit difficult for me to follow how to add new functionalities and how to use the code to get the data I need like greeks, etc. documentation would be awesome :D

@ScientiaCapital
Copy link

ScientiaCapital commented Feb 5, 2021 via email

@boyan-soubachov
Copy link
Owner

boyan-soubachov commented Feb 5, 2021 via email

@bandwiches
Copy link
Contributor

This repo got a lot more popular recently, I've followed for a while. I'd like to help out, time limiting of course.

@perigvennetier
Copy link

I'd really love to help out with my (very) limited knowledge, maybe just even write documentation, I just can't seem to find out how to do simple things like simply retrieve all the information about an underlying, so if someone if willing to help out via email or somewhere else that'd be awesome.

@ScientiaCapital
Copy link

ScientiaCapital commented Feb 5, 2021 via email

@bandwiches
Copy link
Contributor

I'd really love to help out with my (very) limited knowledge, maybe just even write documentation, I just can't seem to find out how to do simple things like simply retrieve all the information about an underlying, so if someone if willing to help out via email or somewhere else that'd be awesome.

One thing that works in another repo I follow is a discussion board. People ask for help there at all levels and the community helps. It also helps separate actual repo issues from unrelated issues.

@ScientiaCapital
Copy link

ScientiaCapital commented Feb 5, 2021 via email

@perigvennetier
Copy link

I'd really love to help out with my (very) limited knowledge, maybe just even write documentation, I just can't seem to find out how to do simple things like simply retrieve all the information about an underlying, so if someone if willing to help out via email or somewhere else that'd be awesome.

One thing that works in another repo I follow is a discussion board. People ask for help there at all levels and the community helps. It also helps separate actual repo issues from unrelated issues.

Could this be set up here on this repo?

@ScientiaCapital
Copy link

ScientiaCapital commented Feb 5, 2021 via email

@perigvennetier
Copy link

I am really interested in getting something super simple like getting equities quotes, option chains, option Greeks, specific options bid/ask based on the Greeks. And eventually the trading actions. That’s pretty much it. If I can help anyway after learning, a discussion board would be great.

@ScientiaCapital
Copy link

ScientiaCapital commented Feb 5, 2021 via email

@bandwiches
Copy link
Contributor

I'd really love to help out with my (very) limited knowledge, maybe just even write documentation, I just can't seem to find out how to do simple things like simply retrieve all the information about an underlying, so if someone if willing to help out via email or somewhere else that'd be awesome.

One thing that works in another repo I follow is a discussion board. People ask for help there at all levels and the community helps. It also helps separate actual repo issues from unrelated issues.

Could this be set up here on this repo?

I believe it can be added at any time on a public repo - though I could be wrong here.

Is that or would that be setup when we fork it to use it for the crypto bot? BTW bandwiches you are a badass and boyan too. loved watched how you fixed things and just wish i could fly in like that on code see problems and then fix them on the fly. Tasty woudl be a fun platform to play around with and thank you to you both we can now think about doing that.

I appreciate this comment! I'm just a DevOps guy, at the end of the day I rely on more stable programmers to improve my coding skills too! :)

I am really interested in getting something super simple like getting equities quotes, option chains, option Greeks, specific options bid/ask based on the Greeks. And eventually the trading actions. That’s pretty much it. If I can help anyway after learning, a discussion board would be great.

A lot of this is available in market-metrics, I have this module written but I haven't submitted it for a merge yet (currently waiting on watchlists/symbol-search merges to go in first since they're mostly just updates).

@bandwiches
Copy link
Contributor

@boyan-soubachov is this something you can enable for this repo?
image

@ScientiaCapital
Copy link

ScientiaCapital commented Feb 5, 2021 via email

@ScientiaCapital
Copy link

ScientiaCapital commented Feb 5, 2021 via email

@bandwiches
Copy link
Contributor

I'm not sure what's happening with this repo, but I wanted to extend whatever help I can. I manage a discord community that's particularly small, but robust. If you guys are interested, maybe I could extend that invite and it could kind of be a place to come and go for scripting help? Just throwing out ideas.

My current problem is that I cannot update this particular repo with anything new, I have to rely on maintainers to want to pull these updates and if that doesn't happen, then this repo becomes stale. Which means you guys have to follow my fork or risk never seeing the update.

I'm kind of at a loss here @boyan-soubachov, I'm not sure what options we as followers/forkers have to help keep this repo afloat with respect to this being the original repo.

@boyan-soubachov
Copy link
Owner

boyan-soubachov commented Feb 10, 2021 via email

@perigvennetier
Copy link

Hey. I will try and find some time to help out the community 🙂. Would also be cool to join the Discord and get direct feedback from the users

That’s awesome. Setting up the discussion board here would be great too!

@bandwiches
Copy link
Contributor

bandwiches commented Feb 11, 2021

It's a little limited for those who don't care for gaming, but there are a couple of us who hang out in the social area and trade/talk Tasty while we work (and some who game). Everyone is welcome, the bot is mine (I build and maintain it almost every day) and there is a special section setup for Tasty people, all you have to do is subscribe via the bot and it will open it up for you.

People come and go, comes with the work unfortunately.

Discord Invite

You can subscribe to Tasty by chatting: @Sheep sub tasty once you accept the ToS (@Sheep help for more). Works in any channel.

I could talk all day about all this stuff so I'll just shut up and leave this here. Feel free to message me on Discord as well if you don't want to join the community, just have questions, want some introductions, or whatever: BANDWICHES#9999

Edit: Fair warning, work is peaking right now so I'm a bit busier than normal.

Edit: Created a channel related to this package to make it easier for everyone, it should show up after you sub.

@boyan-soubachov
Copy link
Owner

@boyan-soubachov is this something you can enable for this repo?
image

Discussions is now live :)

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

No branches or pull requests

7 participants