Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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],平台限制与账户模式见渠道与配置。服务仅允许监听本机回环地址。

Alpha 试用

next 分支的首个预发布版本为 0.25.0a1,包含 Rust 原生存储、执行回放、数量目标和算法时段设置。此版在 PyPI 提供 Linux x86_64 wheel,要求 Python 3.12 或以上;Windows、macOS 和其他架构暂不提供预编译包。

建议使用独立目录和虚拟环境,以天勤渠道为例:

mkdir axile-alpha
cd axile-alpha
uv venv --python 3.12
uv pip install 'axile[tqsdk]==0.25.0a1'
uv run axile

先用新建数据库或停服后备份的旧库副本试用。此版迁移终点为 0036;旧于 0033 的库需先使用稳定版升级。首次启动可能重算绩效,直接降包版本不能恢复旧数据库。恢复升级前备份会失去备份之后的新增记录,不能覆盖仍需保留的新数据。详细步骤见 Alpha 发布与试用。

从源码运行

源码构建需要 Rust、C 编译环境和 Bun,步骤见安装与启动。发布包已包含原生扩展与 Web 界面,无需自行构建。算法行为见执行算法,结果核对见查看执行结果。

本项目采用 Apache-2.0 许可证。

Metadata

Release files for axile 0.25.0a2

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

Built distribution (wheel)

Table of built distributions (wheels) for axile 0.25.0a2
File Interpreter ABI Platform Actions
axile-0.25.0a2-cp312-abi3-manylinux_2_34_x86_64.whl CPython 3.12 abi3 Linux glibc 2.34+ x86-64 Details for axile-0.25.0a2-cp312-abi3-manylinux_2_34_x86_64.whl

Release files / axile-0.25.0a2-cp312-abi3-manylinux_2_34_x86_64.whl

Download URL axile-0.25.0a2-cp312-abi3-manylinux_2_34_x86_64.whl
Size 6.2 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
041e872d2ec0ad7fa07355433351878f800caf2c4f74f6b2ea5c25585b3b3a77
BLAKE2b-256 checksum
How to use checksums
10dade28922f0880586383ba5e6dfe950bfe8aee1d6b9ae025aa48784a50ea10
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 12, 2026.

Transparency log

Security for axile 0.25.0a2

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

1 file in this release has been uploaded with provenance metadata.

Attestation for axile-0.25.0a2-cp312-abi3-manylinux_2_34_x86_64.whl

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 12, 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
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