$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "currentItems": [
< {
< "id": "m1",
< "symbol": "NVDA",
< "sentiment": "Bullish",
< "body": "NVDA breakout and strong upside, bullish long setup",
< "likes": 12,
< "replies": 3
< },
< {
< "id": "m2",
< "symbol": "NVDA",
< "sentiment": "Bullish",
< "body": "NVDA momentum",
< "likes": 8
< },
< {
< "id": "m3",
< "symbol": "TSLA",
< "sentiment": "Bearish",
< "body": "TSLA downside risk and bearish breakdown, short pressure",
< "likes": 10,
< "replies": 2
< },
< {
< "id": "m4",
< "symbol": "AAPL",
< "sentiment": "Bullish",
< "body": "AAPL constructive",
< "likes": 2
< }
< ],
< "previousItems": [
< {
< "id": "p1",
< "symbol": "NVDA",
< "sentiment": "Bearish",
< "body": "NVDA bearish",
< "likes": 3
< },
< {
< "id": "p2",
< "symbol": "TSLA",
< "sentiment": "Bullish",
< "body": "TSLA bullish",
< "likes": 4
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/quanmatrix~stocktwits-sentiment-flow-intelligence/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'