This commit is contained in:
Ichinga Samuel
2024-11-23 10:23:01 +01:00
parent 9d9c02fcfd
commit f8c4c6e9a7
19 changed files with 279 additions and 209 deletions
@@ -27,7 +27,8 @@ async def make_buy_sell_orders():
return {"buy": Order(**buy_req), "sell": Order(**sell_req)}
def test_trade_mode(config, backtest_engine, history, positions, order_sell, order_buy, btc_usd):
def test_trade_mode(config, backtest_engine, history, positions, order_sell, order_buy, btc_usd, capsys):
print(config.filename, config.root)
assert config.mode == "backtest"
assert isinstance(backtest_engine, BackTestEngine)
assert isinstance(history.mt5, MetaBackTester)