Class: Bitbot::Trader::Account
- Inherits:
-
Object
- Object
- Bitbot::Trader::Account
- Defined in:
- lib/bitbot/trader/account.rb
Overview
User account info
Instance Method Summary collapse
-
#wallet(currency) ⇒ Wallet?
Fetches account wallet with given currency.
Instance Method Details
#wallet(currency) ⇒ Wallet?
Fetches account wallet with given currency
24 25 26 |
# File 'lib/bitbot/trader/account.rb', line 24 def wallet(currency) wallets.detect { |wallet| wallet.currency == currency } end |