-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,080 additions
and
1,004 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace IbFlexReader.Contracts.Enums | ||
{ | ||
public enum AssetCategory | ||
{ | ||
STK, OPT, FOP, CFD, FUT | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace IbFlexReader.Contracts.Enums | ||
{ | ||
public enum BuySell | ||
{ | ||
BUY, SELL | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
IbFlexReader/IbFlexReader.Contracts/Enums/CashTransactionType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using EnumParser; | ||
|
||
namespace IbFlexReader.Contracts.Enums | ||
{ | ||
[EnumName] | ||
public enum CashTransactionType | ||
{ | ||
[EnumName("Other Fees")] | ||
OtherFees, | ||
[EnumName("Withholding Tax")] | ||
WithholdingTax, | ||
[EnumName("Dividends")] | ||
Dividends, | ||
[EnumName("Payment In Lieu Of Dividends")] | ||
PaymentInLieuOfDividends, | ||
[EnumName("Broker Interest Paid")] | ||
BrokerInterestPaid, | ||
[EnumName("Price Adjustments")] | ||
PriceAdjustments | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace IbFlexReader.Contracts.Enums | ||
{ | ||
public enum Currencies | ||
{ | ||
EUR, | ||
USD, | ||
JPY, | ||
CHF, | ||
GBP, | ||
NZD, | ||
AUD, | ||
CAD, | ||
SEK | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace IbFlexReader.Contracts.Enums | ||
{ | ||
public enum LongShort | ||
{ | ||
Long, Short | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
using System; | ||
using EnumParser; | ||
|
||
namespace IbFlexReader.Contracts.Enums | ||
{ | ||
[EnumName] | ||
[Flags] | ||
public enum Notes : long | ||
{ | ||
[EnumName("A")] | ||
Assigned = 1, | ||
[EnumName("AEx")] | ||
AutomaticalExercise = 2 ^ 1, | ||
[EnumName("Adj")] | ||
Adjustment = 2 ^ 2, | ||
[EnumName("Al")] | ||
Allocation = 2 ^ 3, | ||
[EnumName("Aw")] | ||
AwayTrade = 2 ^ 4, | ||
[EnumName("B")] | ||
AutoBuyIn = 2 ^ 5, | ||
[EnumName("Bo")] | ||
DirectLending = 2 ^ 6, | ||
[EnumName("C")] | ||
ClosingTrade = 2 ^ 7, | ||
[EnumName("CD")] | ||
CashDelivery = 2 ^ 8, | ||
[EnumName("CP")] | ||
ComplexePosition = 2 ^ 9, | ||
[EnumName("Ca")] | ||
Deleted = 2 ^ 10, | ||
[EnumName("Co")] | ||
CorrectedTrade = 2 ^ 11, | ||
[EnumName("Cx")] | ||
CrossTrade = 2 ^ 12, | ||
[EnumName("ETF")] | ||
EtfCreation = 2 ^ 13, | ||
[EnumName("Ep")] | ||
Expired = 2 ^ 14, | ||
[EnumName("Ex")] | ||
Exercised = 2 ^ 15, | ||
[EnumName("G")] | ||
GuaranteedAccountSegment = 2 ^ 16, | ||
[EnumName("HC")] | ||
MaxTaxBase = 2 ^ 17, | ||
[EnumName("HFI")] | ||
InvestmentTransferToHedgeFund = 2 ^ 18, | ||
[EnumName("HFR")] | ||
RedemptionForHedgeFund = 2 ^ 19, | ||
[EnumName("I")] | ||
InternalTransfer = 2 ^ 20, | ||
[EnumName("IA")] | ||
ExecutedAgainstCompany = 2 ^ 21, | ||
[EnumName("INV")] | ||
InvestmentTransferFromInvestor = 2 ^ 22, | ||
[EnumName("IPO")] | ||
IPO = 2 ^ 23, | ||
[EnumName("L")] | ||
MarginViolation = 2 ^ 24, | ||
[EnumName("LD")] | ||
AdjustedLossWashSale = 2 ^ 25, | ||
[EnumName("LI")] | ||
LiFo = 2 ^ 26, | ||
[EnumName("LT")] | ||
LongTermPL = 2 ^ 27, | ||
[EnumName("Lo")] | ||
DirectLoan = 2 ^ 28, | ||
[EnumName("M")] | ||
ManualThroughIB = 2 ^ 29, | ||
[EnumName("MEx")] | ||
ManualExercise = 2 ^ 30, | ||
[EnumName("ML")] | ||
MaximizeLoss = 2 ^ 31, | ||
[EnumName("MLG")] | ||
MLG = 2 ^ 32, | ||
[EnumName("MLL")] | ||
MLL = 2 ^ 33, | ||
[EnumName("MSG")] | ||
MSG = 2 ^ 34, | ||
[EnumName("MSL")] | ||
MSL = 2 ^ 35, | ||
[EnumName("O")] | ||
OpeningTrade = 2 ^ 36, | ||
[EnumName("P")] | ||
PartialExecution = 2 ^ 37, | ||
[EnumName("PI")] | ||
PI = 2 ^ 38, | ||
[EnumName("Po")] | ||
InterestDividendAccrualPosting = 2 ^ 39, | ||
[EnumName("Pr")] | ||
PrincipalTrade = 2 ^ 40, | ||
[EnumName("R")] | ||
DividendReinvestment = 2 ^ 41, | ||
[EnumName("RED")] | ||
RedemptionToInvestor = 2 ^ 42, | ||
[EnumName("Re")] | ||
TransformationInterestDividend = 2 ^ 43, | ||
[EnumName("Ri")] | ||
Refund = 2 ^ 44, | ||
[EnumName("SI")] | ||
ArrangedByIB = 2 ^ 45, | ||
[EnumName("SL")] | ||
SL = 2 ^ 46, | ||
[EnumName("SO")] | ||
ArrangedByIntroducingBroker = 2 ^ 47, | ||
[EnumName("SS")] | ||
ShortendedExecution = 2 ^ 48, | ||
[EnumName("ST")] | ||
ShortTermPL = 2 ^ 49, | ||
[EnumName("SY")] | ||
StockYieldEligible = 2 ^ 50, | ||
[EnumName("T")] | ||
Transfer = 2 ^ 51 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
|
||
namespace IbFlexReader.Contracts.Enums | ||
{ | ||
[Flags] | ||
public enum OpenClose | ||
{ | ||
O = 1, C = 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace IbFlexReader.Contracts.Enums | ||
{ | ||
public enum PutCall | ||
{ | ||
P, C | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.