Webhook Message

Invalid Action

Invalid action provided. Action must be one of: buy, sell, exit, cancel, add.

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, cancel, or add. 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",
}

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 automate your trading? Sign up for free today.