tedchou12 / webull

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

get_watchlist 500 error #301

Closed dnapier closed 1 year ago

dnapier commented 2 years ago

Will update with error and details tomorrow. Leaving this as a placeholder reminder but it seems the endpoint has changed.

dnapier commented 2 years ago

image image

dnapier commented 2 years ago

Just for further detail, I believe the API has changed and this component is now being handled by client side JavaScript. Have not been able to confirm though

dnapier commented 2 years ago

Have researched it some, looks like that data is stored in the IndexedDB and controlled by a couple of the many .js files imported from wbstatic.webullfintech.com/v1/webquotes-g/... That's as far as I'm going with it. Reading symbol stripped JavaScript is too painful.

ssheikh098 commented 2 years ago

401 error seems to be authorization issue. Its working fine for me.

image

dnapier commented 2 years ago

Thank you for verifying. I won't be able to confirm until Wednesday, but the raw output matches that described in the wiki, so you very likely are correct.

dnapier commented 2 years ago

Hmm.. doesn't seem to be that. I am successfully logged in and get the same result.

image image

Oddly enough, I see that URL/path return the same response (500 error) when running through a web proxy with the webull web app as well..

For reference, here is the request to get_watchlists() being sent, followed by the response.

image image
ssheikh098 commented 2 years ago

Can you check header - from this point to see if it has access token

image

link in my case: image

dnapier commented 2 years ago

Indeed, it does. image

I removed it from the request screenshot above as sensitive information.