Finance::Quote::FinanceCanada(3) User Contributed Perl Documentation Finance::Quote::FinanceCanada(3)NAME
Finance::Quote::FinanceCanada - Obtain stock and mutual fund prices from finance.canada.com
SYNOPSIS
use Finance::Quote;
$q = Finance::Quote->new;
# Can failover to other methods
%quotes = $q->fetch("canada", "stock_fund-code");
# Use this module only
%quotes = $q->fetch("financecanada", "stock_fund-code");
DESCRIPTION
This module obtains information about Canadian Stock and Mutual Funds from finanace.canada.com. The information source "canada" can be
used if the information source is unimportant, or "financecanada" to specifically use finance.canada.com.
STOCK_FUND-CODE
Canadian stocks/mutual funds do not have a unique symbol identifier. This module uses the symbols as used on finance.canada.com. The
simplest way to fetch the ID for a particular stock/fund is to go to finance.canada.com, search for your particular stock or mutual fund,
and note the symbol ID. This is helpfully provided by the site in their returned HTML quote.
LABELS RETURNED
Information available from financecanada may include the following labels:
method source name symbol currency date nav last price
SEE ALSO
Finance Canada.com website - http://finance.canada.com/
Finance::Quote
perl v5.12.1 2009-10-05 Finance::Quote::FinanceCanada(3)
Check Out this Related Man Page
Finance::Quote::TSX(3) User Contributed Perl Documentation Finance::Quote::TSX(3)NAME
Finance::Quote::TSX - Obtain quotes from the Toronto Stock Exchange.
SYNOPSIS
use Finance::Quote;
$q = Finance::Quote->new;
%stockinfo = $q->fetch("tsx","NT-T"); # Only query TSX.
%stockinfo = $q->fetch("canada","NT"); # Failover to other sources OK.
DESCRIPTION
This module obtains information from the Toronto Stock Exchange through the page http://www.TMXmoney.com/.
This module is not loaded by default on a Finance::Quote object. It's possible to load it explicity by placing "TSX" in the argument list
to Finance::Quote->new().
This module provides both the "tsx" and "toronto" fetch methods. Please use the "canada" fetch method if you wish to have failover with
other sources for Canadian stocks. Using the "tsx" method will guarantee that your information only comes from the Toronto Stock Exchange.
LABELS RETURNED
The following labels are returned by Finance::Quote::TSX: name, last, net, p_change, volume and exchange.
This module returns less information (labels) than other sources but it's able to retrieve them faster because each HTTP request performed
can return up to 10 stocks. Thus, if the labels provided by this module are sufficient for your application then you should give it a try.
SEE ALSO
Toronto Stock Exchange, http://www.TMXmoney.com/
perl v5.12.1 2009-10-05 Finance::Quote::TSX(3)
What are the advantages of putting users into groups? I understand that in a corporate environment, you should create a group for each department. ie: putting finance employees into a finance group.
But are there any system advantages for doing that? How would it make it easier on the system... (3 Replies)
:confused: hi all,
i have csv file with three comma separated columns
i/p file
First_Name, Address, Last_Name
XXX, "456 New albany \n newyork, Unitedstates \n 45322-33", YYY\n
ZZZ, "654 rifle park \n toronto, canada \n 43L-w3b", RRR\n
is there any way i can remove \n (newline) from... (10 Replies)
I'm have some trouble, I'm doing some unix stuff for fun and I can't get something to work
I have a getquote.sh script:
wget "http://finance.yahoo.com/q?s=$1" -o /dev/null -O quote
echo `echo $1; egrep "Last Trade:" quote | cut -d ">" -f 3 | cut -d "<" -f 1`
to get the current trading price... (1 Reply)
dear all,
I am having problem writing a shell script to search datas in one file.
example of data stored in home/david/database.txt
database.txt:
------------
index name sex country
1 david m canada
2 cyntia f england
i wish to have a script to ask for user input,... (1 Reply)
how to get all name of EMP whose DEPT is finance....using AWK scripting
EMP AGE SEX DEPT SAL
ram finance
shyam admin
ravi r&d
rachna finance
do not use $1,$2.......... (1 Reply)
ex:
a file has :
122323
123456456
125656879
678989965t635
234323432
b has :
this is finance no.
this is phone no
this is extn
ajkdgag
idjsidj
i want the o/p as:
122323 his is finance no.
123456456 this is phone no
123456456 ... (4 Replies)
Dear Experts
My source file contains the symbol cloud (☁).
How do i replace this ☁ symbol whose Unicode value is 2601 in linux file with single quotes ?
Any help will be much appreciated.
Many thanks (4 Replies)
Hi,
I would like to change time zone Linux from IST to US/Canada but not getting the option , I have run the command setup -> timezone configuration but not getting the option of us/canada or pacific us/canada.
Please suggest.
Regards,
Manoj (1 Reply)
Hi All,
There is a link from were I usually search somthing and fetch the data from.
Is there any way to automate it through a script if I mention search criteria in a note pad.
I mean the script to search the content on the notepad and resutls should be placed into another file.
... (2 Replies)
I'm trying to parse the website, finance.yahoo.com/q?s=ge&ql=1, and retrieve the info between <span id="yfs_l84_ge">18.98</span>, so 18.98.
What would be the best way to go about this in a bash script?
Any help or suggestions will be much appreciated.
Thanks! (2 Replies)
Hi,
I have three different files about a warehouse's stock status.
Each file shows storage locations, stored product names, quantity of the part and at last column, its price.
When there is a change in price, I open those files one by one, search related product name at each row and change... (4 Replies)
I have a script that hits my website for stock quotes and pulls prices. currently it does this one by one until all the symbols have been pulled. I've solved for bandwidth issues by putting in a random 1-10 second sleep function, but this will take too long.
I know that I can do everything at... (2 Replies)
Hi All ,
We have source data file as csv file and since data could contain commas ,each attribute is quoted into double quotes.However problem is that some of the attributa data also contain double quotes which is converted to double double quote while creating csv file
XLs data :
... (2 Replies)