-
-
30 Apr 2021 22:56:50 UTC
- Distribution: Finance-Alpaca
- Module version: 0.9904
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (99 / 0 / 20)
- Kwalitee
Bus factor: 1- 80.44% Coverage
- License: artistic_2
- Perl: v5.22.0
- Activity
24 month- Tools
- Download (39.39KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Finance::Alpaca::Struct::TradeActivity - A Single Trade Activity Object
SYNOPSIS
use Finance::Alpaca; my @activities = Finance::Alpaca->new( ... )->activities;
DESCRIPTION
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.
Properties
The following properties are contained in the object.
for my $activity ($camelia->activities()) { say $activity->symbol; }
id
- An ID for the activity, always in “::” format. Can be sent aspage_token
in requests to facilitate the paging of results.activity_type
-FILL
cum_qty
- The cumulative quantity of shares involved in the executionleaves_qty
- Forpartially_filled
orders, the quantity of shares that are left to be filledprice
- The per-share price that the trade was executed atqty
- The number of shares involved in the trade executionside
-buy
,sell
, orsell_short
symbol
- The symbol of the security being tradedtransaction_time
- Timestamp at which the execution occurred as a Time::Moment objectorder_id
- The id (UUID) for the order that filledtype
-fill
orpartial_fill
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>
Module Install Instructions
To install Finance::Alpaca, copy and paste the appropriate command in to your terminal.
cpanm Finance::Alpaca
perl -MCPAN -e shell install Finance::Alpaca
For more information on module installation, please visit the detailed CPAN module installation guide.