I’ve tried using https://api.binance.com/api/v3/exchangeInfo to retrieve (for each Symbol) price and quantity precisions (i.e. field baseAssetPrecision and quoteAssetPrecision).
But it seems they are always “8”?
For example, it returns 8 for both field on BTCUSDT, but in fact they aren’t (mostly like 2 and 5).
So for quantity (baseAsset) the precision will be stepSize.
And for quoteQty (quoteAsset) it will be stepSize * tickSize, but no more than quoteAssetPrecision.