You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
303 B

import pytest
import cryptocom.exchange as cro
@pytest.fixture
def exchange() -> cro.Exchange:
return cro.Exchange()
@pytest.fixture
@pytest.mark.asyncio
async def account() -> cro.Account:
acc = cro.Account(from_env=True)
yield acc
await acc.cancel_open_orders(cro.Symbol.CROUSDT)