-
Notifications
You must be signed in to change notification settings - Fork 165
/
Copy pathGatherOptions.h
41 lines (33 loc) · 1.57 KB
/
GatherOptions.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
/************************************************************************
* Copyright(c) 2021, 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. *
************************************************************************/
/*
* File: GatherOptions.h
* Author: [email protected]
* Project: TFOptions
* Created on October 7, 2021, 21:17
*/
#pragma once
#include <functional>
#include <TFTrading/Instrument.h>
#include <TFOptions/Option.h>
namespace ou { // One Unified
namespace tf { // TradeFrame
namespace option { // options
using pOption_t = Option::pOption_t;
using pInstrument_t = ou::tf::Instrument::pInstrument_t;
using fOption_t = std::function<void(pOption_t)>; // incrementally obtain built options
using fGatherOptions_t = std::function<void( pInstrument_t, fOption_t&& )>;
} // namespace option
} // namespace tf
} // namespace ou