Finance::Bank::SCSB::TW - Check Taiawn SCSB bank info


Finance-Bank-SCSB-TW documentation  | view source Contained in the Finance-Bank-SCSB-TW distribution.

Index


NAME

Top

Finance::Bank::SCSB::TW - Check Taiawn SCSB bank info

SYNOPSIS

Top

    use Finance::Bank::SCSB::TW;

    my $rate = Finance::Bank::SCSB::TW::currency_exchange_rate

    print YAML::Dump($rate);

DESCRIPTION

Top

This module provides a rudimentary interface to the online SCSB banking system at http://www.scsb.com.tw/.

You will need either Crypt::SSLeay or IO::Socket::SSL installed for HTTPS support to work with LWP.

FUNCTIONS

Top

currency_exchange_rate

Retrieve the table of foriegn currency exchange rate. All rates are exchanged with NTD. It returns an arrayref of hash with each one looks like this:

    {
        zh_currency_name => "美金現金",
        en_currency_name => "USD CASH",
        buy_at           => 33.06,
        sell_at          => 33.56
    }

The returned reference is also an object of Finance::Bank::SCSB::TW::CurrencyExchangeRateCollection, see the documents there for the reference of instance methods.

check_balance($id, $username, $password)

Retrieve your NTD balance. id is the 10-digit Taiwan ID. username and password is whatever you defined at the bank.

WARNING

Top

This is code for online banking, and that means your money, and that means BE CAREFUL. You are encouraged, nay, expected, to audit the source of this module yourself to reassure yourself that I am not doing anything untoward with your banking data. This software is useful to me, but is provided under NO GUARANTEE, explicit or implied.

AUTHOR

Top

Kang-min Liu <gugod@gugod.org>

COPYRIGHT

Top


Finance-Bank-SCSB-TW documentation  | view source Contained in the Finance-Bank-SCSB-TW distribution.