API IntegrationExecuting Trade
Managing Open Position
Adjust, close, reverse, rebalance, and set risk on an open basket.
Once a basket is open, manage it through the trade and rebalance endpoints, all scoped to the trade account that holds it.
| Action | Endpoint |
|---|---|
| Adjust size | POST /trade/:positionId/adjust |
| Partially adjust | POST /trade/:positionId/adjust |
| Close | POST /trade/:positionId/close |
| Take Profit / Stop Loss | POST /triggers/close |
| Reverse | POST /trade/:positionId/reverse |
| Set leverage | PUT /leverage |
| Rebalance | POST /rebalance/manual/:positionId |
Every change is asynchronous: the endpoint acknowledges, and the result arrives over the WebSocket as a position.updated (or position.closed) event.