{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4e33d480-2c43-4286-842f-7e48a4ac8f23",
    "slug": "freqtrade",
    "name": "Freqtrade",
    "description": "Self-hosted crypto trading bot with FreqUI, dry-run defaults, Kraken",
    "url": "https://railway.com/deploy/freqtrade",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/freqtrade"
    }
  },
  "services": [
    {
      "name": "freqtrade",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/freqtrade"
      },
      "needs_volume": true,
      "volume_mount_path": "/freqtrade/user_data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "freqtrade",
      "description": "HTTP server port. Must stay 8080 — it matches the Railway domain target port configured in this template.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "FREQTRADE__DRY_RUN",
      "service": "freqtrade",
      "description": "Paper trading mode — simulated orders, no real funds. Keep true until your strategy is proven.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "FREQTRADE__STRATEGY",
      "service": "freqtrade",
      "description": "Strategy class name from user_data/strategies/. Replace with your own strategy once uploaded via FreqUI or git.",
      "secret": false,
      "strategy": "default",
      "default": "SampleStrategy"
    },
    {
      "key": "FREQTRADE__EXCHANGE__NAME",
      "service": "freqtrade",
      "description": "CCXT exchange id (kraken, binance, kucoin, gate, okx...). Kraken default works worldwide including US; binance is geo-blocked on some hosts.",
      "secret": false,
      "strategy": "default",
      "default": "kraken"
    },
    {
      "key": "FREQTRADE__TELEGRAM__ENABLED",
      "service": "freqtrade",
      "description": "Enable the Telegram control bot to manage your bot from chat.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "FREQTRADE__API_SERVER__PASSWORD",
      "service": "freqtrade",
      "description": "Password for the FreqUI web interface and REST API (min 8 chars). Auto-generated per deployment — log in at / with username 'freqtrader'.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "FREQTRADE__API_SERVER__USERNAME",
      "service": "freqtrade",
      "description": "Username for the FreqUI web interface and REST API. Log in at / with this username and FREQTRADE__API_SERVER__PASSWORD.",
      "secret": false,
      "strategy": "default",
      "default": "freqtrader"
    },
    {
      "key": "FREQTRADE__API_SERVER__WS_TOKEN",
      "service": "freqtrade",
      "description": "Token for the FreqUI WebSocket connection (min 32 chars). Auto-generated per deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "FREQTRADE__API_SERVER__JWT_SECRET_KEY",
      "service": "freqtrade",
      "description": "Secret used to sign API auth tokens (min 32 chars). Auto-generated per deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "freqtrade"
      }
    },
    "cli": "railway deploy --template freqtrade",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4e33d480-2c43-4286-842f-7e48a4ac8f23",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "8822eee0-6f38-4e07-87aa-f6eb9cb7443f": {
                  "icon": null,
                  "name": "freqtrade",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/freqtrade",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server port. Must stay 8080 — it matches the Railway domain target port configured in this template.",
                      "defaultValue": "8080"
                    },
                    "FREQTRADE__DRY_RUN": {
                      "description": "Paper trading mode — simulated orders, no real funds. Keep true until your strategy is proven.",
                      "defaultValue": "true"
                    },
                    "FREQTRADE__STRATEGY": {
                      "description": "Strategy class name from user_data/strategies/. Replace with your own strategy once uploaded via FreqUI or git.",
                      "defaultValue": "SampleStrategy"
                    },
                    "FREQTRADE__EXCHANGE__KEY": {
                      "isOptional": true,
                      "description": "Exchange API key — live trading only. Leave empty for dry-run paper trading.",
                      "defaultValue": ""
                    },
                    "FREQTRADE__EXCHANGE__NAME": {
                      "description": "CCXT exchange id (kraken, binance, kucoin, gate, okx...). Kraken default works worldwide including US; binance is geo-blocked on some hosts.",
                      "defaultValue": "kraken"
                    },
                    "FREQTRADE__TELEGRAM__TOKEN": {
                      "isOptional": true,
                      "description": "Telegram bot token from @BotFather. Required when Telegram is enabled.",
                      "defaultValue": ""
                    },
                    "FREQTRADE__EXCHANGE__SECRET": {
                      "isOptional": true,
                      "description": "Exchange API secret — live trading only. Leave empty for dry-run paper trading.",
                      "defaultValue": ""
                    },
                    "FREQTRADE__TELEGRAM__CHAT_ID": {
                      "isOptional": true,
                      "description": "Your Telegram chat id for bot notifications. Required when Telegram is enabled.",
                      "defaultValue": ""
                    },
                    "FREQTRADE__TELEGRAM__ENABLED": {
                      "description": "Enable the Telegram control bot to manage your bot from chat.",
                      "defaultValue": "false"
                    },
                    "FREQTRADE__API_SERVER__PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the FreqUI web interface and REST API (min 8 chars). Auto-generated per deployment — log in at / with username 'freqtrader'.",
                      "defaultValue": "{{FREQTRADE__API_SERVER__PASSWORD}}"
                    },
                    "FREQTRADE__API_SERVER__USERNAME": {
                      "description": "Username for the FreqUI web interface and REST API. Log in at / with this username and FREQTRADE__API_SERVER__PASSWORD.",
                      "defaultValue": "freqtrader"
                    },
                    "FREQTRADE__API_SERVER__WS_TOKEN": {
                      "isOptional": false,
                      "description": "Token for the FreqUI WebSocket connection (min 32 chars). Auto-generated per deployment.",
                      "defaultValue": "{{FREQTRADE__API_SERVER__WS_TOKEN}}"
                    },
                    "FREQTRADE__API_SERVER__JWT_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Secret used to sign API auth tokens (min 32 chars). Auto-generated per deployment.",
                      "defaultValue": "{{FREQTRADE__API_SERVER__JWT_SECRET_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "8822eee0-6f38-4e07-87aa-f6eb9cb7443f": {
                      "mountPath": "/freqtrade/user_data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T10:14:47.278Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T19:57:37.549Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a58cb3421bb24ce3890b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 115,
    "typical_build_seconds": 30,
    "typical_start_seconds": 16,
    "slowest_service": "freqtrade"
  }
}
