rex/lib/rex/trade.rb
Tim Kächele 5862368498 Rename amount to quantity
More idiomatic naming for the order quantities.
2023-10-29 20:07:39 +01:00

20 lines
371 B
Ruby

module Rex
class Trade
attr_accessor(
:id,
:buy_order,
:sell_order,
:quantity,
:price
)
def initialize(attributes = {})
@id = attributes[:id]
@buy_order = attributes[:buy_order]
@sell_order = attributes[:sell_order]
@quantity = attributes[:quantity]
@price = attributes[:price]
end
end
end