The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Finance::Robinhood::Market::Hours - Trading Hours for a Particular Exchange

SYNOPSIS

    use Finance::Robinhood::Market::Hours;

    my $NASDAQ = Finance::Robinhood::Market->new('XNAS');
    warn 'Market opens at ' .  $NASDAQ->todays_hours()->opens_at();

DESCRIPTION

This class contains data related to a market's open and close times. Objects of this type are not meant to be created directly from your code.

METHODS

This class has several getters and a few methods as follows...

is_open( )

Boolean which may represents whether or not the market is currently open. Note that this value is cached and may not be accurate.

date( )

The particular date this object represents. This is returned in the form of a Time::Piece or DateTime object.

opens_at( )

The time the market opens for trading for this particular date. This is returned in the form of a Time::Piece or DateTime object.

closes_at( )

The time the market closes on this particular date. This is returned in the form of a Time::Piece or DateTime object.

extended_opens_at( )

The time the market opens for trading for this particular date for pre-open trading. This is returned in the form of a Time::Piece object.

extended_closes_at( )

The time the market closes on this particular date for after hours trading. This is returned in the form of a Time::Piece or DateTime object.

next_open_hours( )

Generates a Finance::Robinhood::Market::Hours object related to the nearest future date the market will be open.

previous_open_hours( )

Generates a Finance::Robinhood::Market::Hours object related to the most recent date 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. Neither this software nor its author are affiliated with Robinhood Financial LLC in any way.

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

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>