cryptocom-exchange icon indicating copy to clipboard operation
cryptocom-exchange copied to clipboard

sell_market() being rejected

Open LShack96 opened this issue 2 years ago • 0 comments

order_id = await account.sell_market(
            pair=exchange.pairs['CRO_USDT'],
            quantity=232.19
            wait_for_fill=True
        )

Order(id=2587823363968787040, status=<OrderStatus.REJECTED: 'REJECTED'>, side=<OrderSide.SELL: 'SELL'>, price=0.0, quantity=232.19, client_id='', created_at=1654959946, updated_at=1654959946, type=<OrderType.MARKET: 'MARKET'>, pair=Pair(exchange_name='CRO_USDT', price_precision=5, quantity_precision=3), filled_quantity=0.0, filled_price=0.0, fees_coin=None, force_type=<OrderForceType.GOOD_TILL_CANCEL: 'GOOD_TILL_CANCEL'>, trigger_price=None, trades=[])

Order is being rejected and I cannot find a 'reason code' as in the API when account.get_order(order_id) is called. Therefore, I cannot diagnose why the order is failing.

LShack96 avatar Jun 11 '22 15:06 LShack96