code: -1013, msg: 'Filter failure: PERCENT_PRICE'

Hellow,
I am currently using https://testnet.binance.vision/ to test APIs for demo purpose. In the beginning, I was able to use all authenticated APIs like sell/buy order, cancel order, get all orders etc with the following URL on postman: https://testnet.binance.vision/api/v3/order?symbol=BTCUSDT&side=BUY&type=LIMIT&timeInForce=GTC&quantity=10&price=400&timestamp={{timestamp}}&signature={{signature}}
but I have been getting this error: {code: -1013, msg: ‘Filter failure: PERCENT_PRICE’}.

I also used npm package ‘binance-api-node’ but got the same error. Also, I created a new account on binance testnet and tried with different apis but got the same issue. I tried with different symbols but no luck.

  1. Check this - https://testnet.binance.vision/api/v3/exchangeInfo and you’d find the percent_price filter as below. So your price couldn’t be lower than average price of the last minute * multiplierDown

            {
                 "filterType": "PERCENT_PRICE",
                 "multiplierUp": "5",
                 "multiplierDown": "0.2",
                 "avgPriceMins": 1
             },
    
  2. Check https://testnet.binance.vision/api/v3/klines?symbol=BTCUSDT&limit=1&interval=1m and you’d find the the average price of the last minute (about 40000 at now)
    So the price must be above 8000

1 Like

Thank you so much issue resolved and also I’m able to get the exact price for order.