binancer icon indicating copy to clipboard operation
binancer copied to clipboard

Error when creating new orders

Open Trader12345a opened this issue 4 years ago • 7 comments

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?

Trader12345a avatar Aug 24 '20 09:08 Trader12345a

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?

Trader12345a avatar Aug 24 '20 09:08 Trader12345a

I believe this issue can be solved by

quot <- (quantity - filters[filterType == 'LOT_SIZE', minQty]) / filters[filterType == 'LOT_SIZE', stepSize]

yapchunkee avatar Nov 10 '20 02:11 yapchunkee

Hi all. Just running into this problem. @Trader12345a and @yapchunkee , do either of you have forks w/ this problem fixed?

Thanks!

DataStrategist avatar Feb 22 '21 02:02 DataStrategist

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?

daroczig avatar Nov 26 '21 00:11 daroczig

Thanks for letting me know @daroczig ! I looked at it and it's clear. I will make a PR and fix it.

madsurgeon avatar Nov 26 '21 14:11 madsurgeon

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.

vvkorotkikh avatar Mar 09 '22 14:03 vvkorotkikh

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

mvdv1234 avatar May 30 '22 09:05 mvdv1234