NAME
Finance::Alpaca::Struct::Quote - A Single Quote Object
SYNOPSIS
use Finance::Alpaca;
my @quotes = Finance::Alpaca->new( ... )->quotes(
symbol => 'MSFT',
start => Time::Moment->now->with_day_of_week(2),
end => Time::Moment->now->with_hour(12)->with_day_of_week(3)
);
say $quotes[0]->ap;
DESCRIPTION
The quote API provides NBBO quotes for a given ticker symbol at a specified date.
Properties
The following properties are contained in the object.
$quote->ask_price;
timestamp
- Timestamp with nanosecond precision as a Time::Moment objectask_exchaneg
- Ask exchangeask_price
- Ask priceask_size
- Ask sizebid_exchange
- Bid exchangebid_price
- Bid pricebid_size
- Bid sizeconditions
- Quote conditionssymbol
- Symbol; only provided if data is from a Finance::Alpaca::Stream session
LICENSE
Copyright (C) Sanko Robinson.
This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.
AUTHOR
Sanko Robinson <sanko@cpan.org>