NAME
Finance::Robinhood::Equity::Market::Hours - Represents an Equity Market's Operating Hours
SYNOPSIS
use Finance::Robinhood;
my $rh = Finance::Robinhood->new;
my $nyse = $rh->equity_market_by_mic('XNAS');
CORE::say 'The Nasdaq is ' . ($nyse->hours->is_open ? '' : 'not ' ) . 'open today';
METHODS
is_open( )
Returns a true value if opens for trading on this date.
opens_at( )
$hours->opens_at;
If the market opens today, this returns a Time::Moment object.
closes_at( )
$hours->closes_at;
If the market was open, this returns a Time::Moment object.
extended_opens_at( )
$hours->extended_opens_at;
If the market was open and had an extended hours trading session, this returns a Time::Moment object.
extended_closes_at( )
$hours->extended_closes_at;
If the market was open and had an extended hours trading session, this returns a Time::Moment object.
date( )
$hours->date;
Returns a Time::Moment object.
next_open_hours( )
This returns a Finance::Robinhood::Equity::Market::Hours object for the next day the market is open.
previous_open_hours( )
This returns a Finance::Robinhood::Equity::Market::Hours object for the previous day the market was open.
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>