Crypto alert with dashboard

I used node-red-dashboard v.3.6.5

i wanted to make a voice alert via alexa, when the price of a cryptocurrency reaches a certain value.

i wrote this flow, but it only works with the first cryptomonrency (tao) in the list i think it's due to the type of global variable. that i inserted in the second cryptomonrency (btc) can someone help me?

[
    {
        "id": "e9de822530ca3411",
        "type": "ui_text_input",
        "z": "9583b8de.96bc48",
        "name": "",
        "label": "TAO",
        "tooltip": "",
        "group": "2fdfab82bfaf51d2",
        "order": 3,
        "width": "0",
        "height": "0",
        "passthru": true,
        "mode": "number",
        "delay": 300,
        "topic": "topic",
        "sendOnBlur": true,
        "className": "",
        "topicType": "msg",
        "x": 90,
        "y": 40,
        "wires": [
            [
                "a7b9dd13de88bc27"
            ]
        ]
    },
    {
        "id": "bed1b5b891d99371",
        "type": "switch",
        "z": "9583b8de.96bc48",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lte",
                "v": "taoprice",
                "vt": "global"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 630,
        "y": 280,
        "wires": [
            [
                "55d70149b08a6964"
            ]
        ]
    },
    {
        "id": "3cb559bec57f027c",
        "type": "inject",
        "z": "9583b8de.96bc48",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "5",
        "crontab": "",
        "once": false,
        "onceDelay": "1",
        "topic": "",
        "payload": "taoprice",
        "payloadType": "global",
        "x": 120,
        "y": 280,
        "wires": [
            [
                "94e7c7b0f6507882"
            ]
        ]
    },
    {
        "id": "b193cb95d8755df8",
        "type": "http request",
        "z": "9583b8de.96bc48",
        "name": "TAO",
        "method": "GET",
        "ret": "obj",
        "paytoqs": "ignore",
        "url": "https://api.bybit.com/v5/market/kline?category=linear&symbol=TAOUSDT&interval=1",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 1090,
        "y": 280,
        "wires": [
            [
                "9f1e3d016105896b"
            ]
        ]
    },
    {
        "id": "9f1e3d016105896b",
        "type": "function",
        "z": "9583b8de.96bc48",
        "name": "json to TAO in USDT",
        "func": "var tao = msg.payload.result.list[0][1]\n\n\n\n\nvar a = \" Allarme il prezzo di tao è <break time='0.1s'/>\";\nvar b = \" dollari <break time='0.25s'/>\";\n\n//whisper message\nvar k, l;\nif (msg.payload.Quiet == \"On\") {\n    k = '   <amazon:effect name=\"whispered\">'\n    l = '   </amazon:effect>'\n}\nelse {\n    k = \"\"\n    l = \"\"\n}\n\nvar message = k + a + tao + b + l;\nmsg.payload = message;\n\n\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1260,
        "y": 280,
        "wires": [
            [
                "4079b4b48cf2b12c"
            ]
        ]
    },
    {
        "id": "4079b4b48cf2b12c",
        "type": "alexa-remote-routine",
        "z": "9583b8de.96bc48",
        "name": "",
        "account": "e0d0608560b4720d",
        "routineNode": {
            "type": "speakAtVolume",
            "payload": {
                "type": "regular",
                "text": {
                    "type": "msg",
                    "value": "payload"
                },
                "volume": {
                    "type": "num",
                    "value": "25"
                },
                "mode": "set",
                "devices": [
                    "G0922H8523240SMD",
                    "G090XG01456518WL"
                ]
            }
        },
        "x": 1510,
        "y": 280,
        "wires": [
            []
        ]
    },
    {
        "id": "042c064ce59ad6a4",
        "type": "delay",
        "z": "9583b8de.96bc48",
        "name": "",
        "pauseType": "delay",
        "timeout": "100",
        "timeoutUnits": "milliseconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 950,
        "y": 280,
        "wires": [
            [
                "b193cb95d8755df8"
            ]
        ]
    },
    {
        "id": "a7b9dd13de88bc27",
        "type": "change",
        "z": "9583b8de.96bc48",
        "name": "taoprice",
        "rules": [
            {
                "t": "move",
                "p": "payload",
                "pt": "msg",
                "to": "taoprice",
                "tot": "global"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 220,
        "y": 40,
        "wires": [
            []
        ]
    },
    {
        "id": "183dceab7f9aa564",
        "type": "function",
        "z": "9583b8de.96bc48",
        "name": "json to TAO in USDT",
        "func": "var tao = msg.payload.result.list[0][1];\nmsg.payload = tao;\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 460,
        "y": 280,
        "wires": [
            [
                "bed1b5b891d99371"
            ]
        ]
    },
    {
        "id": "94e7c7b0f6507882",
        "type": "http request",
        "z": "9583b8de.96bc48",
        "name": "TAO",
        "method": "GET",
        "ret": "obj",
        "paytoqs": "ignore",
        "url": "https://api.bybit.com/v5/market/kline?category=linear&symbol=TAOUSDT&interval=1",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 270,
        "y": 280,
        "wires": [
            [
                "183dceab7f9aa564"
            ]
        ]
    },
    {
        "id": "55d70149b08a6964",
        "type": "time-range-switch",
        "z": "9583b8de.96bc48",
        "name": "",
        "lat": "",
        "lon": "",
        "startTime": "23:59",
        "endTime": "6:00",
        "startOffset": 0,
        "endOffset": 0,
        "x": 770,
        "y": 280,
        "wires": [
            [],
            [
                "042c064ce59ad6a4"
            ]
        ]
    },
    {
        "id": "23d6b7978eba489b",
        "type": "ui_text_input",
        "z": "9583b8de.96bc48",
        "name": "",
        "label": "BTC",
        "tooltip": "",
        "group": "2fdfab82bfaf51d2",
        "order": 3,
        "width": "0",
        "height": "0",
        "passthru": true,
        "mode": "number",
        "delay": 300,
        "topic": "topic",
        "sendOnBlur": true,
        "className": "",
        "topicType": "msg",
        "x": 90,
        "y": 100,
        "wires": [
            [
                "5649a6db5ddfdae1"
            ]
        ]
    },
    {
        "id": "5649a6db5ddfdae1",
        "type": "change",
        "z": "9583b8de.96bc48",
        "name": "btcprice",
        "rules": [
            {
                "t": "move",
                "p": "payload",
                "pt": "msg",
                "to": "btcprice",
                "tot": "global"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 220,
        "y": 100,
        "wires": [
            []
        ]
    },
    {
        "id": "e9c4155901807cb5",
        "type": "ui_text_input",
        "z": "9583b8de.96bc48",
        "name": "",
        "label": "ETH3L",
        "tooltip": "",
        "group": "2fdfab82bfaf51d2",
        "order": 3,
        "width": "0",
        "height": "0",
        "passthru": true,
        "mode": "number",
        "delay": 300,
        "topic": "topic",
        "sendOnBlur": true,
        "className": "",
        "topicType": "msg",
        "x": 440,
        "y": 40,
        "wires": [
            [
                "d4cbddec54a95ede"
            ]
        ]
    },
    {
        "id": "d4cbddec54a95ede",
        "type": "change",
        "z": "9583b8de.96bc48",
        "name": "eth3lprice",
        "rules": [
            {
                "t": "move",
                "p": "payload",
                "pt": "msg",
                "to": "eth3lprice",
                "tot": "global"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 600,
        "y": 40,
        "wires": [
            []
        ]
    },
    {
        "id": "b819b93aa6896e4f",
        "type": "ui_text_input",
        "z": "9583b8de.96bc48",
        "name": "",
        "label": "FET",
        "tooltip": "",
        "group": "2fdfab82bfaf51d2",
        "order": 3,
        "width": "0",
        "height": "0",
        "passthru": true,
        "mode": "number",
        "delay": 300,
        "topic": "topic",
        "sendOnBlur": true,
        "className": "",
        "topicType": "msg",
        "x": 430,
        "y": 100,
        "wires": [
            [
                "64dd4a4c0b2ef1ee"
            ]
        ]
    },
    {
        "id": "64dd4a4c0b2ef1ee",
        "type": "change",
        "z": "9583b8de.96bc48",
        "name": "fetprice",
        "rules": [
            {
                "t": "move",
                "p": "payload",
                "pt": "msg",
                "to": "fetprice",
                "tot": "global"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 600,
        "y": 100,
        "wires": [
            []
        ]
    },
    {
        "id": "ebe52f0cb64cba83",
        "type": "debug",
        "z": "9583b8de.96bc48",
        "name": "debug 1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1000,
        "y": 180,
        "wires": []
    },
    {
        "id": "300bc64e17208247",
        "type": "switch",
        "z": "9583b8de.96bc48",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gte",
                "v": "btcprice",
                "vt": "global"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 630,
        "y": 400,
        "wires": [
            [
                "4356a8757e48ee91"
            ]
        ]
    },
    {
        "id": "0c7dc780312eb452",
        "type": "inject",
        "z": "9583b8de.96bc48",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "5",
        "crontab": "",
        "once": false,
        "onceDelay": "1",
        "topic": "",
        "payload": "btcprice",
        "payloadType": "global",
        "x": 120,
        "y": 400,
        "wires": [
            [
                "2e57d1502b2c3d59"
            ]
        ]
    },
    {
        "id": "5c16c91e99ad36bb",
        "type": "http request",
        "z": "9583b8de.96bc48",
        "name": "BTC",
        "method": "GET",
        "ret": "obj",
        "paytoqs": "ignore",
        "url": "https://api.bybit.com/v5/market/kline?category=linear&symbol=BTCUSDT&interval=1",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 1090,
        "y": 400,
        "wires": [
            [
                "0f752386bbc0ed02"
            ]
        ]
    },
    {
        "id": "0f752386bbc0ed02",
        "type": "function",
        "z": "9583b8de.96bc48",
        "name": "json to BTC in USDT",
        "func": "var btc = msg.payload.result.list[0][1]\n\n\n\n\nvar a = \" Allarme il prezzo di bitcoin è <break time='0.1s'/>\";\nvar b = \" dollari <break time='0.25s'/>\";\n\n//whisper message\nvar k, l;\nif (msg.payload.Quiet == \"On\") {\n    k = '   <amazon:effect name=\"whispered\">'\n    l = '   </amazon:effect>'\n}\nelse {\n    k = \"\"\n    l = \"\"\n}\n\nvar message = k + a + btc + b + l;\nmsg.payload = message;\n\n\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1260,
        "y": 400,
        "wires": [
            [
                "728ac4b3e60a6434"
            ]
        ]
    },
    {
        "id": "728ac4b3e60a6434",
        "type": "alexa-remote-routine",
        "z": "9583b8de.96bc48",
        "name": "",
        "account": "e0d0608560b4720d",
        "routineNode": {
            "type": "speakAtVolume",
            "payload": {
                "type": "regular",
                "text": {
                    "type": "msg",
                    "value": "payload"
                },
                "volume": {
                    "type": "num",
                    "value": "30"
                },
                "mode": "set",
                "devices": [
                    "G0922H8523240SMD",
                    "G090XG01456518WL"
                ]
            }
        },
        "x": 1510,
        "y": 400,
        "wires": [
            []
        ]
    },
    {
        "id": "e3e8fdd82fd317fd",
        "type": "delay",
        "z": "9583b8de.96bc48",
        "name": "",
        "pauseType": "delay",
        "timeout": "100",
        "timeoutUnits": "milliseconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 950,
        "y": 400,
        "wires": [
            [
                "5c16c91e99ad36bb"
            ]
        ]
    },
    {
        "id": "e10f602ebabfce64",
        "type": "function",
        "z": "9583b8de.96bc48",
        "name": "json to BTC in USDT",
        "func": "var btc = msg.payload.result.list[0][1];\nmsg.payload = btc;\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 460,
        "y": 400,
        "wires": [
            [
                "300bc64e17208247"
            ]
        ]
    },
    {
        "id": "2e57d1502b2c3d59",
        "type": "http request",
        "z": "9583b8de.96bc48",
        "name": "BTC",
        "method": "GET",
        "ret": "obj",
        "paytoqs": "ignore",
        "url": "https://api.bybit.com/v5/market/kline?category=spot&symbol=BTCUSDT&interval=1",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 270,
        "y": 400,
        "wires": [
            [
                "e10f602ebabfce64"
            ]
        ]
    },
    {
        "id": "4356a8757e48ee91",
        "type": "time-range-switch",
        "z": "9583b8de.96bc48",
        "name": "",
        "lat": "",
        "lon": "",
        "startTime": "23:59",
        "endTime": "6:00",
        "startOffset": 0,
        "endOffset": 0,
        "x": 790,
        "y": 400,
        "wires": [
            [],
            [
                "e3e8fdd82fd317fd"
            ]
        ]
    },
    {
        "id": "2fdfab82bfaf51d2",
        "type": "ui_group",
        "name": "CRYPTO alert",
        "tab": "0aca579870c98df1",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "e0d8568560b4120d",
        "type": "alexa-remote-account",
        "name": "opt",
        "authMethod": "proxy",
        "proxyOwnIp": "192.168.0.202",
        "proxyPort": "3456",
        "cookieFile": "/data/authFile.cookie",
        "refreshInterval": "0",
        "alexaServiceHost": "alexa.amazon.it",
        "pushDispatchHost": "",
        "amazonPage": "amazon.it",
        "acceptLanguage": "it-IT",
        "onKeywordInLanguage": "",
        "userAgent": "",
        "usePushConnection": "on",
        "autoInit": "on",
        "autoQueryActivityOnTrigger": "on"
    },
    {
        "id": "0aca579870c98df1",
        "type": "ui_tab",
        "name": "Home",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

Seems like a lot of excesive http calls and repeated nodes.
Set the numeric input globals like in example.
The crypto global property is the the same as mag.payload.result.symbol.
You just need to add numeric inputs for other crypto's

[{"id":"a7b9dd13de88bc27","type":"change","z":"d1395164b4eec73e","name":"taoprice","rules":[{"t":"set","p":"crypto.TAOUSDT.price","pt":"global","to":"payload","tot":"msg"},{"t":"set","p":"crypto.TAOUSDT.name","pt":"global","to":"tao","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":200,"y":5500,"wires":[[]]},{"id":"5649a6db5ddfdae1","type":"change","z":"d1395164b4eec73e","name":"btcprice","rules":[{"t":"set","p":"crypto.BTCUSDT.price","pt":"global","to":"payload","tot":"msg"},{"t":"set","p":"crypto.BTCUSDT.name","pt":"global","to":"BST","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":200,"y":5560,"wires":[[]]},{"id":"23d6b7978eba489b","type":"ui_text_input","z":"d1395164b4eec73e","name":"","label":"BTC","tooltip":"","group":"2fdfab82bfaf51d2","order":3,"width":"0","height":"0","passthru":false,"mode":"number","delay":300,"topic":"topic","sendOnBlur":true,"className":"","topicType":"msg","x":70,"y":5560,"wires":[["5649a6db5ddfdae1"]]},{"id":"ec14987bd60ece04","type":"inject","z":"d1395164b4eec73e","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"crypto","payloadType":"global","x":90,"y":5680,"wires":[["b9b73d06f4239783"]]},{"id":"b9b73d06f4239783","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$keys($$.payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":160,"y":5720,"wires":[["f0b39c06f4744fa2"]]},{"id":"f0b39c06f4744fa2","type":"split","z":"d1395164b4eec73e","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":310,"y":5720,"wires":[["87481181bde5dabf"]]},{"id":"87481181bde5dabf","type":"delay","z":"d1395164b4eec73e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":470,"y":5720,"wires":[["94e7c7b0f6507882"]]},{"id":"94e7c7b0f6507882","type":"http request","z":"d1395164b4eec73e","name":"Dynamic request","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://api.bybit.com/v5/market/kline?category=linear&symbol={{payload}}&interval=1","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":190,"y":5780,"wires":[["bed1b5b891d99371"]]},{"id":"bed1b5b891d99371","type":"switch","z":"d1395164b4eec73e","name":"","property":"crypto[msg.payload.result.symbol].price","propertyType":"global","rules":[{"t":"lte","v":"$number($$.payload.result.list[0][1])","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":1,"x":330,"y":5800,"wires":[["9f1e3d016105896b"]]},{"id":"9f1e3d016105896b","type":"function","z":"d1395164b4eec73e","name":"Create speech text","func":"let crypto = msg.payload.result.list[0][1]\nlet name = global.get(\"crypto.\" + msg.payload.result.symbol + \".name\")\n\nlet a = \" Allarme il prezzo di \" + name + \" è <break time='0.1s'/>\";\nlet b = \" dollari <break time='0.25s'/>\";\n\n//whisper message\nlet k = \"\";\nlet l = \"\";\nif (msg.payload.Quiet == \"On\") {\n    k = '   <amazon:effect name=\"whispered\">'\n    l = '   </amazon:effect>'\n}\n\nlet message = k + a + crypto + b + l;\nmsg.payload = message;\n\n\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":510,"y":5800,"wires":[["412b4e9eef70be56"]]},{"id":"412b4e9eef70be56","type":"delay","z":"d1395164b4eec73e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":720,"y":5800,"wires":[["4079b4b48cf2b12c"]]},{"id":"4079b4b48cf2b12c","type":"alexa-remote-routine","z":"d1395164b4eec73e","name":"","account":"c8738129.d902c","routineNode":{"type":"speakAtVolume","payload":{"type":"regular","text":{"type":"msg","value":"payload"},"volume":{"type":"num","value":"50"},"mode":"set","devices":["G090LF1182850C6D"]}},"x":950,"y":5800,"wires":[["b747fc0b39b16be5"]]},{"id":"b747fc0b39b16be5","type":"debug","z":"d1395164b4eec73e","name":"debug 2487","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":990,"y":5700,"wires":[]},{"id":"e9de822530ca3411","type":"ui_text_input","z":"d1395164b4eec73e","name":"","label":"TAO","tooltip":"","group":"2fdfab82bfaf51d2","order":3,"width":"0","height":"0","passthru":false,"mode":"number","delay":300,"topic":"topic","sendOnBlur":true,"className":"","topicType":"msg","x":70,"y":5500,"wires":[["a7b9dd13de88bc27"]]},{"id":"2fdfab82bfaf51d2","type":"ui_group","name":"CRYPTO alert","tab":"0aca579870c98df1","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"c8738129.d902c","type":"alexa-remote-account","name":"alexa remote 2","authMethod":"proxy","proxyOwnIp":"localhost","proxyPort":"3456","cookieFile":"/data/data/com.termux/files/home/.node-red/.alexa.cookie","refreshInterval":"14","alexaServiceHost":"layla.amazon.co.uk","pushDispatchHost":"","amazonPage":"amazon.co.uk","acceptLanguage":"en-GB","onKeywordInLanguage":"","userAgent":"","usePushConnection":"on","autoInit":"off","autoQueryActivityOnTrigger":"on"},{"id":"0aca579870c98df1","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

[edit] Made it read globals for http request , so all you need to do is add numeric inputs with the correct symbol and the http requests will be dynamically created.

1 Like

@E1cid thanks for replying;
the flow is much more efficient, but much more complex for me and difficult to edit correctly.
i still have these problems:

  • the ETH3L coin belongs to the spot market and not to the linear market how can i modify the dynamic request.
  • in the inject node i have set a repetition interval of 5 seconds so that the start is automatic.
  • i would like to make the alert values persistent in the dashboard so that they do not disappear when nodered is restarted.
  • in the switch there is something wrong because it writes "Error: Invalid expression started at position 7".
    also i changed the value to >= so i had continuous warnings.
  • how do i adjust the limit msg correctly as some warnings are ignored.
[
    {
        "id": "14b129c9d3a8f251",
        "type": "change",
        "z": "b880dbc33994a414",
        "name": "taoprice",
        "rules": [
            {
                "t": "set",
                "p": "crypto.TAOUSDT.price",
                "pt": "global",
                "to": "payload",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "crypto.TAOUSDT.name",
                "pt": "global",
                "to": "tao",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 340,
        "y": 160,
        "wires": [
            []
        ]
    },
    {
        "id": "2727a2c67852ccad",
        "type": "change",
        "z": "b880dbc33994a414",
        "name": "btcprice",
        "rules": [
            {
                "t": "set",
                "p": "crypto.BTCUSDT.price",
                "pt": "global",
                "to": "payload",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "crypto.BTCUSDT.name",
                "pt": "global",
                "to": "BTC",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 340,
        "y": 220,
        "wires": [
            []
        ]
    },
    {
        "id": "65d767b3d049c756",
        "type": "ui_text_input",
        "z": "b880dbc33994a414",
        "name": "",
        "label": "BTC",
        "tooltip": "",
        "group": "2fdfab82bfaf51d2",
        "order": 3,
        "width": "0",
        "height": "0",
        "passthru": false,
        "mode": "number",
        "delay": 300,
        "topic": "topic",
        "sendOnBlur": true,
        "className": "",
        "topicType": "msg",
        "x": 210,
        "y": 220,
        "wires": [
            [
                "2727a2c67852ccad"
            ]
        ]
    },
    {
        "id": "55bae7c624ce514b",
        "type": "inject",
        "z": "b880dbc33994a414",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "5",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "crypto",
        "payloadType": "global",
        "x": 120,
        "y": 380,
        "wires": [
            [
                "9f8e50a361561b98"
            ]
        ]
    },
    {
        "id": "9f8e50a361561b98",
        "type": "change",
        "z": "b880dbc33994a414",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "$keys($$.payload)",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 300,
        "y": 380,
        "wires": [
            [
                "13903b302cb4eb80"
            ]
        ]
    },
    {
        "id": "13903b302cb4eb80",
        "type": "split",
        "z": "b880dbc33994a414",
        "name": "",
        "splt": "\\n",
        "spltType": "str",
        "arraySplt": 1,
        "arraySpltType": "len",
        "stream": false,
        "addname": "",
        "x": 450,
        "y": 380,
        "wires": [
            [
                "f06b2185ea0ab7ee"
            ]
        ]
    },
    {
        "id": "65033ef23a04171a",
        "type": "http request",
        "z": "b880dbc33994a414",
        "name": "Dynamic request",
        "method": "GET",
        "ret": "obj",
        "paytoqs": "ignore",
        "url": "https://api.bybit.com/v5/market/kline?category=linear&symbol={{payload}}&interval=1",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 810,
        "y": 380,
        "wires": [
            [
                "113c644ba4677f9a"
            ]
        ]
    },
    {
        "id": "113c644ba4677f9a",
        "type": "switch",
        "z": "b880dbc33994a414",
        "name": "",
        "property": "crypto[msg.payload.result.symbol].price",
        "propertyType": "global",
        "rules": [
            {
                "t": "lte",
                "v": "$number($$.payload.result.list[0][1])",
                "vt": "jsonata"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 970,
        "y": 380,
        "wires": [
            [
                "2505f683b0669a29"
            ]
        ]
    },
    {
        "id": "a28584a2a85e1ee3",
        "type": "function",
        "z": "b880dbc33994a414",
        "name": "Create speech text",
        "func": "let crypto = msg.payload.result.list[0][1]\nlet name = global.get(\"crypto.\" + msg.payload.result.symbol + \".name\")\n\nlet a = \" Allarme il prezzo di \" + name + \" è <break time='0.1s'/>\";\nlet b = \" dollari <break time='0.25s'/>\";\n\n//whisper message\nlet k = \"\";\nlet l = \"\";\nif (msg.payload.Quiet == \"On\") {\n    k = '   <amazon:effect name=\"whispered\">'\n    l = '   </amazon:effect>'\n}\n\nlet message = k + a + crypto + b + l;\nmsg.payload = message;\n\n\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1190,
        "y": 440,
        "wires": [
            [
                "53b13fcafe69d691"
            ]
        ]
    },
    {
        "id": "53b13fcafe69d691",
        "type": "delay",
        "z": "b880dbc33994a414",
        "name": "",
        "pauseType": "rate",
        "timeout": "5",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "10",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 1180,
        "y": 500,
        "wires": [
            [
                "bd2dae8459ad0f11"
            ]
        ]
    },
    {
        "id": "bd2dae8459ad0f11",
        "type": "alexa-remote-routine",
        "z": "b880dbc33994a414",
        "name": "",
        "account": "e0d0608560b4720d",
        "routineNode": {
            "type": "speakAtVolume",
            "payload": {
                "type": "regular",
                "text": {
                    "type": "msg",
                    "value": "payload"
                },
                "volume": {
                    "type": "num",
                    "value": "20"
                },
                "mode": "set",
                "devices": [
                    "G0922H0725240SMD"
                ]
            }
        },
        "x": 1210,
        "y": 560,
        "wires": [
            []
        ]
    },
    {
        "id": "a875ca6513f45074",
        "type": "ui_text_input",
        "z": "b880dbc33994a414",
        "name": "",
        "label": "TAO",
        "tooltip": "",
        "group": "2fdfab82bfaf51d2",
        "order": 3,
        "width": "0",
        "height": "0",
        "passthru": false,
        "mode": "number",
        "delay": 300,
        "topic": "topic",
        "sendOnBlur": true,
        "className": "",
        "topicType": "msg",
        "x": 210,
        "y": 160,
        "wires": [
            [
                "14b129c9d3a8f251"
            ]
        ]
    },
    {
        "id": "e885ac6e12f6112c",
        "type": "change",
        "z": "b880dbc33994a414",
        "name": "fetprice",
        "rules": [
            {
                "t": "set",
                "p": "crypto.FETUSDT.price",
                "pt": "global",
                "to": "payload",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "crypto.FETUSDT.name",
                "pt": "global",
                "to": "FET",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 740,
        "y": 160,
        "wires": [
            []
        ]
    },
    {
        "id": "da53b0f88faa2f2c",
        "type": "ui_text_input",
        "z": "b880dbc33994a414",
        "name": "",
        "label": "FET",
        "tooltip": "",
        "group": "2fdfab82bfaf51d2",
        "order": 3,
        "width": "0",
        "height": "0",
        "passthru": false,
        "mode": "number",
        "delay": 300,
        "topic": "topic",
        "sendOnBlur": true,
        "className": "",
        "topicType": "msg",
        "x": 590,
        "y": 160,
        "wires": [
            [
                "e885ac6e12f6112c"
            ]
        ]
    },
    {
        "id": "f06b2185ea0ab7ee",
        "type": "delay",
        "z": "b880dbc33994a414",
        "name": "",
        "pauseType": "rate",
        "timeout": "5",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 610,
        "y": 380,
        "wires": [
            [
                "65033ef23a04171a"
            ]
        ]
    },
    {
        "id": "77413f8e8652cf44",
        "type": "change",
        "z": "b880dbc33994a414",
        "d": true,
        "name": "eth3lprice",
        "rules": [
            {
                "t": "set",
                "p": "crypto.ETH3LUSDT.price",
                "pt": "global",
                "to": "payload",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "crypto.ETH3LUSDT.name",
                "pt": "global",
                "to": "ETH3L",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 740,
        "y": 220,
        "wires": [
            []
        ]
    },
    {
        "id": "f7300653c83939a2",
        "type": "ui_text_input",
        "z": "b880dbc33994a414",
        "d": true,
        "name": "",
        "label": "ETH3L",
        "tooltip": "",
        "group": "2fdfab82bfaf51d2",
        "order": 3,
        "width": "0",
        "height": "0",
        "passthru": false,
        "mode": "number",
        "delay": 300,
        "topic": "topic",
        "sendOnBlur": true,
        "className": "",
        "topicType": "msg",
        "x": 600,
        "y": 220,
        "wires": [
            [
                "77413f8e8652cf44"
            ]
        ]
    },
    {
        "id": "2505f683b0669a29",
        "type": "time-range-switch",
        "z": "b880dbc33994a414",
        "name": "",
        "lat": "",
        "lon": "",
        "startTime": "23:59",
        "endTime": "5:30",
        "startOffset": 0,
        "endOffset": 0,
        "x": 1170,
        "y": 380,
        "wires": [
            [],
            [
                "a28584a2a85e1ee3"
            ]
        ]
    },
    {
        "id": "feb153c0dbaef654",
        "type": "comment",
        "z": "b880dbc33994a414",
        "name": "<-----the ETHL3L coin is on the spot market and not on the linear market ",
        "info": "the ETHL3L coin is on the spot market and not on the linear market ",
        "x": 1110,
        "y": 220,
        "wires": []
    },
    {
        "id": "2fdfab82bfaf51d2",
        "type": "ui_group",
        "name": "CRYPTO alert",
        "tab": "0aca579870c98df1",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "e0d0608560b4720d",
        "type": "alexa-remote-account",
        "name": "opt",
        "authMethod": "proxy",
        "proxyOwnIp": "10.0.0.202",
        "proxyPort": "3456",
        "cookieFile": "/data/authFile.cookie",
        "refreshInterval": "0",
        "alexaServiceHost": "alexa.amazon.it",
        "pushDispatchHost": "",
        "amazonPage": "amazon.it",
        "acceptLanguage": "it-IT",
        "onKeywordInLanguage": "",
        "userAgent": "",
        "usePushConnection": "on",
        "autoInit": "on",
        "autoQueryActivityOnTrigger": "on"
    },
    {
        "id": "0aca579870c98df1",
        "type": "ui_tab",
        "name": "Home",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

Post the different url's for both, on spot, and linear, so we can see the difference.
Also how is the returned result any different.

this is the json to read about the spot market
this coin has no counterpart in the linear market but only in the spot market

https://api.bybit.com/v5/market/kline?category=spot&symbol=ETH3LUSDT&interval=1

If you do not supply what i asked for I can not help, I asked to post both url's and any format differences in the returned results.

I need to compare them to see differences. I am asking you to make my life easier to help you.

[edit]
Just to unconfuse, I want to look at a spot url and linear url for different coins.

this coin has no counterpart in the linear market but only in the spot market

https://api.bybit.com/v5/market/kline?category=linear&symbol=BTCUSDT&interval=1
https://api.bybit.com/v5/market/kline?category=spot&symbol=BTCUSDT&interval=1

linear
spot

some coins are only in the linear market and some only in the spot market

Then you would need to store the url type in the global to
e.g.

[{"id":"01c3e153495667dc","type":"change","z":"d1395164b4eec73e","name":"taoprice","rules":[{"t":"set","p":"crypto.TAOUSDT.price","pt":"global","to":"payload","tot":"msg"},{"t":"set","p":"crypto.TAOUSDT.name","pt":"global","to":"tao","tot":"str"},{"t":"set","p":"crypto.TAOUSDT.type","pt":"global","to":"linear","tot":"str"},{"t":"set","p":"crypto.TAOUSDT.symbol","pt":"global","to":"TAOUSDT","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":5960,"wires":[[]]},{"id":"0c3c9088a0350fae","type":"ui_text_input","z":"d1395164b4eec73e","name":"","label":"ETH3L","tooltip":"","group":"2fdfab82bfaf51d2","order":3,"width":"0","height":"0","passthru":false,"mode":"number","delay":300,"topic":"topic","sendOnBlur":true,"className":"","topicType":"msg","x":250,"y":6020,"wires":[["74bae1fcbeed6f94"]]},{"id":"dfeff91b022624f6","type":"inject","z":"d1395164b4eec73e","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"crypto","payloadType":"global","x":90,"y":6120,"wires":[["3695d8f3835fd436"]]},{"id":"3695d8f3835fd436","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$$.payload.*","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":260,"y":6120,"wires":[["a3731a50369a5dc2"]]},{"id":"a3731a50369a5dc2","type":"split","z":"d1395164b4eec73e","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":410,"y":6120,"wires":[["4a06116d1608d985"]]},{"id":"4a06116d1608d985","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"crypto","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":570,"y":6120,"wires":[["c56dd98eedec18ff"]]},{"id":"c56dd98eedec18ff","type":"delay","z":"d1395164b4eec73e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":250,"y":6160,"wires":[["8f34bc9ab6c44937"]]},{"id":"8f34bc9ab6c44937","type":"http request","z":"d1395164b4eec73e","name":"Dynamic request","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://api.bybit.com/v5/market/kline?category={{crypto.type}}&symbol={{crypto.symbol}}&interval=1","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":430,"y":6160,"wires":[["63b6bc2eb0ed25b4"]]},{"id":"63b6bc2eb0ed25b4","type":"switch","z":"d1395164b4eec73e","name":"","property":"crypto.price","propertyType":"msg","rules":[{"t":"lte","v":"$number($$.payload.result.list[0][1])","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":1,"x":590,"y":6160,"wires":[["2e868424df32cef8"]]},{"id":"2e868424df32cef8","type":"function","z":"d1395164b4eec73e","name":"Create speech text","func":"let price = msg.payload.result.list[0][1]\nlet name = msg.crypto.name\n\nlet a = \" Allarme il prezzo di \" + name + \" è <break time='0.1s'/>\";\nlet b = \" dollari <break time='0.25s'/>\";\n\n//whisper message\nlet k = \"\";\nlet l = \"\";\nif (msg.payload.Quiet == \"On\") {\n    k = '   <amazon:effect name=\"whispered\">'\n    l = '   </amazon:effect>'\n}\n\nlet message = k + a + price + b + l;\nmsg.payload = message;\n\n\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":750,"y":6160,"wires":[["238e926178524bc4"]]},{"id":"238e926178524bc4","type":"debug","z":"d1395164b4eec73e","name":"debug 2486","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":930,"y":6160,"wires":[]},{"id":"74bae1fcbeed6f94","type":"change","z":"d1395164b4eec73e","name":"eth3lprice","rules":[{"t":"set","p":"crypto.ETH3LUSDT.price","pt":"global","to":"payload","tot":"msg"},{"t":"set","p":"crypto.ETH3LUSDT.name","pt":"global","to":"ETH3L","tot":"str"},{"t":"set","p":"crypto.ETH3LUSDT.type","pt":"global","to":"spot","tot":"str"},{"t":"set","p":"crypto.ETH3LUSDT.symbol","pt":"global","to":"ETH3LUSDT","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":6020,"wires":[[]]},{"id":"a439fccaab41666e","type":"ui_text_input","z":"d1395164b4eec73e","name":"","label":"TAO","tooltip":"","group":"2fdfab82bfaf51d2","order":3,"width":"0","height":"0","passthru":false,"mode":"number","delay":300,"topic":"topic","sendOnBlur":true,"className":"","topicType":"msg","x":250,"y":5960,"wires":[["01c3e153495667dc"]]},{"id":"2fdfab82bfaf51d2","type":"ui_group","name":"CRYPTO alert","tab":"0aca579870c98df1","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"0aca579870c98df1","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

I would also put your time limit node at the beginning, as why send requests when you don't want alerts.

p.s. The function and switch and http nodes have been altered.

removed unneeded node at beginning

[{"id":"74bae1fcbeed6f94","type":"change","z":"d1395164b4eec73e","name":"eth3lprice","rules":[{"t":"set","p":"crypto.ETH3LUSDT.price","pt":"global","to":"payload","tot":"msg"},{"t":"set","p":"crypto.ETH3LUSDT.name","pt":"global","to":"ETH3L","tot":"str"},{"t":"set","p":"crypto.ETH3LUSDT.type","pt":"global","to":"spot","tot":"str"},{"t":"set","p":"crypto.ETH3LUSDT.symbol","pt":"global","to":"ETH3LUSDT","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":6020,"wires":[[]]},{"id":"01c3e153495667dc","type":"change","z":"d1395164b4eec73e","name":"taoprice","rules":[{"t":"set","p":"crypto.TAOUSDT.price","pt":"global","to":"payload","tot":"msg"},{"t":"set","p":"crypto.TAOUSDT.name","pt":"global","to":"tao","tot":"str"},{"t":"set","p":"crypto.TAOUSDT.type","pt":"global","to":"linear","tot":"str"},{"t":"set","p":"crypto.TAOUSDT.symbol","pt":"global","to":"TAOUSDT","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":5960,"wires":[[]]},{"id":"a439fccaab41666e","type":"ui_text_input","z":"d1395164b4eec73e","name":"","label":"TAO","tooltip":"","group":"2fdfab82bfaf51d2","order":3,"width":"0","height":"0","passthru":false,"mode":"number","delay":300,"topic":"topic","sendOnBlur":true,"className":"","topicType":"msg","x":250,"y":5960,"wires":[["01c3e153495667dc"]]},{"id":"dfeff91b022624f6","type":"inject","z":"d1395164b4eec73e","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"crypto","payloadType":"global","x":90,"y":6120,"wires":[["a3731a50369a5dc2"]]},{"id":"a3731a50369a5dc2","type":"split","z":"d1395164b4eec73e","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":230,"y":6120,"wires":[["4a06116d1608d985"]]},{"id":"4a06116d1608d985","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"crypto","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":6120,"wires":[["c56dd98eedec18ff"]]},{"id":"c56dd98eedec18ff","type":"delay","z":"d1395164b4eec73e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":250,"y":6160,"wires":[["8f34bc9ab6c44937"]]},{"id":"8f34bc9ab6c44937","type":"http request","z":"d1395164b4eec73e","name":"Dynamic request","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://api.bybit.com/v5/market/kline?category={{crypto.type}}&symbol={{crypto.symbol}}&interval=1","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":430,"y":6160,"wires":[["63b6bc2eb0ed25b4"]]},{"id":"63b6bc2eb0ed25b4","type":"switch","z":"d1395164b4eec73e","name":"","property":"crypto.price","propertyType":"msg","rules":[{"t":"lte","v":"$number($$.payload.result.list[0][1])","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":1,"x":590,"y":6160,"wires":[["2e868424df32cef8"]]},{"id":"2e868424df32cef8","type":"function","z":"d1395164b4eec73e","name":"Create speech text","func":"let price = msg.payload.result.list[0][1]\nlet name = msg.crypto.name\n\nlet a = \" Allarme il prezzo di \" + name + \" è <break time='0.1s'/>\";\nlet b = \" dollari <break time='0.25s'/>\";\n\n//whisper message\nlet k = \"\";\nlet l = \"\";\nif (msg.payload.Quiet == \"On\") {\n    k = '   <amazon:effect name=\"whispered\">'\n    l = '   </amazon:effect>'\n}\n\nlet message = k + a + price + b + l;\nmsg.payload = message;\n\n\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":750,"y":6160,"wires":[["238e926178524bc4"]]},{"id":"238e926178524bc4","type":"debug","z":"d1395164b4eec73e","name":"debug 2486","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":930,"y":6160,"wires":[]},{"id":"0c3c9088a0350fae","type":"ui_text_input","z":"d1395164b4eec73e","name":"","label":"ETH3L","tooltip":"","group":"2fdfab82bfaf51d2","order":3,"width":"0","height":"0","passthru":false,"mode":"number","delay":300,"topic":"topic","sendOnBlur":true,"className":"","topicType":"msg","x":250,"y":6020,"wires":[["74bae1fcbeed6f94"]]},{"id":"2fdfab82bfaf51d2","type":"ui_group","name":"CRYPTO alert","tab":"0aca579870c98df1","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"0aca579870c98df1","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

You can also set the globals with one change node, the symbol,name, and type are set in the numeric input topic field. This example also shows how to reset after a node-red restart.
e.g.

[{"id":"c06b47a853b1170a","type":"inject","z":"d1395164b4eec73e","name":"reset after restart","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"crypto","payloadType":"global","x":130,"y":5900,"wires":[["2d98c901505db459"]]},{"id":"2d98c901505db459","type":"split","z":"d1395164b4eec73e","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":310,"y":5900,"wires":[["57070cb5b1864fc9"]]},{"id":"57070cb5b1864fc9","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.price","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":140,"y":5960,"wires":[["cd0e66b7c53a5af3"]]},{"id":"cd0e66b7c53a5af3","type":"switch","z":"d1395164b4eec73e","name":"","property":"parts.key","propertyType":"msg","rules":[{"t":"eq","v":"TAOUSDT","vt":"str"},{"t":"eq","v":"ETH3LUSDT","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":290,"y":5960,"wires":[["a439fccaab41666e"],["0c3c9088a0350fae"]]},{"id":"a439fccaab41666e","type":"ui_text_input","z":"d1395164b4eec73e","name":"","label":"TAO","tooltip":"","group":"2fdfab82bfaf51d2","order":3,"width":"0","height":"0","passthru":false,"mode":"number","delay":300,"topic":"TAOUSDT,tao,linear","sendOnBlur":true,"className":"","topicType":"str","x":450,"y":5940,"wires":[["74bae1fcbeed6f94"]]},{"id":"0c3c9088a0350fae","type":"ui_text_input","z":"d1395164b4eec73e","name":"","label":"ETH3L","tooltip":"","group":"2fdfab82bfaf51d2","order":3,"width":"0","height":"0","passthru":false,"mode":"number","delay":300,"topic":"ETH3LUSDT,ETH3,spot","sendOnBlur":true,"className":"","topicType":"str","x":450,"y":5980,"wires":[["74bae1fcbeed6f94"]]},{"id":"74bae1fcbeed6f94","type":"change","z":"d1395164b4eec73e","name":"set globals","rules":[{"t":"set","p":"payload","pt":"msg","to":"(\t    $val := $split($$.topic,\",\");\t    {\t        \"price\":$$.payload,\t        \"name\":$val[1],\t        \"type\":$val[2],\t        \"symbol\":$val[0]\t    }\t)","tot":"jsonata"},{"t":"set","p":"crypto[msg.payload.symbol]","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":5960,"wires":[[]]},{"id":"2fdfab82bfaf51d2","type":"ui_group","name":"CRYPTO alert","tab":"0aca579870c98df1","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"0aca579870c98df1","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]
1 Like

everything works fineTNX !!
I had problems to enable permanent data saving,because I wanted to get this

context
but I couldn't.

I removed the slash marks from the settings.js file and now it retains the data.

    //contextStorage: {
    //    default: {
    //        module:"localfilesystem"
    //    },
    //},

I attach the final flow for those who will read in the future

Riepilogo
[
    {
        "id": "c8df776bc1bb8cb8",
        "type": "inject",
        "z": "b880dbc33994a414",
        "name": "reset after restart",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "crypto",
        "payloadType": "global",
        "x": 130,
        "y": 400,
        "wires": [
            [
                "7e053d86e77d5eaf"
            ]
        ]
    },
    {
        "id": "7e053d86e77d5eaf",
        "type": "split",
        "z": "b880dbc33994a414",
        "name": "",
        "splt": "\\n",
        "spltType": "str",
        "arraySplt": 1,
        "arraySpltType": "len",
        "stream": false,
        "addname": "",
        "x": 310,
        "y": 400,
        "wires": [
            [
                "c5b6edf929b41d13"
            ]
        ]
    },
    {
        "id": "c5b6edf929b41d13",
        "type": "change",
        "z": "b880dbc33994a414",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.price",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 400,
        "wires": [
            [
                "fe94e173a16ad779"
            ]
        ]
    },
    {
        "id": "fe94e173a16ad779",
        "type": "switch",
        "z": "b880dbc33994a414",
        "name": "",
        "property": "parts.key",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "TAOUSDT",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "ETH3LUSDT",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "FETUSDT",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "BTCUSDT",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 4,
        "x": 630,
        "y": 400,
        "wires": [
            [
                "0d6641575053ea41"
            ],
            [
                "94c82b66952bdc79"
            ],
            [
                "313dd05fbeffaa50"
            ],
            [
                "563c0675e54cfd95"
            ]
        ]
    },
    {
        "id": "0d6641575053ea41",
        "type": "ui_text_input",
        "z": "b880dbc33994a414",
        "name": "",
        "label": "TAO",
        "tooltip": "",
        "group": "2fdfab82bfaf51d2",
        "order": 3,
        "width": "0",
        "height": "0",
        "passthru": false,
        "mode": "number",
        "delay": 300,
        "topic": "TAOUSDT,TAO,linear",
        "sendOnBlur": true,
        "className": "",
        "topicType": "str",
        "x": 790,
        "y": 380,
        "wires": [
            [
                "4399534b5a1f8bcc"
            ]
        ]
    },
    {
        "id": "94c82b66952bdc79",
        "type": "ui_text_input",
        "z": "b880dbc33994a414",
        "name": "",
        "label": "ETH3L",
        "tooltip": "",
        "group": "2fdfab82bfaf51d2",
        "order": 3,
        "width": "0",
        "height": "0",
        "passthru": false,
        "mode": "number",
        "delay": 300,
        "topic": "ETH3LUSDT,ETH3L,spot",
        "sendOnBlur": true,
        "className": "",
        "topicType": "str",
        "x": 790,
        "y": 420,
        "wires": [
            [
                "4399534b5a1f8bcc"
            ]
        ]
    },
    {
        "id": "4399534b5a1f8bcc",
        "type": "change",
        "z": "b880dbc33994a414",
        "name": "set globals",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "(\t    $val := $split($$.topic,\",\");\t    {\t        \"price\":$$.payload,\t        \"name\":$val[1],\t        \"type\":$val[2],\t        \"symbol\":$val[0]\t    }\t)",
                "tot": "jsonata"
            },
            {
                "t": "set",
                "p": "crypto[msg.payload.symbol]",
                "pt": "global",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 970,
        "y": 400,
        "wires": [
            []
        ]
    },
    {
        "id": "313dd05fbeffaa50",
        "type": "ui_text_input",
        "z": "b880dbc33994a414",
        "name": "",
        "label": "FET",
        "tooltip": "",
        "group": "2fdfab82bfaf51d2",
        "order": 3,
        "width": "0",
        "height": "0",
        "passthru": false,
        "mode": "number",
        "delay": 300,
        "topic": "FETUSDT,FET,spot",
        "sendOnBlur": true,
        "className": "",
        "topicType": "str",
        "x": 790,
        "y": 460,
        "wires": [
            [
                "4399534b5a1f8bcc"
            ]
        ]
    },
    {
        "id": "563c0675e54cfd95",
        "type": "ui_text_input",
        "z": "b880dbc33994a414",
        "name": "",
        "label": "BTC",
        "tooltip": "",
        "group": "2fdfab82bfaf51d2",
        "order": 3,
        "width": "0",
        "height": "0",
        "passthru": false,
        "mode": "number",
        "delay": 300,
        "topic": "BTCUSDT,BTC,spot",
        "sendOnBlur": true,
        "className": "",
        "topicType": "str",
        "x": 790,
        "y": 500,
        "wires": [
            [
                "4399534b5a1f8bcc"
            ]
        ]
    },
    {
        "id": "b1b0bce95f03d8f1",
        "type": "change",
        "z": "b880dbc33994a414",
        "d": true,
        "name": "eth3lprice",
        "rules": [
            {
                "t": "set",
                "p": "crypto.ETH3LUSDT.price",
                "pt": "global",
                "to": "payload",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "crypto.ETH3LUSDT.name",
                "pt": "global",
                "to": "ETH3L",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "crypto.ETH3LUSDT.type",
                "pt": "global",
                "to": "spot",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "crypto.ETH3LUSDT.symbol",
                "pt": "global",
                "to": "ETH3LUSDT",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 440,
        "y": 600,
        "wires": [
            []
        ]
    },
    {
        "id": "f158192889453423",
        "type": "change",
        "z": "b880dbc33994a414",
        "d": true,
        "name": "taoprice",
        "rules": [
            {
                "t": "set",
                "p": "crypto.TAOUSDT.price",
                "pt": "global",
                "to": "payload",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "crypto.TAOUSDT.name",
                "pt": "global",
                "to": "tao",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "crypto.TAOUSDT.type",
                "pt": "global",
                "to": "linear",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "crypto.TAOUSDT.symbol",
                "pt": "global",
                "to": "TAOUSDT",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 440,
        "y": 540,
        "wires": [
            []
        ]
    },
    {
        "id": "e9ec31bcb16c983e",
        "type": "ui_text_input",
        "z": "b880dbc33994a414",
        "d": true,
        "name": "",
        "label": "TAO",
        "tooltip": "",
        "group": "2fdfab82bfaf51d2",
        "order": 3,
        "width": "0",
        "height": "0",
        "passthru": false,
        "mode": "number",
        "delay": 300,
        "topic": "topic",
        "sendOnBlur": true,
        "className": "",
        "topicType": "msg",
        "x": 290,
        "y": 540,
        "wires": [
            [
                "f158192889453423"
            ]
        ]
    },
    {
        "id": "31287ebf08a12502",
        "type": "inject",
        "z": "b880dbc33994a414",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "5",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "crypto",
        "payloadType": "global",
        "x": 120,
        "y": 700,
        "wires": [
            [
                "ad350e14f0ae3cbf"
            ]
        ]
    },
    {
        "id": "c8f8f0ed1d7685ea",
        "type": "split",
        "z": "b880dbc33994a414",
        "name": "",
        "splt": "\\n",
        "spltType": "str",
        "arraySplt": 1,
        "arraySpltType": "len",
        "stream": false,
        "addname": "",
        "x": 510,
        "y": 700,
        "wires": [
            [
                "1191bf88e5d136f6"
            ]
        ]
    },
    {
        "id": "1191bf88e5d136f6",
        "type": "change",
        "z": "b880dbc33994a414",
        "name": "",
        "rules": [
            {
                "t": "move",
                "p": "payload",
                "pt": "msg",
                "to": "crypto",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 710,
        "y": 700,
        "wires": [
            [
                "636e71a3d583be27"
            ]
        ]
    },
    {
        "id": "636e71a3d583be27",
        "type": "delay",
        "z": "b880dbc33994a414",
        "name": "",
        "pauseType": "rate",
        "timeout": "5",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": true,
        "allowrate": false,
        "outputs": 1,
        "x": 450,
        "y": 740,
        "wires": [
            [
                "ec1c8e6db51b9ccc"
            ]
        ]
    },
    {
        "id": "ec1c8e6db51b9ccc",
        "type": "http request",
        "z": "b880dbc33994a414",
        "name": "Dynamic request",
        "method": "GET",
        "ret": "obj",
        "paytoqs": "ignore",
        "url": "https://api.bybit.com/v5/market/kline?category={{crypto.type}}&symbol={{crypto.symbol}}&interval=1",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 650,
        "y": 740,
        "wires": [
            [
                "3278e373f888c798"
            ]
        ]
    },
    {
        "id": "3278e373f888c798",
        "type": "switch",
        "z": "b880dbc33994a414",
        "name": "",
        "property": "crypto.price",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gte",
                "v": "$number($$.payload.result.list[0][1])",
                "vt": "jsonata"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 810,
        "y": 740,
        "wires": [
            [
                "358ca9d8672231c3"
            ]
        ]
    },
    {
        "id": "358ca9d8672231c3",
        "type": "function",
        "z": "b880dbc33994a414",
        "name": "Create speech text",
        "func": "let price = msg.payload.result.list[0][1]\nlet name = msg.crypto.name\n\nlet a = \" Allarme il prezzo di \" + name + \" è <break time='0.1s'/>\";\nlet b = \" dollari <break time='0.25s'/>\";\n\n//whisper message\nlet k = \"\";\nlet l = \"\";\nif (msg.payload.Quiet == \"On\") {\n    k = '   <amazon:effect name=\"whispered\">'\n    l = '   </amazon:effect>'\n}\n\nlet message = k + a + price + b + l;\nmsg.payload = message;\n\n\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 970,
        "y": 740,
        "wires": [
            [
                "c690a1a797043b84",
                "7d6bb886d4d840a9"
            ]
        ]
    },
    {
        "id": "c690a1a797043b84",
        "type": "debug",
        "z": "b880dbc33994a414",
        "name": "debug 2486",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1190,
        "y": 640,
        "wires": []
    },
    {
        "id": "42e8b85d21327a7b",
        "type": "ui_text_input",
        "z": "b880dbc33994a414",
        "d": true,
        "name": "",
        "label": "ETH3L",
        "tooltip": "",
        "group": "2fdfab82bfaf51d2",
        "order": 3,
        "width": "0",
        "height": "0",
        "passthru": false,
        "mode": "number",
        "delay": 300,
        "topic": "topic",
        "sendOnBlur": true,
        "className": "",
        "topicType": "msg",
        "x": 290,
        "y": 600,
        "wires": [
            [
                "b1b0bce95f03d8f1"
            ]
        ]
    },
    {
        "id": "7d6bb886d4d840a9",
        "type": "alexa-remote-routine",
        "z": "b880dbc33994a414",
        "name": "",
        "account": "e0d0608560b4720d",
        "routineNode": {
            "type": "speakAtVolume",
            "payload": {
                "type": "regular",
                "text": {
                    "type": "msg",
                    "value": "payload"
                },
                "volume": {
                    "type": "num",
                    "value": "20"
                },
                "mode": "set",
                "devices": [
                    "18e395e9bf2e4604bad62de8bf305428"
                ]
            }
        },
        "x": 1230,
        "y": 740,
        "wires": [
            []
        ]
    },
    {
        "id": "ad350e14f0ae3cbf",
        "type": "time-range-switch",
        "z": "b880dbc33994a414",
        "name": "",
        "lat": "",
        "lon": "",
        "startTime": "23:59",
        "endTime": "5:30",
        "startOffset": 0,
        "endOffset": 0,
        "x": 310,
        "y": 700,
        "wires": [
            [],
            [
                "c8f8f0ed1d7685ea"
            ]
        ]
    },
    {
        "id": "2fdfab82bfaf51d2",
        "type": "ui_group",
        "name": "CRYPTO alert",
        "tab": "0aca579870c98df1",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "e0d0608560b4720d",
        "type": "alexa-remote-account",
        "name": "opt",
        "authMethod": "proxy",
        "proxyOwnIp": "10.0.0.202",
        "proxyPort": "3456",
        "cookieFile": "/data/authFile.cookie",
        "refreshInterval": "0",
        "alexaServiceHost": "alexa.amazon.it",
        "pushDispatchHost": "",
        "amazonPage": "amazon.it",
        "acceptLanguage": "it-IT",
        "onKeywordInLanguage": "",
        "userAgent": "",
        "usePushConnection": "on",
        "autoInit": "on",
        "autoQueryActivityOnTrigger": "on"
    },
    {
        "id": "0aca579870c98df1",
        "type": "ui_tab",
        "name": "Home",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.