Open Jay54520 opened 6 years ago
I think this is beyond the scope of this library as it stands now
Does this library only provide functions that huobi provides?
@Jay54520 at least we should not automagically store account IDs, the only way I see this working is to add an option for users to explicitly say that they want account IDs to be store for future requests.
Add an option is not a bad idea.
Put this codes under HuobiRestClient.__init__
?
I can see it working under HuobiRestClient.__init__
Would be happy to see a PR :)
Ok, let me do it.
Some APIs such as place order need account id, but it's not appropriate to request account id before every placing order request.
The accounts response is like this:
I guess that one API_KEY will only have one working account id for each type, so we may store all working apis like this when init client: