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
sentimentparameter is set but used with an unsupportedaction. - A typographical error in the
actionparameter specified in the request. - The request does not conform to the required parameters for the
sentimentvalue. - Ensure that the
sentimentparameter in your request is used only withbuy,sell, orresizeactions 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.