I am using Alpaca API and submit an OTO order or OCO order with an option symbol. For example: I submit order with body
{
"side": "buy",
"symbol": "AMZN240517P00185000",
"type": "market",
"limit_price": null,
"qty": 1,
"time_in_force": "day",
"order_class": "oto",
"take_profit": null,
"stop_loss": {
"stop_price": 9.3000000000,
"limit_price": null
}
}
I received an error message from Alpaca: “Complex orders not supported for options trading”. Does Alpaca support OTO orders or OCO orders for option trading?