You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
jack 83bac3cf78 update 4 weeks ago
config first commit 4 weeks ago
core update 4 weeks ago
managers update 4 weeks ago
reference first commit 4 weeks ago
result update 4 weeks ago
utils update 4 weeks ago
.gitignore update 4 weeks ago
Readme.md first commit 4 weeks ago
__init__.py first commit 4 weeks ago
account.txt first commit 4 weeks ago
alpha.txt update 4 weeks ago
main.py first commit 4 weeks ago
success.txt update 4 weeks ago

Readme.md

依赖

pip install httpx

目录结构

FactorSimulator/
├── __init__.py                      # 包初始化文件,定义包级别的导入和元数据
├── main.py                          # 程序主入口,负责启动批量模拟流程
├── core/                            # 核心业务逻辑模块
│   ├── __init__.py                  # 核心模块初始化,定义模块级别的导入
│   ├── api_client.py                # WorldQuant Brain API客户端封装,处理HTTP请求和认证
│   └── models.py                    # 数据模型定义,使用dataclass定义各种指标和结果的数据结构
├── managers/                        # 管理器模块,负责业务流程协调
│   ├── __init__.py                  # 管理器模块初始化
│   └── simulation_manager.py        # 模拟管理器,负责批量模拟的调度、线程池管理和结果汇总
├── utils/                           # 工具函数模块
│   ├── __init__.py                  # 工具模块初始化
│   ├── file_utils.py                # 文件操作工具,处理因子列表加载和结果保存
│   └── time_utils.py                # 时间格式化工具,将秒数转换为可读格式
└── config/                          # 配置模块
    ├── __init__.py                  # 配置模块初始化
    └── settings.py                  # 模拟参数配置,定义默认的模拟设置常量