Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Tools for downloading minute-level market data and backtesting miners against
[Synth Subnet](https://github.com/synthdataco/synth-subnet) scoring.

New to mining on SN50? Start with the [miner tutorial](https://github.com/synthdataco/synth-subnet/blob/main/docs/miner_tutorial.md) — backtesting is step 2.3 of that journey.

The library is organised into two pieces:

- [synth_lib/preparation/market_data.py](synth_lib/preparation/market_data.py) — downloads
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ packages = ["synth_lib"]
[project]
name = "synth-lib"
version = "0.1.0"
description = "Add your description here"
description = "Market-data preparation and validator-faithful backtesting for Synth Subnet miners"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
Expand Down
6 changes: 6 additions & 0 deletions synth_lib/backtester/backtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
from pathlib import Path
from typing import Any

import matplotlib

# Charts are rendered inside worker threads; GUI backends (the macOS default)
# can only run on the main thread, so force the non-interactive Agg backend.
matplotlib.use("Agg")

import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
Expand Down