Maybe that’s just me but how does the current curl specification for stop_loss look like? The blog entry for bracket orders seems to be deleted:
https://alpaca.markets/blog/bracket-orders-on-alpaca/
I’m currently using this:
curl https://paper-api.alpaca.markets/v2/orders -s -H "APCA-API-KEY-ID: " -H "APCA-API-SECRET-KEY: " -d '{"symbol":"ISEE","buy":"sell","time_in_force":"cls","extended_hours":false,"qty":"1716","type":"market", "stop_loss": {"stop_price": 4.27}}
The JSON I get back looks like this though (that was for a diff symbol but same order):
[id] =>
[client_order_id] =>
[created_at] => 2020-05-28T16:32:18.069399Z
[updated_at] => 2020-05-28T16:32:18.069399Z
[submitted_at] => 2020-05-28T16:32:18.036812Z
[filled_at] =>
[expired_at] =>
[canceled_at] =>
[failed_at] =>
[replaced_at] =>
[replaced_by] =>
[replaces] =>
[asset_id] => d5f668a3-682f-474a-84e2-d340593dd94c
[symbol] => BKR
[asset_class] => us_equity
[qty] => 421
[filled_qty] => 0
[filled_avg_price] =>
[order_class] =>
[order_type] => market
[type] => market
[side] => sell
[time_in_force] => cls
[limit_price] =>
[stop_price] =>
[status] => accepted
[extended_hours] =>
[legs] =>
Appreciate any help!