"MARKET_LOT_SIZE" error for XRP with amount of 20000

Hi there,

I’m testing the Binance test API and don’t understand why I keep getting errors when I try to make an order of 20000. An order of 2000 works fine and my test wallet has around 50K

1013, 'Filter failure: MARKET_LOT_SIZE',

Sample of params

params = {
    'symbol': 'XRPUSDT',
    'side': 'SELL',
    'type': 'MARKET',
    'quantity': 20000
}

I checked the exchangeinfo for XRP and I see this. I don’t see my qty or stepSize to be violating.

{
  "filterType": "MARKET_LOT_SIZE",
  "minQty": "0.00000000",
  "maxQty": "8699108.49965253",
  "stepSize": "0.00000000"
},

Thanks!

Are you sending the new order to the testnet environment or production environment?

XRPUSDT on testnet has a MARKET_LOT_SIZE filter as below

                {
                    "filterType": "MARKET_LOT_SIZE",
                    "minQty": "0.00000000",
                    "maxQty": "10000.00000000",
                    "stepSize": "0.00000000"
                },
1 Like

Thanks! I assumed exchangeinfo response would be the same for testnet, I was wrong since I was using production.