Skip to content

Quickstart

1. Install anterior

Installation is simple:

pip install anterior

Alternatively, to install the latest features, clone Anterior's GitHub repo and run:

python setup.py install

2. Start backtesting!

You're now ready to run backtests with Anterior.

Your first backtest

from anterior import BackTester

bt = BackTester()

counter = 0

def hello_world():
    counter += 1
    print(f"Hello, hour {counter}!")

bt.every(hours=1).do(hello_world)

process.run(start='2023-01-01', end='2023-01-10')
print(counter)