Finance::Alpaca::Struct::TradeActivity - A Single Trade Activity Object
use Finance::Alpaca; my @activities = Finance::Alpaca->new( ... )->activities;
The account activities API provides access to a historical record of transaction activities that have impacted your account. Trade execution activities and non-trade activities, such as dividend payments, are both reported through this endpoint. See the bottom of this page for a full list of the types of activities that may be reported.
The following properties are contained in the object.
for my $activity ($camelia->activities()) { say $activity->symbol; }
id
page_token
activity_type
FILL
cum_qty
leaves_qty
partially_filled
price
qty
side
buy
sell
sell_short
symbol
transaction_time
order_id
type
fill
partial_fill
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.