NAME
Quant::Framework::Spot::Tick
SYNOPSYS
my $tick = Quant::Framework::Spot::Tick->new({
symbol => 'frxRMBMNT',
epoch => 1340871449,
bid => 2.01,
ask => 2.03,
quote => 2.02,
});
DESCRIPTION
This class represents tick data
ATTRIBUTES
epoch
represent time in epoch of a tick
symbol
underlying symbol
quote
represents the quote price
bid
represents the bid price
ask
represents the ask price
METHIODS
$self->close
Returns quote, for backward compatibility
$self->invert_values
Invert quote, ask, and bid values
$self->as_hash
Returns tick as a hash