-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCorporateAction.cs
More file actions
158 lines (143 loc) · 2.76 KB
/
CorporateAction.cs
File metadata and controls
158 lines (143 loc) · 2.76 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
using System;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using System.Threading;
using TradingPlatform.BusinessLayer.Integration;
namespace TradingPlatform.BusinessLayer;
/// <summary>
/// Represents information about corporate action.
/// </summary>
[Published]
public class CorporateAction : BusinessObject
{
[CompilerGenerated]
private DateTime 놄놹;
[CompilerGenerated]
private string 놄놘;
[CompilerGenerated]
private Symbol 놄뇌;
[CompilerGenerated]
private string 놄녷;
[CompilerGenerated]
private CorporateActionType 놄녟;
[CompilerGenerated]
private Action 놄놱;
/// <summary>
/// Get the date and time when trade was executed
/// </summary>
public DateTime DateTime
{
[CompilerGenerated]
get
{
return 놄놹;
}
[CompilerGenerated]
private set
{
놄놹 = value;
}
}
[DataMember(Name = "ID")]
public string Id
{
[CompilerGenerated]
get
{
return 놄놘;
}
[CompilerGenerated]
protected set
{
놄놘 = value;
}
}
[DataMember(Name = "Instrument")]
public Symbol Symbol
{
[CompilerGenerated]
get
{
return 놄뇌;
}
[CompilerGenerated]
protected set
{
놄뇌 = value;
}
}
public string Details
{
[CompilerGenerated]
get
{
return 놄녷;
}
[CompilerGenerated]
set
{
놄녷 = value;
}
}
public CorporateActionType CorporateActionType
{
[CompilerGenerated]
get
{
return 놄녟;
}
[CompilerGenerated]
set
{
놄녟 = value;
}
}
/// <summary>
/// Will be triggered on corporate action updating
/// </summary>
public event Action Updated
{
[CompilerGenerated]
add
{
Action action = 놄놱;
Action action2;
do
{
action2 = action;
Action value2 = (Action)Delegate.Combine(action2, value);
action = Interlocked.CompareExchange(ref 놄놱, value2, action2);
}
while ((object)action != action2);
}
[CompilerGenerated]
remove
{
Action action = 놄놱;
Action action2;
do
{
action2 = action;
Action value2 = (Action)Delegate.Remove(action2, value);
action = Interlocked.CompareExchange(ref 놄놱, value2, action2);
}
while ((object)action != action2);
}
}
public CorporateAction(string connectionId)
: base(connectionId)
{
}
internal void 녴(MessageCorporateAction P_0)
{
Id = P_0.CorporateActionId;
if (!string.IsNullOrEmpty(P_0.SymbolId) && ConnectionCache != null && ConnectionCache.SymbolsCache.녴(P_0.SymbolId, out var symbol))
{
Symbol = symbol;
}
DateTime = P_0.DateTime;
Details = P_0.Details;
CorporateActionType = P_0.CorporateActionType;
놄놱?.Invoke();
}
}