forked from alpacahq/alpaca-trade-api-csharp
/
AccountActivityType.cs
266 lines (230 loc) · 5.67 KB
/
AccountActivityType.cs
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
namespace Alpaca.Markets;
/// <summary>
/// Types of account activities
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
[SuppressMessage("ReSharper", "CommentTypo")]
[SuppressMessage("ReSharper", "IdentifierTypo")]
[SuppressMessage("ReSharper", "StringLiteralTypo")]
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum AccountActivityType
{
/// <summary>
/// Order fills (both partial and full fills)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "FILL")]
Fill,
/// <summary>
/// Cash transactions (both <see cref="CashDeposit"/> and <see cref="CashWithdrawal"/>)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "TRANS")]
Transaction,
/// <summary>
/// Miscellaneous or rarely used activity types (All types except those in
/// <see cref="Transaction"/>, <see cref="Dividend"/>, or <see cref="Fill"/>)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "MISC")]
Miscellaneous,
/// <summary>
/// ACATS IN/OUT (Cash)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "ACATC")]
ACATCash,
/// <summary>
/// ACATS IN/OUT (Securities)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "ACATS")]
ACATSecurities,
/// <summary>
/// Cash deposit (+)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "CSD")]
CashDeposit,
/// <summary>
/// Cash withdrawal (-)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "CSW")]
CashWithdrawal,
/// <summary>
/// Dividends
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "DIV")]
Dividend,
/// <summary>
/// Dividend (capital gains long term)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "DIVCGL")]
DividendCapitalGainsLongTerm,
/// <summary>
/// Dividend (capital gain short term)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "DIVCGS")]
DividendCapitalGainsShortTerm,
/// <summary>
/// Dividend fee
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "DIVFEE")]
DividendFee,
/// <summary>
/// Dividend adjusted (Foreign Tax Withheld)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "DIVFT")]
DividendForeignTaxWithheld,
/// <summary>
/// Dividend adjusted (NRA Withheld)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "DIVNRA")]
DividendNRAWithheld,
/// <summary>
/// Dividend return of capital
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "DIVROC")]
DividendReturnOfCapital,
/// <summary>
/// Dividend adjusted (Tefra Withheld)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "DIVTW")]
DividendTefraWithheld,
/// <summary>
/// Dividend (tax exempt)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "DIVTXEX")]
DividendTaxExempt,
/// <summary>
/// Interest (credit/margin)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "INT")]
Interest,
/// <summary>
/// Interest adjusted (NRA Withheld)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "INTNRA")]
InterestNRAWithheld,
/// <summary>
/// Interest adjusted (Tefra Withheld)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "INTTW")]
InterestTefraWithheld,
/// <summary>
/// Journal entry
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "JNL")]
JournalEntry,
/// <summary>
/// Journal entry (cash)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "JNLC")]
JournalEntryCash,
/// <summary>
/// Journal entry (stock)
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "JNLS")]
JournalEntryStock,
/// <summary>
/// Merger/Acquisition
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "MA")]
MergerAcquisition,
/// <summary>
/// Name change
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "NC")]
NameChange,
/// <summary>
/// Pass Thru Charge
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "PTC")]
PassThruCharge,
/// <summary>
/// Pass Thru Rebate
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "PTR")]
PassThruRebate,
/// <summary>
/// Reorganization
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "REORG")]
Reorg,
/// <summary>
/// Symbol change
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "SC")]
SymbolChange,
/// <summary>
/// Stock spinoff
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "SSO")]
StockSpinoff,
/// <summary>
/// Stock split
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "SSP")]
StockSplit,
/// <summary>
/// REG/TAF fees
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "REGTAFFEE")]
[Obsolete("This member will be removed in the upcoming release, use the FeeInUsd member instead.", true)]
RefTafFee,
/// <summary>
/// Option assignment
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "OPASN")]
OptionAssignment,
/// <summary>
/// Option expiration
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "OPEXP")]
OptionExpiration,
/// <summary>
/// Option exercise
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "OPXRC")]
OptionExercise,
/// <summary>
/// Fee denominated in USD
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "FEE")]
FeeInUsd,
/// <summary>
/// Crypto Fee
/// </summary>
[UsedImplicitly]
[EnumMember(Value = "CFEE")]
CryptoFee
}