The trailing stop portion of the order is not working. The order fills and then that’s it.
order/placeorder
-1
{"acountSpec":"xxx","accountId":000,"symbol":"MESH2","action":"Buy","orderQty":1,"orderType":"Limit","price":4250.5,"isAutomated":true,"timeInForce":"Day","bracket1":"{\"action\":\"Sell\",\"orderType\":\"TrailingStop\",\"stopPrice\":4240.0}"}
There is not order/placeoso
order endpoint,
The buy limit order fills, the trailing stop order does not…
Following the order/placeoso order sample, i create this request.
order/placeorder
0
{"acountSpec":"xxx","accountId":000,"symbol":"MESH2","action":"Buy","orderQty":1,"orderType":"Limit","price":4270.0,"isAutomated":true,"timeInForce":"Day","bracket1":{"action":"Sell","orderType":"TrailingStop","stopPrice":4259.5}}
Only the buy limit order is filled, the bracket1 order isn’t even registered.
I copied the code from the oso example and only the first Buy order is filled, the stop limit order never gets routed.
order/placeorder
0
{"acountSpec":"xxx","accountId":000,"symbol":"MESH2","action":"Buy","orderQty":1,"orderType":"Limit","price":4271.0,"isAutomated":true,"timeInForce":"Day","bracket1":{"action":"Sell","orderType":"Limit","price":4281.5}}
-- got response message --
{'s': 200, 'i': 0, 'd': {'orderId': 3378049407}}
Is my message structure incorrect? Can you please assist with this…?