Back to Webhook Messages
Webhook Messages

Invalid Action

The provided action is invalid. The action field must be one of the following values: buy, sell, exit, reverse, breakeven, cancel, add, or resize.

This message indicates that an invalid action was provided in the request. TradersPost requires that the action specified in the request must be one of the following: buy, sell, exit, reverse, breakeven, cancel, add, or resize. Any other action will be considered invalid and the request will not be processed.

This error can occur due to several reasons, such as:

  • A typo error in the action specified in the request.
  • An unsupported action was mistakenly included in the request.
  • The action was not correctly formatted according to the required parameters.
  • Ensure that the action in your request is one of the accepted values to avoid this error.

Invalid action example:

{
    "ticker": "AAPL",
    "action": "buy_to_open"
}

Valid action example:

{
    "ticker": "AAPL",
    "action": "buy"
}

Valid action=breakeven examples (requires an open position; orderType must be stop or stop_limit):

{
    "ticker": "SPY",
    "action": "breakeven",
    "orderType": "stop"
}

Breakeven with a dollar offset from average entry (optional breakevenOffset, between 0.001 and 100; requires Allow signal override next to Exit market price type, or the global Allow signal overrides, if overriding the strategy's Exit breakeven offset):

{
    "ticker": "SPY",
    "action": "breakeven",
    "orderType": "stop",
    "breakevenOffset": 5
}

If you encounter this error, please review the action specified in your request and ensure that it is one of the accepted values.

Ready to put Invalid Action 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.