Open Darlynnnn opened 3 years ago
@Darlynnnn any update on this ? I am getting the same error
Please use my version of this library (not pushed to maven central yet) https://github.com/mah454/binance-java-api you can see my example code : TestnetOrdersExample.java
ExchangeInfo exchangeInfo = futureClient.getExchangeInfo();
SymbolInfo symbolInfo = exchangeInfo.getSymbolInfo(SYMBOL);
int pricePrecision = symbolInfo.getPricePrecision();
int quantityPrecision = symbolInfo.getQuantityPrecision();
String quantity = new DecimalFormat(PrecisionFormat.getPrecisionFormat(quantityPrecision)).format(2);
String price = new DecimalFormat(PrecisionFormat.getPrecisionFormat(pricePrecision)).format(58200);
I am using binance java API and trying to issue a limit sell.
But i keep receiving error:
com.binance.api.client.exception.BinanceApiException: Filter failure: PRICE_FILTER
I was searching for the reason that could cause this problem and found out different coins demands different precision. However, how do I find out this precision?
when i do for example
client.getExchangeInfo().getSymbolInfo("symbolname").getQuotePrecision()
and then try to set my set price of 1.5 of buy price e.g something like:I still receive the same error. What is the correct way to set the price then?