Compact backtesting framework in Python