By default, if there is already an open position for the specified ticker, the trade will be rejected. You can change this default behavior by checking Allow add to position in your strategy settings.
Alternatively, you can use action=add in your webhook request to add to an existing position. The position must already be open to add to it, and if an existing position does not exist, the trade will be rejected.
{
"ticker": "AAPL",
"action": "add",
}
The action=resize bypasses this setting for the same reason. Allow add to position exists to filter an ambiguous repeat, such as a second buy while you are already long. Naming the size the position should end at is not ambiguous, so a resize to a larger target grows the position whether or not this setting is checked.
{
"ticker": "AAPL",
"action": "resize",
"quantity": 5
}
To open a new position, you can send action=buy or action=sell in your webhook request.
{
"ticker": "AAPL",
"action": "buy",
}
Free 7-day trial
Set-up in 3 minutes
Paper account for testing
By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.