Class: ItBitSDK::Order

Inherits:
Object
  • Object
show all
Defined in:
lib/it_bit_sdk/domain/order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject

Returns the value of attribute amount.



3
4
5
# File 'lib/it_bit_sdk/domain/order.rb', line 3

def amount
  @amount
end

#amount_filledObject

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_identifierObject

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_timeObject

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

#currencyObject

Returns the value of attribute currency.



3
4
5
# File 'lib/it_bit_sdk/domain/order.rb', line 3

def currency
  @currency
end

#display_amountObject

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

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/it_bit_sdk/domain/order.rb', line 3

def id
  @id
end

#instrumentObject

Returns the value of attribute instrument.



3
4
5
# File 'lib/it_bit_sdk/domain/order.rb', line 3

def instrument
  @instrument
end

#metadataObject

Returns the value of attribute metadata.



3
4
5
# File 'lib/it_bit_sdk/domain/order.rb', line 3

def 
  @metadata
end

#priceObject

Returns the value of attribute price.



3
4
5
# File 'lib/it_bit_sdk/domain/order.rb', line 3

def price
  @price
end

#sideObject

Returns the value of attribute side.



3
4
5
# File 'lib/it_bit_sdk/domain/order.rb', line 3

def side
  @side
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/it_bit_sdk/domain/order.rb', line 3

def status
  @status
end

#typeObject

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_priceObject

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_idObject

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