Skip to content

Instantly share code, notes, and snippets.

View jmy12k3's full-sized avatar
🍉
Focusing

Kaho Fan jmy12k3

🍉
Focusing
View GitHub Profile
@jmy12k3
jmy12k3 / backtest.py
Last active August 28, 2023 16:46
Simple backtest for binance-miner
from datetime import datetime
import pandas as pd
import quantstats as qs
from dateutil.relativedelta import relativedelta
from pytz import UTC
from tqdm import tqdm
from tzlocal import get_localzone
from binance_miner import Config, backtest