NAME

Finance::Robinhood::News - Represents a Single News Article

SYNOPSIS

use Text::Wrap qw[wrap];
use Finance::Robinhood;
my $rh = Finance::Robinhood->new;
CORE::say wrap( '', '    ', $_->title . "\n" . $_->summary ) for $rh->news('TSLA')->take(10);

METHODS

api_source( )

Returns the article's source.

author( )

If available, this will return the author who wrote the article.

num_clicks( )

The current total number of times this article has been clicked by Robinhod's users.

source( )

Returns the article's source in a format suited for display.

summary( )

Returns a brief (often truncated) summary of the article.

title( )

Returns the article's title.

uuid( )

Returns the article's unique ID.

preview_image_url( )

If this article has a thumbnail, this will return the URL as a Mojo::Url object.

relay_url( )

Returns a Mojo::URL object containing the URL Robinhood would like you to use. This will register as a click and will then redirect to the article itself.

url( )

Mojo::URL object containing a direct link to the article.

currency_id( )

If the news is related to a particular forex currency, this will return the Finance::Robinhood::Forex::Currency object.

instrument( )

If the new is related to a particular equity instrument, this will return the Finance::Robihood::Equity::Instrument object.

published_at( )

$article->published_at->to_string;

Returns the time the article was published as a Time::Moment object.

updated_at( )

$article->updated_at->to_string;

Returns the time the article was published or last updated as a Time::Moment object.

LEGAL

This is a simple wrapper around the API used in the official apps. The author provides no investment, legal, or tax advice and is not responsible for any damages incurred while using this software. This software is not affiliated with Robinhood Financial LLC in any way.

For Robinhood's terms and disclosures, please see their website at https://robinhood.com/legal/

LICENSE

Copyright (C) Sanko Robinson.

This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module. Please refer to the LEGAL section.

AUTHOR

Sanko Robinson <sanko@cpan.org>