Webhook Message

Invalid Take Profit Amount And Percent

The take profit configuration is invalid. You cannot specify both an amount and a percent for the take profit. Use either takeProfit.amount or takeProfit.percent, but not both.

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.