Axile
Axile 是一个通过 Web 界面配置和运行的交易执行服务。输入投资组合的目标权重后,它根据账户权益和品种交易规则换算目标数量,并执行调仓。内置 CTP、天勤和掘金渠道,支持插件扩展。
功能
- 用 Python 编写和试跑组合函数,编辑器支持代码补全和类型检查。
- 多个账户跟随同一组合,分别设置杠杆、算法和执行时间。
- 手动或定时调仓,支持期货目标持仓、SINGLE-MAKER、TWAP 和 POV 等算法。
- 查看连接状态、持仓与目标差异、委托成交和执行记录。
- 配置操作额度、品种控制和通知。
界面
| 账户总览 | 组合列表 |
|---|---|
安装
需要 Python 3.12 或以上。使用 uv 从 PyPI 安装,以天勤渠道为例:
mkdir axile-workspace
cd axile-workspace
uv venv --python 3.12
uv pip install 'axile[tqsdk]'
uv run axile
打开 http://127.0.0.1:8000,按向导完成初始化,保存后重新运行 uv run axile。后续从同一目录启动。
CTP 和掘金分别安装 axile[ctp]、axile[gm],平台限制与账户模式见渠道与配置。服务仅允许监听本机回环地址。
从源码运行
源码构建还需要 Bun。发布包已包含 Web 界面,无需自行构建。
git clone https://github.com/zengbin93/axile.git
cd axile
uv sync --extra tqsdk
cd ui
bun install --frozen-lockfile
bun run build
cd ..
uv run axile
初始化与配置见安装与启动,算法行为见执行算法,结果核对见查看执行结果。
本项目采用 Apache-2.0 许可证。
Metadata
Release files for axile 0.24.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| axile-0.24.1.tar.gz | 8.5 MB | With provenance | Details for axile-0.24.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| axile-0.24.1-py3-none-any.whl | Python 3 | none | any | Details for axile-0.24.1-py3-none-any.whl |
Total release size: 10.1 MB
Release files / axile-0.24.1.tar.gz
| Download URL | axile-0.24.1.tar.gz |
|---|---|
| Size | 8.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ac220add5f837f1aa96f8ee0648d8eed5ded325792000aeea0e7b762d66bb6f
|
|
BLAKE2b-256 checksum How to use checksums |
a9cc6ec8ce7aa63b87c872a36066a86bffcdbfad24dab27af3c1471d623e5296
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / axile-0.24.1-py3-none-any.whl
| Download URL | axile-0.24.1-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d895ff2a44bdb26a09c053c1a78be9d45aeaa144f68d948024a92f0279d7e24c
|
|
BLAKE2b-256 checksum How to use checksums |
d5bb485958167ef4283b8b54afd915e234eab34e2d8ab1f1d08ec9097d3354ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logSecurity for axile 0.24.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for axile-0.24.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.