Home cryptocurrency Monitor the latest coins on Coinmarketcap with decent volume

Monitor the latest coins on Coinmarketcap with decent volume

by satcit

Flowchart

Untitled Diagram.drawio (5)

Algorithm

Screenshot from 2021-12-14 21-44-02

Import the following flow to your Node Red

[{"id":"978f813adcd67d78","type":"tab","label":"new,  >500k","disabled":false,"info":""},{"id":"d3cefd9b4929d175","type":"change","z":"978f813adcd67d78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.data[0].slug","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":460,"wires":[["d527295970c76bf4"]]},{"id":"d527295970c76bf4","type":"function","z":"978f813adcd67d78","name":"set payload and headers","func":"\nmsg.headers = {};\nmsg.headers['X-CMC_PRO_API_KEY'] = 'bbcdd0aa-3955-4cf4-82f7-b558591d4122';\nmsg.headers['Accepts'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1410,"y":600,"wires":[["8d4f784c92c0c870","bfa0bb66fd0a251a"]]},{"id":"8d4f784c92c0c870","type":"http request","z":"978f813adcd67d78","name":"post to HttpBin","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://pro-api.coinmarketcap.com/v1/cryptocurrency/info?slug={{{payload}}}","tls":"","persist":false,"proxy":"","authType":"","x":799,"y":980,"wires":[["1bcc94e088975ee3"]]},{"id":"1bcc94e088975ee3","type":"change","z":"978f813adcd67d78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.data","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":980,"y":980,"wires":[["42c106f02fade2fa"]]},{"id":"42c106f02fade2fa","type":"split","z":"978f813adcd67d78","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":1150,"y":980,"wires":[["78ab9314b5a03ec4"]]},{"id":"78ab9314b5a03ec4","type":"change","z":"978f813adcd67d78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.description","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":1040,"wires":[["736f7dee9fe0a6ec"]]},{"id":"736f7dee9fe0a6ec","type":"function","z":"978f813adcd67d78","name":"Unnamed function","func":"msg.payload= {\n    chatId: 'CHAT_ID_HERE',\n    type: 'message',\n    content: msg.payload\n   \n}\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":730,"y":1100,"wires":[["184ad815e78b2b50"]]},{"id":"184ad815e78b2b50","type":"telegram sender","z":"978f813adcd67d78","name":"","bot":"","haserroroutput":false,"outputs":1,"x":950,"y":1100,"wires":[[]]},{"id":"bfa0bb66fd0a251a","type":"delay","z":"978f813adcd67d78","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":340,"y":1060,"wires":[["b8c0409c4b74b5f4"]]},{"id":"b8c0409c4b74b5f4","type":"function","z":"978f813adcd67d78","name":"","func":"msg.payload = ` https://coinmarketcap.com/currencies/${msg.payload}`;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":480,"y":1100,"wires":[["736f7dee9fe0a6ec"]]},{"id":"cb79a7b37c7cf134","type":"delay","z":"978f813adcd67d78","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":980,"y":820,"wires":[["7a146a764c8b8f6d"]]},{"id":"db472082ebfaf422","type":"change","z":"978f813adcd67d78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.data[1].slug","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":500,"wires":[["d527295970c76bf4"]]},{"id":"974f337f6465a98a","type":"change","z":"978f813adcd67d78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.data[2].slug","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":540,"wires":[["d527295970c76bf4"]]},{"id":"75d40a2f268d869f","type":"change","z":"978f813adcd67d78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.data[3].slug","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":580,"wires":[["d527295970c76bf4"]]},{"id":"90d83d73765d7d58","type":"change","z":"978f813adcd67d78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.data[4].slug","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":620,"wires":[["d527295970c76bf4"]]},{"id":"d2f797db94ea05ae","type":"change","z":"978f813adcd67d78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.data[5].slug","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":660,"wires":[["d527295970c76bf4"]]},{"id":"a1b5022c67ffb6ae","type":"change","z":"978f813adcd67d78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.data[6].slug","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":700,"wires":[["d527295970c76bf4"]]},{"id":"1fff69970b047589","type":"change","z":"978f813adcd67d78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.data[7].slug","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":740,"wires":[["d527295970c76bf4"]]},{"id":"b87b037b894d1b9f","type":"change","z":"978f813adcd67d78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.data[8].slug","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":780,"wires":[["d527295970c76bf4"]]},{"id":"7a146a764c8b8f6d","type":"change","z":"978f813adcd67d78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.data[9].slug","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":820,"wires":[["d527295970c76bf4"]]},{"id":"40195f8e031e6d0c","type":"delay","z":"978f813adcd67d78","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":980,"y":780,"wires":[["b87b037b894d1b9f"]]},{"id":"ac0b229b90f44dc4","type":"delay","z":"978f813adcd67d78","name":"","pauseType":"delay","timeout":"15","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":980,"y":740,"wires":[["1fff69970b047589"]]},{"id":"ebc428f39c54054c","type":"delay","z":"978f813adcd67d78","name":"","pauseType":"delay","timeout":"20","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":980,"y":700,"wires":[["a1b5022c67ffb6ae"]]},{"id":"95895b1b56bde8a7","type":"delay","z":"978f813adcd67d78","name":"","pauseType":"delay","timeout":"25","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":980,"y":660,"wires":[["d2f797db94ea05ae"]]},{"id":"ae961a5ca682d3e0","type":"delay","z":"978f813adcd67d78","name":"","pauseType":"delay","timeout":"30","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":980,"y":620,"wires":[["90d83d73765d7d58"]]},{"id":"3e050c6a0277ec0c","type":"delay","z":"978f813adcd67d78","name":"","pauseType":"delay","timeout":"35","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":980,"y":580,"wires":[["75d40a2f268d869f"]]},{"id":"537f3640c4c19fab","type":"delay","z":"978f813adcd67d78","name":"","pauseType":"delay","timeout":"40","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":980,"y":540,"wires":[["974f337f6465a98a"]]},{"id":"1e802c5f8e349c5e","type":"delay","z":"978f813adcd67d78","name":"","pauseType":"delay","timeout":"45","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"s
econd","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":980,"y":500,"wires":[["db472082ebfaf422"]]},{"id":"394a8bd71cadb9fa","type":"delay","z":"978f813adcd67d78","name":"","pauseType":"delay","timeout":"50","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":980,"y":460,"wires":[["d3cefd9b4929d175"]]},{"id":"c4bef83428c64727","type":"inject","z":"978f813adcd67d78","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 06 * * *","once":false,"onceDelay":"","topic":"","payloadType":"date","x":430,"y":540,"wires":[["f4a2b4152c214d2d"]]},{"id":"f4a2b4152c214d2d","type":"function","z":"978f813adcd67d78","name":"set payload and headers","func":"msg.payload = \"data to post\";\nmsg.headers = {};\nmsg.headers['X-CMC_PRO_API_KEY'] = 'API_KEY_HERE';\nmsg.headers['Accepts'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":730,"y":560,"wires":[["f7ef0df8a07198b0"]]},{"id":"f7ef0df8a07198b0","type":"http request","z":"978f813adcd67d78","name":"post to HttpBin","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest?sort=date_added&sort_dir=desc&volume_24h_min=500000&limit=20","tls":"","persist":false,"proxy":"","authType":"","x":760,"y":620,"wires":[["394a8bd71cadb9fa","1e802c5f8e349c5e","537f3640c4c19fab","3e050c6a0277ec0c","ae961a5ca682d3e0","95895b1b56bde8a7","ebc428f39c54054c","ac0b229b90f44dc4","40195f8e031e6d0c","cb79a7b37c7cf134"]]},{"id":"64b9cc63c90d2b11","type":"inject","z":"978f813adcd67d78","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 09 * * *","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":430,"y":580,"wires":[["f4a2b4152c214d2d"]]},{"id":"302e97d67371d8d4","type":"inject","z":"978f813adcd67d78","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 13 * * *","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":430,"y":620,"wires":[["f4a2b4152c214d2d"]]},{"id":"0fc2c2c1b2634140","type":"inject","z":"978f813adcd67d78","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 16 * * *","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":430,"y":660,"wires":[["f4a2b4152c214d2d"]]},{"id":"d88bccc4f71013e7","type":"inject","z":"978f813adcd67d78","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 18 * * *","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":430,"y":700,"wires":[["f4a2b4152c214d2d"]]},{"id":"ac89240f309be97f","type":"inject","z":"978f813adcd67d78","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 20 * * *","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":430,"y":740,"wires":[["f4a2b4152c214d2d"]]},{"id":"4713aaefaf27449a","type":"inject","z":"978f813adcd67d78","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 22 * * *","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":430,"y":780,"wires":[["f4a2b4152c214d2d"]]}]

Enter the details like Coinmarketcap API key(you have to get one from https://coinmarketcap.com/api/,) Telegram group ID from botfather and Telegram group ID from https://telegram.me/myidbot etc and then deploy the algorithm.

For those who want to check how this algorithm works, I’ve implemented this in a telegram group. Feel free to join here

You may also like

Leave a Comment