Syncing Trades with your TD Ameritrade API in Python
I just published a repository on github that shows you the easiest 'full service' solution for syncing trades and hitting the TD Ameritrade API.
The biggest challenge here is managing the tokens and the forced 're-auth' every 60-90 days.
You can check out the code here , ping me on github if you have any questions!