quantinvbench / README.md
ywliu
Publish QuantInvBench dataset
8f8fb44 verified
|
Raw History Blame
3.68 kB
---
license: other
task_categories:
- time-series-forecasting
language:
- en
tags:
- finance
- cryptocurrency
- portfolio-allocation
- multi-agent
configs:
- config_name: default
data_files:
- split: train
path: data/train.jsonl
- split: validation
path: data/validation.jsonl
- split: test
path: data/test.jsonl
---
# QuantInvBench
QuantInvBench is a chronological benchmark for aggregating nine cryptocurrency
portfolio strategies. At each weekly decision point, a system receives nine
portfolio proposals over BTC, ETH, USDT, XRP, and BNB and returns one final
long-only weight vector.
## Dataset Structure
Each record contains:
- `id`: stable sample identifier;
- `split`: chronological split name;
- `as_of`: latest timestamp that strategies may observe;
- `execution_at`: portfolio execution timestamp;
- `assets`: fixed asset order;
- `strategy_proposals`: nine named five-weight proposals;
- `next_7d_returns`: open-to-open asset returns over the following seven days.
There is no single gold portfolio. Use `next_7d_returns` and the included
evaluator to measure cumulative return, annualized Sharpe ratio, maximum
drawdown, and turnover. The public test labels support reproducible research;
they are not suitable for a hidden leaderboard.
## Load
```python
from datasets import load_dataset
dataset = load_dataset("YOUR_ORG/quantinvbench")
print(dataset)
print(dataset["test"][0])
```
## Reproduce
Run these commands from the original Crypto-MAD project root:
```bash
conda env create -f QuantInv/hf_release/environment.yml
conda activate quantinv-hf
python QuantInv/hf_release/scripts/compute_sentiment.py
python QuantInv/hf_release/scripts/generate.py
python QuantInv/hf_release/scripts/validate.py --source-data-dir data
python QuantInv/hf_release/scripts/evaluate.py --baseline equal_weight
python QuantInv/hf_release/scripts/evaluate.py --baseline simple_avg
```
If the model has already been downloaded, rerun the first command with
`--local-files-only` to prevent another network lookup:
```bash
python QuantInv/hf_release/scripts/compute_sentiment.py --local-files-only
```
The generator uses only data strictly earlier than `execution_at` for strategy
inputs. The realized return starts at the execution-day open and ends at the
open seven calendar days later.
## Submission Format
To evaluate a method, write one JSON object per line:
```json
{"id": "quantinv_test_0000_20250316", "weights": [0.2, 0.2, 0.2, 0.2, 0.2]}
```
Then run:
```bash
python scripts/evaluate.py --predictions predictions.jsonl
```
## Splits
Splits are chronological. Training ends on 2024-03-15, validation covers the
following year, and test begins on 2025-03-16. The final usable sample must
have a complete seven-day forward return, so it can precede the raw data's
last date. Exact counts and SHA-256 values are stored in `data/manifest.json`.
## Sources and Limitations
BTC, ETH, XRP, and BNB hourly OHLCV data are identified as Binance data in the
source project. The current USDT series is synthetic and serves as a cash-like
asset; it must not be interpreted as observed Binance market data.
The news proposal uses derived FinBERT scores from English-language GDELT news
records. Article text, titles, URLs, and publisher content are not included in
this dataset.
The benchmark has survivorship bias, covers only five assets, uses a fixed
0.1% transaction-cost model, and does not model slippage or market impact.
It is a research benchmark and not investment advice.
## License
The release scripts are MIT licensed. Source data and derived dataset records
remain subject to their source providers' terms; see `DATA_LICENSE.md`.