项目 / hummingbot/quants-lab

hummingbot/quants-lab

行业推荐
语言 Jupyter Notebook标签 —数据更新 2026-11-25 06:49:28 · 仓库 2026-11-19

一段话介绍

Quants Lab is a Python project for quantitative research with Hummingbot. It provides functionalities for fetching historical data, calculating metrics, backtest and generating trading configurations.

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
Quants Lab is a Python project for quantitative research with Hummingbot. It provides functionalities for fetching historical data, calculating metrics, backtest and generating trading configurations.
302累计星
137Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

量化研究与策略回测

适配系统:量化投研平台、行情终端 · 得分 1.4

内置行情接入、因子计算与回测框架,可作为投研团队的策略实验与绩效归因底座。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
该项目通过 make 命令完成安装(Conda 环境、依赖、MongoDB 和配置文件),并用 make run-tasks、trigger-task 等命令运行、触发和查看任务。
特点或设计要点
quants-lab 的设计将可复用框架与应用层分离,core 内含回测引擎与优化器、CLOB/AMM/API 数据源集成、特征工程和任务编排,另设 YAML 任务配置、策略控制器与命令行界面。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2025-11-04 · 语言 Jupyter Notebook · 贡献者 —
jupyter notebook

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 3,921 字节。

# QuantsLab 🚀

Python framework for quantitative trading research with Hummingbot. Built for data collection, backtesting, strategy development, and automated deployment.

## Quick Start

### Installation

```bash
git clone https://github.com/hummingbot/quants-lab.git
cd quants-lab
make install
```

The installer sets up:
- Conda environment (Python 3.12)
- All dependencies
- MongoDB database
- Configuration files

### Deploy a Recurring Task

```bash
# 1. Activate environment
conda activate quants-lab

# 2. Start database
make run-db

# 3. Run tasks (Docker - recommended for production)
make run-tasks config=tf_pipeline.yml

# 4. View logs and monitor
make logs-tasks
make ps-tasks

# 5. Stop when done
make stop-tasks
```

**Local development mode:**
```bash
make run-tasks config=tf_pipeline.yml source=1
```

## Key Commands

Type `make` or `make help` to see all commands.

**Installation:**
- `make install` - Full installation
- `make build` - Build Docker image
- `make uninstall` - Remove environment

**Database:**
- `make run-db` - Start MongoDB
- `make stop-db` - Stop MongoDB
- Mongo Express UI: http://localhost:28081 (admin/changeme)

**Tasks:**
- `make run-tasks config=FILE.yml` - Run continuously (Docker)
- `make run-tasks config=FILE.yml source=1` - Run locally
- `make trigger-task task=NAME config=FILE.yml` - Run once
- `make logs-tasks` - View logs
- `make stop-tasks` - Stop all tasks
- `make ps-tasks` - List running tasks

**Configuration:**
- `make list-tasks config=FILE.yml` - List available tasks
- `make validate-config config=FILE.yml` - Validate config

## Architecture

```
quants-lab/
├── core/                  # Reusable framework
│   ├── backtesting/       # Backtesting engine + optimizer
│   ├── data_sources/      # Market data integrations (CLOB, AMM, APIs)
│   ├── features/          # Feature engineering & signals
│   └── tasks/             # Task orchestration system
├── app/                   # Application layer
│   ├── tasks/             # Task implementations
│   └── data/              # Application data
├── controllers/           # Trading strategies
├── config/                # Task configurations (YAML)
├── research_notebooks/    # Jupyter notebooks
└── cli.py                # Command-line interface
```

## Configuration Files

Task configurations are YAML files in `config/`:

```yaml
tasks:
  data_collection:
    enabled: true
    task_class: app.tasks.notebook.notebook_task.NotebookTask
    schedule:
      type: interval
      hours: 6
    config:
      notebooks:
        - data_collection/download_candles_all_pairs.ipynb
        - feature_engineering/trend_follower_grid.ipynb
      output_dir: app/outputs/cohort-12
```

## Development

```bash
# Activate environment
conda activate quants-lab

# Run Jupyter for research
jupyter lab

# List available tasks
make list-tasks config=tf_pipeline.yml

# Format code
black --line-length 130 .
isort --profile black --line-length 130 .
```

## Database Access

- **MongoDB**: `mongodb://admin:admin@localhost:27017/quants_lab`
- **Mongo Express UI**: http://localhost:28081 (admin/changeme)
- **Config**: All settings in `.env` file

## Data Sources

- **CLOB**: Order books, trades, candles, funding rates
- **AMM**: DEX liquidity and pool data
- **GeckoTerminal**: Multi-network OHLCV data
- **CoinGecko**: Market data and stats

## Troubleshooting

**Database connection issues:**
```bash
make run-db
docker ps  # Verify containers running
```

**Task failures:**
```bash
make logs-tasks  # View logs
make validate-config config=YOUR_CONFIG.yml
```

**Port conflicts:**
Edit `docker-compose-db.yml` if port 27017 or 28081 are in use.

## Support

- 📚 Documentation: See `CLAUDE.md` for dev guidelines
- 🐛 Issues: GitHub issues
- 💡 Contributing: Fork and submit PRs

---

**Happy Trading! 🚀📈**
↑