Skip to content

Commit

Permalink
interim solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Hummel83 committed Dec 3, 2018
1 parent 589bfa3 commit ff81839
Show file tree
Hide file tree
Showing 24 changed files with 1,080 additions and 1,004 deletions.
174 changes: 0 additions & 174 deletions IbFlexReader/IbFlexReader.Contracts/Enums.cs

This file was deleted.

7 changes: 7 additions & 0 deletions IbFlexReader/IbFlexReader.Contracts/Enums/AssetCategory.cs
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
}
}
7 changes: 7 additions & 0 deletions IbFlexReader/IbFlexReader.Contracts/Enums/BuySell.cs
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 IbFlexReader/IbFlexReader.Contracts/Enums/CashTransactionType.cs
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
}
}
15 changes: 15 additions & 0 deletions IbFlexReader/IbFlexReader.Contracts/Enums/Currencies.cs
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
}
}
7 changes: 7 additions & 0 deletions IbFlexReader/IbFlexReader.Contracts/Enums/LongShort.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace IbFlexReader.Contracts.Enums
{
public enum LongShort
{
Long, Short
}
}
115 changes: 115 additions & 0 deletions IbFlexReader/IbFlexReader.Contracts/Enums/Notes.cs
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
}
}
10 changes: 10 additions & 0 deletions IbFlexReader/IbFlexReader.Contracts/Enums/OpenClose.cs
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
}
}
7 changes: 7 additions & 0 deletions IbFlexReader/IbFlexReader.Contracts/Enums/PutCall.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace IbFlexReader.Contracts.Enums
{
public enum PutCall
{
P, C
}
}
9 changes: 2 additions & 7 deletions IbFlexReader/IbFlexReader.Contracts/QueryResponse.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
/*
Licensed under the Apache License, Version 2.0
http://www.apache.org/licenses/LICENSE-2.0
https://xmltocsharp.azurewebsites.net/
*/

using IbFlexReader.Contracts.Attributes;
using System;
using System.Collections.Generic;
using IbFlexReader.Contracts.Enums;

namespace IbFlexReader.Contracts
{
Expand Down
Loading

0 comments on commit ff81839

Please sign in to comment.