| 1 | # Caracas Stock Exchange setups. | ||
| 2 | |||
| 3 | # Copyright 2007, 2008, 2009, 2010 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::CR; | ||
| 20 | use 5.006; | ||
| 21 | use strict; | ||
| 22 | use warnings; | ||
| 23 | use Locale::TextDomain 'App-Chart'; | ||
| 24 | |||
| 25 | use App::Chart::Glib::Ex::MoreUtils; | ||
| 26 | use App::Chart; | ||
| 27 | use App::Chart::Sympred; | ||
| 28 | use App::Chart::TZ; | ||
| 29 | use App::Chart::Weblink; | ||
| 30 | use App::Chart::Yahoo; | ||
| 31 | |||
| 32 | |||
| 33 | my $timezone_caracas = App::Chart::TZ->new | ||
| 34 | (name => __('Caracas'), | ||
| 35 | choose => [ 'America/Caracas' ], | ||
| 36 | fallback => 'VET+4:30'); | ||
| 37 | |||
| 38 | # Indexes: | ||
| 39 | # ^VEDOW | ||
| 40 | # ^VEDOWD | ||
| 41 | # ^DWVE | ||
| 42 | # ^DWVED | ||
| 43 | # ^DWVET | ||
| 44 | # ^DWVEDT | ||
| 45 | # | ||
| 46 | my $pred_indexes = App::Chart::Sympred::Regexp->new (qr/^\^(DW)?VE/); | ||
| 47 | |||
| 48 | # There's a couple like IBC.CR which show up in an index search (for | ||
| 49 | # caracas) at yahoo, but no actual data it seems (as of March 2007). | ||
| 50 | # Dunno what quote delay would apply, leave App::Chart::Yahoo default 20 mins. | ||
| 51 | # | ||
| 52 | my $pred_shares = App::Chart::Sympred::Suffix->new ('.CR'); | ||
| 53 | |||
| 54 | my $pred_any = App::Chart::Sympred::Any->new ($pred_indexes, $pred_shares); | ||
| 55 | $timezone_caracas->setup_for_symbol ($pred_any); | ||
| 56 | |||
| 57 | # Dunno | ||
| 58 | |||
| 59 | #------------------------------------------------------------------------------ | ||
| 60 | # weblink - only home page for now | ||
| 61 | # | ||
| 62 | |||
| 63 | App::Chart::Weblink->new | ||
| 64 | (pred => $pred_any, | ||
| 65 | name => __('_Caracas Stock Exchange'), | ||
| 66 | desc => __('Open web browser at the Caracas Stock Exchange home page'), | ||
| 67 | url => App::Chart::Glib::Ex::MoreUtils::lang_select | ||
| 68 | (es => 'http://www.bolsadecaracas.com', | ||
| 69 | en => 'http://www.bolsadecaracas.com/eng/index.jsp')); | ||
| 70 | |||
| 71 | 1; | ||
| 72 | __END__ |