本项目实现了一个面向 Pacifica 交易所的双账户 Delta 中性刷量策略。核心组件包括:
npm install
npm run build
所有配置位于 config/
:
accounts.json
:账户私钥等敏感信息。trading-strategy.json
:当前仅需设置 symbol
。execution.json
:下单参数(最小/最大单笔价值、订单间隔等)。monitoring.json
:利用率阈值(例如 build=0.6
, reduce=0.8
)。delta-strategy-config.json
:生命周期、定价、敞口与阶段管理参数。开发模式:
yarn trade
生产环境推荐使用 PM2,并参考 ecosystem.config.js
。
config/ # 配置文件
specs/ # 变更记录与任务说明
src/
modules/ # AccountManager、MonitoringManager 等协调模块
services/ # SignalExecutor、ExposureRiskMonitor、PricingEngine 等服务
strategies/ # SimpleStrategyEngine、ModularDeltaNeutralStrategy
欢迎提交 Issue 或 PR,用于进一步优化资金分层策略、拆单效率或配置校验流程。