-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem creating new orders: error in filters #31
Comments
Hi, Thank you for the great package. I received the same error - binance changed the "PERCENT_PRICE" filter into "PERCENT_PRICE_BY SIDE". Rerun the formula by replacing the term turned into the following error: "Error in Most probably this is due to the second change in the API: Interestingly, manual change of the formula with respect to the changes above did not affect the error mentioned by @pietervandessel. Even removing manually all "stopifnot" statements and testing a BUY LIMIT path did not affect the result: "Error in if (filters[filterType == "PERCENT_PRICE", avgPriceMins] == 0) { : It seems like another part of the package is pointing at the filterType == "PERCENT_PRICE". Test-changes to the formula are given below: "f_binance_new_order <- function (symbol params <- list(symbol = symbol, side = side, type = type, quantity = quantity, price = price) if (isTRUE(test)) { environment(f_binance_new_order) <- asNamespace('binancer') @daroczig Any idea on how to fix this issue otherwise? Thank you very much in advance! |
Thank you! Problem solved. |
Hi,
I get the following error when creating a new order (e.g.: binance_new_order("XRPUSDT", side = "BUY", type = "LIMIT", price=0.32, quantity = 60, time_in_force = "GTC", test=F):
"Error in if (filters[filterType == "PERCENT_PRICE", avgPriceMins] == 0) { :
argument is of length zero"
If I run: filters <- binance_filters("XRPUSDT"), I can see that filterType has the value PERCENT_PRICE_BY_SIDE but not PERCENT_PRICE
The text was updated successfully, but these errors were encountered: