Class: ItBitSDK::Order
- Inherits:
-
Object
- Object
- ItBitSDK::Order
- Defined in:
- lib/it_bit_sdk/domain/order.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#amount_filled ⇒ Object
Returns the value of attribute amount_filled.
-
#client_order_identifier ⇒ Object
Returns the value of attribute client_order_identifier.
-
#created_time ⇒ Object
Returns the value of attribute created_time.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#display_amount ⇒ Object
Returns the value of attribute display_amount.
-
#id ⇒ Object
Returns the value of attribute id.
-
#instrument ⇒ Object
Returns the value of attribute instrument.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#price ⇒ Object
Returns the value of attribute price.
-
#side ⇒ Object
Returns the value of attribute side.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
-
#volume_weighted_average_price ⇒ Object
Returns the value of attribute volume_weighted_average_price.
-
#wallet_id ⇒ Object
Returns the value of attribute wallet_id.
Instance Method Summary collapse
-
#initialize(params:) ⇒ Order
constructor
A new instance of Order.
Constructor Details
#initialize(params:) ⇒ Order
Returns a new instance of Order.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/it_bit_sdk/domain/order.rb', line 5 def initialize(params:) @id = params['id'] @wallet_id = params['wallet_id'] @side = params['side'] @instrument = params['instrument'] @currency = params['currency'] @type = params['type'] @amount = params['amout'] @price = params['prive'] @amount_filled = params['amountFilled'] @volume_weighted_average_price = params['volumeWeightedAveragePrice'] @created_time = params['createTime'] @status = params['status'] @display_amount = params['displayAmount'] @metadata = params['metadata'] @client_order_identifier = params['clientOrderIdentifier'] end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def amount @amount end |
#amount_filled ⇒ Object
Returns the value of attribute amount_filled.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def amount_filled @amount_filled end |
#client_order_identifier ⇒ Object
Returns the value of attribute client_order_identifier.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def client_order_identifier @client_order_identifier end |
#created_time ⇒ Object
Returns the value of attribute created_time.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def created_time @created_time end |
#currency ⇒ Object
Returns the value of attribute currency.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def currency @currency end |
#display_amount ⇒ Object
Returns the value of attribute display_amount.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def display_amount @display_amount end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def id @id end |
#instrument ⇒ Object
Returns the value of attribute instrument.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def instrument @instrument end |
#metadata ⇒ Object
Returns the value of attribute metadata.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def @metadata end |
#price ⇒ Object
Returns the value of attribute price.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def price @price end |
#side ⇒ Object
Returns the value of attribute side.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def side @side end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def type @type end |
#volume_weighted_average_price ⇒ Object
Returns the value of attribute volume_weighted_average_price.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def volume_weighted_average_price @volume_weighted_average_price end |
#wallet_id ⇒ Object
Returns the value of attribute wallet_id.
3 4 5 |
# File 'lib/it_bit_sdk/domain/order.rb', line 3 def wallet_id @wallet_id end |