Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
ICE Class Reference

#include <qle/calendars/ice.hpp>

+ Inheritance diagram for ICE:
+ Collaboration diagram for ICE:

Classes

class  EndexEnergyImpl
 
class  EndexEquitiesImpl
 
class  FuturesEUImpl
 
class  FuturesEUImpl_1
 
class  FuturesSingaporeImpl
 
class  FuturesUSImpl
 
class  FuturesUSImpl_1
 
class  FuturesUSImpl_2
 
class  SwapTradeUKImpl
 
class  SwapTradeUSImpl
 

Public Types

enum  Market {
  FuturesUS , FuturesUS_1 , FuturesUS_2 , FuturesEU ,
  FuturesEU_1 , EndexEnergy , EndexEquities , SwapTradeUS ,
  SwapTradeUK , FuturesSingapore
}
 

Public Member Functions

 ICE (Market market)
 

Detailed Description

Various ICE calendars outlined on the website at: https://www.theice.com/holiday-hours

Definition at line 33 of file ice.hpp.

Member Enumeration Documentation

◆ Market

enum Market
Enumerator
FuturesUS 

ICE Futures U.S. Currency, Stock and Credit Index, Metal, Nat Gas, Power, Oil and Environmental

FuturesUS_1 

ICE Futures U.S. Sugar, Cocoa, Coffee, Cotton and FCOJ.

FuturesUS_2 

ICE Futures U.S. Canola.

FuturesEU 

ICE Futures Europe.

FuturesEU_1 

ICE Futures Europe for contracts where 26 Dec is a holiday.

EndexEnergy 

ICE Endex European power and natural gas products.

EndexEquities 

ICE Endex European equities.

SwapTradeUS 

ICE Swap Trade U.S.

SwapTradeUK 

ICE Swap Trade U.K.

FuturesSingapore 

ICE futures Singapore.

Definition at line 97 of file ice.hpp.

97 {
98 FuturesUS, /*!< ICE Futures U.S. Currency, Stock and Credit Index,
99 Metal, Nat Gas, Power, Oil and Environmental */
100 FuturesUS_1, //!< ICE Futures U.S. Sugar, Cocoa, Coffee, Cotton and FCOJ
101 FuturesUS_2, //!< ICE Futures U.S. Canola
102 FuturesEU, //!< ICE Futures Europe
103 FuturesEU_1, //!< ICE Futures Europe for contracts where 26 Dec is a holiday
104 EndexEnergy, //!< ICE Endex European power and natural gas products
105 EndexEquities, //!< ICE Endex European equities
106 SwapTradeUS, //!< ICE Swap Trade U.S.
107 SwapTradeUK, //!< ICE Swap Trade U.K.
108 FuturesSingapore //!< ICE futures Singapore
109 };
@ FuturesEU_1
ICE Futures Europe for contracts where 26 Dec is a holiday.
Definition: ice.hpp:103
@ FuturesEU
ICE Futures Europe.
Definition: ice.hpp:102
@ FuturesUS_2
ICE Futures U.S. Canola.
Definition: ice.hpp:101
@ FuturesSingapore
ICE futures Singapore.
Definition: ice.hpp:108
@ FuturesUS_1
ICE Futures U.S. Sugar, Cocoa, Coffee, Cotton and FCOJ.
Definition: ice.hpp:100
@ FuturesUS
Definition: ice.hpp:98
@ EndexEnergy
ICE Endex European power and natural gas products.
Definition: ice.hpp:104
@ EndexEquities
ICE Endex European equities.
Definition: ice.hpp:105
@ SwapTradeUS
ICE Swap Trade U.S.
Definition: ice.hpp:106
@ SwapTradeUK
ICE Swap Trade U.K.
Definition: ice.hpp:107

Constructor & Destructor Documentation

◆ ICE()

ICE ( ICE::Market  market)

Definition at line 26 of file ice.cpp.

26 {
27
28 // All calendar instances on the same market share the same implementation instance
29 static ext::shared_ptr<QuantLib::Calendar::Impl> futuresUSImpl(new ICE::FuturesUSImpl);
30 static ext::shared_ptr<QuantLib::Calendar::Impl> futuresUSImpl_1(new ICE::FuturesUSImpl_1);
31 static ext::shared_ptr<QuantLib::Calendar::Impl> futuresUSImpl_2(new ICE::FuturesUSImpl_2);
32 static ext::shared_ptr<QuantLib::Calendar::Impl> futuresEUImpl(new ICE::FuturesEUImpl);
33 static ext::shared_ptr<QuantLib::Calendar::Impl> futuresEUImpl_1(new ICE::FuturesEUImpl_1);
34 static ext::shared_ptr<QuantLib::Calendar::Impl> endexEnergyImpl(new ICE::EndexEnergyImpl);
35 static ext::shared_ptr<QuantLib::Calendar::Impl> endexEquitiesImpl(new ICE::EndexEquitiesImpl);
36 static ext::shared_ptr<QuantLib::Calendar::Impl> swapTradeUSImpl(new ICE::SwapTradeUSImpl);
37 static ext::shared_ptr<QuantLib::Calendar::Impl> swapTradeUKImpl(new ICE::SwapTradeUKImpl);
38 static ext::shared_ptr<QuantLib::Calendar::Impl> futuresSingaporeImpl(new ICE::FuturesSingaporeImpl);
39
40 switch (market) {
41 case FuturesUS:
42 impl_ = futuresUSImpl;
43 break;
44 case FuturesUS_1:
45 impl_ = futuresUSImpl_1;
46 break;
47 case FuturesUS_2:
48 impl_ = futuresUSImpl_2;
49 break;
50 case FuturesEU:
51 impl_ = futuresEUImpl;
52 break;
53 case FuturesEU_1:
54 impl_ = futuresEUImpl_1;
55 break;
56 case EndexEnergy:
57 impl_ = endexEnergyImpl;
58 break;
59 case EndexEquities:
60 impl_ = endexEquitiesImpl;
61 break;
62 case SwapTradeUS:
63 impl_ = swapTradeUSImpl;
64 break;
65 case SwapTradeUK:
66 impl_ = swapTradeUKImpl;
67 break;
69 impl_ = futuresSingaporeImpl;
70 break;
71 default:
72 QL_FAIL("unknown market");
73 }
74}