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.
19 lines
374 B
19 lines
374 B
import pytest |
|
|
|
import cryptocom.exchange as cro |
|
|
|
|
|
@pytest.fixture |
|
async def exchange() -> cro.Exchange: |
|
ex = cro.Exchange() |
|
await ex.sync_pairs() |
|
return ex |
|
|
|
|
|
@pytest.fixture |
|
@pytest.mark.asyncio |
|
async def account() -> cro.Account: |
|
acc = cro.Account(from_env=True) |
|
await acc.sync_pairs() |
|
yield acc |
|
await acc.cancel_open_orders(cro.pairs.CRO_USDT)
|
|
|