-
Notifications
You must be signed in to change notification settings - Fork 165
/
Copy pathCalcExpiry.h
34 lines (27 loc) · 1.58 KB
/
CalcExpiry.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/************************************************************************
* Copyright(c) 2011, One Unified. All rights reserved. *
* email: [email protected] *
* *
* This file is provided as is WITHOUT ANY WARRANTY *
* without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* This software may not be used nor distributed without proper license *
* agreement. *
* *
* See the file LICENSE.txt for redistribution information. *
************************************************************************/
#pragma once
// http://www.theoptionsguide.com/expiration-date.aspx
// http://www.cboe.com/TradTool/strikepricecode.aspx
#include <boost/date_time/gregorian/gregorian.hpp>
namespace ou { // One Unified
namespace tf { // TradeFrame
namespace option { // options
boost::gregorian::date CurrentFrontMonthExpiry( boost::gregorian::date date );
boost::gregorian::date Next3rdFriday( boost::gregorian::date date );
boost::gregorian::date FuturesExpiry( boost::gregorian::date date );
boost::gregorian::date FuturesOptionExpiry( boost::gregorian::date date );
} // namespace option
} // namespace tf
} // namespace ou