PearPear
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.

ActionEndpoint
Adjust sizePOST /trade/:positionId/adjust
Partially adjustPOST /trade/:positionId/adjust
ClosePOST /trade/:positionId/close
Take Profit / Stop LossPOST /triggers/close
ReversePOST /trade/:positionId/reverse
Set leveragePUT /leverage
RebalancePOST /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.