-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Binance] Rate Limitation error on myTrades calls #4113
Comments
did you turn it on in the exchanges specification? its off by default for backwards compatibility |
if you turned it on then we would have to check if they changes the weights the current rule for this endpoint is defined in: XChange/xchange-binance/src/main/java/org/knowm/xchange/binance/service/BinanceTradeServiceRaw.java Line 228 in 4c24eb3
|
@walec51 , i thought it was enabled by default.
That's right ? |
I've tried with resilience, same result :
|
ok, I'll check if some request weight values changes at binance ware made on the weekend |
I'm also seeing this error. Is there a work around available? |
Hello, does the rate limitation system works properly on Binance ?
I've got some API error on calling myTrades.
Here is the stack trace
org.knowm.xchange.binance.dto.BinanceException: Too much request weight used; current limit is 1200 request weight per 1 MINUTE. Please use the websocket for live updates to avoid polling the API. (HTTP status code: 429) at jdk.internal.reflect.GeneratedConstructorAccessor230.newInstance(Unknown Source) at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:490) at com.fasterxml.jackson.databind.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:124) at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromObjectWith(StdValueInstantiator.java:283) at com.fasterxml.jackson.databind.deser.ValueInstantiator.createFromObjectWith(ValueInstantiator.java:229) at com.fasterxml.jackson.databind.deser.impl.PropertyBasedCreator.build(PropertyBasedCreator.java:198) at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:422) at com.fasterxml.jackson.databind.deser.std.ThrowableDeserializer.deserializeFromObject(ThrowableDeserializer.java:65) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:159) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4218) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3214) at si.mazi.rescu.serialization.jackson.JacksonResponseReader.read(JacksonResponseReader.java:53) at si.mazi.rescu.serialization.jackson.JacksonResponseReader.readException(JacksonResponseReader.java:58) at si.mazi.rescu.ResponseReader.read(ResponseReader.java:82) at si.mazi.rescu.RestInvocationHandler.mapInvocationResult(RestInvocationHandler.java:175) at si.mazi.rescu.RestInvocationHandler.receiveAndMap(RestInvocationHandler.java:163) at si.mazi.rescu.RestInvocationHandler.invoke(RestInvocationHandler.java:119) at com.sun.proxy.$Proxy308.myTrades(Unknown Source) at org.knowm.xchange.binance.service.BinanceTradeServiceRaw.lambda$myTrades$7(BinanceTradeServiceRaw.java:191) at org.knowm.xchange.binance.service.BinanceTradeServiceRaw$$Lambda$1559/0x00000000100ee0c0.call(Unknown Source) at org.knowm.xchange.client.ResilienceUtils$DecorateCallableApi.call(ResilienceUtils.java:74) at org.knowm.xchange.binance.service.BinanceTradeServiceRaw.myTrades(BinanceTradeServiceRaw.java:203) at org.knowm.xchange.binance.service.BinanceTradeService.getTradeHistory(BinanceTradeService.java:265)
Thank you
The text was updated successfully, but these errors were encountered: