Add integration test for Result and TradeRecords classes

rename unittests to unit
change TradeRecords.get_csv_records and TradeRecord.get_json_records methods to non-async.
This commit is contained in:
Ichinga Samuel
2024-10-09 00:16:40 +01:00
parent 76a947640f
commit 06061ec917
18 changed files with 116 additions and 15 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ async def buy_order(mt):
'type': mt.ORDER_TYPE_BUY, 'price': sym_info.ask, 'sl': sl, 'tp': tp}
@pytest.fixture(scope='class')
async def make_orders(mt):
async def make_buy_sell_orders(mt):
sym = 'BTCUSD'
sym_info = await mt.symbol_info(sym)
dsl = (sym_info.trade_stops_level + sym_info.spread) * 2 * sym_info.point