def test_close_all_orders(mt4: MT4Client): # close/delete all orders for order in mt4.orders(): mt4.order_delete(order, close_if_opened=True) assert len(mt4.orders()) == 0
def test_orders(mt4: MT4Client): orders = mt4.orders() assert isinstance(orders, list) print(f"Found {len(orders)} orders.")