Closed burakoner closed 5 years ago
I think it is not related with package. Huobi maybe uses different rate limits from they said
Hello my friend. I was talking with Huobi technical team for last week. This problem is absolutely on Huobi Side, and today I found solution. If you send signed requests for public data, everything is OK. It's not logical to change this on your codes, I just want to give an information to you.
Hi, @JKorf
I've an multithread application using Huobi.Net package.
I load main thread (windows service main thread), then I set RateLimitOptions via static way as below:
this.HuobiNetClientOptions = new Huobi.Net.HuobiClientOptions() { RateLimiters = new List<CryptoExchange.Net.Interfaces.IRateLimiter> { new CryptoExchange.Net.RateLimiter.RateLimiterTotal(60, TimeSpan.FromSeconds(10)), }, RateLimitingBehaviour = CryptoExchange.Net.Objects.RateLimitingBehaviour.Wait, RequestTimeout = TimeSpan.FromSeconds(30), }; Huobi.Net.HuobiClient.SetDefaultOptions(this.HuobiNetClientOptions); this.HuobiNetClient = new Huobi.Net.HuobiClient();
And I start 6 threads too and these threads uses HuobiClient in main thread. So I use same object for all threads. I use only getting klines method in API. Huobi allows 100 request in 10 seconds, Even I set for 60 requests I got rate limit error.
By the way, I use your Binance.Net package in same method and I dont get rate limit error in Binance.
Could you please check it?