Strategy Message

Exit Partial Position

Exit partial {{ openPositionSide }} {{ openPositionSymbol }} position.

This message indicates that TradersPost will exit a portion of an existing position. For example, if the open long position in AAPL has a quantity of 10 and you send a webhook with a quantity of 5, then it will result in a partial exit.

{
    "ticker": "AAPL",
    "action": "sell",
    "quantity": 5
}

In these scenarios, if you are wanting to swap sides, the full position will need to be exited. If you partially exit, TradersPost will not enter a new position on the other side even when you have Allowed sides set to Both in your strategy settings. To exit the full position and enter the opposite side in one step, use action=reverse (with the full quantity or omit quantity).

You can always omit the quantity if you would like to exit the full quantity of the open position in the broker:

{
    "ticker": "AAPL",
    "action": "sell"
}

Start trading at scale today. Sign up for free.

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

Start now