Join us live for TradersPost Tutor Sessions today at 1pm EST. Join us to learn, ask questions, and level up your automation game. Watch on YouTube
Webhook Message

Invalid Sentiment Action

The provided sentiment action is invalid. The sentiment field can only be used when the action field is set to 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",
}

Start trading at scale today. Sign up for free.

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

Start now