The take profit configuration is invalid. takeProfit.pnlAmount cannot be combined with takeProfit.percent, takeProfit.amount, or takeProfit.limitPrice.
This message indicates that takeProfit.pnlAmount was sent together with another take profit mode in the same request. Portfolio PnL take profit must be used alone: you cannot combine pnlAmount with takeProfit.percent, takeProfit.amount, or takeProfit.limitPrice.
Invalid example (PnL plus relative amount):
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"takeProfit": {
"pnlAmount": 100,
"amount": 10
}
}
Valid example (PnL only):
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"takeProfit": {
"pnlAmount": 100
}
}
Valid example (relative percent only):
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"takeProfit": {
"percent": "5"
}
}
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.