Closed siedi closed 6 years ago
Yes, I noticed that as I was building this out. I don't use personally use Bitfinex and was confused by the different types of wallets. Could you help me understand what each wallet type purpose is?
I can add a type parameter for Bitfinex to allow this.
I added a fix for this. For Bitfinex, you can pass a type
in the options. See the README for fetching balances and addresses.
Thanks for fixing (also another bug included in the balance function). Unfortunately, there is a new issue introduced by the refactoring of the balance method. The caching you introduced creates a class variable balances
, which conflicts with the method name balances
, thus, when calling node complaints:
TypeError: bitfinex.balances is not a function
Also, the in Line109 the alt variable is not set before when it gets assigned.
And would you mind merging it to the history branch?
Thanks again!
Just to explain the different wallet types:
Hope my explanation makes sense.
Ok those bugs should be fixed now. Thanks for the heads up. What would you liked merged with the history branch? I'm not quite done with it; i have plenty more to add for other exchanges.
I just rebased history
on top of master
so it should have all those changes, if thats what you meant.
Works. Thanks!
Bitfinex has multiple wallets, i.e. for types = ['exchange', 'trading', 'funding']
Right now, only the exchange wallet is returned for the balance. In order to be compatible with all exchanges, I suggest adding the type (wallet) as a parameter for all exchanges. Of course, others might have just one wallet.
Does that make sense?