anilshanbhag / RobinhoodShell

A command line shell for trading stocks using Robinhood
MIT License
411 stars 94 forks source link

added options #8

Closed mchauhan3 closed 6 years ago

anilshanbhag commented 6 years ago

Getting price data from Yahoo Finance is not a good idea. The price data there is quite stale, there should be a Robinhood api endpoint for it, yet to figure it out myself.

mchauhan3 commented 6 years ago

There is a Robinhood endpoint for it - /marketdata/options. However, querying it return error 403: forbidden. It might work if we can authenticate through https://api.robinhood.com/oauth2/token/ and use Bearer Authorization.

mchauhan3 commented 6 years ago

Ok I have changed the price data to Robinhood, had to change authentication for marketdata to work.

anilshanbhag commented 6 years ago

Finally merged it, made some minor changes to function names etc.