Skip to main content

Binance spot trader - limit & market orders via API

Workflow preview

Workflow preview
100%
Binance spot trader - limit & market orders via API preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

How it works 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 ...

Best for

  • Crypto Trading automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.crypto, n8n-nodes-base.code, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Todsaporn Sangboon.

Original n8n.io source

1.1 Workflow description

Title
Binance spot trader - limit & market orders via API
Workflow name
Binance spot trader - limit & market orders via API

📈 How it works

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

All requests are signed using Binance's HMAC SHA256 signature method for secure trading.


⚙️ Setup Steps

  1. Create Binance API Credentials in n8n:

    • Go to Credentials > New
    • Choose Binance API
    • Add api_key and api_secret
    • Save as Binance API
  2. Import this workflow into your n8n instance.

  3. Update default values:

    • In Set Parameter nodes like LimitBuy Parameter, change:
      • symbol (e.g. BTCUSDT)
      • quantity, price as needed
  4. Run the workflow manually via the Execute workflow trigger.


✅ Notes

  • Credential node is marked with instructions.
  • HMAC signatures are automatically calculated before making each request.
  • HTTP nodes are preconfigured for Binance API v3.

🔒 No API key or secret is included.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Set Account Query

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3

Block 3 - Signature Get Account

Type / Role
n8n-nodes-base.crypto - crypto
Config choices
Version 1

Block 4 - Account Info Query

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Order Query

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - LimitBuy Parmeter

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3

Block 7 - Set Credentials

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 8 - Get Account Info

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 3

Block 9 - LimitSale Parameter

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3

Block 10 - Sale Query

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Execute Limit SELL

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 3

Block 12 - Execute Limit BUY

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 3

Block 13 - Market Buy Query

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - MarketBuy Parameter

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3

Block 15 - Signature MarketBuy

Type / Role
n8n-nodes-base.crypto - crypto
Config choices
Version 1

Block 16 - Signature Limit BUY

Type / Role
n8n-nodes-base.crypto - crypto
Config choices
Version 1

Block 17 - Signature Limit SELL

Type / Role
n8n-nodes-base.crypto - crypto
Config choices
Version 1

Block 18 - Execute MarketBuy

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 3

Block 19 - MarketSell Parameter

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3

Block 20 - Market Sell Query

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Signature MarketSell

Type / Role
n8n-nodes-base.crypto - crypto
Config choices
Version 1

Block 22 - Execute MarketSell

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 3

Block 23 - OpenOrder Query

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 24 - Open Orders Params

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3

Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Binance spot trader - limit & market orders via API
Complexity advanced
Nodes 30
Categories Crypto Trading
Author Todsaporn Sangboon
Published 18 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5036/5036.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Binance spot trader - limit & market orders via API do?

How it works 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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Crypto Trading use case.