Module: Buttercoin::Client::AccountQueryMethods

Included in:
Buttercoin::Client
Defined in:
lib/buttercoin/client/account_query_methods.rb

Instance Method Summary collapse

Instance Method Details

#get_balances(timestamp = nil) ⇒ Object

Retrieve the account balanaces for all currencies

Parameters:

  • timestamp (defaults to: nil)

    integer (optional)



17
18
19
# File 'lib/buttercoin/client/account_query_methods.rb', line 17

def get_balances(timestamp=nil)
  get '/account/balances', timestamp
end

#get_deposit_address(timestamp = nil) ⇒ Object

Retrieve the bitcoin deposit address

Parameters:

  • timestamp (defaults to: nil)

    integer (optional)



25
26
27
28
# File 'lib/buttercoin/client/account_query_methods.rb', line 25

def get_deposit_address(timestamp=nil)
  mash = get '/account/depositAddress', timestamp
  mash.address
end

#get_key(timestamp = nil) ⇒ Object

Retrieve the ticker

Parameters:

  • timestamp (defaults to: nil)

    integer (optional)



9
10
11
# File 'lib/buttercoin/client/account_query_methods.rb', line 9

def get_key(timestamp=nil)
  get '/key', timestamp
end