itsjafer / schwab-api

A python library for placing trades on Charles Schwab
MIT License
201 stars 64 forks source link

quote function change? #23

Closed dougbrowning closed 8 months ago

dougbrowning commented 8 months ago

I see it is now quotes = api.quote_v2?
But I get this message (['{"errors":[{"id":"59667069-9c6f-052a-9d4e34795291","status":"500","title":"InternalServerError","details":"Server ' 'Error - Error while getting quotes"}]}'], False)

Not sure what changed but nothing is working for me now. thanks

itsjafer commented 8 months ago

I'm not quite able to reproduce this, could you give me the exact code you're running?

dougbrowning commented 8 months ago

Well it was quotes = api.quote(["SPY 231219C00470000"]) but now it says that function no longer exists and all I see is this now quotes = api.quote_v2(["SPY 231219C00470000"])

image

Well now I got quotes = api.quote_v2(["SPY 231219C00470000"]) to start working.

Why was the function changed? Hard to keep code in sync.

thanks

itsjafer commented 8 months ago

You can expect stability in function names going forward. Glad you got it working!

dougbrowning commented 8 months ago

I see the difference now. The options are what stopped working quotes = api.quote_v2(["SPY 231219C00474000"]) does not work quotes = api.quote_v2(["SPY"]) does work.

Did you change the format for options?

thanks