{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2770b6db-a5e8-4cba-9ea8-9082fcf46b93",
    "slug": "flash-trade-bot-1",
    "name": "flash-trade-bot",
    "description": "Deploy and Host flash-trade-bot with Railway smoothly",
    "url": "https://railway.com/deploy/flash-trade-bot-1",
    "upstream": {
      "repo_url": "https://github.com/cryptoclassdev/flash-trade-bot"
    }
  },
  "services": [
    {
      "name": "flash-trade-bot",
      "source": {
        "repo": "https://github.com/cryptoclassdev/flash-trade-bot"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "ASSET",
      "service": "flash-trade-bot",
      "description": "Market symbol on flash.trade.",
      "secret": false,
      "strategy": "default",
      "default": "BTC"
    },
    {
      "key": "NETWORK",
      "service": "flash-trade-bot",
      "description": "Solana network. mainnet-beta for live trading; devnet is dormant.",
      "secret": false,
      "strategy": "default",
      "default": "mainnet-beta"
    },
    {
      "key": "LEVERAGE",
      "service": "flash-trade-bot",
      "description": "Leverage multiplier, 1-10.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "SETUP_MODE",
      "service": "flash-trade-bot",
      "description": "Bot boots in dashboard-only mode. Remove this variable after you complete the setup wizard to enable trading.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DRY_RUN_ONLY",
      "service": "flash-trade-bot",
      "description": "Keep false. When true, server refuses to boot — script-only mode.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "COLLATERAL_USDC",
      "service": "flash-trade-bot",
      "description": "Per-trade collateral in USDC. Adjustable via dashboard sliders.",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "SLIPPAGE_EXIT_BPS",
      "service": "flash-trade-bot",
      "description": "Exit slippage tolerance, basis points. Higher than entry for reliable closes.",
      "secret": false,
      "strategy": "default",
      "default": "150"
    },
    {
      "key": "SLIPPAGE_ENTRY_BPS",
      "service": "flash-trade-bot",
      "description": "Entry slippage tolerance, basis points (100 = 1%).",
      "secret": false,
      "strategy": "default",
      "default": "100"
    },
    {
      "key": "MAX_DAILY_LOSS_USDC",
      "service": "flash-trade-bot",
      "description": "Daily realized-loss circuit breaker. Bot auto-halts when hit; auto-clears at UTC midnight.",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "I_UNDERSTAND_REAL_MONEY",
      "service": "flash-trade-bot",
      "description": "Must be literal 'yes' to trade on mainnet. Acknowledging real-money risk.",
      "secret": false,
      "strategy": "default",
      "default": "yes"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "flash-trade-bot-1"
      }
    },
    "cli": "railway deploy --template flash-trade-bot-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2770b6db-a5e8-4cba-9ea8-9082fcf46b93",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "16201b83-5f2b-4462-b702-15c26ca66db4": {
                  "icon": null,
                  "name": "flash-trade-bot",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/cryptoclassdev/flash-trade-bot",
                    "rootDirectory": null
                  },
                  "variables": {
                    "ASSET": {
                      "isOptional": false,
                      "description": "Market symbol on flash.trade.",
                      "defaultValue": "BTC"
                    },
                    "NETWORK": {
                      "isOptional": false,
                      "description": "Solana network. mainnet-beta for live trading; devnet is dormant.",
                      "defaultValue": "mainnet-beta"
                    },
                    "LEVERAGE": {
                      "isOptional": false,
                      "description": "Leverage multiplier, 1-10.",
                      "defaultValue": "2"
                    },
                    "SETUP_MODE": {
                      "description": "Bot boots in dashboard-only mode. Remove this variable after you complete the setup wizard to enable trading.",
                      "defaultValue": "true"
                    },
                    "DRY_RUN_ONLY": {
                      "isOptional": false,
                      "description": "Keep false. When true, server refuses to boot — script-only mode.",
                      "defaultValue": "false"
                    },
                    "COLLATERAL_USDC": {
                      "isOptional": false,
                      "description": "Per-trade collateral in USDC. Adjustable via dashboard sliders.",
                      "defaultValue": "20"
                    },
                    "SLIPPAGE_EXIT_BPS": {
                      "isOptional": false,
                      "description": "Exit slippage tolerance, basis points. Higher than entry for reliable closes.",
                      "defaultValue": "150"
                    },
                    "SLIPPAGE_ENTRY_BPS": {
                      "isOptional": false,
                      "description": "Entry slippage tolerance, basis points (100 = 1%).",
                      "defaultValue": "100"
                    },
                    "MAX_DAILY_LOSS_USDC": {
                      "isOptional": false,
                      "description": "Daily realized-loss circuit breaker. Bot auto-halts when hit; auto-clears at UTC midnight.",
                      "defaultValue": "15"
                    },
                    "I_UNDERSTAND_REAL_MONEY": {
                      "isOptional": false,
                      "description": "Must be literal 'yes' to trade on mainnet. Acknowledging real-money risk.",
                      "defaultValue": "yes"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "16201b83-5f2b-4462-b702-15c26ca66db4": {
                      "mountPath": "/data",
                      "backupSchedules": [
                        "MONTHLY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T08:22:30.660Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4264ce0d2b674f088c8a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 132,
    "typical_build_seconds": 103,
    "typical_start_seconds": 10,
    "slowest_service": "flash-trade-bot"
  }
}
