-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathOption.h
43 lines (32 loc) · 1.71 KB
/
Option.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
35
36
37
38
39
40
41
42
43
/************************************************************************
* Copyright(c) 2013, 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
// started 2013/07/13
// Calculate an option symbol, given basic information
#include <string>
#include <boost/date_time/posix_time/posix_time.hpp>
using namespace boost::posix_time;
#include <TFTrading/TradingEnumerations.h>
#include <TFTrading/Instrument.h>
namespace ou { // One Unified
namespace tf { // TradeFrame
namespace iqfeed { // IQFeed
typedef ou::tf::Instrument::pInstrument_t pInstrument_t;
void ComposeOptionName(
/* OUT */ std::string& sCall, std::string& sPut,
/* IN */ const std::string& sUnderlying, ou::tf::OptionSide::EOptionSide option, ptime dtExpiry, double dblStrike );
void SetAlternateName( const pInstrument_t& pInstrument );
} // namespace iqfeed
} // namespace TradeFrame
} // namespace ou