Loading...
Loading...
Compare original and translation side by side
setuprunrunblocked--confirmstatussetuprunrun--confirmblockedstatusundefinedundefinedundefinedundefineddoctordoctorinstall-packs --pack allinstall-packs --pack all@bitflowlabs/core-sdk@stacks/transactions@stacks/network@stacks/wallet-sdk@stacks/encryptioncommandertslibNote:runsinstall-packsand modifiesbun add. This is a one-time setup step — do not call it during regular agent operation or in shared environments where multiple processes may be active.package.json
@bitflowlabs/core-sdk@stacks/transactions@stacks/network@stacks/wallet-sdk@stacks/encryptioncommandertslib注意:会执行install-packs并修改bun add。这是一次性设置步骤 — 不要在常规Agent运行期间或多进程活跃的共享环境中调用。package.json
install-packsbun add @bitflowlabs/core-sdk @stacks/transactions @stacks/network @stacks/wallet-sdk @stacks/encryption commander tslibinstall-packsbun add @bitflowlabs/core-sdk @stacks/transactions @stacks/network @stacks/wallet-sdk @stacks/encryption commander tslibsetupsetup| Flag | Required | Description |
|---|---|---|
| ✅ | Input token symbol (e.g. |
| ✅ | Output token symbol (e.g. |
| ✅ | Total amount in human units (e.g. |
| ✅ | Number of orders (2..100) |
| ✅ | |
| ❌ | Slippage % (default |
| ❌ | Hours before first order (default |
| 参数 | 是否必填 | 说明 |
|---|---|---|
| ✅ | 输入代币符号(例如 |
| ✅ | 输出代币符号(例如 |
| ✅ | 总金额(采用人类可读单位,例如 |
| ✅ | 订单数量(2..100) |
| ✅ | |
| ❌ | 滑点百分比(默认值 |
| ❌ | 首次订单延迟小时数(默认值 |
plan --plan <id>plan --plan <id>run --plan <id> [--confirm] [--wallet-password <pw>]run --plan <id> [--confirm] [--wallet-password <pw>]blocked--confirm--confirmSecurity: Preferenv var overAIBTC_WALLET_PASSWORDflag. CLI flags appear in--wallet-passwordoutput and shell history — a real risk in long-lived agent processes. Useps auxonly as a fallback.--wallet-passwordbash# Preferred (env var — not visible in ps aux) export AIBTC_WALLET_PASSWORD="your-password" bun run dca/dca.ts run --plan <planId> --confirm # Fallback only (flag — visible in process list) bun run dca/dca.ts run --plan <planId> --confirm --wallet-password "your-password"
blocked--confirm--confirm安全提示: 优先使用环境变量,而非AIBTC_WALLET_PASSWORD参数。CLI参数会出现在--wallet-password输出和shell历史中 — 在长期运行的Agent进程中存在安全风险。仅在万不得已时使用ps aux。--wallet-passwordbash# 推荐方式(环境变量 — 不会出现在ps aux中) export AIBTC_WALLET_PASSWORD="your-password" bun run dca/dca.ts run --plan <planId> --confirm # 仅作为备选(参数 — 会出现在进程列表中) bun run dca/dca.ts run --plan <planId> --confirm --wallet-password "your-password"
status --plan <id>status --allstatus --plan <id>status --allcancel --plan <id>cancel --plan <id>runrunlistlist--total| Token | Example | Meaning |
|---|---|---|
| STX | | 50 STX |
| sBTC | | 0.001 sBTC |
| ALEX | | 100 ALEX |
--total| 代币 | 示例 | 含义 |
|---|---|---|
| STX | | 50 STX |
| sBTC | | 0.001 sBTC |
| ALEX | | 100 ALEX |
| Variable | Description |
|---|---|
| Wallet password (alternative to |
| Direct private key for testing (bypasses wallet file) |
| Simulate all writes — no transactions broadcast |
| 环境变量 | 说明 |
|---|---|
| 钱包密码(替代 |
| 用于测试的直接私钥(绕过钱包文件) |
| 模拟所有写入操作 — 不会广播交易 |
{
"status": "success | error | blocked",
"action": "Human-readable next step",
"data": {
"telegram": "📊 Emoji-rich Telegram-friendly summary",
"...": "command-specific fields"
},
"error": null
}{
"status": "success | error | blocked",
"action": "Human-readable next step",
"data": {
"telegram": "📊 Emoji-rich Telegram-friendly summary",
"...": "command-specific fields"
},
"error": null
}| Guardrail | Limit | Enforcement |
|---|---|---|
| Max slippage | 10% | Hard error |
| Max orders | 100 | Hard error |
| Min order size | > 0 | Hard error |
| Spend confirmation | Always | |
| Frequency enforcement | Per-plan | |
| Balance check | STX pre-execution | Error |
| Cancelled/completed plans | Blocked | Error |
| Private key exposure | Never | Zero-exposure in all output |
| Dry run mode | | Simulates without broadcasting |
| 安全防护规则 | 限制值 | 执行方式 |
|---|---|---|
| 最大滑点 | 10% | 触发硬错误 |
| 最大订单数 | 100 | 触发硬错误 |
| 最小订单金额 | > 0 | 触发硬错误 |
| 支出确认 | 始终需要 | 未添加 |
| 频率校验 | 按计划执行 | 调用过早时返回 |
| 余额检查 | 执行前校验STX余额 | 触发错误 |
| 已取消/完成的计划 | 禁止执行 | 触发错误 |
| 私钥暴露 | 绝对禁止 | 所有输出中不会泄露私钥 |
| 模拟运行模式 | | 模拟操作但不广播交易 |
runundefinedrunundefined
Frequency is enforced by the skill — early calls return `blocked` with time remaining. Safe to call frequently.
该工具会按计划频率执行 — 提前调用会返回`blocked`状态并显示剩余时间。可安全高频调用。~/.aibtc/dca/<plan-id>.json~/.aibtc/dca/<plan-id>.jsonSTACKS_PRIVATE_KEY~/.aibtc/wallets.json~/.aibtc/wallet.jsonSTACKS_PRIVATE_KEY~/.aibtc/wallets.json~/.aibtc/wallet.jsonsetupsetup