td-ameritrade-python-api
td-ameritrade-python-api copied to clipboard
Unofficial Python API client library for TD Ameritrade. This library allows for easy access of the Standard API and allows users to build data pipelines for the Streaming API.
1 Reuse requests session, because Session holds connection pool objects, which can improve performance 2 Adds session_kwargs to all api, which is convenient for businesses to customize their own requests,...
I can't find LOC (Limit on close) order type. Anyone can help? Thanks.
Hi, I've been trying out this library (great work by the way!). Have been running into a wall with this particular issue where the streaming client seems to get terminated...
Hi, I ran the code below and when it writes the data to a csv this is the output CHART_HISTORY_FUTURES | key | symbol | /MES CHART_HISTORY_FUTURES | 0 |...
Potentially replace response.json() with response.**u**json() for serailizing the requets into a dictionary? https://github.com/areed1192/td-ameritrade-python-api/blob/ab9352aa563e12e34f1a9524f3fd11c51975e065/td/client.py#L654
Catch the different exception of the method _make_request and pass through place_order to catch up outside.
It will be nice to raise the exception in the place_order to catch up in the method that you are using and take the proper managment of the exception in...
This work is fantastic!!! I want to state first off, I do not think this is an issue with the code, but rather something to do with TD Ameritrade system....
Hi @areed1192, thank you for your explanation in issue #133. However, I noticed that in your _token_validation function, you did the following: ``` if self._token_seconds(token_type='access_token') < nseconds and self.config['refresh_enabled']: self.grab_refresh_token()...