python-trading-robot icon indicating copy to clipboard operation
python-trading-robot copied to clipboard

Unable to post to live account

Open samighi opened this issue 3 years ago • 2 comments

I must not read instructions well. How does this post to my real account.

I got robot get_account to work. Still not sure how to place trades for real.

samighi avatar Sep 03 '20 00:09 samighi

Hi, While initializing the robot in run_robot.py, you have to pass in an argument paper_trading = False. This will help you to submit the orders & get it executed in real account. Otherwise, it will be stored in your saved orders but it will not get executed in your account. By the way, TDAmeritrade doesnt have a paper trading account. It is being done in your real account. But if you didnt pass in that argument paper_trading, it will be taken as True by default.

centi1 avatar Oct 04 '20 07:10 centi1

If you don't mind providing an example of code to buy 1 share of apple?

I had tried turning paper_trading = False before and nothing posts to my account. Using the token, I can post using CURL to my account. but not thru the code.

samighi avatar Oct 18 '20 12:10 samighi