tedchou12 / webull

Unofficial APIs for Webull.
MIT License
597 stars 181 forks source link

No ask price in Get_option() #318

Open Mahdi24w opened 2 years ago

Mahdi24w commented 2 years ago

Hello, I've been using this amazing repo for option trading for a while now. recently, there seems to be a problem with the get_option() method, sometimes and for some tickers , no ask or bid price is included in the response. I'm not sure what's causing the issue as sometimes there is an ask price and sometimes there isn't. I was thinking that maybe there's a new endpoint I'm missing , anyone else has been having the issue ?

mrazum commented 2 years ago

It doesn't work for me either. I'm getting code 500 after get_options_expiration_dates()

jeevanpillai commented 2 years ago

Here's the endpoint I used to get real-time options pricing from WeBull.

url = f'https://quotes-gw.webullfintech.com/api/quote/option/query/list?tickerId={ticker_id}&derivativeIds={",".join(derivative_ids)}' data = r.get(url=url, headers=headers).json()