Hello!
I’ve seen here and there on the forum that Crypto orders do not support bracket and oco types. However the official documentation does imply it is supported: Orders | Alpaca Docs. I tested it and it does not work.
order_class |
string | > Optional |
simple , bracket , oco or oto . For details of non-simple order classes, please see Bracket Order Overview
|
---|---|---|---|
take_profit |
object | > Optional | Additional parameters for take-profit leg of advanced orders |
stop_loss |
object | > Optional | Additional parameters for stop-loss leg of advanced orders |
Can anyone clarify whether the documentation is not up-to-date and how to place a stop loss and take profit for crypto at the same time? Right now, after setting a stop loss, I cannot set a take profit anymore since there is no size left.
Thanks!