暗号資産市場アラートシステムにBinanceとTelegramの統合
中級
これはOther分野の自動化ワークフローで、7個のノードを含みます。主にCode, Function, Telegram, Aggregate, HttpRequestなどのノードを使用。 ビニャムとTelegramで統合された暗号市場アラートシステム
前提条件
- •Telegram Bot Token
- •ターゲットAPIの認証情報が必要な場合あり
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"meta": {
"instanceId": "dbd43d88d26a9e30d8aadc002c9e77f1400c683dd34efe3778d43d27250dde50"
},
"nodes": [
{
"id": "f305e08e-d4b4-4ec6-be74-5edb7a3711e5",
"name": "スケジュールトリガー",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
520,
1279
],
"parameters": {
"rule": {
"interval": [
{
"field": "minutes"
}
]
}
},
"typeVersion": 1.1
},
{
"id": "abac20ef-6319-40e3-8d30-806d7499a427",
"name": "Telegramメッセージ送信",
"type": "n8n-nodes-base.telegram",
"position": [
1360,
1279
],
"parameters": {
"text": "={{ $json.data.replaceAll(/(Last Price: \\S+)$/gm,\"$1\\n\").slice(0,1000) }}",
"chatId": "-1002138086614",
"additionalFields": {}
},
"typeVersion": 1
},
{
"id": "d23c3277-62ca-4e1f-ad5d-48c07e0d6b94",
"name": "集計",
"type": "n8n-nodes-base.aggregate",
"notes": "Combine all items",
"position": [
1020,
1279
],
"parameters": {
"options": {},
"aggregate": "aggregateAllItemData"
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "ba174e7f-4377-46dc-aca8-30adf81e5d61",
"name": "Binance 24時間価格変動",
"type": "n8n-nodes-base.httpRequest",
"notes": "Get data of changed price coins in last 24h",
"position": [
680,
1279
],
"parameters": {
"url": "https://api.binance.com/api/v1/ticker/24hr",
"options": {}
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "575563d5-3fb5-40f3-8017-d015cc822d5f",
"name": "10%変動率でフィルター",
"type": "n8n-nodes-base.function",
"notes": "Filter by 10% Up & Down",
"position": [
860,
1279
],
"parameters": {
"functionCode": "// Iterate over all coins and check for 10% price change\nconst significantChanges = [];\nfor (const coin of items[0].json) {\n const priceChangePercent = parseFloat(coin.priceChangePercent);\n if (Math.abs(priceChangePercent) >= 15) {\n significantChanges.push({ \n symbol: coin.symbol, \n priceChangePercent, \n lastPrice: coin.lastPrice \n });\n }\n}\n\n// Sort the items by percent rate from high to low\nsignificantChanges.sort((a, b) => b.priceChangePercent - a.priceChangePercent);\n\n// Format the sorted data for output\nconst sortedOutput = significantChanges.map(change => ({\n json: { message: `\\`\\`\\`${change.symbol} Price changed by ${change.priceChangePercent}% \\n Last Price: ${change.lastPrice}\\`\\`\\`` }\n}));\n\nreturn sortedOutput;\n"
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "dcfeae2e-bcdd-472d-98e4-8c1772ccdf1b",
"name": "1K文字単位で分割",
"type": "n8n-nodes-base.code",
"notes": "Split them for telegram message limit",
"position": [
1180,
1279
],
"parameters": {
"jsCode": "// Function to split the data into chunks of approximately 1000 characters\nfunction splitDataIntoChunks(data) {\n const chunks = [];\n let currentChunk = \"\";\n\n data.forEach(item => {\n // Ensure that each item has a 'message' property\n if (item && item.message) {\n const message = item.message + \"\\n\"; // Adding a newline for separation\n // Check if adding this message to the current chunk would exceed the 1000 characters limit\n if (currentChunk.length + message.length > 1000) {\n // If so, push the current chunk to the chunks array and start a new chunk\n chunks.push({ json: { data: currentChunk } });\n currentChunk = message;\n } else {\n // Otherwise, add the message to the current chunk\n currentChunk += message;\n }\n }\n });\n\n // Add the last chunk if it's not empty\n if (currentChunk) {\n chunks.push({ json: { data: currentChunk } });\n }\n\n return chunks;\n}\n\n// The input data is passed from the previous node\nconst inputData = items[0].json.data; // Accessing the 'data' property\n\n// Process the data\nconst result = splitDataIntoChunks(inputData);\n\n// Output the result\nreturn result;\n"
},
"notesInFlow": true,
"typeVersion": 2
},
{
"id": "40e25c71-641a-4b69-afec-b8a93d5d6448",
"name": "付箋ノート",
"type": "n8n-nodes-base.stickyNote",
"position": [
483.54457851446114,
1040
],
"parameters": {
"color": 5,
"width": 1040.928205084989,
"height": 183.94838465674636,
"content": "### Workflow Setup Steps:\n1. Ensure the **_Schedule Trigger_** is active to desired cron time (Default 5 minutes).\n2. [_Optional_] Configure the **_Binance 24h Price Change_** node with your API details (Default one is Free Public API Call - Free).\n3. Set up your **Telegram bot** token in the **Telegram node credentials**.\n4. Update the **_Chat ID_** in the **_Send Telegram Message_** node.\n5. Test the workflow to ensure everything is set up correctly.\n* **Notes**: Detailed telegram bot setup instructions are available in the [workflow's n8n page](https://n8n.io/workflows/2043-crypto-market-alert-system-with-binance-and-telegram-integration)."
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"d23c3277-62ca-4e1f-ad5d-48c07e0d6b94": {
"main": [
[
{
"node": "dcfeae2e-bcdd-472d-98e4-8c1772ccdf1b",
"type": "main",
"index": 0
}
]
]
},
"f305e08e-d4b4-4ec6-be74-5edb7a3711e5": {
"main": [
[
{
"node": "ba174e7f-4377-46dc-aca8-30adf81e5d61",
"type": "main",
"index": 0
}
]
]
},
"dcfeae2e-bcdd-472d-98e4-8c1772ccdf1b": {
"main": [
[
{
"node": "abac20ef-6319-40e3-8d30-806d7499a427",
"type": "main",
"index": 0
}
]
]
},
"ba174e7f-4377-46dc-aca8-30adf81e5d61": {
"main": [
[
{
"node": "575563d5-3fb5-40f3-8017-d015cc822d5f",
"type": "main",
"index": 0
}
]
]
},
"575563d5-3fb5-40f3-8017-d015cc822d5f": {
"main": [
[
{
"node": "d23c3277-62ca-4e1f-ad5d-48c07e0d6b94",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - その他
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
誕生日と星暦通知
生誕日・旬星通知(Google連絡先、Telegram、Home Assistant)
If
Set
Code
+
If
Set
Code
26 ノードThibaud
その他
メールの視覚のサマリーと知識グラフインサイトをメールアドレスに生成する
メールの視覚のなサマリーと知識グラフのインサイトを生成する
If
Set
Code
+
If
Set
Code
38 ノードInfraNodus
その他
AI エージェント レストラン [テンプレート]
🤖 WhatsApp、Instagram、MessengerのAIレストランアシスタント
If
N8n
Set
+
If
N8n
Set
239 ノードAmanda Benks
その他
GitHub Gistの一時のなHTML URLを通じてメール通知をTelegramに送信
GitHub Gistの一時のHTML URLを通じてメール通知をTelegramに送信
Wait
Telegram
Http Request
+
Wait
Telegram
Http Request
7 ノードNskha
その他
受信メールをマークして、ナレッジグラフを構築し、Telegramで通知する
Gemini AIによるGmailラベルの自動振り分けと、InfraNodus knowledge graphの構築、Telegram経由でのリマインド送信
Code
Wait
Gmail
+
Code
Wait
Gmail
28 ノードInfraNodus
その他
n8nノードの探索(可視化リファレンスライブラリ内)
n8nノードを可視化リファレンスライブラリで探索
If
Ftp
Set
+
If
Ftp
Set
113 ノードI versus AI
その他
ワークフロー情報
難易度
中級
ノード数7
カテゴリー1
ノードタイプ7
作成者
Nskha
@nskhaWelcome to Nskha! We're all about making real changes in the no-code tech field, just like with N8N 😉. Check out our amazing collection of free public templates and join us in building a collaborative database of no-code idea projects. Let's revolutionize the way we create without code!
外部リンク
n8n.ioで表示 →
このワークフローを共有