This is the flow related to the table
[
{
"id": "c444930f52b9ac10",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "ee2126a55132abe2",
"type": "ui_table",
"z": "c444930f52b9ac10",
"group": "be72bda40c2b3554",
"name": "Screener",
"order": 1,
"width": "7",
"height": "17",
"columns": [
{
"field": "flag",
"title": "I",
"width": "2",
"align": "left",
"formatter": "plaintext",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "currency",
"title": "Coin",
"width": "9%",
"align": "center",
"formatter": "plaintext",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "exchange",
"title": "Exchange",
"width": "12%",
"align": "center",
"formatter": "plaintext",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "percent",
"title": "Up",
"width": "10%",
"align": "center",
"formatter": "plaintext",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "window",
"title": "Window",
"width": "10%",
"align": "center",
"formatter": "plaintext",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "change",
"title": "Change",
"width": "10%",
"align": "center",
"formatter": "plaintext",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "b_coin",
"title": "Binance",
"width": "10%",
"align": "center",
"formatter": "plaintext",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "f_coin",
"title": "FTX",
"width": "5%",
"align": "center",
"formatter": "plaintext",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "g_coin",
"title": "Gate.io",
"width": "5%",
"align": "center",
"formatter": "plaintext",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "volume",
"title": "Volume",
"width": "10%",
"align": "center",
"formatter": "plaintext",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "price",
"title": "Price",
"width": "10%",
"align": "center",
"formatter": "plaintext",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "time",
"title": "TIME",
"width": "18%",
"align": "center",
"formatter": "plaintext",
"formatterParams": {
"target": "_blank"
}
}
],
"outputs": 1,
"cts": true,
"x": 840,
"y": 440,
"wires": [
[]
]
},
{
"id": "224d895e5ba78e8d",
"type": "function",
"z": "c444930f52b9ac10",
"name": "msg_events",
"func": "var msg_obj = msg.payload ;\nvar arr_msgs = flow.get(\"msg_events\", 'memoryOnly');\n\nif (arr_msgs===undefined ) {\n // Create an empty array if it does not exist yet\n arr_msgs = [];\n //arr_msgs.push(msg_obj) ; \n if (msg_obj !== \"1\") {\n arr_msgs.push(msg_obj);\n flow.set(\"msg_events\",arr_msgs, 'memoryOnly');\n }\n \n// return msg ;\n\n} else {\n // New row\n if (msg_obj !== \"1\") {\n arr_msgs.push(msg_obj);\n flow.set(\"msg_events\",arr_msgs, 'memoryOnly');\n }\n} \nmsg.payload = flow.get(\"msg_events\", 'memoryOnly');\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 480,
"y": 400,
"wires": [
[
"838c6c525c2f0253",
"0b1a84d9dcd9db57"
]
]
},
{
"id": "aef2f473d5ec09d0",
"type": "function",
"z": "c444930f52b9ac10",
"name": "clear",
"func": "var cfg = undefined ;\nflow.set('msg_events', cfg, 'memoryOnly');\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 610,
"y": 360,
"wires": [
[
"ee2126a55132abe2"
]
]
},
{
"id": "42c7011ea98d8366",
"type": "inject",
"z": "c444930f52b9ac10",
"name": "clear",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": "0.1",
"topic": "",
"payload": "1",
"payloadType": "str",
"x": 470,
"y": 360,
"wires": [
[
"aef2f473d5ec09d0"
]
]
},
{
"id": "838c6c525c2f0253",
"type": "delay",
"z": "c444930f52b9ac10",
"name": "1ms",
"pauseType": "delay",
"timeout": "2",
"timeoutUnits": "milliseconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 610,
"y": 400,
"wires": [
[
"ee2126a55132abe2"
]
]
},
{
"id": "0b1a84d9dcd9db57",
"type": "change",
"z": "c444930f52b9ac10",
"name": "refresh",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "[]",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 490,
"y": 440,
"wires": [
[
"b0efa543f475da8c"
]
]
},
{
"id": "b0efa543f475da8c",
"type": "change",
"z": "c444930f52b9ac10",
"name": "ui_control",
"rules": [
{
"t": "set",
"p": "ui_control",
"pt": "msg",
"to": "{\t \"tabulator\": {\t initialSort:[\t {column:\"Time\", dir:\"asc\"}\t ],\t\t \"columns\": [\t {\t \"title\": \"|\",\t \"field\": \"flag\",\t \"width\": \"1%\",\t \"align\": \"center\" \t },\t {\t \"title\": \"Coin\",\t \"field\": \"currency\",\t \"width\": \"9%\",\t \"align\": \"center\" \t }, \t {\t \"title\": \"Exchange\",\t \"field\": \"exchange\",\t \"width\": \"10%\",\t \"align\": \"center\" \t },\t {\t \"title\": \"UP\",\t \"field\": \"percent\",\t \"width\": \"9%\",\t \"align\": \"center\",\t \"formatter\": \"function(cell, formatterParams){var value = cell.getValue(); if (value !== null) {if(value >= 0){cell.getElement().style.color ='#609f70'} else {cell.getElement().style.color ='#ff4a68'} return value +'%';}}\" \t },\t {\t \"title\": \"W\",\t \"field\": \"window\",\t \"align\": \"center\",\t \"width\": \"6%\",\t \"formatter\": \"function(cell, formatterParams, onRendered) {return \\\"<span style='font-size:9pt;'>\\\" + cell.getValue() + \\\"</span>\\\";}\" \t },\t {\t \"title\": \"24Hr\",\t \"field\": \"change\",\t \"width\": \"10%\",\t \"align\": \"center\",\t \"formatter\": \"function(cell, formatterParams){var value = cell.getValue(); if (value !== null) {if(value >= 0){cell.getElement().style.color ='#609f70'} else {cell.getElement().style.color ='#ff4a68'} return value +'%';}}\" \t },\t {\t \"title\": \"B\",\t \"field\": \"b_coin\",\t \"width\": \"2%\",\t \"align\": \"center\",\t \"formatter\": \"function(cell, formatterParams, onRendered) {return \\\"<span style='color:#2962ff; font-weight:bold;'>\\\" + cell.getValue() + \\\"</span>\\\";}\" \t },\t {\t \"title\": \"F\",\t \"field\": \"f_coin\",\t \"width\": \"2%\",\t \"align\": \"center\" \t },\t {\t \"title\": \"G\",\t \"field\": \"g_coin\",\t \"width\": \"2%\",\t \"align\": \"center\" \t },\t {\t \"title\": \"Volume\",\t \"field\": \"volume\",\t \"width\": \"11%\",\t \"align\": \"right\",\t \"formatter\": \"money\",\t \"formatterParams\": {\t \"thousand\":\",\",\t \"precision\": \"false\"\t } \t },\t {\t \"title\": \"Price\",\t \"field\": \"price\",\t \"width\": \"10%\",\t \"align\": \"right\",\t \"formatter\": \"money\",\t \"formatterParams\": {\t \"thousand\":\",\"\t }\t },\t {\t \"title\": \"Time\",\t \"field\": \"time\",\t \"width\": \"11%\",\t \"align\": \"center\", \t \"formatter\": \"datetime\",\t \"formatterParams\": {\t \"inputFormat\": \"x\",\t \"outputFormat\": \"hh:mm a\",\t \"invalidPlaceholder\": \"(invalid time)\"\t },\t \"sorterParams\": {\t \"format\": \"hh:mm a\",\t \"dir\" : \"desc\",\t \"sorter\": \"time\"\t }\t\t } \t ],\t \"item\": \"\",\t \"layout\": \"fitColumns\",\t \"movableColumns\": false\t } \t}",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 620,
"y": 440,
"wires": [
[
"ee2126a55132abe2"
]
]
},
{
"id": "d2109d28258526cd",
"type": "ui_button",
"z": "c444930f52b9ac10",
"name": "",
"group": "085d7feec44f7e35",
"order": 9,
"width": 1,
"height": "1",
"passthru": false,
"label": "table",
"tooltip": "",
"color": "#ccc",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "1",
"payloadType": "str",
"topic": "",
"topicType": "str",
"x": 510,
"y": 320,
"wires": [
[
"aef2f473d5ec09d0"
]
]
},
{
"id": "be72bda40c2b3554",
"type": "ui_group",
"name": "RIGHT",
"tab": "7e13e6107768d821",
"order": 4,
"disp": false,
"width": "7",
"collapse": false,
"className": ""
},
{
"id": "085d7feec44f7e35",
"type": "ui_group",
"name": "LEFT",
"tab": "7e13e6107768d821",
"order": 2,
"disp": false,
"width": "4",
"collapse": false,
"className": ""
},
{
"id": "7e13e6107768d821",
"type": "ui_tab",
"name": "CRYPTO",
"icon": "dashboard",
"order": 2,
"disabled": false,
"hidden": false
}
]