Skip to content

Commit

Permalink
Expose historicals call in ::Instument
Browse files Browse the repository at this point in the history
  • Loading branch information
sanko committed May 19, 2017
1 parent 3e854ff commit 44811db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
Expand Up @@ -2,6 +2,8 @@ Revision history for Perl extension Finance-Robinhood

{{$NEXT}}

- Expose historicals call in ::Instument

0.19 2017-03-29T16:26:33Z

- Robinhood Instant/Gold features:
Expand Down
2 changes: 1 addition & 1 deletion lib/Finance/Robinhood/Instrument.pm
Expand Up @@ -59,7 +59,7 @@ sub _build_quote {
return Finance::Robinhood::quote(shift->symbol())->{results}[0];
}
sub _build_historicals {
sub historicals {
return Finance::Robinhood::historicals(shift->symbol(), shift, shift);
}
Expand Down
2 changes: 2 additions & 0 deletions t/09_instrument.t
Expand Up @@ -29,5 +29,7 @@ isa_ok $aapl->market, 'Finance::Robinhood::Market', '->market( )';
isa_ok $aapl->splits->[0], 'Finance::Robinhood::Instrument::Split',
'->splits( )';
isa_ok $aapl->quote, 'Finance::Robinhood::Quote', '->quote( )';
isa_ok $aapl->historicals('day', 'year')->[0], 'HASH',
'->historicals("day", "year")';
#
done_testing;

0 comments on commit 44811db

Please sign in to comment.