line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::Alpaca::Struct::Bar 0.9902 { |
2
|
17
|
|
|
17
|
|
138
|
use strictures 2; |
|
17
|
|
|
|
|
120
|
|
|
17
|
|
|
|
|
695
|
|
3
|
17
|
|
|
17
|
|
3224
|
use feature 'signatures'; |
|
17
|
|
|
|
|
35
|
|
|
17
|
|
|
|
|
1095
|
|
4
|
17
|
|
|
17
|
|
103
|
no warnings 'experimental::signatures'; |
|
17
|
|
|
|
|
26
|
|
|
17
|
|
|
|
|
792
|
|
5
|
|
|
|
|
|
|
# |
6
|
17
|
|
|
17
|
|
99
|
use Type::Library 0.008 -base, -declare => qw[Bar]; |
|
17
|
|
|
|
|
386
|
|
|
17
|
|
|
|
|
105
|
|
7
|
17
|
|
|
17
|
|
18042
|
use Type::Utils; |
|
17
|
|
|
|
|
146433
|
|
|
17
|
|
|
|
|
191
|
|
8
|
17
|
|
|
17
|
|
27326
|
use Types::Standard qw[Bool Enum Int Num Ref Str]; |
|
17
|
|
|
|
|
39
|
|
|
17
|
|
|
|
|
85
|
|
9
|
17
|
|
|
17
|
|
23831
|
use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" }; |
|
17
|
|
|
|
|
389
|
|
|
17
|
|
|
|
|
118
|
|
10
|
|
|
|
|
|
|
class_type Bar, { class => __PACKAGE__ }; |
11
|
|
|
|
|
|
|
coerce( Bar, from Ref() => __PACKAGE__ . q[->new($_)] ); |
12
|
|
|
|
|
|
|
# |
13
|
17
|
|
|
17
|
|
6234
|
use Moo; |
|
17
|
|
|
|
|
37
|
|
|
17
|
|
|
|
|
128
|
|
14
|
17
|
|
|
17
|
|
6319
|
use lib './lib'; |
|
17
|
|
|
|
|
42
|
|
|
17
|
|
|
|
|
112
|
|
15
|
17
|
|
|
17
|
|
9618
|
use Finance::Alpaca::Types; |
|
17
|
|
|
|
|
45
|
|
|
17
|
|
|
|
|
197
|
|
16
|
|
|
|
|
|
|
has timestamp => ( is => 'ro', isa => Timestamp, required => 1, init_arg => 't', coerce => 1 ); |
17
|
|
|
|
|
|
|
has open => ( is => 'ro', isa => Num, required => 1, init_arg => 'o' ); |
18
|
|
|
|
|
|
|
has high => ( is => 'ro', isa => Num, required => 1, init_arg => 'h' ); |
19
|
|
|
|
|
|
|
has low => ( is => 'ro', isa => Num, required => 1, init_arg => 'l' ); |
20
|
|
|
|
|
|
|
has close => ( is => 'ro', isa => Num, required => 1, init_arg => 'c' ); |
21
|
|
|
|
|
|
|
has volume => ( is => 'ro', isa => Int, required => 1, init_arg => 'v' ); |
22
|
|
|
|
|
|
|
has symbol => ( is => 'ro', isa => Str, predicate => 1, init_arg => 'S' ); # If from stream |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
__END__ |