The take profit configuration is invalid. You cannot specify both an amount and a percent for the take profit. Use either takeProfit.amount or takeProfit.percent, but not both.
This message indicates that both the takeProfit.amount and takeProfit.percent were provided in the request, which is not allowed. TradersPost requires that you specify only one of these values to set the take profit. Providing values for both parameters will be considered invalid, and the request will not be processed.
Portfolio PnL (takeProfit.pnlAmount) is a separate mode: combining pnlAmount with amount, percent, or limitPrice is rejected with a different error explaining that takeProfit.pnlAmount cannot be combined with those fields.
Invalid takeProfit example where both amount and percent are provided:
{
"ticker": "AAPL",
"action": "buy",
"takeProfit": {
"amount": 10,
"percent": 5
}
}
Valid takeProfit.amount example:
{
"ticker": "AAPL",
"action": "buy",
"takeProfit": {
"amount": 10
}
}
Valid takeProfit.percent example:
{
"ticker": "AAPL",
"action": "buy",
"takeProfit": {
"percent": 5
}
}
Free 7-day trial
Set-up in 3 minutes
Paper account for testing