Finance::Alpaca::Struct::Quote - A Single Quote Object
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;
The quote API provides NBBO quotes for a given ticker symbol at a specified date.
The following properties are contained in the object.
$quote->ask_price;
timestamp
ask_exchaneg
ask_price
ask_size
bid_exchange
bid_price
bid_size
conditions
symbol
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.
Sanko Robinson <sanko@cpan.org>
To install Finance::Alpaca, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::Alpaca
CPAN shell
perl -MCPAN -e shell install Finance::Alpaca
For more information on module installation, please visit the detailed CPAN module installation guide.