This message indicates that stopLoss.pnlAmount was used together with stopLoss.type trailing_stop. Portfolio PnL stop loss applies only to stop market (stop) and stop limit (stop_limit) orders. Trailing stops use trailAmount or trailPercent instead.
Invalid example:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "trailing_stop",
"pnlAmount": 100,
"trailPercent": "1"
}
}
Valid trailing stop (no PnL):
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "trailing_stop",
"trailPercent": "1"
}
}
Valid PnL stop (non-trailing):
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "stop",
"pnlAmount": 100
}
}
Free 7-day trial
Set-up in 3 minutes
Paper account for testing
Your browser didn't send the information this action needs.
That usually means a privacy tool, ad blocker, or other browser extension changed the page before you clicked. Nothing is wrong with your account.
What to try: allow this site in your ad blocker or privacy extension, use a private window with extensions turned off, or reload the page and try again.
Still stuck? Contact support and we can help.