Oco one cancels other orders

I have a system running that uses python.
I have noticed that I can greatly simplify my code if I can get the order placed in a certain fashion.
I want to place the first position with a simple buy, which no problem. Then I want to place a second oco order to liquidate my position at x if price increases and to buy more if it goes down
Example I buy 10 shares at 100. I want the order to sell the 10 if the price hits 110 and to buy an additional 15 shares if it drops to 90.

Is it possible to do this with a oco order? If so can you show how the order would look in python.

Thanks

Blockquote

No, currently OCO order is to exit your position. There may be future enhancements to support something like this.

Hello again
This code if from>>https://blog.alpaca.markets/blog/oco-oto-on-alpaca
“side”: “sell”,
“symbol”: “AAPL”,
“type”: “limit”,
“qty”: “10”,
“time_in_force”: “gtc”,
“order_class”: “oco”,
“take_profit”: {
“limit_price”: “325”
},
“stop_loss”: {
“stop_price”: “250”,
“limit_price”: “249.5”
}
1.Could you please translate it to Python?
2.Is there a call that would allow me to execute the above code from within Python?
Thanks for your continuing help.
Thomas