binancer
binancer copied to clipboard
Error when creating new orders
I keep getting the below error when attempting to add new orders:
abs(quot - round(quot)) < 1e-10 is not TRUE
Does anyone know how to solve this issue?
On further inspection, the error I think is caused by
quot <- (quantity - filters[filterType == 'MARKET_LOT_SIZE', minQty]) / filters[filterType == 'MARKET_LOT_SIZE', stepSize]
in your code. For some pairs the "stepsize" is 0, so it is trying to divide by zero. Can you update the code so that if the stepsize is zero, all positive numbers are allowed as quantities?
I believe this issue can be solved by
quot <- (quantity - filters[filterType == 'LOT_SIZE', minQty]) / filters[filterType == 'LOT_SIZE', stepSize]
Hi all. Just running into this problem. @Trader12345a and @yapchunkee , do either of you have forks w/ this problem fixed?
Thanks!
Hey @madsurgeon, any chance you might remember what's going on at https://github.com/daroczig/binancer/blob/master/R/binance.R#L761 and what would be your suggestion to overcome the Inf
issue?
Thanks for letting me know @daroczig ! I looked at it and it's clear. I will make a PR and fix it.
Thanks for letting me know @daroczig ! I looked at it and it's clear. I will make a PR and fix it.
Is there any ideas of fix this issue? It still returns error when attempting to add new orders.
Thanks for letting me know @daroczig ! I looked at it and it's clear. I will make a PR and fix it.
Is there any ideas of fix this issue? It still returns error when attempting to add new orders.
Did anyone here found out how to fix it? Because when opening a market order the error still appears. I tried to dowload the latest version from the binacer package from github but the error still appears. Would be great if you guys can help me out