{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2156fa47-ff4a-40be-98bf-6703ce737213",
    "slug": "hummingbot",
    "name": "Hummingbot",
    "description": "Headless Hummingbot crypto market-making bots — paper trading by default",
    "url": "https://railway.com/deploy/hummingbot",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/hummingbot"
    }
  },
  "services": [
    {
      "name": "hummingbot",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/hummingbot"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/hummingbot/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "hummingbot",
      "description": "Health endpoint port. Must stay 8080 — it matches the Railway domain target port configured in this template.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "HBOT_EXCHANGE",
      "service": "hummingbot",
      "description": "Connector id. Paper-trade connectors simulate fills with no API keys. Switch to a live connector (e.g. kraken) after adding API keys via the keystore.",
      "secret": false,
      "strategy": "default",
      "default": "kraken_paper_trade"
    },
    {
      "key": "SCRIPT_CONFIG",
      "service": "hummingbot",
      "description": "Strategy config file to run from conf/scripts/ on the volume. Seeded on first boot with a pure market-making sample strategy.",
      "secret": false,
      "strategy": "default",
      "default": "simple_pmm.yml"
    },
    {
      "key": "CONFIG_PASSWORD",
      "service": "hummingbot",
      "description": "Password for Hummingbot's encrypted keystore (stores connector API keys). Auto-generated per deployment. Set your own to keep keys readable across redeploys.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "HBOT_ASK_SPREAD",
      "service": "hummingbot",
      "description": "Distance of sell orders above the mid price, in percent.",
      "secret": false,
      "strategy": "default",
      "default": "0.5"
    },
    {
      "key": "HBOT_BID_SPREAD",
      "service": "hummingbot",
      "description": "Distance of buy orders below the mid price, in percent.",
      "secret": false,
      "strategy": "default",
      "default": "0.5"
    },
    {
      "key": "HBOT_PRICE_TYPE",
      "service": "hummingbot",
      "description": "Reference price for spreads: mid, last, best_bid, or best_ask.",
      "secret": false,
      "strategy": "default",
      "default": "mid"
    },
    {
      "key": "HBOT_ORDER_AMOUNT",
      "service": "hummingbot",
      "description": "Order size in base currency.",
      "secret": false,
      "strategy": "default",
      "default": "0.05"
    },
    {
      "key": "HBOT_TRADING_PAIR",
      "service": "hummingbot",
      "description": "Market to make, in BASE-QUOTE format (e.g. ETH-USD, BTC-USDT).",
      "secret": false,
      "strategy": "default",
      "default": "ETH-USD"
    },
    {
      "key": "HBOT_ORDER_REFRESH_TIME",
      "service": "hummingbot",
      "description": "Seconds between order cancel-and-replace cycles.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "hummingbot"
      }
    },
    "cli": "railway deploy --template hummingbot",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2156fa47-ff4a-40be-98bf-6703ce737213",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4ee8e9a6-4ab7-469a-95fd-07a5bd8510bb": {
                  "icon": null,
                  "name": "hummingbot",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/hummingbot",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Health endpoint port. Must stay 8080 — it matches the Railway domain target port configured in this template.",
                      "defaultValue": "8080"
                    },
                    "HBOT_EXCHANGE": {
                      "description": "Connector id. Paper-trade connectors simulate fills with no API keys. Switch to a live connector (e.g. kraken) after adding API keys via the keystore.",
                      "defaultValue": "kraken_paper_trade"
                    },
                    "SCRIPT_CONFIG": {
                      "description": "Strategy config file to run from conf/scripts/ on the volume. Seeded on first boot with a pure market-making sample strategy.",
                      "defaultValue": "simple_pmm.yml"
                    },
                    "CONFIG_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for Hummingbot's encrypted keystore (stores connector API keys). Auto-generated per deployment. Set your own to keep keys readable across redeploys.",
                      "defaultValue": "{{CONFIG_PASSWORD}}"
                    },
                    "HBOT_ASK_SPREAD": {
                      "description": "Distance of sell orders above the mid price, in percent.",
                      "defaultValue": "0.5"
                    },
                    "HBOT_BID_SPREAD": {
                      "description": "Distance of buy orders below the mid price, in percent.",
                      "defaultValue": "0.5"
                    },
                    "HBOT_PRICE_TYPE": {
                      "description": "Reference price for spreads: mid, last, best_bid, or best_ask.",
                      "defaultValue": "mid"
                    },
                    "HBOT_ORDER_AMOUNT": {
                      "description": "Order size in base currency.",
                      "defaultValue": "0.05"
                    },
                    "HBOT_TRADING_PAIR": {
                      "description": "Market to make, in BASE-QUOTE format (e.g. ETH-USD, BTC-USDT).",
                      "defaultValue": "ETH-USD"
                    },
                    "HBOT_ORDER_REFRESH_TIME": {
                      "description": "Seconds between order cancel-and-replace cycles.",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "4ee8e9a6-4ab7-469a-95fd-07a5bd8510bb": {
                      "mountPath": "/home/hummingbot/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T19:56:13.119Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_74c61641531343fd88c8",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 186,
    "typical_build_seconds": 97,
    "typical_start_seconds": 42,
    "slowest_service": "hummingbot"
  }
}
