Back to Webhook Messages
Webhook Messages

Invalid Sentiment Action

The provided sentiment action is invalid. The sentiment field can only be used when the action field is set to buy, sell, or resize.

This message indicates that an invalid action was provided for the sentiment parameter in the request. TradersPost requires that the sentiment parameter can only be used with the following actions: buy, sell, or resize. Any other action used in conjunction with sentiment will be considered invalid, and the request will not be processed.

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

  • The sentiment parameter is set but used with an unsupported action.
  • A typographical error in the action parameter specified in the request.
  • The request does not conform to the required parameters for the sentiment value.
  • Ensure that the sentiment parameter in your request is used only with buy, sell, or resize actions to avoid this error.

Here is an example of a valid JSON payloading using the sentiment parameter:

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

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