The provided stopLoss.trailPrice is invalid. The stopLoss.trailPrice field must be a positive numeric value representing a relative amount used to calculate your trailing stop loss.
stopLoss.trailPrice is a backwards-compatible alias for stopLoss.trailAmount. Prefer trailAmount in new integrations.
An invalid or non-positive trail amount supplied via either field name is reported as invalid-stop-loss-trail-amount, not this code. This historical message code remains for compatibility; prefer documenting and handling invalid-stop-loss-trail-amount for invalid trail dollar values.
Valid example using the preferred field name:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "trailing_stop",
"trailAmount": "2"
}
}
Valid equivalent using the legacy alias:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "trailing_stop",
"trailPrice": "2"
}
}
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.