Method: Bitpesa::AccountsApi#get_account

Defined in:
lib/bitpesa-sdk/api/accounts_api.rb

#get_account(currency, opts = {}) ⇒ AccountResponse

Fetches account balance for specified currrency Fetches account balance for specified currrency, and returns current balance and associated currency code

Parameters:

  • currency

    Currency code of account balance to fetch Example: `/v1/accounts/USD`

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



29
30
31
32
# File 'lib/bitpesa-sdk/api/accounts_api.rb', line 29

def (currency, opts = {})
  data, _status_code, _headers = (currency, opts)
  data
end