Webhook Message

Invalid Sentiment Action

Invalid sentiment action provided. Sentiment can only be used with action buy or sell.

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