The stop loss configuration is invalid. stopLoss.pnlAmount cannot be combined with stopLoss.percent, stopLoss.amount, stopLoss.stopPrice, or stopLoss.limitPrice.
This message indicates that stopLoss.pnlAmount was sent together with another stop loss price mode in the same request. Portfolio PnL stop loss must be used alone: you cannot combine pnlAmount with stopLoss.percent, stopLoss.amount, stopLoss.stopPrice, or stopLoss.limitPrice.
Invalid example (PnL plus percent):
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "stop",
"pnlAmount": 100,
"percent": "5"
}
}
Valid example (PnL only):
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "stop",
"pnlAmount": 100
}
}
Valid example (relative percent only):
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "stop",
"percent": "5"
}
}
Free 7-day trial
Set-up in 3 minutes
Paper account for testing