NAME

Finance::Robinhood::Equity::Prices - Represents Basic Price Data for a Single Equity Instrument

SYNOPSIS

use Finance::Robinhood;
my $rh = Finance::Robinhood->new;
my $instrument = $rh->equity_instrument_by_symbol('MSFT');

my $price = $instrument->price();

METHODS

ask_price( )

The current best ask price.

ask_size( )

The current best ask price's depth.

bid_price( )

The current best bid price.

bid_size( )

The current best bid's depth.

price( )

The current last trade price.

size( )

Size of the last trade.

ask_source( )

CORE::say $prices->ask_source->name;

If available, this returns a Finance::Robinhood::Equity::Market object that represents the source for the ask_price( ) and ask_size( ).

bid_source( )

CORE::say $prices->bid_source->name;

If available, this returns a Finance::Robinhood::Equity::Market object that represents the source for the bid_price( ) and bid_size( ).

source( )

CORE::say $prices->source->name;

If available, this returns a Finance::Robinhood::Equity::Market object that represents the source for the price( ) and size( ).

updated_at( )

$prices->updated_at();

Returns a Time::Moment object.

instrument( )

my $instrument = $prices->instrument();

Loops back to a Finance::Robinhood::Equity::Instrument 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>