line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::Alpaca::Struct::TradeActivity 0.9904 { |
2
|
17
|
|
|
17
|
|
112
|
use strictures 2; |
|
17
|
|
|
|
|
141
|
|
|
17
|
|
|
|
|
686
|
|
3
|
17
|
|
|
17
|
|
3645
|
use feature 'signatures'; |
|
17
|
|
|
|
|
33
|
|
|
17
|
|
|
|
|
1319
|
|
4
|
17
|
|
|
17
|
|
89
|
no warnings 'experimental::signatures'; |
|
17
|
|
|
|
|
34
|
|
|
17
|
|
|
|
|
699
|
|
5
|
|
|
|
|
|
|
# |
6
|
17
|
|
|
17
|
|
85
|
use Type::Library 0.008 -base, -declare => qw[TradeActivity]; |
|
17
|
|
|
|
|
386
|
|
|
17
|
|
|
|
|
101
|
|
7
|
17
|
|
|
17
|
|
6589
|
use Type::Utils; |
|
17
|
|
|
|
|
36
|
|
|
17
|
|
|
|
|
93
|
|
8
|
17
|
|
|
17
|
|
22059
|
use Types::Standard qw[Enum Num Ref Str]; |
|
17
|
|
|
|
|
35
|
|
|
17
|
|
|
|
|
137
|
|
9
|
17
|
|
|
17
|
|
16789
|
use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" }; |
|
17
|
|
|
|
|
335
|
|
|
17
|
|
|
|
|
108
|
|
10
|
|
|
|
|
|
|
class_type TradeActivity, { class => __PACKAGE__ }; |
11
|
|
|
|
|
|
|
coerce( TradeActivity, from Ref() => __PACKAGE__ . q[->new($_)] ); |
12
|
|
|
|
|
|
|
# |
13
|
17
|
|
|
17
|
|
5294
|
use Moo; |
|
17
|
|
|
|
|
36
|
|
|
17
|
|
|
|
|
140
|
|
14
|
17
|
|
|
17
|
|
5533
|
use Types::UUID; |
|
17
|
|
|
|
|
34
|
|
|
17
|
|
|
|
|
128
|
|
15
|
17
|
|
|
17
|
|
4985
|
use lib './lib'; |
|
17
|
|
|
|
|
36
|
|
|
17
|
|
|
|
|
125
|
|
16
|
17
|
|
|
17
|
|
2501
|
use Finance::Alpaca::Types; |
|
17
|
|
|
|
|
39
|
|
|
17
|
|
|
|
|
119
|
|
17
|
|
|
|
|
|
|
has activity_type => ( is => 'ro', isa => Str, required => 1 ); # FILL |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
has order_id => ( is => 'ro', isa => Uuid, required => 1 ); |
20
|
|
|
|
|
|
|
has side => ( is => 'ro', isa => Enum [qw[buy sell sell_short]], required => 1 ); |
21
|
|
|
|
|
|
|
has transaction_time => ( is => 'ro', isa => Timestamp, required => 1, coerce => 1 ); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
has [qw[symbol id]] => ( is => 'ro', isa => Str, required => 1 ); |
24
|
|
|
|
|
|
|
has [qw[qty cum_qty leaves_qty price ]] => ( is => 'ro', isa => Num, required => 1 ); |
25
|
|
|
|
|
|
|
has type => ( is => 'ro', isa => Enum [qw[fill partial_fill]], required => 1 ); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
__END__ |