This commit is contained in:
Ichinga Samuel
2024-11-10 13:34:10 +01:00
parent f56d0c85b3
commit 110c7c39c7
5 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
from datetime import datetime, UTC
from math import ceil
from aiomql import TimeFrame
from aiomql.core.backtesting import BackTestEngine
from aiomql.core.backtesting.get_data import GetData
@@ -304,7 +304,7 @@ class TestBackTestEngine:
price_open=sym_info2.ask,
price_close=tp2,
)
assert profit == profit2
assert ceil(profit) == ceil(profit2)
async def test_order_margin(self, bte2):
moment = datetime(2024, 2, 3, 12, 12, tzinfo=UTC)