App/Chart/Suffix/CBT.pm untested

filter: Statementstmt 0.0% 0 / 35 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod n/a totaltotal 0.0% 0 / 44 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # Chicago Board of Trade 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::CBT;
20 use strict;
21 use warnings;
22 use Locale::TextDomain 'App-Chart';
23  
24 use App::Chart;
25 use App::Chart::Barchart;
26 use App::Chart::Sympred;
27 use App::Chart::TZ;
28 use App::Chart::Weblink;
29 use App::Chart::Yahoo;
30  
31  
32 # think GBL bund, GBM bobl and GBS schatz which traded on european time now
33 # delisted
34 #
35 my $pred = App::Chart::Sympred::Suffix->new ('.CBT');
36 App::Chart::TZ->chicago->setup_for_symbol ($pred);
37  
38 $App::Chart::Yahoo::latest_pred->add ($pred);
39 $App::Chart::Barchart::intraday_pred->add ($pred);
40 $App::Chart::Barchart::fiveday_pred->add ($pred);
41  
42  
43 #------------------------------------------------------------------------------
44 # weblink
45 #
46 # contract specs can be found by tedious digging ...
47  
48 App::Chart::Weblink->new
49 (pred => $pred,
50 name => __('_CBOT Home page'),
51 desc => __('Open web browser at the Chicago Board of Trade home page'),
52 url => 'http://www.cbot.com');
53  
54  
55 #------------------------------------------------------------------------------
56 # barchart
57  
58 # (set! barchart-suffix-delay-alist (acons ".CBOT" 20
59 # barchart-suffix-delay-alist))
60  
61 App::Chart::Barchart::commodity_mung
62 ($pred,
63 # agricultural
64 # 'C' # corn
65 # 'ZC' # corn electronic
66 'XC' => 'XN', # corn mini-size
67 # 'YC' # corn mini-size (electronic)
68 # 'S' # soybeans
69 # 'ZS' # soybeans electronic
70 'XB' => 'XK', # soybeans mini-size
71 # 'YK' # soybeans mini-size (electronic)
72 # 'BO' # soybean oil
73 # 'ZL' # soybean oil electronic
74 # 'SM' # soybean meal
75 # 'ZM' # soybean meal electronic
76 'BS' => undef, # south american soybeans
77 'ZK' => 'ZA', # south american soybeans electronic
78 'BCX' => 'CS', # soybean crush
79 # 'W' # wheat
80 # 'ZW' # wheat electronic
81 # 'XW' # wheat mini-size
82 # 'YW' # wheat mini-size (electronic)
83 'AC' => 'AK', # ethanol
84 'ZE' => 'ZK', # ethanol electronic
85 'FZE' => 'FZ', # ethanol forward swap
86 # 'O' # oats
87 # 'ZO' # oats electronic
88 # 'RR' # rough rice
89 # 'ZR' # rough rice electronic
90  
91 # interest rate
92 # 'US' # 30-year bond
93 # 'ZB' # 30-year bond electronic
94 # 'TY' # 10-year bond
95 # 'ZN' # 10-year bond electronic
96 # 'FV' # 5-year bond
97 # 'ZF' # 5-year bond electronic
98 # 'TU' # 2-year bond
99 # 'ZT' # 2-year bond electronic
100 # 'DJCBTI' => undef, # DJ CBOT treasury index
101 # # only an index, not traded (?)
102 # 'NZ' # 30-year swaps
103 # 'QS' # 30-year swaps electronic
104 # 'NI' # 10-year interest rate swap
105 # 'SR' # 10-year interest rate swap electronic
106 'NG' => 'NJ', # 5-year interest rate swap
107 # 'SA' # 5-year interest rate swap electronic
108 # 'YE' # eurodollar mini (electronic)
109 # 'FF' # fed funds
110 # 'ZQ' # fed funds electronic
111 # 'MB' # 10-year muni bond
112 # 'ZU' # 10-year muni bond electronic
113  
114 # Dow
115 # 'YM' # DJIA mini $5 (electronic)
116 # 'DJ' # DJIA $10
117 # 'ZD' # DJIA $10 electronic
118 # 'DD' # Big DJIA $25 (electronic)
119 'ER' => 'AH', # DJ AIG excess index
120 'RE' => 'DH', # DJ real estate index
121 # 'CX' # liquid 50 swap index
122  
123 # Metals
124 # 'ZG' # gold
125 # 'YG' # gold mini
126 # 'ZI' # silver
127 # 'YI' # silver mini
128  
129 # these gone as of 2007 (?)
130 # 'AI' # DJ AIG commodity index
131 # undef => 'AJ', # DJ AIG commodity index yield
132 # 'GBL' => 'GL', # bund (electronic)
133 # 'GBM' => 'GM', # bobl (electronic)
134 # 'GBS' => 'GS', # schatz (electronic)
135 );
136  
137  
138 1;
139 __END__