Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "ab7e43a5.143d6",
- "type": "http in",
- "z": "b7afe2b6.e3355",
- "name": "Crypto-Signals",
- "url": "/cryptosignals",
- "method": "post",
- "upload": false,
- "swaggerDoc": "",
- "x": 163.24996948242188,
- "y": 952.0833129882812,
- "wires": [
- [
- "8c1c6745.ef5438",
- "5bd0126c.0c434c"
- ]
- ]
- },
- {
- "id": "8c1c6745.ef5438",
- "type": "http response",
- "z": "b7afe2b6.e3355",
- "name": "",
- "statusCode": "",
- "headers": {},
- "x": 400.2499694824219,
- "y": 952.0833129882812,
- "wires": []
- },
- {
- "id": "5bd0126c.0c434c",
- "type": "function",
- "z": "b7afe2b6.e3355",
- "name": "Parser",
- "func": "var string = msg.payload.messages;\nvar obj = JSON.parse(string);\nmsg.payload = obj;\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 130.25,
- "y": 1039.0833129882812,
- "wires": [
- [
- "132b2c67.e1e234",
- "efa559b6.2f8998"
- ]
- ]
- },
- {
- "id": "132b2c67.e1e234",
- "type": "split",
- "z": "b7afe2b6.e3355",
- "name": "Splitter",
- "splt": "\\n",
- "spltType": "str",
- "arraySplt": 1,
- "arraySpltType": "len",
- "stream": false,
- "addname": "",
- "x": 276.25,
- "y": 1039.0833129882812,
- "wires": [
- [
- "477339de.8e5298"
- ]
- ]
- },
- {
- "id": "477339de.8e5298",
- "type": "switch",
- "z": "b7afe2b6.e3355",
- "name": "IndicatorType",
- "property": "payload.indicator",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "rsi",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "stoch_rsi",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "momentum",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "mfi",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 4,
- "x": 454.25,
- "y": 1039.0833129882812,
- "wires": [
- [
- "903b52e1.3d16a"
- ],
- [
- "cebe3a72.7e8098"
- ],
- [
- "78af4274.d5dc6c"
- ],
- [
- "79627b30.85b8f4"
- ]
- ]
- },
- {
- "id": "903b52e1.3d16a",
- "type": "change",
- "z": "b7afe2b6.e3355",
- "name": "Convert RSI to number",
- "rules": [
- {
- "t": "set",
- "p": "payload.values.rsi",
- "pt": "msg",
- "to": "$number(payload.values.rsi)",
- "tot": "jsonata"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 733.5000076293945,
- "y": 980.3333187103271,
- "wires": [
- [
- "5af9bf29.e7de8"
- ]
- ]
- },
- {
- "id": "cebe3a72.7e8098",
- "type": "change",
- "z": "b7afe2b6.e3355",
- "name": "Convert Stoch_RSI to number",
- "rules": [
- {
- "t": "set",
- "p": "payload.values.stoch_rsi",
- "pt": "msg",
- "to": "$number(payload.values.stoch_rsi)",
- "tot": "jsonata"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 763.5000076293945,
- "y": 1032.3333187103271,
- "wires": [
- [
- "7d7d2a67.d91a64"
- ]
- ]
- },
- {
- "id": "5af9bf29.e7de8",
- "type": "change",
- "z": "b7afe2b6.e3355",
- "name": "Set flow variables for Current Prices and RSI",
- "rules": [
- {
- "t": "set",
- "p": "currentprices",
- "pt": "flow",
- "to": "payload.prices",
- "tot": "jsonata"
- },
- {
- "t": "set",
- "p": "currentrsivalue",
- "pt": "flow",
- "to": "payload.values.rsi",
- "tot": "jsonata"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1114.5000076293945,
- "y": 980.3333187103271,
- "wires": [
- [
- "ff518b3e.779dc8"
- ]
- ]
- },
- {
- "id": "7d7d2a67.d91a64",
- "type": "change",
- "z": "b7afe2b6.e3355",
- "name": "Set flow variable for Stoch_RSI",
- "rules": [
- {
- "t": "set",
- "p": "currentstochrsivalue",
- "pt": "flow",
- "to": "\"Stoch_RSI : \" & msg.payload.values.stoch_rsi",
- "tot": "jsonata"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1074.500015258789,
- "y": 1032.333324432373,
- "wires": [
- [
- "fd3d040b.a0e4c8"
- ]
- ]
- },
- {
- "id": "78af4274.d5dc6c",
- "type": "change",
- "z": "b7afe2b6.e3355",
- "name": "Convert momentum to number",
- "rules": [
- {
- "t": "set",
- "p": "payload.values.momentum",
- "pt": "msg",
- "to": "$number(payload.values.momentum)",
- "tot": "jsonata"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 761.5000076293945,
- "y": 1081.3333187103271,
- "wires": [
- [
- "9f07f057.a5afd"
- ]
- ]
- },
- {
- "id": "79627b30.85b8f4",
- "type": "change",
- "z": "b7afe2b6.e3355",
- "name": "Convert mfi to number",
- "rules": [
- {
- "t": "set",
- "p": "payload.values.mfi",
- "pt": "msg",
- "to": "$number(payload.values.mfi)",
- "tot": "jsonata"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 732.5000076293945,
- "y": 1133.3333187103271,
- "wires": [
- [
- "f2422a9f.afa9b8"
- ]
- ]
- },
- {
- "id": "9f07f057.a5afd",
- "type": "change",
- "z": "b7afe2b6.e3355",
- "name": "Set flow variable for momentum",
- "rules": [
- {
- "t": "set",
- "p": "currentmomentumvalue",
- "pt": "flow",
- "to": "\"Momentum : \" & msg.payload.values.momentum",
- "tot": "jsonata"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1074.5000076293945,
- "y": 1081.3333187103271,
- "wires": [
- [
- "e2d80738.bbd1d8"
- ]
- ]
- },
- {
- "id": "f2422a9f.afa9b8",
- "type": "change",
- "z": "b7afe2b6.e3355",
- "name": "Set flow variable for mfi",
- "rules": [
- {
- "t": "set",
- "p": "currentmfivalue",
- "pt": "flow",
- "to": "\"MFI : \" & msg.payload.values.mfi",
- "tot": "jsonata"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1056.5000076293945,
- "y": 1132.3333187103271,
- "wires": [
- [
- "b2d0a349.aa184"
- ]
- ]
- },
- {
- "id": "7122e1e3.f30a8",
- "type": "comment",
- "z": "b7afe2b6.e3355",
- "name": "Flow for Crypto Signals",
- "info": "Signals received from Crypto-Signals webhook",
- "x": 183.5,
- "y": 902.3333129882812,
- "wires": []
- },
- {
- "id": "efa559b6.2f8998",
- "type": "debug",
- "z": "b7afe2b6.e3355",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "x": 289.5,
- "y": 1128,
- "wires": []
- },
- {
- "id": "b2d0a349.aa184",
- "type": "debug",
- "z": "b7afe2b6.e3355",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "x": 1283.5,
- "y": 1132,
- "wires": []
- },
- {
- "id": "e2d80738.bbd1d8",
- "type": "debug",
- "z": "b7afe2b6.e3355",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "x": 1320.5,
- "y": 1081,
- "wires": []
- },
- {
- "id": "fd3d040b.a0e4c8",
- "type": "debug",
- "z": "b7afe2b6.e3355",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "x": 1320.5,
- "y": 1032,
- "wires": []
- },
- {
- "id": "ff518b3e.779dc8",
- "type": "debug",
- "z": "b7afe2b6.e3355",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "x": 1411.5,
- "y": 980,
- "wires": []
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement