This message indicates that both the takeProfit.amount and takeProfit.percent were provided in the request, which is not allowed. TradersPost requires that you specify only one of these values to set the take profit. Providing values for both parameters will be considered invalid, and the request will not be processed.
Invalid takeProfit example where both amount and percent are provided:
{
"ticker": "AAPL",
"action": "buy",
"takeProfit": {
"amount": 10,
"percent": 5
},
}
Valid takeProfit.amount example:
{
"ticker": "AAPL",
"action": "buy",
"takeProfit": {
"amount": 10
},
}
Valid takeProfit.percent example:
{
"ticker": "AAPL",
"action": "buy",
"takeProfit": {
"percent": 5
},
}
Free 7-day trial
Set-up in 3 minutes
Paper account for testing