from cipher import Cipher, Strategy


class {{ class_name }}(Strategy):
    pass


def main():
    cipher = Cipher()
    cipher.add_source('binance_spot_ohlc', symbol='BTCUSDT', interval='1h')
    cipher.set_strategy({{ class_name }}())
    cipher.run(start_ts='2020-01-01', stop_ts='2020-02-01')
    print(cipher.sessions)
    print(cipher.stats)
    cipher.plot()


if __name__ == '__main__':
    main()
