Análise visual de preços entre corretoras
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
304 B

include Helper
class Order
include JSON::Serializable
getter type, value, price, utc
def initialize(@type : String, @value : Float64, @price : Float64, @utc : String)
@utc = as_date(@utc).to_s.gsub(" UTC", "")
def to_s
"#{self.value.round(3)} - #{self.price.round(3)}"