
vike-cli
io.github.vike-io由 GitHub 账号 vike-io 发布v0.1.0更新于 Oct 24, 2026
Backtest, validate and execute trading strategies behind a mandatory two-call preview gate.
发布方自己的服务:Vike Data API
概览
让助手通过本地 CLI 回测、验证并执行交易策略,任何实盘下单前都必须经过两次调用的预览闸门。
- 可以做什么
- vike-cli 这个 MCP 服务器把一套 Rust 交易平台暴露给 MCP 客户端:带参数扫描和优化器的 bar/tick 回测与研究框架、挂载交易所并运行策略的实盘执行守护进程、Parquet/DataFusion 历史数据存储与录制器,以及通往 binance、bybit、okx、alpaca、oanda、ibkr、polymarket 等十四个交易所的桥接。交易操作必须经过两次调用的预览闸门,随附的 agent 技能涵盖回测、策略编写、数据导入和在节点上交易。
- 适用场景
- 当助手需要在用户自己的机器上研究、回测或运行交易策略,或通过预览闸门驱动 vike 节点时,值得安装。如果只想看行情数据或图表而不安装该平台,则没有用处。
- 运行要求
- 仅桌面端,以本地 stdio 进程运行;没有远程端点,也未声明环境变量或请求头。需从发布页或通过 cargo binstall 安装 vike-cli 可执行文件,或使用容器镜像。每次读取历史数据(包括本地回测)都必须有 vike-datahub 服务器在运行;全新安装没有行情数据,需先灌入。交易所凭据存放在本地设置数据库中。
安装
在 SourceWeft 中
- 打开 控制台中的 vike-cli,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
vike
A Rust trading platform: a live execution core, a backtest and research harness, a desktop charting shell, and bridges to fourteen venues.
This repository is a source mirror. It carries the code and nothing else — no CI workflows, no operator runbooks, no history. Each publish is one commit. The development repository is private; what you see here is what the released binaries are built from.
What is in the box
Running it
Container images carry every headless tool as one binary with a symlink per tool:
The command-line tool installs from the release without a toolchain (Linux and Windows; any other
target compiles from the clone — crates/vike-cli/Cargo.toml's [package.metadata.binstall] says
why):
On Windows with no Rust at all, download the executable from the release — it needs nothing installed and no toolchain:
Verify it against the release's own manifest before running it:
⚠ Neither path updates itself. cargo binstall records the install under a crate version that never
moves, so a re-install needs --force; a downloaded executable is replaced by downloading it again.
⚠ On Windows the standalone backtest ENGINE is not published, so data hist fetch --source demo|starter
and backtest run --local are unavailable until you build one. The remote path needs no engine:
vike-cli backtest run --addr HOST:PORT runs on a vike-datahub server instead.
From source:
For an agent (Claude Code, Cursor, any MCP client), the skills install straight from this repo:
A fresh install has no market data — this fixes that
The datahub line is not optional: every history READ goes through one, a --local run included —
--local moves the backtest ENGINE onto this machine, never the history. Started with no
environment it serves the same <project>/market_data/hist the seeding command wrote into, and with
no hub keys it authenticates nothing and binds loopback only, which is where --local looks by
default. If the tape went somewhere else, name that directory:
The demo tape is a closed-form curve, not market data; it exists so the tools have something to draw and run, and it is written under its own venue id so it can never be mistaken for, or aggregated with, real rows. For real bars:
Credentials, and the gate that keeps you on paper
There is exactly one credential store, the settings database <project>/settings/db/vike.db, and
absent credentials are the live gate — a demo or live account with no keys does not run. Each
account trades at its own tier (paper, demo or live) only while its account row is active, or
it does not run: no row, an inactive row, or a tier its keys cannot bind exactly runs nothing — never
paper in its place. vike-cli secrets accounts
lists the rows, and vike-cli secrets account activate|deactivate|set-tier --id <N> changes one.
⚠ A credential belongs to its ACCOUNT, and storing one never creates an account or chooses its
tier: vike-cli secrets account add --venue <VENUE> --tier <paper|demo|live> --no-label creates
the row, born ACTIVE, so a live row that then holds its keys arms that account at the next start
of a live daemon.
On a fresh box vike-cli secrets init creates the empty store; vike-cli secrets set --account <ID> <FIELD> adds one of an account's credentials (the value on stdin, never on the command line);
vike-cli secrets path prints which store answers; vike-cli secrets list shows which keys it
holds, account by account.
Nothing in this workspace deletes, moves or rewrites that database as a whole.
Licence
FSL-1.1-ALv2 — source-available, and each version becomes Apache-2.0 on the second anniversary of its release. You may read, modify, self-host and run it, including commercially, and you may charge for support and consulting; you may not offer it as a competing product or hosted service. The two-year clock means every release eventually lands under a permissive licence.
Where to put a bug, a question, or nothing at all
A bug or a wrong claim in these pages belongs in
issues. Issues are open and read. Say what you ran, what happened, what you expected, and the output of vike-cli --version.
A question about using it belongs in discussions.
What this repository cannot take is a pull request, and the reason is structural rather than a policy about contributors: this mirror is a SNAPSHOT — one commit per release, force-pushed, with no history — because a mirror that kept history would hand back every file an earlier release withheld. A branch here is replaced by the next publish. So a patch is welcome as an issue carrying the diff, and it lands upstream by hand.
What will not be answered: requests to run your strategy, judge whether an edge is real, or support a fork. The tests and the decision records in this tree are the argument for every claim it makes; start there.
来源:README.md,提交 ba3c824
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。
