SOL Price Moves to Discord
automation · by zorilla · came with Zorilla
Posts to Discord when SOL moves 5% from the last figure it announced, and stays quiet otherwise. Needs a Discord webhook saved as discord_key.
4 steps, drawn from the file
What this can do
Read out of the file, not written by the author.
contacts a web address you provide (Webhook URL)contacts api.coingecko.com
Uses your saved keys named discord_key. It binds to your own keys of those names. No key travels in the file.
4 steps, started by Schedule.
{
"name": "SOL Price Moves to Discord",
"nodes": [
{
"id": "clock",
"type": "core.schedule",
"params": {
"mode": "every",
"every": 10,
"unit": "minutes"
},
"position": {
"x": 40,
"y": 170
}
},
{
"id": "price",
"type": "coingecko.price",
"params": {
"ids": "solana",
"currency": "usd"
},
"position": {
"x": 310,
"y": 170
}
},
{
"id": "moved",
"type": "logic.moved",
"params": {
"value": "{{ $json.solana.usd }}",
"amount": 5,
"unit": "percent",
"direction": "either",
"key": "sol"
},
"position": {
"x": 580,
"y": 170
}
},
{
"id": "say",
"type": "discord.post",
"params": {
"credential": "discord_key",
"content": "SOL is {{ $json.moved.direction }} {{ Math.round($json.moved.percent) }}% to ${{ $json.solana.usd }}",
"username": "Zorilla"
},
"position": {
"x": 850,
"y": 170
}
}
],
"edges": [
{
"from": "clock",
"fromPort": "main",
"to": "price",
"toPort": "main"
},
{
"from": "price",
"fromPort": "main",
"to": "moved",
"toPort": "main"
},
{
"from": "moved",
"fromPort": "main",
"to": "say",
"toPort": "main"
}
]
}Download it, then in Zorilla press add one from a file. You get a screen listing what it contacts and which keys it asks for before anything is saved.