Skip to main content

Axile

PyPI version

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.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for axile 0.24.6
File Size Uploaded Provenance Actions
axile-0.24.6.tar.gz 8.5 MB With provenance Details for axile-0.24.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for axile 0.24.6
File Interpreter ABI Platform Actions
axile-0.24.6-py3-none-any.whl Python 3 none any Details for axile-0.24.6-py3-none-any.whl

Total release size: 10.1 MB

Release files / axile-0.24.6.tar.gz

Download URL axile-0.24.6.tar.gz
Size 8.5 MB
Tags Source
SHA-256 checksum
How to use checksums
0843f36851b8a10ecd6386e130b05a048f39d077cde990084e2c13d015466fd6
BLAKE2b-256 checksum
How to use checksums
6b9433a50b884e54fcf15fe7bbe4a1462abff83dfa3bbf9e35e558c83e3d0537
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 11, 2026.

Transparency log

Release files / axile-0.24.6-py3-none-any.whl

Download URL axile-0.24.6-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
16c43ebdfa2a32f8b413e0da6494482b0005a73666603ddc1ffced043a6854e2
BLAKE2b-256 checksum
How to use checksums
4834fd25c476e5db125f9df727e7161936d769b97d2033aade1560cebded10eb
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 11, 2026.

Transparency log

Security for axile 0.24.6

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.

Select from 2 files

Attestation for axile-0.24.6.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 11, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.24.6 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page