line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::Alpaca::Struct::Asset 0.9902 { |
2
|
17
|
|
|
17
|
|
133
|
use strictures 2; |
|
17
|
|
|
|
|
150
|
|
|
17
|
|
|
|
|
738
|
|
3
|
17
|
|
|
17
|
|
3767
|
use feature 'signatures'; |
|
17
|
|
|
|
|
38
|
|
|
17
|
|
|
|
|
1313
|
|
4
|
17
|
|
|
17
|
|
106
|
no warnings 'experimental::signatures'; |
|
17
|
|
|
|
|
33
|
|
|
17
|
|
|
|
|
864
|
|
5
|
|
|
|
|
|
|
# |
6
|
17
|
|
|
17
|
|
119
|
use Type::Library 0.008 -base, -declare => qw[Asset]; |
|
17
|
|
|
|
|
329
|
|
|
17
|
|
|
|
|
116
|
|
7
|
17
|
|
|
17
|
|
7621
|
use Type::Utils; |
|
17
|
|
|
|
|
37
|
|
|
17
|
|
|
|
|
114
|
|
8
|
17
|
|
|
17
|
|
27158
|
use Types::Standard qw[Bool Enum Int Num Ref Str]; |
|
17
|
|
|
|
|
39
|
|
|
17
|
|
|
|
|
142
|
|
9
|
17
|
|
|
17
|
|
24167
|
use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" }; |
|
17
|
|
|
|
|
343
|
|
|
17
|
|
|
|
|
158
|
|
10
|
|
|
|
|
|
|
class_type Asset, { class => __PACKAGE__ }; |
11
|
|
|
|
|
|
|
coerce( Asset, from Ref() => __PACKAGE__ . q[->new($_)] ); |
12
|
|
|
|
|
|
|
# |
13
|
17
|
|
|
17
|
|
6287
|
use Moo; |
|
17
|
|
|
|
|
39
|
|
|
17
|
|
|
|
|
130
|
|
14
|
17
|
|
|
17
|
|
6306
|
use Types::UUID; |
|
17
|
|
|
|
|
37
|
|
|
17
|
|
|
|
|
124
|
|
15
|
17
|
|
|
17
|
|
5940
|
use lib './lib'; |
|
17
|
|
|
|
|
42
|
|
|
17
|
|
|
|
|
128
|
|
16
|
17
|
|
|
17
|
|
2715
|
use Finance::Alpaca::Types; |
|
17
|
|
|
|
|
36
|
|
|
17
|
|
|
|
|
134
|
|
17
|
|
|
|
|
|
|
has id => ( is => 'ro', isa => Uuid, required => 1 ); |
18
|
|
|
|
|
|
|
has [qw[class symbol]] => ( is => 'ro', isa => Str, required => 1 ); |
19
|
|
|
|
|
|
|
has exchange => |
20
|
|
|
|
|
|
|
( is => 'ro', isa => Enum [qw[AMEX ARCA BATS NYSE NASDAQ NYSEARCA OTC]], required => 1 ); |
21
|
|
|
|
|
|
|
has status => ( is => 'ro', isa => Enum [qw[active inactive]], required => 1 ); |
22
|
|
|
|
|
|
|
has [qw[easy_to_borrow fractionable marginable shortable tradable]] => |
23
|
|
|
|
|
|
|
( is => 'ro', isa => Bool, required => 1, coerce => 1 ); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
__END__ |