Skip to content

Commit

Permalink
Merge pull request #38 from jrbartola/order-endpoint
Browse files Browse the repository at this point in the history
Add an endpoint to place orders
  • Loading branch information
timkpaine authored Jan 25, 2020
2 parents 9b8ac58 + b7f8b67 commit c607dc8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tdameritrade/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,8 @@ def movers(self, index, direction='up', change_type='percent'):
headers=self._headers(),
params={'direction': direction,
'change_type': change_type}).json()

def orders(self, account_id, order):
return requests.post(ACCOUNTS + account_id + "/orders",
headers=self._headers(),
json=order).json()

0 comments on commit c607dc8

Please sign in to comment.