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:
sentiment parameter is set but used with an unsupported action.action parameter specified in the request.sentiment value.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",
}
Free 7-day trial
Set-up in 3 minutes
Paper account for testing