This message indicates that both stopLoss.trailAmount and stopLoss.trailPercent values were provided in the request, which is not allowed. TradersPost requires that you specify only one type of trailing stop loss value to avoid conflicts. If a request includes both a stopLoss.trailAmount and stopLoss.trailPercent, the request will not be processed.
Invalid trailing stop loss value example:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "trailing_stop",
"trailAmount": "2",
"trailPercent": "5"
}
}
Valid trailing stop loss value example (trailAmount):
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "trailing_stop",
"trailAmount": "2",
}
}
Valid trailing stop loss value example (trailPercent):
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "trailing_stop",
"trailPercent": "5"
}
}
In the above examples, a valid trailing stop loss order includes either a trailAmount or a trailPercent, but not both, ensuring clear and precise instructions for the trailing stop loss mechanism.