打开导航 打开导航 Open menu
量化交易系统开发(C++)/ 期权策略与风控 / 行业研究分析
量化交易系统開發(C++)/ 期权策略与风控 / 行业研究分析
C++ trading systems / options strategy & risk controls / equity research
adrian@adrianxv.cn

我做过的一些项目 我做過的一些項目 Projects I have built

围绕交易系统、量化策略、投研工具、课程工程与开源项目的作品索引。 围绕交易系统、量化策略、投研工具、课程工程与开源項目的作品索引。 Work across trading systems, research tools, industry analysis, coursework, and open source.

交易系统 交易系统 Trading systems

01 交易系统 交易系統 Trading Systems

simex simex simex | Reproducible C++ simulated exchange

实现订单网关、撮合引擎、持仓校验与行情发布模块,以交易阶段状态机驱动集合竞价和连续竞价。撮合引擎、订单网关和行情发布线程通过基于 std::atomic 的 SPSC 无锁队列传递数据;Linux epoll 与非阻塞 Socket 接收 TCP 订单请求,UDP 组播发布行情增量与订单簿快照。时间优先订单簿通过哈希表和双向链表实现 O(1) 价位索引、订单定位及节点摘除,并使用内存池预分配内存。项目使用 CMake / Ninja 构建,通过 GitHub Actions 执行 GCC、Clang 双编译器构建及 CTest 自动化测试。 實現訂單網關、撮合引擎、持倉校驗與行情發布模塊,以交易階段狀態機驅動集合競價和連續競價;使用 atomic SPSC 隊列、Linux epoll、非阻塞 Socket、UDP 組播、時間優先訂單簿和內存池,並通過 CMake / Ninja、GCC、Clang 與 CTest 驗證。 A C++20 simulated exchange with an order gateway, matching engine, position checks, and market-data publisher. A phase state machine drives auction and continuous matching; matching, gateway, and publishing threads communicate through atomic SPSC queues. Linux epoll and non-blocking sockets handle TCP orders, while UDP multicast publishes market-data deltas and order-book snapshots. A time-priority order book uses hash maps, linked lists, and a memory pool for constant-time operations. CMake/Ninja and GitHub Actions cover GCC, Clang, and CTest.

C++20 C++20 C++20 撮合引擎 撮合引擎 Matching engine epoll / 组播 epoll / 組播 epoll / multicast SPSC 队列 SPSC 隊列 SPSC queues
02 交易系统 交易系統 Trading Systems

jev-quant jev-quant jev-quant | C++20 trading system with AI decisions

实现行情处理、策略、风控与订单管理模块,通过 OpenRouter 调用 Jev 模型进行交易决策,并接入 SimNow 模拟盘。使用可变参数模板实现内存池,服务于行情与订单簿热路径;通过定长缓冲区、SPSC 无锁队列和独立线程实现异步日志。使用 GoogleTest 编写单元、组件和集成测试,通过 CTest 与 GitHub Actions 执行回归测试,并在 SimNow 链路上采集 P50/P95/P99 延迟、使用 Callgrind 分析指令热点。 實現行情、策略、風控與訂單管理模塊,通過 OpenRouter 調用 Jev 模型並接入 SimNow;使用模板內存池、SPSC 異步日志、GoogleTest / CTest / GitHub Actions 回歸測試,並採集 P50/P95/P99 延遲、使用 Callgrind 分析指令熱點。 A C++20 simulated-account trading system covering market data, strategies, risk, and order management. It calls the Jev model through OpenRouter for trading decisions and connects to SimNow. A variadic-template memory pool serves hot market-data and order-book paths; fixed-size buffers, an atomic SPSC queue, and a dedicated thread provide asynchronous logging. GoogleTest, CTest, and GitHub Actions cover regression, while SimNow timestamps and Callgrind expose P50/P95/P99 latency and instruction hotspots.

C++20 C++20 C++20 OpenRouter / Jev OpenRouter / Jev OpenRouter / Jev SimNow SimNow SimNow 性能分析 性能分析 Performance analysis