This workflow corresponds to n8n.io template #5036 — we link there as the canonical source.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "8p4wKxUqY1fAABOu",
"name": "trader-binance-spot-cloud-no-credential",
"tags": [
{
"id": "1EML6gc9DSYmybCZ",
"name": "trader",
"createdAt": "2025-06-16T02:31:44.015Z",
"updatedAt": "2025-06-16T02:31:44.015Z"
}
],
"nodes": [
{
"id": "93a8429c-b9ef-43de-934b-2c6fd9db1bb3",
"name": "When clicking \u2018Execute workflow\u2019",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-1880,
360
],
"parameters": {},
"typeVersion": 1
},
{
"id": "250640b9-95f7-48b7-bf1d-07fc90026bee",
"name": "Set Account Query",
"type": "n8n-nodes-base.set",
"position": [
-1200,
-180
],
"parameters": {
"mode": "raw",
"include": "selected",
"options": {},
"jsonOutput": "={\n \"timestamp\": \"{{ $now.toMillis() }}\"\n}\n",
"includeFields": "timestamp"
},
"typeVersion": 3
},
{
"id": "6dcb5a49-149d-4f62-bb69-137cec92f81f",
"name": "Signature Get Account",
"type": "n8n-nodes-base.crypto",
"position": [
-800,
-180
],
"parameters": {
"type": "SHA256",
"value": "={{ $json.queryString }}",
"action": "hmac",
"secret": "={{ $('Set Credentials').item.json.api_secret }}",
"dataPropertyName": "signature"
},
"typeVersion": 1
},
{
"id": "4983062d-1e68-4f15-a4d2-955fc81267b5",
"name": "Account Info Query",
"type": "n8n-nodes-base.code",
"position": [
-1000,
-180
],
"parameters": {
"jsCode": "// \u0e41\u0e1b\u0e25\u0e07 JSON object \u0e40\u0e1b\u0e47\u0e19 query string\nconst data = items[0].json;\n\n// \u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 1: \u0e43\u0e0a\u0e49 Object.keys() \u0e41\u0e25\u0e30 map()\nconst queryString = Object.keys(data)\n .map(key => `${key}=${data[key]}`)\n .join('&');\n\nreturn [{\n json: {\n queryString: queryString,\n originalData: data\n }\n}];"
},
"typeVersion": 2
},
{
"id": "57699751-49fa-4420-aa5a-291bc11fa631",
"name": "Order Query",
"type": "n8n-nodes-base.code",
"position": [
-1000,
0
],
"parameters": {
"jsCode": "// \u0e41\u0e1b\u0e25\u0e07 JSON object \u0e40\u0e1b\u0e47\u0e19 query string\nconst data = items[0].json;\n\n// \u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 1: \u0e43\u0e0a\u0e49 Object.keys() \u0e41\u0e25\u0e30 map()\nconst queryString = Object.keys(data)\n .map(key => `${key}=${data[key]}`)\n .join('&');\n\nreturn [{\n json: {\n queryString: queryString,\n originalData: data\n }\n}];"
},
"typeVersion": 2
},
{
"id": "92ff9826-2f60-4d35-8c58-30b483db49d6",
"name": "LimitBuy Parmeter",
"type": "n8n-nodes-base.set",
"position": [
-1200,
0
],
"parameters": {
"mode": "raw",
"include": "none",
"options": {},
"jsonOutput": "={\n \"symbol\": \"BTCUSDT\",\n \"side\": \"BUY\",\n \"type\": \"LIMIT\",\n \"price\": 98000.20,\n \"quantity\": 0.0001,\n \"timeInForce\": \"GTC\",\n \"timestamp\": \"{{ $now.toMillis() }}\"\n}"
},
"typeVersion": 3
},
{
"id": "94a537dd-b59d-49cd-9daf-848a22df9e8d",
"name": "Set Credentials",
"type": "n8n-nodes-base.set",
"notes": "\u0e01\u0e23\u0e38\u0e13\u0e32\u0e2a\u0e23\u0e49\u0e32\u0e07 Binance API Credentials \u0e43\u0e19 n8n:\n1. \u0e44\u0e1b\u0e17\u0e35\u0e48 Credentials > New\n2. \u0e40\u0e25\u0e37\u0e2d\u0e01 Binance API\n3. \u0e43\u0e2a\u0e48 API Key \u0e41\u0e25\u0e30 Secret Key\n4. \u0e15\u0e31\u0e49\u0e07\u0e0a\u0e37\u0e48\u0e2d\u0e27\u0e48\u0e32 'Binance API'\n5. Save\n\n\u0e17\u0e38\u0e01 node \u0e08\u0e30\u0e43\u0e0a\u0e49 credential \u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e31\u0e19\u0e19\u0e35\u0e49",
"position": [
-1680,
360
],
"parameters": {
"values": {
"string": [
{
"name": "api_key"
},
{
"name": "api_secret"
}
]
},
"options": {}
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "9850ff29-6d6a-4fcc-bcc9-ed14c0fe1e7b",
"name": "Get Account Info",
"type": "n8n-nodes-base.httpRequest",
"position": [
-580,
-180
],
"parameters": {
"url": "https://api.binance.com/api/v3/account",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"queryParameters": {
"parameters": [
{
"name": "timestamp",
"value": "={{ $('Set Account Query').item.json.timestamp }}"
},
{
"name": "signature",
"value": "={{ $json.signature }}"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "X-MBX-APIKEY",
"value": "={{ $('Set Credentials').item.json.api_key }}"
}
]
}
},
"typeVersion": 3
},
{
"id": "9a3e31fc-7da7-48dc-8758-4d109addea56",
"name": "LimitSale Parameter",
"type": "n8n-nodes-base.set",
"position": [
-1200,
180
],
"parameters": {
"mode": "raw",
"include": "none",
"options": {},
"jsonOutput": "={\n \"symbol\": \"BTCUSDT\",\n \"side\": \"SELL\",\n \"type\": \"LIMIT\",\n \"price\": 98000.20,\n \"quantity\": 0.0001,\n \"timeInForce\": \"GTC\",\n \"timestamp\": \"{{ $now.toMillis() }}\"\n}"
},
"typeVersion": 3
},
{
"id": "4d43ab9f-69a8-4eb3-a700-234f480cb8d7",
"name": "Sale Query",
"type": "n8n-nodes-base.code",
"position": [
-1000,
180
],
"parameters": {
"jsCode": "// \u0e41\u0e1b\u0e25\u0e07 JSON object \u0e40\u0e1b\u0e47\u0e19 query string\nconst data = items[0].json;\n\n// \u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 1: \u0e43\u0e0a\u0e49 Object.keys() \u0e41\u0e25\u0e30 map()\nconst queryString = Object.keys(data)\n .map(key => `${key}=${data[key]}`)\n .join('&');\n\nreturn [{\n json: {\n queryString: queryString,\n originalData: data\n }\n}];"
},
"typeVersion": 2
},
{
"id": "684e1d96-a2ef-4075-9545-ed904c8d798a",
"name": "Execute Limit SELL",
"type": "n8n-nodes-base.httpRequest",
"position": [
-580,
180
],
"parameters": {
"url": "https://api.binance.com/api/v3/order",
"body": "={{ $json.queryString }}&signature={{ $json.signature }}",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "form-urlencoded",
"sendHeaders": true,
"specifyBody": "string",
"headerParameters": {
"parameters": [
{
"name": "X-MBX-APIKEY",
"value": "={{ $('Set Credentials').item.json.api_key }}"
}
]
}
},
"typeVersion": 3
},
{
"id": "96ca7f7d-e60d-4944-80ec-c2b9ba02876a",
"name": "Execute Limit BUY",
"type": "n8n-nodes-base.httpRequest",
"position": [
-580,
0
],
"parameters": {
"url": "https://api.binance.com/api/v3/order",
"body": "={{ $json.queryString }}&signature={{ $json.signature }}",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "form-urlencoded",
"sendHeaders": true,
"specifyBody": "string",
"headerParameters": {
"parameters": [
{
"name": "X-MBX-APIKEY",
"value": "={{ $('Set Credentials').item.json.api_key }}"
}
]
}
},
"typeVersion": 3
},
{
"id": "b13d8b19-0222-45fe-9558-b33aeffa2bc1",
"name": "Market Buy Query",
"type": "n8n-nodes-base.code",
"position": [
-1000,
360
],
"parameters": {
"jsCode": "// \u0e41\u0e1b\u0e25\u0e07 JSON object \u0e40\u0e1b\u0e47\u0e19 query string\nconst data = items[0].json;\n\n// \u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 1: \u0e43\u0e0a\u0e49 Object.keys() \u0e41\u0e25\u0e30 map()\nconst queryString = Object.keys(data)\n .map(key => `${key}=${data[key]}`)\n .join('&');\n\nreturn [{\n json: {\n queryString: queryString,\n originalData: data\n }\n}];"
},
"typeVersion": 2
},
{
"id": "4fb1f7a5-9a70-4870-bfd7-5575d587cb43",
"name": "MarketBuy Parameter",
"type": "n8n-nodes-base.set",
"position": [
-1200,
360
],
"parameters": {
"mode": "raw",
"include": "none",
"options": {},
"jsonOutput": "={\n \"symbol\": \"BTCUSDT\",\n \"side\": \"BUY\",\n \"type\": \"MARKET\",\n \"quantity\": 0.0001,\n \"timestamp\": \"{{ $now.toMillis() }}\"\n}"
},
"typeVersion": 3
},
{
"id": "b4e45c9e-5a1c-4cf0-aed3-30520bf92cb9",
"name": "Signature MarketBuy",
"type": "n8n-nodes-base.crypto",
"position": [
-800,
360
],
"parameters": {
"type": "SHA256",
"value": "={{ $json.queryString }}",
"action": "hmac",
"secret": "={{ $('Set Credentials').item.json.api_secret }}",
"dataPropertyName": "signature"
},
"typeVersion": 1
},
{
"id": "4c9f4a4d-049e-431d-b053-a694698bd0ba",
"name": "Signature Limit BUY",
"type": "n8n-nodes-base.crypto",
"position": [
-800,
0
],
"parameters": {
"type": "SHA256",
"value": "={{ $json.queryString }}",
"action": "hmac",
"secret": "={{ $('Set Credentials').item.json.api_secret }}",
"dataPropertyName": "signature"
},
"typeVersion": 1
},
{
"id": "5c148d9e-c980-4485-944e-9535ca79d7af",
"name": "Signature Limit SELL",
"type": "n8n-nodes-base.crypto",
"position": [
-800,
180
],
"parameters": {
"type": "SHA256",
"value": "={{ $json.queryString }}",
"action": "hmac",
"secret": "={{ $('Set Credentials').item.json.api_secret }}",
"dataPropertyName": "signature"
},
"typeVersion": 1
},
{
"id": "d519fced-aaca-4dfb-bae0-818491d9791f",
"name": "Execute MarketBuy",
"type": "n8n-nodes-base.httpRequest",
"position": [
-580,
360
],
"parameters": {
"url": "https://api.binance.com/api/v3/order",
"body": "={{ $json.queryString }}&signature={{ $json.signature }}",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "form-urlencoded",
"sendHeaders": true,
"specifyBody": "string",
"headerParameters": {
"parameters": [
{
"name": "X-MBX-APIKEY",
"value": "={{ $('Set Credentials').item.json.api_key }}"
}
]
}
},
"typeVersion": 3
},
{
"id": "916751cf-0525-4d7e-b6ee-6412beecf870",
"name": "MarketSell Parameter",
"type": "n8n-nodes-base.set",
"position": [
-1200,
560
],
"parameters": {
"mode": "raw",
"include": "none",
"options": {},
"jsonOutput": "={\n \"symbol\": \"BTCUSDT\",\n \"side\": \"SELL\",\n \"type\": \"MARKET\",\n \"quantity\": 0.0001,\n \"timestamp\": \"{{ $now.toMillis() }}\"\n}"
},
"typeVersion": 3
},
{
"id": "0e03892e-4c5d-4a7c-9bff-acc014fbff03",
"name": "Market Sell Query",
"type": "n8n-nodes-base.code",
"position": [
-1000,
560
],
"parameters": {
"jsCode": "// \u0e41\u0e1b\u0e25\u0e07 JSON object \u0e40\u0e1b\u0e47\u0e19 query string\nconst data = items[0].json;\n\n// \u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 1: \u0e43\u0e0a\u0e49 Object.keys() \u0e41\u0e25\u0e30 map()\nconst queryString = Object.keys(data)\n .map(key => `${key}=${data[key]}`)\n .join('&');\n\nreturn [{\n json: {\n queryString: queryString,\n originalData: data\n }\n}];"
},
"typeVersion": 2
},
{
"id": "493074d1-7a6d-4b63-956d-55cda01e885d",
"name": "Signature MarketSell",
"type": "n8n-nodes-base.crypto",
"position": [
-800,
560
],
"parameters": {
"type": "SHA256",
"value": "={{ $json.queryString }}",
"action": "hmac",
"secret": "={{ $('Set Credentials').item.json.api_secret }}",
"dataPropertyName": "signature"
},
"typeVersion": 1
},
{
"id": "537afa17-ac5e-4d73-ac9c-ceabc644cc22",
"name": "Execute MarketSell",
"type": "n8n-nodes-base.httpRequest",
"position": [
-580,
560
],
"parameters": {
"url": "https://api.binance.com/api/v3/order",
"body": "={{ $json.queryString }}&signature={{ $json.signature }}",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "form-urlencoded",
"sendHeaders": true,
"specifyBody": "string",
"headerParameters": {
"parameters": [
{
"name": "X-MBX-APIKEY",
"value": "={{ $('Set Credentials').item.json.api_key }}"
}
]
}
},
"typeVersion": 3
},
{
"id": "877a0eb7-866b-4c73-bbee-cb5b9e49b786",
"name": "OpenOrder Query",
"type": "n8n-nodes-base.code",
"position": [
-1000,
760
],
"parameters": {
"jsCode": "// \u0e41\u0e1b\u0e25\u0e07 JSON object \u0e40\u0e1b\u0e47\u0e19 query string\nconst data = items[0].json;\n\n// \u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 1: \u0e43\u0e0a\u0e49 Object.keys() \u0e41\u0e25\u0e30 map()\nconst queryString = Object.keys(data)\n .map(key => `${key}=${data[key]}`)\n .join('&');\n\nreturn [{\n json: {\n queryString: queryString,\n originalData: data\n }\n}];"
},
"typeVersion": 2
},
{
"id": "641c40ab-e673-4acd-8a48-5d7592800da2",
"name": "Open Orders Params",
"type": "n8n-nodes-base.set",
"position": [
-1200,
760
],
"parameters": {
"mode": "raw",
"include": "none",
"options": {},
"jsonOutput": "={\n \"timestamp\": \"{{ $now.toMillis() }}\",\n \"symbol\": \"BTCUSDT\",\n \"recvWindow\": 2000\n}\n"
},
"typeVersion": 3
},
{
"id": "d0457455-134c-4425-bbbc-b4e1c3eedccf",
"name": "Signature OpenOrder",
"type": "n8n-nodes-base.crypto",
"position": [
-800,
760
],
"parameters": {
"type": "SHA256",
"value": "={{ $json.queryString }}",
"action": "hmac",
"secret": "={{ $('Set Credentials').item.json.api_secret }}",
"dataPropertyName": "signature"
},
"typeVersion": 1
},
{
"id": "3e8f723a-22ae-418c-9def-f95588d51080",
"name": "Get Open Orders",
"type": "n8n-nodes-base.httpRequest",
"position": [
-580,
760
],
"parameters": {
"url": "=https://api.binance.com/api/v3/openOrders?{{ $json.queryString }}",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"queryParameters": {
"parameters": [
{
"name": "signature",
"value": "={{ $json.signature }}"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "X-MBX-APIKEY",
"value": "={{ $('Set Credentials').item.json.api_key }}"
}
]
}
},
"typeVersion": 3
},
{
"id": "4c65712a-2a49-4dd6-b346-1b61fbfed417",
"name": "Cancel All Order Params",
"type": "n8n-nodes-base.set",
"position": [
-1200,
960
],
"parameters": {
"mode": "raw",
"include": "none",
"options": {},
"jsonOutput": "={\n \"timestamp\": \"{{ $now.toMillis() }}\",\n \"symbol\": \"BTCUSDT\",\n \"recvWindow\": 2000\n}\n"
},
"typeVersion": 3
},
{
"id": "cde8a4d3-678a-464f-886b-763982ebfe01",
"name": "CancelAllOrder Query",
"type": "n8n-nodes-base.code",
"position": [
-1000,
960
],
"parameters": {
"jsCode": "// \u0e41\u0e1b\u0e25\u0e07 JSON object \u0e40\u0e1b\u0e47\u0e19 query string\nconst data = items[0].json;\n\n// \u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 1: \u0e43\u0e0a\u0e49 Object.keys() \u0e41\u0e25\u0e30 map()\nconst queryString = Object.keys(data)\n .map(key => `${key}=${data[key]}`)\n .join('&');\n\nreturn [{\n json: {\n queryString: queryString,\n originalData: data\n }\n}];"
},
"typeVersion": 2
},
{
"id": "bcb50ec1-cf95-464d-989f-e5c577b6695f",
"name": "Signature Cancel All Order",
"type": "n8n-nodes-base.crypto",
"position": [
-800,
960
],
"parameters": {
"type": "SHA256",
"value": "={{ $json.queryString }}",
"action": "hmac",
"secret": "={{ $('Set Credentials').item.json.api_secret }}",
"dataPropertyName": "signature"
},
"typeVersion": 1
},
{
"id": "2ceec541-944d-42c8-b36d-dee7abef0a26",
"name": "Cancell All Order",
"type": "n8n-nodes-base.httpRequest",
"position": [
-580,
960
],
"parameters": {
"url": "=https://api.binance.com/api/v3/openOrders",
"body": "={{ $json.queryString }}",
"method": "DELETE",
"options": {},
"sendBody": true,
"sendQuery": true,
"contentType": "form-urlencoded",
"sendHeaders": true,
"specifyBody": "string",
"queryParameters": {
"parameters": [
{
"name": "signature",
"value": "={{ $json.signature }}"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "X-MBX-APIKEY",
"value": "={{ $('Set Credentials').item.json.api_key }}"
}
]
}
},
"typeVersion": 3
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "9625a34a-ecfe-42fd-adef-c57e036d3d7d",
"connections": {
"Sale Query": {
"main": [
[
{
"node": "Signature Limit SELL",
"type": "main",
"index": 0
}
]
]
},
"Order Query": {
"main": [
[
{
"node": "Signature Limit BUY",
"type": "main",
"index": 0
}
]
]
},
"OpenOrder Query": {
"main": [
[
{
"node": "Signature OpenOrder",
"type": "main",
"index": 0
}
]
]
},
"Set Credentials": {
"main": [
[
{
"node": "Set Account Query",
"type": "main",
"index": 0
}
]
]
},
"Market Buy Query": {
"main": [
[
{
"node": "Signature MarketBuy",
"type": "main",
"index": 0
}
]
]
},
"LimitBuy Parmeter": {
"main": [
[
{
"node": "Order Query",
"type": "main",
"index": 0
}
]
]
},
"Market Sell Query": {
"main": [
[
{
"node": "Signature MarketSell",
"type": "main",
"index": 0
}
]
]
},
"Set Account Query": {
"main": [
[
{
"node": "Account Info Query",
"type": "main",
"index": 0
}
]
]
},
"Account Info Query": {
"main": [
[
{
"node": "Signature Get Account",
"type": "main",
"index": 0
}
]
]
},
"Open Orders Params": {
"main": [
[
{
"node": "OpenOrder Query",
"type": "main",
"index": 0
}
]
]
},
"LimitSale Parameter": {
"main": [
[
{
"node": "Sale Query",
"type": "main",
"index": 0
}
]
]
},
"MarketBuy Parameter": {
"main": [
[
{
"node": "Market Buy Query",
"type": "main",
"index": 0
}
]
]
},
"Signature Limit BUY": {
"main": [
[
{
"node": "Execute Limit BUY",
"type": "main",
"index": 0
}
]
]
},
"Signature MarketBuy": {
"main": [
[
{
"node": "Execute MarketBuy",
"type": "main",
"index": 0
}
]
]
},
"Signature OpenOrder": {
"main": [
[
{
"node": "Get Open Orders",
"type": "main",
"index": 0
}
]
]
},
"CancelAllOrder Query": {
"main": [
[
{
"node": "Signature Cancel All Order",
"type": "main",
"index": 0
}
]
]
},
"MarketSell Parameter": {
"main": [
[
{
"node": "Market Sell Query",
"type": "main",
"index": 0
}
]
]
},
"Signature Limit SELL": {
"main": [
[
{
"node": "Execute Limit SELL",
"type": "main",
"index": 0
}
]
]
},
"Signature MarketSell": {
"main": [
[
{
"node": "Execute MarketSell",
"type": "main",
"index": 0
}
]
]
},
"Signature Get Account": {
"main": [
[
{
"node": "Get Account Info",
"type": "main",
"index": 0
}
]
]
},
"Cancel All Order Params": {
"main": [
[
{
"node": "CancelAllOrder Query",
"type": "main",
"index": 0
}
]
]
},
"Signature Cancel All Order": {
"main": [
[
{
"node": "Cancell All Order",
"type": "main",
"index": 0
}
]
]
},
"When clicking \u2018Execute workflow\u2019": {
"main": [
[
{
"node": "Set Credentials",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
This n8n workflow allows you to interact with Binance Spot Trading API directly to: Place Limit Buy and Limit Sell orders Place Market Buy and Market Sell orders Query account info and open orders Cancel all open orders for a specific symbol
Source: https://n8n.io/workflows/5036/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
If you're using Meta Ads to generate new leads to your sales pipeline, this workflow is for you! 🙌🏻 Triggers every time you have a new calendar event on a chosen Google Acount Filter only events with
Uploading an image to Webflow's Asset Manager through the API is surprisingly complex. It requires computing an MD5 hash, announcing the file to Webflow, then uploading the binary to Amazon S3 with sp
This workflow allows you to import any workflow from a file or another n8n instance and map the credentials easily. A multi-form setup guides you through the entire process At the beginning you have t
[n8n] Advanced URL Parsing and Shortening Workflow - Switchy.io Integration. Uses splitInBatches, stickyNote, httpRequest, html. Event-driven trigger; 56 nodes.
[](https://youtu.be/c7yCZhmMjtI)