line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::Alpaca::Struct::Activity 0.9902 { |
2
|
17
|
|
|
17
|
|
137
|
use strictures 2; |
|
17
|
|
|
|
|
134
|
|
|
17
|
|
|
|
|
720
|
|
3
|
17
|
|
|
17
|
|
3634
|
use feature 'signatures'; |
|
17
|
|
|
|
|
42
|
|
|
17
|
|
|
|
|
1295
|
|
4
|
17
|
|
|
17
|
|
107
|
no warnings 'experimental::signatures'; |
|
17
|
|
|
|
|
32
|
|
|
17
|
|
|
|
|
796
|
|
5
|
|
|
|
|
|
|
# |
6
|
17
|
|
|
17
|
|
98
|
use Type::Library 0.008 -base, -declare => qw[Activity]; |
|
17
|
|
|
|
|
306
|
|
|
17
|
|
|
|
|
111
|
|
7
|
17
|
|
|
17
|
|
8049
|
use Type::Utils; |
|
17
|
|
|
|
|
32
|
|
|
17
|
|
|
|
|
113
|
|
8
|
17
|
|
|
17
|
|
26809
|
use Types::Standard qw[Enum Num Ref Str]; |
|
17
|
|
|
|
|
39
|
|
|
17
|
|
|
|
|
132
|
|
9
|
17
|
|
|
17
|
|
19768
|
use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" }; |
|
17
|
|
|
|
|
334
|
|
|
17
|
|
|
|
|
116
|
|
10
|
|
|
|
|
|
|
class_type Activity, { class => __PACKAGE__ }; |
11
|
|
|
|
|
|
|
coerce( Activity, from Ref() => __PACKAGE__ . q[->new($_)] ); |
12
|
|
|
|
|
|
|
# |
13
|
17
|
|
|
17
|
|
6034
|
use Moo; |
|
17
|
|
|
|
|
42
|
|
|
17
|
|
|
|
|
122
|
|
14
|
17
|
|
|
17
|
|
6139
|
use Types::UUID; |
|
17
|
|
|
|
|
57
|
|
|
17
|
|
|
|
|
185
|
|
15
|
17
|
|
|
17
|
|
6242
|
use lib './lib'; |
|
17
|
|
|
|
|
41
|
|
|
17
|
|
|
|
|
122
|
|
16
|
17
|
|
|
17
|
|
2881
|
use Finance::Alpaca::Types; |
|
17
|
|
|
|
|
38
|
|
|
17
|
|
|
|
|
128
|
|
17
|
|
|
|
|
|
|
has activity_type => ( |
18
|
|
|
|
|
|
|
is => 'ro', |
19
|
|
|
|
|
|
|
isa => Enum [ |
20
|
|
|
|
|
|
|
qw[FILL TRANS MISC ACATC ACATS CSD CSW DIV DIVCGL DIVCGS DIVFEE |
21
|
|
|
|
|
|
|
DIVFT DIVNRA DIVROC DIVTW DIVTXEX INT INTNRA INTTW JNL JNLC JNLS |
22
|
|
|
|
|
|
|
MA NC OPASN OPEXP OPXRC PTC PTR REORG SC SSO SSP] |
23
|
|
|
|
|
|
|
], |
24
|
|
|
|
|
|
|
required => 1 |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
has date => ( is => 'ro', isa => Timestamp, required => 1, coerce => 1 ); |
27
|
|
|
|
|
|
|
has net_amount => ( is => 'ro', isa => Num, required => 1 ); |
28
|
|
|
|
|
|
|
has [qw[id symbol]] => ( is => 'ro', isa => Str, required => 1 ); |
29
|
|
|
|
|
|
|
has [qw[qty per_share_amount]] => ( is => 'ro', isa => Num, predicate => 1 ); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
__END__ |