From ab6932043169afa09a2d4c03c3d8deefdcb5167e Mon Sep 17 00:00:00 2001 From: Morty Space Date: Sun, 15 May 2022 12:26:31 +0200 Subject: [PATCH] Fixed account balance --- tests/test_private.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_private.py b/tests/test_private.py index 8393aae..a17e0e0 100644 --- a/tests/test_private.py +++ b/tests/test_private.py @@ -17,10 +17,10 @@ async def test_account_get_balance(account: cro.Account): balances = await account.get_balance() async with async_timeout.timeout(120): - while balances[cro.coins.CRO].available < 0.5: + while balances[cro.coins.CRO].available < 0.6: await account.buy_market(cro.pairs.CRO_USDT, 0.05) balances = await account.get_balance() - while balances[cro.coins.USDT].available < 0.5: + while balances[cro.coins.USDT].available < 0.6: await account.sell_market(cro.pairs.CRO_USDT, 0.05) balances = await account.get_balance()