forked from MeowBot/OpenQuant.API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataRequests.cs
More file actions
107 lines (107 loc) · 1.72 KB
/
Copy pathDataRequests.cs
File metadata and controls
107 lines (107 loc) · 1.72 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
using System;
namespace OpenQuant.API
{
public class DataRequests
{
private BarRequestList barRequests = new BarRequestList();
private bool hasBarRequests;
private bool hasQuoteRequest;
private bool hasTradeRequest;
private bool hasDailyRequest;
private bool hasMarketDepthRequst;
public BarRequestList BarRequests
{
get
{
return this.barRequests;
}
}
public bool HasBarRequests
{
get
{
return this.hasBarRequests;
}
set
{
this.hasBarRequests = value;
}
}
public bool HasQuoteRequest
{
get
{
return this.hasQuoteRequest;
}
set
{
this.hasQuoteRequest = value;
}
}
public bool HasTradeRequest
{
get
{
return this.hasTradeRequest;
}
set
{
this.hasTradeRequest = value;
}
}
public bool HasDailyRequest
{
get
{
return this.hasDailyRequest;
}
set
{
this.hasDailyRequest = value;
}
}
public bool HasMarketDepthRequest
{
get
{
return this.hasMarketDepthRequst;
}
set
{
this.hasMarketDepthRequst = value;
}
}
public void AddTrade()
{
this.hasTradeRequest = true;
}
public void RemoveTrade()
{
this.hasTradeRequest = false;
}
public void AddQuote()
{
this.hasQuoteRequest = true;
}
public void RemoveQuote()
{
this.hasQuoteRequest = false;
}
public void AddDaily()
{
this.hasDailyRequest = true;
}
public void RemoveDaily()
{
this.hasDailyRequest = false;
}
public BarRequest Add(BarType barType, long barSize, bool isBarFacroryRequest)
{
return this.barRequests.Add(barType, barSize, isBarFacroryRequest);
}
public void Remove(BarType barType, long barSize)
{
this.barRequests.Remove(barType, barSize);
}
}
}