Reduce {{ openPositionSide }} {{ openPositionSymbol }} position by {{ resizeDelta }} to {{ resizeTarget }}{{ resizeTargetSource }}.
This message indicates that a resize action calculated a target quantity smaller than your current open position, so TradersPost is reducing the position by the difference. Only the difference between the current filled quantity and the target is submitted.
Reducing a long position submits a sell; reducing a short position submits a buy. When order cancellation is enabled, TradersPost cancels resting orders on the position before reducing it. A partial reduction can therefore leave the remaining position without its previous take-profit or stop-loss protection. Send "cancel": false if you intentionally want those existing orders left in place, while remembering that they were sized for the larger position.
For example, if your open SPY position is 5 and you send a target of 4, TradersPost sells 1 to reach the target:
{
"ticker": "SPY",
"action": "resize",
"quantity": 4
}
To fully close the position, send a target of 0.
Free 7-day trial
Set-up in 3 minutes
Paper account for testing