Finance::Robinhood::Market - Information Related to a Specific Exchange
use Finance::Robinhood::Market; my $NYSE = Finance::Robinhood::Market->new('XNYS'); my $MC = Finance::Robinhood::instrument('AAPL'); my $market = $MC->market(); print $market->acronym() . ' is based in ' . $market->city();
This class represents a single financial market. Objects are usually created by Finance::Robinhood. If you're looking for information about the market where a particular security is traded, use Finance::Robinhood::instrument($symbol)->market(). To gather a list of all supported markets, use Finance::Robinhood->markets().
Finance::Robinhood::instrument($symbol)->market()
Finance::Robinhood->markets()
This class has several getters and a few methods as follows...
new( ... )
Create a new object for the given market. Use the ISO 10383 Market Identifier Code. For example...
my $NASDAQ = Finance::Robinhood::Market->new('XNAS');
...would scrape the API and return an object related to the NASDAQ. Currently supported MICs are:
OTCM Otc Markets XASE NYSE Mkt Llc ARCX NYSE Arca XNYS New York Stock Exchange, Inc. XNAS NASDAQ - All Markets BATS BATS Exchange
acronym( )
The common acronym used for this particular market or exchange.
city( )
The city this particular market is based in.
country( )
The country this particular market is based in.
mic( )
Market Identifier Code (MIC) used to identify this exchange or market.
See ISO 10383.
name( )
The common name of the market.
operating_mic( )
Identifies the entity operating the exchange.
timezone( )
The time zone this market operates in.
website( )
Returns the URL for this market's website.
todays_hours( )
Generates a Finance::Robinhood::Market::Hours object for the current day's operating hours for this particular market.
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/
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.
Sanko Robinson <sanko@cpan.org>
To install Finance::Robinhood, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::Robinhood
CPAN shell
perl -MCPAN -e shell install Finance::Robinhood
For more information on module installation, please visit the detailed CPAN module installation guide.