| 1 | # Virt-X exchange setups. | ||
| 2 | |||
| 3 | # Copyright 2005, 2006, 2007, 2008, 2009 Kevin Ryde | ||
| 4 | |||
| 5 | # This file is part of Chart. | ||
| 6 | # | ||
| 7 | # Chart is free software; you can redistribute it and/or modify it under the | ||
| 8 | # terms of the GNU General Public License as published by the Free Software | ||
| 9 | # Foundation; either version 3, or (at your option) any later version. | ||
| 10 | # | ||
| 11 | # Chart is distributed in the hope that it will be useful, but WITHOUT ANY | ||
| 12 | # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
| 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | ||
| 14 | # details. | ||
| 15 | # | ||
| 16 | # You should have received a copy of the GNU General Public License along | ||
| 17 | # with Chart. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | |||
| 19 | package App::Chart::Suffix::VX; | ||
| 20 | |||
| 21 | use strict; | ||
| 22 | use warnings; | ||
| 23 | use Locale::TextDomain 'App-Chart'; | ||
| 24 | |||
| 25 | use App::Chart; | ||
| 26 | use App::Chart::Sympred; | ||
| 27 | use App::Chart::Suffix::SW; | ||
| 28 | use App::Chart::Yahoo; | ||
| 29 | |||
| 30 | my $pred = App::Chart::Sympred::Suffix->new ('.VX'); | ||
| 31 | $App::Chart::Suffix::SW::timezone_switzerland->setup_for_symbol ($pred); | ||
| 32 | |||
| 33 | # .VX not listed in http://finance.yahoo.com/exchanges as of July 2008, | ||
| 34 | # guess same as .SW | ||
| 35 | App::Chart::Yahoo::setup_quote_delay_alias ($pred, '.SW'); | ||
| 36 | |||
| 37 | |||
| 38 | #------------------------------------------------------------------------------ | ||
| 39 | # weblink - only the home page for now ... | ||
| 40 | # | ||
| 41 | # virt-x.com company info pages are based on ISIN codes, not the symbol, | ||
| 42 | # would need to extract that to do web links (if haven't already got it in | ||
| 43 | # the database info) | ||
| 44 | # | ||
| 45 | |||
| 46 | App::Chart::Weblink->new | ||
| 47 | (pred => $pred, | ||
| 48 | name => __('_Virt-X Home Page'), | ||
| 49 | desc => __('Open web browser at the Virt-X Stock Exchange home page'), | ||
| 50 | url => 'http://www.virt-x.com/index.html'); | ||
| 51 | |||
| 52 | |||
| 53 | 1; | ||
| 54 | __END__ |