line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::Robinhood::Equity::Earnings::EPS; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=encoding utf-8 |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=for stopwords watchlist watchlists untradable urls |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Finance::Robinhood::Equity::Earnings::EPS - Earnings Per Share Data |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 SYNOPSIS |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
use Finance::Robinhood; |
14
|
|
|
|
|
|
|
my $rh = Finance::Robinhood->new; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
my $earnings = $rh->equity_earnings; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
for my $earnings ( $rh->equity_earnings('7d')->all ) { |
19
|
|
|
|
|
|
|
CORE::say sprintf 'Earnings for %s: expected: %.2f | actual: %.2f', |
20
|
|
|
|
|
|
|
$earnings->symbol, $earnings->eps->estimate, $earnings->eps->actual; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=cut |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
our $VERSION = '0.92_001'; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub _test__init { |
28
|
1
|
|
|
1
|
|
11514
|
my $rh = t::Utility::rh_instance(1); |
29
|
0
|
|
|
|
|
|
my $eps = $rh->equity_earnings( range => -7 )->current->eps; |
30
|
0
|
|
|
|
|
|
isa_ok( $eps, __PACKAGE__ ); |
31
|
0
|
|
|
|
|
|
t::Utility::stash( 'EPS', $eps ); |
32
|
|
|
|
|
|
|
} |
33
|
1
|
|
|
1
|
|
8
|
use Mojo::Base-base, -signatures; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
8
|
|
34
|
1
|
|
|
1
|
|
191
|
use Mojo::URL; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
35
|
|
|
|
|
|
|
# |
36
|
1
|
|
|
1
|
|
28
|
use Time::Moment; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
65
|
|
37
|
|
|
|
|
|
|
# |
38
|
|
|
|
|
|
|
has _rh => undef => weak => 1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 METHODS |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 C |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Expectations. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 C |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Reality. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=cut |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
has [ 'estimate', 'actual' ]; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 LEGAL |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This is a simple wrapper around the API used in the official apps. The author |
57
|
|
|
|
|
|
|
provides no investment, legal, or tax advice and is not responsible for any |
58
|
|
|
|
|
|
|
damages incurred while using this software. This software is not affiliated |
59
|
|
|
|
|
|
|
with Robinhood Financial LLC in any way. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
For Robinhood's terms and disclosures, please see their website at |
62
|
|
|
|
|
|
|
https://robinhood.com/legal/ |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 LICENSE |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Copyright (C) Sanko Robinson. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify it under |
69
|
|
|
|
|
|
|
the terms found in the Artistic License 2. Other copyrights, terms, and |
70
|
|
|
|
|
|
|
conditions may apply to data transmitted through this module. Please refer to |
71
|
|
|
|
|
|
|
the L section. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 AUTHOR |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Sanko Robinson Esanko@cpan.orgE |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=cut |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
1; |