Finance::Alpaca::Struct::Activity - A Single Account Activity Object
use Finance::Alpaca; for my $activity (Finance::Alpaca->new( ... )->activities( activity_types => [qw[ACATC ACATS]] )) { say sprintf '%s @ %f', $activity->symbol, $activity->net_amount }
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
date
net_amount
symbol
qty
per_share_amount
FILL
TRANS
MISC
ACATC
ACATS
CSD
CSW
DIV
DIVCGL
DIVCGS
DIVFEE
DIVFT
DIVNRA
DIVROC
DIVTW
DIVTXEX
INT
INTNRA
INTTW
JNL
JNLC
JNLS
MA
NC
OPASN
OPEXP
OPXRC
PTC
PTR
REORG
SC
SSO
SSP
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.