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 0b84cb8222 update 10 months ago
config first commit 10 months ago
core update 10 months ago
managers update 10 months ago
reference first commit 10 months ago
result update 10 months ago
utils update 10 months ago
.gitignore update 10 months ago
Readme.md first commit 10 months ago
__init__.py first commit 10 months ago
account.txt first commit 10 months ago
alpha.txt update 10 months ago
main.py first commit 10 months ago
success.txt update 10 months 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                  # 模拟参数配置,定义默认的模拟设置常量