You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overall this code has been great to use and super helpful.
I am trying to create a STOP order. I took the tda_build_limit_stock_order() sample, which works great for buy_limit and stop_limit orders and slightly modified it to do STOPs. Looking at the Class Orders, the "price" for LIMIT orders is a str but the "stopPrice" value is an int. I can get a STOP order submitted to TDA, however in the order i have to set "stopPrice = (int)price" to get it to work. This means I can only send in a STOP value of say 13 vs 13.47. I have tried a few other things, but they fail.
Is this a bug or am I missing something thing in terms of being able to send in 13.47 as the STOP price?
Thanks.
Brad
The text was updated successfully, but these errors were encountered:
Thanks Tim. I had searched but somehow I missed that other issue. Apologies. I did change the stopPrice to a str in the Class Orders and tried again and that solved the problem.
Overall this code has been great to use and super helpful.
I am trying to create a STOP order. I took the tda_build_limit_stock_order() sample, which works great for buy_limit and stop_limit orders and slightly modified it to do STOPs. Looking at the Class Orders, the "price" for LIMIT orders is a str but the "stopPrice" value is an int. I can get a STOP order submitted to TDA, however in the order i have to set "stopPrice = (int)price" to get it to work. This means I can only send in a STOP value of say 13 vs 13.47. I have tried a few other things, but they fail.
Is this a bug or am I missing something thing in terms of being able to send in 13.47 as the STOP price?
Thanks.
Brad
The text was updated successfully, but these errors were encountered: