line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::Alpaca::Struct::Bar 0.9902 { |
2
|
17
|
|
|
17
|
|
127
|
use strictures 2; |
|
17
|
|
|
|
|
111
|
|
|
17
|
|
|
|
|
603
|
|
3
|
17
|
|
|
17
|
|
2877
|
use feature 'signatures'; |
|
17
|
|
|
|
|
24
|
|
|
17
|
|
|
|
|
963
|
|
4
|
17
|
|
|
17
|
|
84
|
no warnings 'experimental::signatures'; |
|
17
|
|
|
|
|
32
|
|
|
17
|
|
|
|
|
639
|
|
5
|
|
|
|
|
|
|
# |
6
|
17
|
|
|
17
|
|
78
|
use Type::Library 0.008 -base, -declare => qw[Bar]; |
|
17
|
|
|
|
|
442
|
|
|
17
|
|
|
|
|
87
|
|
7
|
17
|
|
|
17
|
|
15163
|
use Type::Utils; |
|
17
|
|
|
|
|
122082
|
|
|
17
|
|
|
|
|
180
|
|
8
|
17
|
|
|
17
|
|
23538
|
use Types::Standard qw[Bool Enum Int Num Ref Str]; |
|
17
|
|
|
|
|
36
|
|
|
17
|
|
|
|
|
84
|
|
9
|
17
|
|
|
17
|
|
20125
|
use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" }; |
|
17
|
|
|
|
|
383
|
|
|
17
|
|
|
|
|
104
|
|
10
|
|
|
|
|
|
|
class_type Bar, { class => __PACKAGE__ }; |
11
|
|
|
|
|
|
|
coerce( Bar, from Ref() => __PACKAGE__ . q[->new($_)] ); |
12
|
|
|
|
|
|
|
# |
13
|
17
|
|
|
17
|
|
5122
|
use Moo; |
|
17
|
|
|
|
|
30
|
|
|
17
|
|
|
|
|
135
|
|
14
|
17
|
|
|
17
|
|
5600
|
use lib './lib'; |
|
17
|
|
|
|
|
30
|
|
|
17
|
|
|
|
|
105
|
|
15
|
17
|
|
|
17
|
|
8783
|
use Finance::Alpaca::Types; |
|
17
|
|
|
|
|
43
|
|
|
17
|
|
|
|
|
179
|
|
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__ |