Programming Languages
Bug Report
Orders rejected with Filter failure: LOT_SIZE and PRICE_FILTER: rounding to the exchange grid
Our rebalancing bot computed order sizes as fractions of a portfolio and about one order in five was rejected with Filter failure: LOT_SIZE or PRICE_FILTER. Quantities and prices must sit on each symbol's step and tick grid. Reading exchangeInfo filters and rounding with Decimal fixed it.