busca possibilidades de arbitragem 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.
 

15 lines
268 B

class Order
getter type, value, price, utc
def initialize(@type : String, @value : Float64, @price : Float64, @utc : String)
end
def to_s
{
type: @type,
value: @value,
price: "#{@price.round(2)}",
ago: ago(utc)
}
end
end