Webhook Message

Invalid Take Profit Amount And Percent

Invalid take profit value. You cannot have a value for both amount and percent.

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
    },
}

Ready to automate your trading? Sign up for free today.