Thank you Sir, I'm still early in my Algo trading/Python journey, glad I discovered your work.
@FabledNarrative4 жыл бұрын
I JUST completed your API videos and was ready to try to place orders. THANK YOU for making these tutorials, Sigma Coding! :D
@daveahlman13 жыл бұрын
I am super impressed at your videos. Thank you so much for making these - they're exactly what I need! 👍👍
@SigmaCoding3 жыл бұрын
Glad you like them!
@mateostyle2 жыл бұрын
Really appreciate the videos. Super useful!! Keep at it!!
@AlexAlex-kt9ux3 жыл бұрын
Awesome tutorial, thanks a lot!. Working like a charm so far.
@SigmaCoding3 жыл бұрын
Great to hear!
@erniea58434 жыл бұрын
Awesome series man, keep up the good work
@JermelLadd3 жыл бұрын
Wow!!!! The order id is in the header!!! Before knowing this information I've been forced to query all orders on the day which often times takes more than 1s to download the response. THANK YOU.
@directsalesresources47884 жыл бұрын
Running into error message when attempting to place an order: td.exceptions.ForbidError: { "error" : "You don't have permission to access this resource." Streaming data from my account and getting position information is working, so I don't know what could be causing orders not to go through
@deniskoksal-rivet58163 жыл бұрын
Also having the same issue! Would love to know if anyone has solved this problem
@noe-subdireccioninnovacion35513 жыл бұрын
Did you find the solution for this problem?
@agusfontana85022 жыл бұрын
Hi, i have the same issue did you solve it ?
@pavlomatsko85874 жыл бұрын
This is super dopeeeee
@devarshshah31963 жыл бұрын
Can I use a script for multiple users, where I keep changing the access token and refresh token for the users in the td_state.json file and place orders one by one for all the users?
@h.h.12664 жыл бұрын
Thank you for posting this - keep up the good work! Quick question - I couldn't tell if you were testing the orders in a live account or paper money account. How do I test everything out in a paper-money account? Secondly, have you compared the order execution speeds between the API and placing the orders directly through TDA website (or thinkorswim)? Is one faster than the other? Thank you!
@SigmaCoding4 жыл бұрын
Unfortunately, TD Ameritrade does not offer paper trading through their web API. Everything I was testing was a live account, so when I test it I always do a very small order with a very cheap stock. I haven't compared execution speed between the Website and ThinkOrSwim, so I can't say for sure that they are the same. However, from my experience, I don't see a difference.
@livefire56232 жыл бұрын
Is there a way to use the Simulated Trading and not Live Trading Account?
@MelinasMagicWorld4 жыл бұрын
Hi, I am doing this with nodejs and I wonder how you get a response object after sending the create order post request. When I do this with their official API endpoints, I only get a status code but no details. I would prefer getting back the orderID and stuff on the response.
@SigmaCoding4 жыл бұрын
It's because the order ID is in the response headers. They don't document it anywhere, but if you look in the headers it will be there.
@MelinasMagicWorld4 жыл бұрын
@@SigmaCoding thank you mate. I just checked but I dont have the location header field in the response. When I use their official api on their website with oauth login for the examples, even there response has no location header with the id. Did they change that maybe?
@Benice19693 жыл бұрын
Thanks a lot, Alex! TD API is very clean and powerful. I didn't know that order id comes back in the header. Thank you for that too! I can't find 'orders_types.py' which you cover in this video. Could you please tell me where is this file on GitHub?
@chatterjeesidd4 жыл бұрын
Hi, I am getting a peculiar time out error when there is a gap of more than 2 mins between two orders I place. I am getting the following error. RESPONSE STATUS CODE: 401 RESPONSE TEXT: { "error":"The access token being passed has expired or is invalid." } Interestingly, after this failed exchange things get back to normal for the following order and it goes through, and after that the same error follow. This is how I am placing the orders self.limit_order_response = TDSession.place_order(account=self.user_principal_data['primaryAccountId'], order=self.temp_limit_order) Do you have any suggestion on how I can keep the access token active. NOTE: I am having no issues with streaming, and the data packets keep on coming in, I face the issue only when placing order.
@sebtaciak4 жыл бұрын
i am getting an error that .modify_order is not and attribute of the td_client object. indeed dir(td_client) indicates lack of such method. i am working with module version 0.2.3. will you add it?
@SigmaCoding4 жыл бұрын
It should be in there, did you update the library?
@QUANTCHARLIEWANG4 жыл бұрын
DEAR,I met the same problem as someone others. THE ERROR AS FOLLOWS,HOW CAN I SOLVE IT? THANK YOU " File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/td/client.py", line 606, in _make_request raise TknExpError(message=response.text) td.exceptions.TknExpError: {"error":"Not Authorized."}"
@SigmaCoding4 жыл бұрын
Looks like the token you are using is expired. You might need to delete your credentials file and go through the oAuth process again.
@jflow56013 жыл бұрын
Thanks for the information on the order id! TDA API documentation sucks. I was saying to myself, how the hell do you know which order to refer to when confirming referencing it to cancel etc...