| 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 | 1 | our $VERSION = '0.92_003'; | |
| 26 | |||
| 27 | 1 | ▶ | sub _test__init { |
|
Subroutine
_test__init: called CC=1 SCAR=3.5
| |||
| 28 | 1 | 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 | ▶ | use Mojo::Base-base, -signatures; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 34 | 1 | ▶ | use Mojo::URL; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 35 | # | ||
| 36 | 1 | ▶ | use Time::Moment; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 37 | # | ||
| 38 | 1 | has _rh => undef => weak => 1; | |
| 39 | |||
| 40 | =head1 METHODS | ||
| 41 | |||
| 42 | =head2 C<estimage( )> | ||
| 43 | |||
| 44 | Expectations. | ||
| 45 | |||
| 46 | =head2 C<actual( )> | ||
| 47 | |||
| 48 | Reality. | ||
| 49 | |||
| 50 | =cut | ||
| 51 | |||
| 52 | 1 | 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<LEGAL> section. | ||
| 72 | |||
| 73 | =head1 AUTHOR | ||
| 74 | |||
| 75 | Sanko Robinson E<lt>sanko@cpan.orgE<gt> | ||
| 76 | |||
| 77 | =cut | ||
| 78 | |||
| 79 | 1 | 1; | |