You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried to monitor balance and orders or 2 apis (maybe more) in the same application;
I find that, order and balance is always of the first api is set even you create many restclient
KucoinClientBuilder builder = new KucoinClientBuilder()
.withBaseUrl(kucoinRestEnpoint)
.withApiKey(user.getApi(), user.getSecretKey(), user.getPassPhrase());
So I checked through API code and see issue at RetrofitFactory class
This class should not be singleton one. This one should return are many retrofit as request (real factory).
Singleton pattern should apply at application level, it's much more flexible and useful,
Thanks,
The text was updated successfully, but these errors were encountered:
as I described about, RetrofitFactory class should be changed little bit to let user create new Retrofit with new apikey pair or new
KucoinRestClient object.
When I tried to monitor balance and orders or 2 apis (maybe more) in the same application;
I find that, order and balance is always of the first api is set even you create many restclient
So I checked through API code and see issue at RetrofitFactory class
This class should not be singleton one. This one should return are many retrofit as request (real factory).
Singleton pattern should apply at application level, it's much more flexible and useful,
Thanks,
The text was updated successfully, but these errors were encountered: