Lowest0ne / poloniex

A ruby wrapper for the poloniex.com api
MIT License
41 stars 45 forks source link

Poloniex.CompleteBalances #14

Open maknij opened 7 years ago

maknij commented 7 years ago

Hi - awesome gem. I'm struggling to use the CompleteBalances method though and wondering what I'm missing. When doing a variable = Poloniex.CompleteBalances I get an error that the method is undefined. It's supported by the Poloniex API however:

returnCompleteBalances Returns all of your balances, including available balance, balance on orders, and the estimated BTC value of your balance. By default, this call is limited to your exchange account; set the "account" POST parameter to "all" to include your margin and lending accounts.

I suspect I'm not meeting the requirement to set the account parameter to 'all' - how do I do this using this gem?

Thanks Mark

fell0w commented 7 years ago

@maknij the problem is that the owners of this repo have not pushed their latest version to the gem repository. The gem you installed is 1.0.0, but the code here in the repo is already 1.0.2

You should either clone the git repo to your hard drive and compile the gem locally (no idea how that works), or do the dirty version: just copy&paste the contents of https://github.com/Lowest0ne/poloniex/blob/master/lib/poloniex.rb into your local poloniex.rb file. That worked for me :)