一键导入
quanux-crucible
How to operate the C++ Aligned-Memory Backtester from Python (quanuxctl).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
How to operate the C++ Aligned-Memory Backtester from Python (quanuxctl).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Reference for OS and Kernel parameter optimization on the QuanuX Edge.
Reference for using the QuanuX Control CLI (quanuxctl).
Official Figma Developer MCP integration for QuanuX. Allows agents to inspect designs, extract variables, and generate code from Figma files.
The authoritative "School of Architecture" for building QuanuX Extensions (Sidecars). Enforces the QXP protocol, Go runtime preference, and privacy-first security model.
Instructions for operating and configuring the SignalR Bridge for TopstepX.
Guidelines for adding functions to the AST translation map for QuanuX-Annex duckdb transpiler
| name | QuanuX Crucible |
| description | How to operate the C++ Aligned-Memory Backtester from Python (quanuxctl). |
The QuanuX Crucible is a state-of-the-art C++20 simulation environment. It executes strategies and models Limit Order Book (L3) dynamics at speeds 100x faster than traditional Python execution stacks. It achieves this by bypassing the Python interpreter for data ingestion and metric tracking, binding directly to DuckDB's C++ Appender API via Cython.
If a user requests backtesting, execution telemetry, or strategy simulation, you must use Crucible and orchestrate it via the quanuxctl crucible command group.
DO NOT attempt to run standard python scripts (e.g. python my_strategy.py) if the user mentions "Backtesting in Crucible". The process must be isolated using the CLI.
The test harness must have been generated previously via the Foundry generator, outputting to /server/backtests/<strategy_name>_v<version>/crucible_harness_python.py.
If it does not exist, use the Foundry forge tools to create one.
quanuxctl crucible start <strategy_name> --version <version>
os.setsid()./tmp/quanux_crucible.pid./server/backtests/<strategy_v1.0.0>/crucible.duckdb.Provide the user with live CPU/Memory telemetry:
quanuxctl crucible status
To pull the data without halting the active agent context, execute the instantaneous report query.
quanuxctl crucible report <strategy_name> --version <version>
CRITICAL: quanuxctl crucible report does not build a Pandas dataframe or fire up a SQL runtime. It calls the get_metrics_json() Cython binding directly mapped to DuckDB's native C API and returns a raw JSON payload of the backtest.
If this query fails (e.g. "No backtest data found"), you must start the engine first.
CrucibleTrade class internally (via Python binding), remember that its underlying C++ struct (alignas(128)) is strictly padded to exactly 128 bytes to hit CPU L1/L2 cache lines efficiently.PyCrucibleTrade class. Fields must exist in quanux_crucible.pxd.