Module: Buttercoin::Client::AccountQueryMethods
- Included in:
- Buttercoin::Client
- Defined in:
- lib/buttercoin/client/account_query_methods.rb
Instance Method Summary collapse
-
#get_balances(timestamp = nil) ⇒ Object
Retrieve the account balanaces for all currencies.
-
#get_deposit_address(timestamp = nil) ⇒ Object
Retrieve the bitcoin deposit address.
-
#get_key(timestamp = nil) ⇒ Object
Retrieve the ticker.
Instance Method Details
#get_balances(timestamp = nil) ⇒ Object
Retrieve the account balanaces for all currencies
17 18 19 |
# File 'lib/buttercoin/client/account_query_methods.rb', line 17 def get_balances(=nil) get '/account/balances', end |
#get_deposit_address(timestamp = nil) ⇒ Object
Retrieve the bitcoin deposit address
25 26 27 28 |
# File 'lib/buttercoin/client/account_query_methods.rb', line 25 def get_deposit_address(=nil) mash = get '/account/depositAddress', mash.address end |
#get_key(timestamp = nil) ⇒ Object
Retrieve the ticker
9 10 11 |
# File 'lib/buttercoin/client/account_query_methods.rb', line 9 def get_key(=nil) get '/key', end |