Class: BitFlyer::Models::BalanceHistory
- Inherits:
-
Object
- Object
- BitFlyer::Models::BalanceHistory
- Defined in:
- lib/bit_flyer/models/balance_history.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#balance ⇒ Object
readonly
Returns the value of attribute balance.
-
#commission ⇒ Object
readonly
Returns the value of attribute commission.
-
#currency_code ⇒ Object
readonly
Returns the value of attribute currency_code.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#price ⇒ Object
readonly
Returns the value of attribute price.
-
#product_code ⇒ Object
readonly
Returns the value of attribute product_code.
-
#quantity ⇒ Object
readonly
Returns the value of attribute quantity.
-
#rade_type ⇒ Object
readonly
Returns the value of attribute rade_type.
-
#trade_date ⇒ Object
readonly
Returns the value of attribute trade_date.
-
#trade_type ⇒ Object
readonly
Returns the value of attribute trade_type.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ BalanceHistory
constructor
trade_type: BUY: 買い SELL: 売り DEPOSIT: 入金・仮想通貨の預入 WITHDRAW: 出金・仮想通貨の外部送付 FEE: 手数料 POST_COLL: 証拠金の預入 CANCEL_COLL: 証拠金の引出 PAYMENT: ビットコイン決済による仮想通貨の移転 TRANSFER: その他の一般的な資金移動.
Constructor Details
#initialize(attrs = {}) ⇒ BalanceHistory
trade_type: BUY: 買いSELL: 売りDEPOSIT: 入金・仮想通貨の預入WITHDRAW: 出金・仮想通貨の外部送付FEE: 手数料POST_COLL: 証拠金の預入CANCEL_COLL: 証拠金の引出PAYMENT: ビットコイン決済による仮想通貨の移転TRANSFER: その他の一般的な資金移動
28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/bit_flyer/models/balance_history.rb', line 28 def initialize(attrs = {}) @id = attrs['id'] @trade_date = attrs['trade_date'] @product_code = attrs['product_code'] @currency_code = attrs['currency_code'] @trade_type = attrs['trade_type'] @price = attrs['price'] # 仮想通貨の取引時の値段(BTCなら1BTCの値段) @amount = attrs['amount'] # 取引した値段(日本円等) @quantity = attrs['quantity'] # 取引した仮想通貨量 @commission = attrs['commission'] # 手数料(多分仮装通過の量) @balance = attrs['balance'] # 残金(1,0000円入金していて1000円で0.01BTCを買った時→9,000) @order_id = attrs['order_id'] end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
4 5 6 |
# File 'lib/bit_flyer/models/balance_history.rb', line 4 def amount @amount end |
#balance ⇒ Object (readonly)
Returns the value of attribute balance.
4 5 6 |
# File 'lib/bit_flyer/models/balance_history.rb', line 4 def balance @balance end |
#commission ⇒ Object (readonly)
Returns the value of attribute commission.
4 5 6 |
# File 'lib/bit_flyer/models/balance_history.rb', line 4 def commission @commission end |
#currency_code ⇒ Object (readonly)
Returns the value of attribute currency_code.
4 5 6 |
# File 'lib/bit_flyer/models/balance_history.rb', line 4 def currency_code @currency_code end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/bit_flyer/models/balance_history.rb', line 4 def id @id end |
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
4 5 6 |
# File 'lib/bit_flyer/models/balance_history.rb', line 4 def order_id @order_id end |
#price ⇒ Object (readonly)
Returns the value of attribute price.
4 5 6 |
# File 'lib/bit_flyer/models/balance_history.rb', line 4 def price @price end |
#product_code ⇒ Object (readonly)
Returns the value of attribute product_code.
4 5 6 |
# File 'lib/bit_flyer/models/balance_history.rb', line 4 def product_code @product_code end |
#quantity ⇒ Object (readonly)
Returns the value of attribute quantity.
4 5 6 |
# File 'lib/bit_flyer/models/balance_history.rb', line 4 def quantity @quantity end |
#rade_type ⇒ Object (readonly)
Returns the value of attribute rade_type.
4 5 6 |
# File 'lib/bit_flyer/models/balance_history.rb', line 4 def rade_type @rade_type end |
#trade_date ⇒ Object (readonly)
Returns the value of attribute trade_date.
4 5 6 |
# File 'lib/bit_flyer/models/balance_history.rb', line 4 def trade_date @trade_date end |
#trade_type ⇒ Object (readonly)
Returns the value of attribute trade_type.
4 5 6 |
# File 'lib/bit_flyer/models/balance_history.rb', line 4 def trade_type @trade_type end |