Back to Webhook Messages
Webhook Messages

Invalid Take Profit Pnl Incompatible

The take profit configuration is invalid. takeProfit.pnlAmount cannot be combined with takeProfit.percent, takeProfit.amount, or takeProfit.limitPrice.

This message indicates that takeProfit.pnlAmount was sent together with another take profit mode in the same request. Portfolio PnL take profit must be used alone: you cannot combine pnlAmount with takeProfit.percent, takeProfit.amount, or takeProfit.limitPrice.

Invalid example (PnL plus relative amount):

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "takeProfit": {
        "pnlAmount": 100,
        "amount": 10
    }
}

Valid example (PnL only):

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "takeProfit": {
        "pnlAmount": 100
    }
}

Valid example (relative percent only):

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "takeProfit": {
        "percent": "5"
    }
}

Ready to put Invalid Take Profit Pnl Incompatible to work?

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.