Class: BinanceClient::SubAccountAssetsResponse

Inherits:
BaseResponse
  • Object
show all
Defined in:
lib/binance_client/responses/sub_account_assets_response.rb

Instance Method Summary collapse

Methods inherited from BaseResponse

#body_code, #default_message, #used_weights

Instance Method Details

#default_balancesObject



9
10
11
12
13
# File 'lib/binance_client/responses/sub_account_assets_response.rb', line 9

def default_balances
  body["balances"].map do |balance_hash|
    AssetBalance.new(**balance_hash.symbolize_keys)
  end
end