hello, I’m using java futures API. and I get this error [Executing] -4014: Price not increased by tick size.
I know what I need to do, I need to pass this filter (price-minPrice) % tickSize == 0. I can get ticksize minPrice and of course my price that i want to place a limit order on, can someone help me how to pass this filter?
nevermind i fixed it using chat gpt this function worked for me:
return Math.round((price - minPrice) / tickSize) * tickSize + minPrice;
}```
1 Like