| 1 | # US pink sheets 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::PK; | ||
| 20 | use strict; | ||
| 21 | use warnings; | ||
| 22 | use URI::Escape; | ||
| 23 | use Locale::TextDomain 'App-Chart'; | ||
| 24 | |||
| 25 | use App::Chart; | ||
| 26 | use App::Chart::Sympred; | ||
| 27 | use App::Chart::TZ; | ||
| 28 | use App::Chart::Yahoo; | ||
| 29 | |||
| 30 | |||
| 31 | my $pred = App::Chart::Sympred::Suffix->new ('.PK'); | ||
| 32 | App::Chart::TZ->newyork->setup_for_symbol ($pred); | ||
| 33 | |||
| 34 | |||
| 35 | #------------------------------------------------------------------------------ | ||
| 36 | # weblink - Pink Sheets web site | ||
| 37 | |||
| 38 | App::Chart::Weblink->new | ||
| 39 | (pred => $pred, | ||
| 40 | name => __('Pink Sheets _Company Information'), | ||
| 41 | desc => __('Open web browser at the Pink Sheets page for this company'), | ||
| 42 | proc => sub { | ||
| 43 | my ($symbol) = @_; | ||
| 44 | return 'http://www.pinksheets.com/quote/company_profile.jsp?symbol=' | ||
| 45 | . URI::Escape::uri_escape (App::Chart::symbol_sans_suffix ($symbol)); | ||
| 46 | }); | ||
| 47 | |||
| 48 | |||
| 49 | 1; | ||
| 50 | __END__ |