/// <summary>
 /// Initializes a new instance of the TargetTaxLotRequest class.
 /// </summary>
 /// <param name="units">Quantity of holding</param>
 /// <param name="cost">Book cost of holding in transaction
 /// currency</param>
 /// <param name="portfolioCost">Book cost of holding in portfolio
 /// currency</param>
 /// <param name="price">Purchase price. Part of the unique key required
 /// for multiple taxlots</param>
 /// <param name="purchaseDate">Purchase Date. Part of the unique key
 /// required for multiple taxlots</param>
 /// <param name="settlementDate">Original settlement date of the
 /// tax-lot's opening transaction.</param>
 public TargetTaxLotRequest(double units, CurrencyAndAmount cost = default(CurrencyAndAmount), double?portfolioCost = default(double?), double?price = default(double?), System.DateTimeOffset?purchaseDate = default(System.DateTimeOffset?), System.DateTimeOffset?settlementDate = default(System.DateTimeOffset?))
 {
     Units          = units;
     Cost           = cost;
     PortfolioCost  = portfolioCost;
     Price          = price;
     PurchaseDate   = purchaseDate;
     SettlementDate = settlementDate;
     CustomInit();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the ReconciliationBreak class.
 /// </summary>
 /// <param name="instrumentUid">Unique instrument identifier</param>
 /// <param name="subHoldingKeys">Any other properties that comprise the
 /// Sub-Holding Key</param>
 /// <param name="leftUnits">Units from the left hand side</param>
 /// <param name="rightUnits">Units from the right hand side</param>
 /// <param name="differenceUnits">Difference in units</param>
 /// <param name="leftCost">Cost from the left hand side</param>
 /// <param name="rightCost">Cost from the right hand side</param>
 /// <param name="differenceCost">Difference in cost</param>
 /// <param name="instrumentProperties">Additional features relating to
 /// the security</param>
 public ReconciliationBreak(string instrumentUid, IList <PerpetualProperty> subHoldingKeys, double leftUnits, double rightUnits, double differenceUnits, CurrencyAndAmount leftCost, CurrencyAndAmount rightCost, CurrencyAndAmount differenceCost, IList <Property> instrumentProperties)
 {
     InstrumentUid        = instrumentUid;
     SubHoldingKeys       = subHoldingKeys;
     LeftUnits            = leftUnits;
     RightUnits           = rightUnits;
     DifferenceUnits      = differenceUnits;
     LeftCost             = leftCost;
     RightCost            = rightCost;
     DifferenceCost       = differenceCost;
     InstrumentProperties = instrumentProperties;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the PortfolioHolding class.
 /// </summary>
 /// <param name="instrumentUid">Unique instrument identifier</param>
 /// <param name="holdingType">Type of holding, eg Position, Balance,
 /// CashCommitment, Receivable, ForwardFX</param>
 /// <param name="units">Quantity of holding</param>
 /// <param name="settledUnits">Settled quantity of holding</param>
 /// <param name="cost">Book cost of holding in transaction
 /// currency</param>
 /// <param name="costPortfolioCcy">Book cost of holding in portfolio
 /// currency</param>
 /// <param name="transaction">If this is commitment-type holding, the
 /// transaction behind it</param>
 public PortfolioHolding(string instrumentUid, string holdingType, double units, double settledUnits, CurrencyAndAmount cost, CurrencyAndAmount costPortfolioCcy, IList <PerpetualProperty> subHoldingKeys = default(IList <PerpetualProperty>), IList <Property> properties = default(IList <Property>), Transaction transaction = default(Transaction))
 {
     InstrumentUid    = instrumentUid;
     SubHoldingKeys   = subHoldingKeys;
     Properties       = properties;
     HoldingType      = holdingType;
     Units            = units;
     SettledUnits     = settledUnits;
     Cost             = cost;
     CostPortfolioCcy = costPortfolioCcy;
     Transaction      = transaction;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the RealisedGainLoss class.
 /// </summary>
 /// <param name="instrumentUid">Unique instrument identifier</param>
 /// <param name="units">Quantity against which gain has been made in
 /// units of the instrument</param>
 /// <param name="purchaseTradeDate">Date the position was originally
 /// purchased</param>
 /// <param name="purchaseSettlementDate">Date the position originally
 /// settled</param>
 /// <param name="purchasePrice">Price the instrument was purchased
 /// at</param>
 /// <param name="costTradeCcy">Purchase cost in the trade
 /// currency</param>
 /// <param name="costPortfolioCcy">Purchase cost in the trade
 /// currency</param>
 /// <param name="realisedTradeCcy">Gains or losses in the trade
 /// currency</param>
 /// <param name="realisedTotal">Total gains or losses in the portfolio
 /// currency</param>
 /// <param name="realisedMarket">Market gains or losses in the
 /// portfolio currency</param>
 /// <param name="realisedCurrency">Currency gains or losses in the
 /// portfolio currency</param>
 public RealisedGainLoss(string instrumentUid = default(string), double?units = default(double?), System.DateTimeOffset?purchaseTradeDate = default(System.DateTimeOffset?), System.DateTimeOffset?purchaseSettlementDate = default(System.DateTimeOffset?), double?purchasePrice = default(double?), CurrencyAndAmount costTradeCcy = default(CurrencyAndAmount), CurrencyAndAmount costPortfolioCcy = default(CurrencyAndAmount), CurrencyAndAmount realisedTradeCcy = default(CurrencyAndAmount), CurrencyAndAmount realisedTotal = default(CurrencyAndAmount), CurrencyAndAmount realisedMarket = default(CurrencyAndAmount), CurrencyAndAmount realisedCurrency = default(CurrencyAndAmount))
 {
     InstrumentUid          = instrumentUid;
     Units                  = units;
     PurchaseTradeDate      = purchaseTradeDate;
     PurchaseSettlementDate = purchaseSettlementDate;
     PurchasePrice          = purchasePrice;
     CostTradeCcy           = costTradeCcy;
     CostPortfolioCcy       = costPortfolioCcy;
     RealisedTradeCcy       = realisedTradeCcy;
     RealisedTotal          = realisedTotal;
     RealisedMarket         = realisedMarket;
     RealisedCurrency       = realisedCurrency;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the Transaction class.
 /// </summary>
 /// <param name="transactionId">Unique transaction identifier</param>
 /// <param name="type">LUSID transaction type code - Buy, Sell,
 /// StockIn, StockOut, etc</param>
 /// <param name="instrumentUid">Unique instrument identifier</param>
 /// <param name="transactionDate">Transaction date</param>
 /// <param name="settlementDate">Settlement date</param>
 /// <param name="units">Quantity of transaction in units of the
 /// instrument</param>
 /// <param name="transactionPrice">Execution price for the
 /// transaction</param>
 /// <param name="totalConsideration">Total value of the transaction in
 /// settlement currency</param>
 /// <param name="source">Where this transaction came from. Possible
 /// values include: 'System', 'Client'</param>
 /// <param name="exchangeRate">Rate between transaction and settle
 /// currency</param>
 /// <param name="transactionCurrency">Transaction currency</param>
 /// <param name="counterpartyId">Counterparty identifier</param>
 public Transaction(string transactionId, string type, string instrumentUid, System.DateTimeOffset transactionDate, System.DateTimeOffset settlementDate, double units, TransactionPrice transactionPrice, CurrencyAndAmount totalConsideration, string source, double?exchangeRate = default(double?), string transactionCurrency = default(string), IList <PerpetualProperty> properties = default(IList <PerpetualProperty>), string counterpartyId = default(string), string nettingSet = default(string))
 {
     TransactionId       = transactionId;
     Type                = type;
     InstrumentUid       = instrumentUid;
     TransactionDate     = transactionDate;
     SettlementDate      = settlementDate;
     Units               = units;
     TransactionPrice    = transactionPrice;
     TotalConsideration  = totalConsideration;
     ExchangeRate        = exchangeRate;
     TransactionCurrency = transactionCurrency;
     Properties          = properties;
     CounterpartyId      = counterpartyId;
     Source              = source;
     NettingSet          = nettingSet;
     CustomInit();
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the OutputTransaction class.
 /// </summary>
 /// <param name="transactionId">Unique transaction identifier</param>
 /// <param name="type">LUSID transaction type code - Buy, Sell,
 /// StockIn, StockOut, etc</param>
 /// <param name="description">LUSID transaction description</param>
 /// <param name="instrumentUid">Unique instrument identifier</param>
 /// <param name="transactionDate">Transaction date</param>
 /// <param name="settlementDate">Settlement date</param>
 /// <param name="units">Quantity of trade in units of the
 /// instrument</param>
 /// <param name="transactionPrice">Execution price for the
 /// transaction</param>
 /// <param name="totalConsideration">Total value of the transaction in
 /// settlement currency</param>
 /// <param name="exchangeRate">Rate between transaction and settlement
 /// currency</param>
 /// <param name="transactionToPortfolioRate">Rate between transaction
 /// and portfolio currency</param>
 /// <param name="transactionCurrency">Transaction currency</param>
 /// <param name="counterpartyId">Counterparty identifier</param>
 /// <param name="source">Where this transaction came from, either
 /// Client or System. Possible values include: 'System',
 /// 'Client'</param>
 /// <param name="transactionStatus">Transaction status (active, amended
 /// or cancelled). Possible values include: 'Active', 'Amended',
 /// 'Cancelled'</param>
 /// <param name="entryDateTime">Date/Time the transaction was booked
 /// into LUSID</param>
 /// <param name="cancelDateTime">Date/Time the cancellation was booked
 /// into LUSID</param>
 /// <param name="realisedGainLoss">Collection of gains or
 /// losses</param>
 public OutputTransaction(string transactionId = default(string), string type = default(string), string description = default(string), string instrumentUid = default(string), System.DateTimeOffset?transactionDate = default(System.DateTimeOffset?), System.DateTimeOffset?settlementDate = default(System.DateTimeOffset?), double?units = default(double?), TransactionPrice transactionPrice = default(TransactionPrice), CurrencyAndAmount totalConsideration = default(CurrencyAndAmount), double?exchangeRate = default(double?), double?transactionToPortfolioRate = default(double?), string transactionCurrency = default(string), IList <PerpetualProperty> properties = default(IList <PerpetualProperty>), string counterpartyId = default(string), string source = default(string), string nettingSet = default(string), string transactionStatus = default(string), System.DateTimeOffset?entryDateTime = default(System.DateTimeOffset?), System.DateTimeOffset?cancelDateTime = default(System.DateTimeOffset?), IList <RealisedGainLoss> realisedGainLoss = default(IList <RealisedGainLoss>))
 {
     TransactionId              = transactionId;
     Type                       = type;
     Description                = description;
     InstrumentUid              = instrumentUid;
     TransactionDate            = transactionDate;
     SettlementDate             = settlementDate;
     Units                      = units;
     TransactionPrice           = transactionPrice;
     TotalConsideration         = totalConsideration;
     ExchangeRate               = exchangeRate;
     TransactionToPortfolioRate = transactionToPortfolioRate;
     TransactionCurrency        = transactionCurrency;
     Properties                 = properties;
     CounterpartyId             = counterpartyId;
     Source                     = source;
     NettingSet                 = nettingSet;
     TransactionStatus          = transactionStatus;
     EntryDateTime              = entryDateTime;
     CancelDateTime             = cancelDateTime;
     RealisedGainLoss           = realisedGainLoss;
     CustomInit();
 }