Class: BittrexEnterprise::Balances
- Inherits:
-
Object
- Object
- BittrexEnterprise::Balances
- Includes:
- ApiHelpers
- Defined in:
- lib/bittrex-enterprise/balances.rb
Class Method Summary collapse
-
.info(currency_symbol, sub_account_id = '') ⇒ Object
————————————— INFO ———————————————– Retrieve account balance for a specific currency.
-
.list(sub_account_id = '') ⇒ Object
—————————————- LIST ———————————————- List account balances across available currencies.
Methods included from ApiHelpers
Class Method Details
.info(currency_symbol, sub_account_id = '') ⇒ Object
————————————— INFO ———————————————– Retrieve account balance for a specific currency. Request will always succeed when the currency exists, regardless of whether there is a balance or address.
—— PARAMS —— currency_symbol: string - required - unique symbol of the currency to retrieve the
account balance for
sub_account_id: string - optional - ID of the subaccount to use for this call
30 31 32 |
# File 'lib/bittrex-enterprise/balances.rb', line 30 def self.info(currency_symbol, sub_account_id='') get_signed 'balances/{currencySymbol}', currencySymbol: currency_symbol, sub_account_id: sub_account_id end |
.list(sub_account_id = '') ⇒ Object
—————————————- LIST ———————————————- List account balances across available currencies. Returns a Balance entry for each currency for which there is either a balance or an address.
—— PARAMS —— sub_account_id: string - optional - ID of the subaccount to use for this call
16 17 18 |
# File 'lib/bittrex-enterprise/balances.rb', line 16 def self.list(sub_account_id='') get_signed 'balances', sub_account_id: sub_account_id end |