Example of a bracket order

new to coding in general so reading examples that are different and applying the concepts is tough for me.
Im looking to use the REST api but submit a oco order.

api.submit_order(ticker, quantity, ‘sell’, ‘limit’, ‘gtc’, limit_price=exit_price)

here is what i usually submit. now i just want to add a stop order with it.


1 Like

Thanks for the reference. I’ve def exhausted all the references before asking in the forum. While that reference may spell it out clearly to one, its confusing to me because I’m not super savvy with coding. I posted an example of the order I use. How can I change that to accomplish a bracket order? The one in the reference is a dif format and I dont understand how to change it to accomplish the same thing

1 Like