pandas-datareader icon indicating copy to clipboard operation
pandas-datareader copied to clipboard

Integrate with https://developer.tdameritrade.com/ (ask tdameritrade for code contribution)

Open mrinterestfull opened this issue 7 years ago • 3 comments

Would like to request an integration with https://developer.tdameritrade.com/

TDameritrade which recently merged with scottrade and now offers a new rest api set. Would be great if panda integrates with their API.

https://developer.tdameritrade.com/

http://pandas-datareader.readthedocs.io/en/latest/remote_data.html Solution description

option a) is to reach-out to tdameritrade and see if they are interested in making a code contribution. option b) is to have people who are already working with their api and want to use pandas, relate to this ticket and add their comments on python code they used so far.

Thank you Appreciate the great software ! Lucas

mrinterestfull avatar Mar 16 '18 03:03 mrinterestfull

This could actually be quite useful. There are a number of different endpoints (many are account-related, which can be skipped), but the following could be implemented pretty easily:

Quotes - (link)

Get quotes for one or more symbols

  • https://api.tdameritrade.com/v1/marketdata/quotes

Options - (link)

Get option chain for an optionable symbol

  • https://api.tdameritrade.com/v1/marketdata/chains

Movers - (link)

Top 10 (up or down) movers by value or percent for a particular market

  • https://api.tdameritrade.com/v1/marketdata/{index}/movers

Market Hours - (link)

Retrieve market hours for specified markets

  • https://api.tdameritrade.com/v1/marketdata/hours

Instruments

Search or retrieve instrument data, including fundamental data.

  • https://api.tdameritrade.com/v1/instruments

addisonlynch avatar Apr 14 '18 01:04 addisonlynch

Must have a TD account (requires key), but the process to gain an account isn't quite as easy as many of the other services which require auth (Quandl, etc).

You may need to open a full brokerage account, in which case it's probably not best to implement in PDR. Looking into it.

addisonlynch avatar Apr 14 '18 01:04 addisonlynch

So far: https://github.com/timkpaine/tdameritrade I think the gain here is that if you do have TD account, their API will be much more reliable then yahoo's. Or at least you won't be getting timeouts while looping throught stock options. Reached out to timkpaine to see if he can provide a patch to merge the code into here. Thanks Lucas

mrinterestfull avatar Feb 03 '19 04:02 mrinterestfull