Fixed limit order price

api-breakage
Morty Space 5 years ago
parent 80943ff3bf
commit 6893c4fdd5
  1. 2
      tests/test_private.py

@ -52,7 +52,7 @@ async def test_no_dublicated_mass_limit_orders(
@pytest.mark.asyncio
async def test_account_limit_orders(
account: cro.Account, exchange: cro.Exchange):
buy_price = round(await exchange.get_price(cro.pairs.CRO_USDT) / 10, 4)
buy_price = round(await exchange.get_price(cro.pairs.CRO_USDT) / 2, 4)
order_ids = await asyncio.gather(*[
account.buy_limit(cro.pairs.CRO_USDT, 0.001, buy_price)
for i in range(25)

Loading…
Cancel
Save