App/Chart/Suffix/CO.pm untested

filter: Statementstmt 0.0% 0 / 34 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod n/a totaltotal 0.0% 0 / 43 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # Copenhagen Stock Exchange setups.
2  
3 # Copyright 2005, 2006, 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::CO;
20 use 5.006;
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::TZ;
28 use App::Chart::Weblink;
29 use App::Chart::Yahoo;
30  
31  
32 my $timezone_copenhagen = App::Chart::TZ->new
33 (name => __('Copenhagen'),
34 choose => [ 'Europe/Copenhagen' ],
35 fallback => 'CET-1');
36  
37 # ^KFX index
38 my $pred_all = App::Chart::Sympred::Regexp->new (qr/^\^KF|\.CO$/);
39 my $pred_shares = App::Chart::Sympred::Suffix->new ('.CO');
40  
41 $timezone_copenhagen->setup_for_symbol ($pred_all);
42  
43 # http://omxgroup.com/nordicexchange/Abouttrading/tradinginformation/tradinghours/
44 # Equities from 9:00 or 9:15, bonds from 8:00 or 8:30
45 # Closing 16:50 or with further call to 17:00, bulletin board to 17:30
46 #
47 # (yahoo-quote-lock! copenhagen-symbol?
48 # #,(hms->seconds 8 0 0) #,(hms->seconds 17 30 0))
49 # (yahoo-quote-lock! yahoo-index-symbol-copenhagen?
50 # #,(hms->seconds 8 0 0) #,(hms->seconds 17 0 0))
51  
52  
53  
54 #------------------------------------------------------------------------------
55 # weblink - only the home page for now ... and it redirects to OMX Nordic
56  
57 App::Chart::Weblink->new
58 (pred => $pred_all,
59 name => __('_Copenhagen Stock Exchange Home Page'),
60 desc => __('Open web browser at the Copenhagen Stock Exchange home page'),
61 url => 'http://www.xcse.dk');
62  
63  
64 1;
65 __END__