Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to post to live account #8

Open
samighi opened this issue Sep 3, 2020 · 2 comments
Open

Unable to post to live account #8

samighi opened this issue Sep 3, 2020 · 2 comments

Comments

@samighi
Copy link

samighi commented Sep 3, 2020

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.

@centi1
Copy link

centi1 commented Oct 4, 2020

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.

@samighi
Copy link
Author

samighi commented Oct 18, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants