GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Finance::QuoteTW(3) User Contributed Perl Documentation Finance::QuoteTW(3)

Finance::QuoteTW - Fetch quotes of mutual funds in Taiwan

        use Finance::QuoteTW;

        $q = Finance::QuoteTW->new(encoding => 'utf8');  # The default encoding is big5
        @tisc_fund = $q->fetch(site => 'tisc');          # Fetch all fund quotes from www.tisc.com.tw
        $tisc_fund = $q->fetch(site => 'tisc');          # Do the same thing but get an array reference
        @us_funds  = $q->fetch(site => 'blackrock', name => 'taiwan.*'); # Select funds with regex
        %all_funds = $q->fetch_all;                      # Fetch all available fund quotes
        %all_onshore_funds  = $q->fetch_all('onshore');  # Fetch all available onshore fund quotes
        %all_offshore_funds = $q->fetch_all('offshore'); # Fetch all available offshore fund quotes

Finance::QuoteTW provides a easy way to get the latest fund quotes from various website in Taiwan

Take an optional argument 'encoding'. The default value is big5.

        Finance::QuoteTW->new(encoding => 'utf8');

Return currently available site names.

        $q->names;
        $q->names('onshore');
        $q->names('offshore');

Return all fund quotes from specified site. You can use regex to filter the fund quotes. The return value is a hash of array. Every hash contains a single fund information. The attributes are: name, date, nav, change, type, currency

        $q->fetch( site => 'tisc' );
        $q->fetch( site => 'blackrock', name => 'taiwan.*');
        $q->fetch( site => 'jpmrich',   type => 'onshore');

Fetch fund quotes from all available sites. The return value is a hash (or a hash reference). The keys of the hash is the site abbreviations.

        $q->fetch_all;
        $q->fetch_all('onshore');
        $q->fetch_all('offshore');

Alec Chen <alec@cpan.org>

Copyright (C) 2007 by Alec Chen. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

2008-09-01 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.