30 Apr 2021 22:56:50 UTC
- Distribution: Finance-Alpaca
- Module version: 0.9904
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (99 / 0 / 20)
- KwaliteeBus factor: 1
- 80.44% Coverage
- License: artistic_2
- Perl: v5.22.0
- Activity24 month
- Download (39.39KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionSANKO Sanko Robinson
Finance::Alpaca::Struct::Trade - A Single Trade Object
use Finance::Alpaca; my %trades = Finance::Alpaca->new( ... )->trades( 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->ap;
The quote API provides historical trade data for a given ticker symbol on a specified date.
The following properties are contained in the object.
timestamp- Timestamp with nanosecond precision as a Time::Moment object
exchange- Exchange where the trade happened
price- Trade price
size- Trade size
conditions- Trade conditions
id- Trade ID
symbol- Symbol; only provided if data is from a Finance::Alpaca::Stream session
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 <firstname.lastname@example.org>
Module Install Instructions
To install Finance::Alpaca, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Finance::Alpaca
For more information on module installation, please visit the detailed CPAN module installation guide.