StockTwits

Zapier has StockTwits connection for these functions

  • My posts
  • Posts by symbol
  • New posts by user

If n8n can have a StockTwits node that can pull in “posts by symbol” that would be great. I will then be able to shed Zapier completely.

thank you very much

Hey @kooln8n! What do you mean by “posts by symbol”? I couldn’t find it in their API docs: https://api.stocktwits.com/developers/docs/api :sweat_smile:

Do you by any chance mean “streams by symbol”? In case that’s it, this workflow might just do the trick :slight_smile:

{
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "url": "=https://api.stocktwits.com/api/2/streams/symbol/{{$json[\"symbol\"]}}.json",
        "options": {}
      },
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        670,
        300
      ]
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "symbol",
              "value": "AAPL"
            }
          ]
        },
        "options": {}
      },
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        450,
        300
      ]
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Hope that helps!