{
  "name": "Binance spot trader - limit & market orders via API",
  "nodes": [
    {
      "id": "93a8429c-b9ef-43de-934b-2c6fd9db1bb3",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1880,
        360
      ]
    },
    {
      "id": "250640b9-95f7-48b7-bf1d-07fc90026bee",
      "name": "Set Account Query",
      "type": "n8n-nodes-base.set",
      "position": [
        -1200,
        -180
      ]
    },
    {
      "id": "6dcb5a49-149d-4f62-bb69-137cec92f81f",
      "name": "Signature Get Account",
      "type": "n8n-nodes-base.crypto",
      "position": [
        -800,
        -180
      ]
    },
    {
      "id": "4983062d-1e68-4f15-a4d2-955fc81267b5",
      "name": "Account Info Query",
      "type": "n8n-nodes-base.code",
      "position": [
        -1000,
        -180
      ]
    },
    {
      "id": "57699751-49fa-4420-aa5a-291bc11fa631",
      "name": "Order Query",
      "type": "n8n-nodes-base.code",
      "position": [
        -1000,
        0
      ]
    },
    {
      "id": "92ff9826-2f60-4d35-8c58-30b483db49d6",
      "name": "LimitBuy Parmeter",
      "type": "n8n-nodes-base.set",
      "position": [
        -1200,
        0
      ]
    },
    {
      "id": "94a537dd-b59d-49cd-9daf-848a22df9e8d",
      "name": "Set Credentials",
      "type": "n8n-nodes-base.set",
      "position": [
        -1680,
        360
      ]
    },
    {
      "id": "9850ff29-6d6a-4fcc-bcc9-ed14c0fe1e7b",
      "name": "Get Account Info",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -580,
        -180
      ]
    },
    {
      "id": "9a3e31fc-7da7-48dc-8758-4d109addea56",
      "name": "LimitSale Parameter",
      "type": "n8n-nodes-base.set",
      "position": [
        -1200,
        180
      ]
    },
    {
      "id": "4d43ab9f-69a8-4eb3-a700-234f480cb8d7",
      "name": "Sale Query",
      "type": "n8n-nodes-base.code",
      "position": [
        -1000,
        180
      ]
    },
    {
      "id": "684e1d96-a2ef-4075-9545-ed904c8d798a",
      "name": "Execute Limit SELL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -580,
        180
      ]
    },
    {
      "id": "96ca7f7d-e60d-4944-80ec-c2b9ba02876a",
      "name": "Execute Limit BUY",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -580,
        0
      ]
    },
    {
      "id": "b13d8b19-0222-45fe-9558-b33aeffa2bc1",
      "name": "Market Buy Query",
      "type": "n8n-nodes-base.code",
      "position": [
        -1000,
        360
      ]
    },
    {
      "id": "4fb1f7a5-9a70-4870-bfd7-5575d587cb43",
      "name": "MarketBuy Parameter",
      "type": "n8n-nodes-base.set",
      "position": [
        -1200,
        360
      ]
    },
    {
      "id": "b4e45c9e-5a1c-4cf0-aed3-30520bf92cb9",
      "name": "Signature MarketBuy",
      "type": "n8n-nodes-base.crypto",
      "position": [
        -800,
        360
      ]
    },
    {
      "id": "4c9f4a4d-049e-431d-b053-a694698bd0ba",
      "name": "Signature Limit BUY",
      "type": "n8n-nodes-base.crypto",
      "position": [
        -800,
        0
      ]
    },
    {
      "id": "5c148d9e-c980-4485-944e-9535ca79d7af",
      "name": "Signature Limit SELL",
      "type": "n8n-nodes-base.crypto",
      "position": [
        -800,
        180
      ]
    },
    {
      "id": "d519fced-aaca-4dfb-bae0-818491d9791f",
      "name": "Execute MarketBuy",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -580,
        360
      ]
    },
    {
      "id": "916751cf-0525-4d7e-b6ee-6412beecf870",
      "name": "MarketSell Parameter",
      "type": "n8n-nodes-base.set",
      "position": [
        -1200,
        560
      ]
    },
    {
      "id": "0e03892e-4c5d-4a7c-9bff-acc014fbff03",
      "name": "Market Sell Query",
      "type": "n8n-nodes-base.code",
      "position": [
        -1000,
        560
      ]
    },
    {
      "id": "493074d1-7a6d-4b63-956d-55cda01e885d",
      "name": "Signature MarketSell",
      "type": "n8n-nodes-base.crypto",
      "position": [
        -800,
        560
      ]
    },
    {
      "id": "537afa17-ac5e-4d73-ac9c-ceabc644cc22",
      "name": "Execute MarketSell",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -580,
        560
      ]
    },
    {
      "id": "877a0eb7-866b-4c73-bbee-cb5b9e49b786",
      "name": "OpenOrder Query",
      "type": "n8n-nodes-base.code",
      "position": [
        -1000,
        760
      ]
    },
    {
      "id": "641c40ab-e673-4acd-8a48-5d7592800da2",
      "name": "Open Orders Params",
      "type": "n8n-nodes-base.set",
      "position": [
        -1200,
        760
      ]
    },
    {
      "id": "d0457455-134c-4425-bbbc-b4e1c3eedccf",
      "name": "Signature OpenOrder",
      "type": "n8n-nodes-base.crypto",
      "position": [
        -800,
        760
      ]
    },
    {
      "id": "3e8f723a-22ae-418c-9def-f95588d51080",
      "name": "Get Open Orders",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -580,
        760
      ]
    },
    {
      "id": "4c65712a-2a49-4dd6-b346-1b61fbfed417",
      "name": "Cancel All Order Params",
      "type": "n8n-nodes-base.set",
      "position": [
        -1200,
        960
      ]
    },
    {
      "id": "cde8a4d3-678a-464f-886b-763982ebfe01",
      "name": "CancelAllOrder Query",
      "type": "n8n-nodes-base.code",
      "position": [
        -1000,
        960
      ]
    },
    {
      "id": "bcb50ec1-cf95-464d-989f-e5c577b6695f",
      "name": "Signature Cancel All Order",
      "type": "n8n-nodes-base.crypto",
      "position": [
        -800,
        960
      ]
    },
    {
      "id": "2ceec541-944d-42c8-b36d-dee7abef0a26",
      "name": "Cancell All Order",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -580,
        960
      ]
    }
  ],
  "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 ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Set Credentials",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}