-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Expand file tree
/
Copy pathBitcoin price alert to Telegram with CoinPaprika.json
More file actions
151 lines (151 loc) · 4.06 KB
/
Copy pathBitcoin price alert to Telegram with CoinPaprika.json
File metadata and controls
151 lines (151 loc) · 4.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"name": "Bitcoin price alert to Telegram with CoinPaprika",
"nodes": [
{
"parameters": {
"content": "## Bitcoin price alert (CoinPaprika, no API key)\n\nPolls the free, keyless CoinPaprika API every 15 minutes and sends a Telegram message when Bitcoin moves 5% or more (up or down) over 24h.\n\n**Setup**\n1. Add your Telegram credential to the *Send Telegram alert* node.\n2. Set your chat id in that node (replace YOUR_TELEGRAM_CHAT_ID).\n\n**Customize**\n- Track another coin: change `btc-bitcoin` in the HTTP node to any CoinPaprika id (e.g. `eth-ethereum`, `sol-solana`).\n- Change the 5% threshold in the *Big 24h move?* node.\n\nNo API key or signup is required. Data: https://api.coinpaprika.com",
"height": 360,
"width": 380
},
"id": "a1111111-1111-4111-8111-111111111111",
"name": "About this template",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-360,
40
]
},
{
"parameters": {
"rule": {
"interval": [
{
"field": "minutes",
"minutesInterval": 15
}
]
}
},
"id": "b2222222-2222-4222-8222-222222222222",
"name": "Every 15 minutes",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [
120,
240
]
},
{
"parameters": {
"url": "https://api.coinpaprika.com/v1/tickers/btc-bitcoin",
"options": {}
},
"id": "c3333333-3333-4333-8333-333333333333",
"name": "Get BTC price (CoinPaprika)",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
340,
240
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "loose",
"version": 2
},
"conditions": [
{
"id": "cond-up",
"leftValue": "={{ $json.quotes.USD.percent_change_24h }}",
"rightValue": 5,
"operator": {
"type": "number",
"operation": "gte"
}
},
{
"id": "cond-down",
"leftValue": "={{ $json.quotes.USD.percent_change_24h }}",
"rightValue": -5,
"operator": {
"type": "number",
"operation": "lte"
}
}
],
"combinator": "or"
},
"options": {}
},
"id": "d4444444-4444-4444-8444-444444444444",
"name": "Big 24h move?",
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
560,
240
]
},
{
"parameters": {
"chatId": "YOUR_TELEGRAM_CHAT_ID",
"text": "=Bitcoin big 24h move alert\n\nPrice: ${{ $json.quotes.USD.price.toFixed(2) }}\n24h change: {{ $json.quotes.USD.percent_change_24h.toFixed(2) }}%\n7d change: {{ $json.quotes.USD.percent_change_7d.toFixed(2) }}%\n\nSource: CoinPaprika (keyless, no API key)",
"additionalFields": {}
},
"id": "e5555555-5555-4555-8555-555555555555",
"name": "Send Telegram alert",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
800,
180
]
}
],
"connections": {
"Every 15 minutes": {
"main": [
[
{
"node": "Get BTC price (CoinPaprika)",
"type": "main",
"index": 0
}
]
]
},
"Get BTC price (CoinPaprika)": {
"main": [
[
{
"node": "Big 24h move?",
"type": "main",
"index": 0
}
]
]
},
"Big 24h move?": {
"main": [
[
{
"node": "Send Telegram alert",
"type": "main",
"index": 0
}
],
[]
]
}
},
"settings": {
"executionOrder": "v1"
},
"pinData": {}
}