コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MarketDataSubscriptionPlan" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Name">Name (required).</param>
 /// <param name="Title">Title (required).</param>
 /// <param name="Price">Price (required).</param>
 /// <param name="StartDate">StartDate.</param>
 /// <param name="DiscontinuedDate">DiscontinuedDate.</param>
 /// <param name="ExchangeScopeId">id of MarketDataSubscriptionExchangeScope (required).</param>
 /// <param name="DataType">DOM, Top (required).</param>
 /// <param name="Professional">Either, NonProfessional, Professional (required).</param>
 public MarketDataSubscriptionPlan(int?Id = null, string Name = null, string Title = null, double?Price = null, TradeDate StartDate = null, TradeDate DiscontinuedDate = null, int?ExchangeScopeId = null, DataTypeEnum?DataType = null, ProfessionalEnum?Professional = null)
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for MarketDataSubscriptionPlan and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Title" is required (not null)
     if (Title == null)
     {
         throw new InvalidDataException("Title is a required property for MarketDataSubscriptionPlan and cannot be null");
     }
     else
     {
         this.Title = Title;
     }
     // to ensure "Price" is required (not null)
     if (Price == null)
     {
         throw new InvalidDataException("Price is a required property for MarketDataSubscriptionPlan and cannot be null");
     }
     else
     {
         this.Price = Price;
     }
     // to ensure "ExchangeScopeId" is required (not null)
     if (ExchangeScopeId == null)
     {
         throw new InvalidDataException("ExchangeScopeId is a required property for MarketDataSubscriptionPlan and cannot be null");
     }
     else
     {
         this.ExchangeScopeId = ExchangeScopeId;
     }
     // to ensure "DataType" is required (not null)
     if (DataType == null)
     {
         throw new InvalidDataException("DataType is a required property for MarketDataSubscriptionPlan and cannot be null");
     }
     else
     {
         this.DataType = DataType;
     }
     // to ensure "Professional" is required (not null)
     if (Professional == null)
     {
         throw new InvalidDataException("Professional is a required property for MarketDataSubscriptionPlan and cannot be null");
     }
     else
     {
         this.Professional = Professional;
     }
     this.Id               = Id;
     this.StartDate        = StartDate;
     this.DiscontinuedDate = DiscontinuedDate;
 }
コード例 #2
0
ファイル: CashBalance.cs プロジェクト: llinder/api
 /// <summary>
 /// Initializes a new instance of the <see cref="CashBalance" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="AccountId">id of Account (required).</param>
 /// <param name="Timestamp">Timestamp (required).</param>
 /// <param name="TradeDate">TradeDate (required).</param>
 /// <param name="CurrencyId">id of Currency (required).</param>
 /// <param name="Amount">Amount (required).</param>
 /// <param name="RealizedPnL">RealizedPnL.</param>
 /// <param name="WeekRealizedPnL">WeekRealizedPnL.</param>
 public CashBalance(int?Id = null, int?AccountId = null, DateTime?Timestamp = null, TradeDate TradeDate = null, int?CurrencyId = null, double?Amount = null, double?RealizedPnL = null, double?WeekRealizedPnL = null)
 {
     // to ensure "AccountId" is required (not null)
     if (AccountId == null)
     {
         throw new InvalidDataException("AccountId is a required property for CashBalance and cannot be null");
     }
     else
     {
         this.AccountId = AccountId;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for CashBalance and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "TradeDate" is required (not null)
     if (TradeDate == null)
     {
         throw new InvalidDataException("TradeDate is a required property for CashBalance and cannot be null");
     }
     else
     {
         this.TradeDate = TradeDate;
     }
     // to ensure "CurrencyId" is required (not null)
     if (CurrencyId == null)
     {
         throw new InvalidDataException("CurrencyId is a required property for CashBalance and cannot be null");
     }
     else
     {
         this.CurrencyId = CurrencyId;
     }
     // to ensure "Amount" is required (not null)
     if (Amount == null)
     {
         throw new InvalidDataException("Amount is a required property for CashBalance and cannot be null");
     }
     else
     {
         this.Amount = Amount;
     }
     this.Id              = Id;
     this.RealizedPnL     = RealizedPnL;
     this.WeekRealizedPnL = WeekRealizedPnL;
 }
コード例 #3
0
ファイル: Fill.cs プロジェクト: llinder/api
 /// <summary>
 /// Initializes a new instance of the <see cref="Fill" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="OrderId">id of Order (required).</param>
 /// <param name="ContractId">id of Contract (required).</param>
 /// <param name="Timestamp">Timestamp (required).</param>
 /// <param name="TradeDate">TradeDate (required).</param>
 /// <param name="Action">Buy, Sell (required).</param>
 /// <param name="Qty">Qty (required).</param>
 /// <param name="Price">Price (required).</param>
 /// <param name="Active">Active (required).</param>
 /// <param name="FinallyPaired">FinallyPaired (required).</param>
 public Fill(int?Id = null, int?OrderId = null, int?ContractId = null, DateTime?Timestamp = null, TradeDate TradeDate = null, ActionEnum?Action = null, int?Qty = null, double?Price = null, bool?Active = null, int?FinallyPaired = null)
 {
     // to ensure "OrderId" is required (not null)
     if (OrderId == null)
     {
         throw new InvalidDataException("OrderId is a required property for Fill and cannot be null");
     }
     else
     {
         this.OrderId = OrderId;
     }
     // to ensure "ContractId" is required (not null)
     if (ContractId == null)
     {
         throw new InvalidDataException("ContractId is a required property for Fill and cannot be null");
     }
     else
     {
         this.ContractId = ContractId;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for Fill and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "TradeDate" is required (not null)
     if (TradeDate == null)
     {
         throw new InvalidDataException("TradeDate is a required property for Fill and cannot be null");
     }
     else
     {
         this.TradeDate = TradeDate;
     }
     // to ensure "Action" is required (not null)
     if (Action == null)
     {
         throw new InvalidDataException("Action is a required property for Fill and cannot be null");
     }
     else
     {
         this.Action = Action;
     }
     // to ensure "Qty" is required (not null)
     if (Qty == null)
     {
         throw new InvalidDataException("Qty is a required property for Fill and cannot be null");
     }
     else
     {
         this.Qty = Qty;
     }
     // to ensure "Price" is required (not null)
     if (Price == null)
     {
         throw new InvalidDataException("Price is a required property for Fill and cannot be null");
     }
     else
     {
         this.Price = Price;
     }
     // to ensure "Active" is required (not null)
     if (Active == null)
     {
         throw new InvalidDataException("Active is a required property for Fill and cannot be null");
     }
     else
     {
         this.Active = Active;
     }
     // to ensure "FinallyPaired" is required (not null)
     if (FinallyPaired == null)
     {
         throw new InvalidDataException("FinallyPaired is a required property for Fill and cannot be null");
     }
     else
     {
         this.FinallyPaired = FinallyPaired;
     }
     this.Id = Id;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Histogram" /> class.
 /// </summary>
 /// <param name="ContractId">id of Contract (required).</param>
 /// <param name="Timestamp">Timestamp (required).</param>
 /// <param name="TradeDate">TradeDate (required).</param>
 /// <param name="_Base">_Base (required).</param>
 /// <param name="Items">Items (required).</param>
 /// <param name="Refresh">Refresh (required).</param>
 /// <param name="Id">Id.</param>
 public Histogram(int?ContractId = default(int?), DateTime?Timestamp = default(DateTime?), TradeDate TradeDate = default(TradeDate), double?_Base = default(double?), Object Items = default(Object), bool?Refresh = default(bool?), int?Id = default(int?))
 {
     // to ensure "ContractId" is required (not null)
     if (ContractId == null)
     {
         throw new InvalidDataException("ContractId is a required property for Histogram and cannot be null");
     }
     else
     {
         this.ContractId = ContractId;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for Histogram and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "TradeDate" is required (not null)
     if (TradeDate == null)
     {
         throw new InvalidDataException("TradeDate is a required property for Histogram and cannot be null");
     }
     else
     {
         this.TradeDate = TradeDate;
     }
     // to ensure "_Base" is required (not null)
     if (_Base == null)
     {
         throw new InvalidDataException("_Base is a required property for Histogram and cannot be null");
     }
     else
     {
         this._Base = _Base;
     }
     // to ensure "Items" is required (not null)
     if (Items == null)
     {
         throw new InvalidDataException("Items is a required property for Histogram and cannot be null");
     }
     else
     {
         this.Items = Items;
     }
     // to ensure "Refresh" is required (not null)
     if (Refresh == null)
     {
         throw new InvalidDataException("Refresh is a required property for Histogram and cannot be null");
     }
     else
     {
         this.Refresh = Refresh;
     }
     this.Id = Id;
 }
コード例 #5
0
ファイル: UserPlugin.cs プロジェクト: llinder/api
 /// <summary>
 /// Initializes a new instance of the <see cref="UserPlugin" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="UserId">id of User (required).</param>
 /// <param name="Timestamp">Timestamp (required).</param>
 /// <param name="PlanPrice">PlanPrice (required).</param>
 /// <param name="CreditCardTransactionId">id of CreditCardTransaction.</param>
 /// <param name="CashBalanceLogId">id of CashBalanceLog.</param>
 /// <param name="CreditCardId">id of CreditCard.</param>
 /// <param name="AccountId">id of Account.</param>
 /// <param name="PluginName">PluginName (required).</param>
 /// <param name="Approval">Approval (required).</param>
 /// <param name="EntitlementId">id of Entitlement.</param>
 /// <param name="StartDate">StartDate (required).</param>
 /// <param name="ExpirationDate">ExpirationDate.</param>
 /// <param name="PaidAmount">PaidAmount (required).</param>
 /// <param name="Autorenewal">Autorenewal.</param>
 /// <param name="PlanCategories">PlanCategories.</param>
 public UserPlugin(int?Id = null, int?UserId = null, DateTime?Timestamp = null, double?PlanPrice = null, int?CreditCardTransactionId = null, int?CashBalanceLogId = null, int?CreditCardId = null, int?AccountId = null, string PluginName = null, bool?Approval = null, int?EntitlementId = null, TradeDate StartDate = null, TradeDate ExpirationDate = null, double?PaidAmount = null, bool?Autorenewal = null, string PlanCategories = null)
 {
     // to ensure "UserId" is required (not null)
     if (UserId == null)
     {
         throw new InvalidDataException("UserId is a required property for UserPlugin and cannot be null");
     }
     else
     {
         this.UserId = UserId;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for UserPlugin and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "PlanPrice" is required (not null)
     if (PlanPrice == null)
     {
         throw new InvalidDataException("PlanPrice is a required property for UserPlugin and cannot be null");
     }
     else
     {
         this.PlanPrice = PlanPrice;
     }
     // to ensure "PluginName" is required (not null)
     if (PluginName == null)
     {
         throw new InvalidDataException("PluginName is a required property for UserPlugin and cannot be null");
     }
     else
     {
         this.PluginName = PluginName;
     }
     // to ensure "Approval" is required (not null)
     if (Approval == null)
     {
         throw new InvalidDataException("Approval is a required property for UserPlugin and cannot be null");
     }
     else
     {
         this.Approval = Approval;
     }
     // to ensure "StartDate" is required (not null)
     if (StartDate == null)
     {
         throw new InvalidDataException("StartDate is a required property for UserPlugin and cannot be null");
     }
     else
     {
         this.StartDate = StartDate;
     }
     // to ensure "PaidAmount" is required (not null)
     if (PaidAmount == null)
     {
         throw new InvalidDataException("PaidAmount is a required property for UserPlugin and cannot be null");
     }
     else
     {
         this.PaidAmount = PaidAmount;
     }
     this.Id = Id;
     this.CreditCardTransactionId = CreditCardTransactionId;
     this.CashBalanceLogId        = CashBalanceLogId;
     this.CreditCardId            = CreditCardId;
     this.AccountId      = AccountId;
     this.EntitlementId  = EntitlementId;
     this.ExpirationDate = ExpirationDate;
     this.Autorenewal    = Autorenewal;
     this.PlanCategories = PlanCategories;
 }
コード例 #6
0
ファイル: TradovateSubscription.cs プロジェクト: Winthan/api
 /// <summary>
 /// Initializes a new instance of the <see cref="TradovateSubscription" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="UserId">id of User (required).</param>
 /// <param name="Timestamp">Timestamp (required).</param>
 /// <param name="PlanPrice">PlanPrice (required).</param>
 /// <param name="CreditCardTransactionId">id of CreditCardTransaction.</param>
 /// <param name="CashBalanceLogId">id of CashBalanceLog.</param>
 /// <param name="CreditCardId">id of CreditCard.</param>
 /// <param name="AccountId">id of Account.</param>
 /// <param name="TradovateSubscriptionPlanId">id of TradovateSubscriptionPlan (required).</param>
 /// <param name="StartDate">StartDate (required).</param>
 /// <param name="ExpirationDate">ExpirationDate (required).</param>
 /// <param name="PaidAmount">PaidAmount (required).</param>
 /// <param name="CancelledRenewal">CancelledRenewal.</param>
 /// <param name="CancelReason">CancelReason.</param>
 public TradovateSubscription(int?Id = null, int?UserId = null, DateTime?Timestamp = null, double?PlanPrice = null, int?CreditCardTransactionId = null, int?CashBalanceLogId = null, int?CreditCardId = null, int?AccountId = null, int?TradovateSubscriptionPlanId = null, TradeDate StartDate = null, TradeDate ExpirationDate = null, double?PaidAmount = null, bool?CancelledRenewal = null, string CancelReason = null)
 {
     // to ensure "UserId" is required (not null)
     if (UserId == null)
     {
         throw new InvalidDataException("UserId is a required property for TradovateSubscription and cannot be null");
     }
     else
     {
         this.UserId = UserId;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for TradovateSubscription and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "PlanPrice" is required (not null)
     if (PlanPrice == null)
     {
         throw new InvalidDataException("PlanPrice is a required property for TradovateSubscription and cannot be null");
     }
     else
     {
         this.PlanPrice = PlanPrice;
     }
     // to ensure "TradovateSubscriptionPlanId" is required (not null)
     if (TradovateSubscriptionPlanId == null)
     {
         throw new InvalidDataException("TradovateSubscriptionPlanId is a required property for TradovateSubscription and cannot be null");
     }
     else
     {
         this.TradovateSubscriptionPlanId = TradovateSubscriptionPlanId;
     }
     // to ensure "StartDate" is required (not null)
     if (StartDate == null)
     {
         throw new InvalidDataException("StartDate is a required property for TradovateSubscription and cannot be null");
     }
     else
     {
         this.StartDate = StartDate;
     }
     // to ensure "ExpirationDate" is required (not null)
     if (ExpirationDate == null)
     {
         throw new InvalidDataException("ExpirationDate is a required property for TradovateSubscription and cannot be null");
     }
     else
     {
         this.ExpirationDate = ExpirationDate;
     }
     // to ensure "PaidAmount" is required (not null)
     if (PaidAmount == null)
     {
         throw new InvalidDataException("PaidAmount is a required property for TradovateSubscription and cannot be null");
     }
     else
     {
         this.PaidAmount = PaidAmount;
     }
     this.Id = Id;
     this.CreditCardTransactionId = CreditCardTransactionId;
     this.CashBalanceLogId        = CashBalanceLogId;
     this.CreditCardId            = CreditCardId;
     this.AccountId        = AccountId;
     this.CancelledRenewal = CancelledRenewal;
     this.CancelReason     = CancelReason;
 }
コード例 #7
0
ファイル: CashBalanceLog.cs プロジェクト: llinder/api
 /// <summary>
 /// Initializes a new instance of the <see cref="CashBalanceLog" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="AccountId">id of Account (required).</param>
 /// <param name="Timestamp">Timestamp (required).</param>
 /// <param name="TradeDate">TradeDate (required).</param>
 /// <param name="CurrencyId">id of Currency (required).</param>
 /// <param name="Amount">Amount (required).</param>
 /// <param name="RealizedPnL">RealizedPnL.</param>
 /// <param name="WeekRealizedPnL">WeekRealizedPnL.</param>
 /// <param name="CashChangeType">AutomaticReconciliation, BrokerageFee, CancelledPairedTrade, ClearingFee, Commission, DeskFee, EntitlementSubscription, ExchangeFee, FundTransaction, FundTransactionFee, IPFee, LiquidationFee, ManualAdjustment, MarketDataSubscription, NewSession, NfaFee, OptionsTrade, OrderRoutingFee, TradePaired, TradovateSubscription (required).</param>
 /// <param name="FillPairId">id of FillPair.</param>
 /// <param name="FillId">id of Fill.</param>
 /// <param name="FundTransactionId">id of FundTransaction.</param>
 /// <param name="Comment">Comment.</param>
 /// <param name="Delta">Delta (required).</param>
 public CashBalanceLog(int?Id = null, int?AccountId = null, DateTime?Timestamp = null, TradeDate TradeDate = null, int?CurrencyId = null, double?Amount = null, double?RealizedPnL = null, double?WeekRealizedPnL = null, CashChangeTypeEnum?CashChangeType = null, int?FillPairId = null, int?FillId = null, int?FundTransactionId = null, string Comment = null, double?Delta = null)
 {
     // to ensure "AccountId" is required (not null)
     if (AccountId == null)
     {
         throw new InvalidDataException("AccountId is a required property for CashBalanceLog and cannot be null");
     }
     else
     {
         this.AccountId = AccountId;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for CashBalanceLog and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "TradeDate" is required (not null)
     if (TradeDate == null)
     {
         throw new InvalidDataException("TradeDate is a required property for CashBalanceLog and cannot be null");
     }
     else
     {
         this.TradeDate = TradeDate;
     }
     // to ensure "CurrencyId" is required (not null)
     if (CurrencyId == null)
     {
         throw new InvalidDataException("CurrencyId is a required property for CashBalanceLog and cannot be null");
     }
     else
     {
         this.CurrencyId = CurrencyId;
     }
     // to ensure "Amount" is required (not null)
     if (Amount == null)
     {
         throw new InvalidDataException("Amount is a required property for CashBalanceLog and cannot be null");
     }
     else
     {
         this.Amount = Amount;
     }
     // to ensure "CashChangeType" is required (not null)
     if (CashChangeType == null)
     {
         throw new InvalidDataException("CashChangeType is a required property for CashBalanceLog and cannot be null");
     }
     else
     {
         this.CashChangeType = CashChangeType;
     }
     // to ensure "Delta" is required (not null)
     if (Delta == null)
     {
         throw new InvalidDataException("Delta is a required property for CashBalanceLog and cannot be null");
     }
     else
     {
         this.Delta = Delta;
     }
     this.Id                = Id;
     this.RealizedPnL       = RealizedPnL;
     this.WeekRealizedPnL   = WeekRealizedPnL;
     this.FillPairId        = FillPairId;
     this.FillId            = FillId;
     this.FundTransactionId = FundTransactionId;
     this.Comment           = Comment;
 }
コード例 #8
0
ファイル: Position.cs プロジェクト: llinder/api
 /// <summary>
 /// Initializes a new instance of the <see cref="Position" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="AccountId">id of Account (required).</param>
 /// <param name="ContractId">id of Contract (required).</param>
 /// <param name="Timestamp">Timestamp (required).</param>
 /// <param name="TradeDate">TradeDate (required).</param>
 /// <param name="NetPos">NetPos (required).</param>
 /// <param name="NetPrice">NetPrice.</param>
 /// <param name="Bought">Bought (required).</param>
 /// <param name="BoughtValue">BoughtValue (required).</param>
 /// <param name="Sold">Sold (required).</param>
 /// <param name="SoldValue">SoldValue (required).</param>
 /// <param name="PrevPos">PrevPos (required).</param>
 /// <param name="PrevPrice">PrevPrice.</param>
 public Position(int?Id = null, int?AccountId = null, int?ContractId = null, DateTime?Timestamp = null, TradeDate TradeDate = null, int?NetPos = null, double?NetPrice = null, int?Bought = null, double?BoughtValue = null, int?Sold = null, double?SoldValue = null, int?PrevPos = null, double?PrevPrice = null)
 {
     // to ensure "AccountId" is required (not null)
     if (AccountId == null)
     {
         throw new InvalidDataException("AccountId is a required property for Position and cannot be null");
     }
     else
     {
         this.AccountId = AccountId;
     }
     // to ensure "ContractId" is required (not null)
     if (ContractId == null)
     {
         throw new InvalidDataException("ContractId is a required property for Position and cannot be null");
     }
     else
     {
         this.ContractId = ContractId;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for Position and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "TradeDate" is required (not null)
     if (TradeDate == null)
     {
         throw new InvalidDataException("TradeDate is a required property for Position and cannot be null");
     }
     else
     {
         this.TradeDate = TradeDate;
     }
     // to ensure "NetPos" is required (not null)
     if (NetPos == null)
     {
         throw new InvalidDataException("NetPos is a required property for Position and cannot be null");
     }
     else
     {
         this.NetPos = NetPos;
     }
     // to ensure "Bought" is required (not null)
     if (Bought == null)
     {
         throw new InvalidDataException("Bought is a required property for Position and cannot be null");
     }
     else
     {
         this.Bought = Bought;
     }
     // to ensure "BoughtValue" is required (not null)
     if (BoughtValue == null)
     {
         throw new InvalidDataException("BoughtValue is a required property for Position and cannot be null");
     }
     else
     {
         this.BoughtValue = BoughtValue;
     }
     // to ensure "Sold" is required (not null)
     if (Sold == null)
     {
         throw new InvalidDataException("Sold is a required property for Position and cannot be null");
     }
     else
     {
         this.Sold = Sold;
     }
     // to ensure "SoldValue" is required (not null)
     if (SoldValue == null)
     {
         throw new InvalidDataException("SoldValue is a required property for Position and cannot be null");
     }
     else
     {
         this.SoldValue = SoldValue;
     }
     // to ensure "PrevPos" is required (not null)
     if (PrevPos == null)
     {
         throw new InvalidDataException("PrevPos is a required property for Position and cannot be null");
     }
     else
     {
         this.PrevPos = PrevPos;
     }
     this.Id        = Id;
     this.NetPrice  = NetPrice;
     this.PrevPrice = PrevPrice;
 }
コード例 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TradovateSubscriptionPlan" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Name">Name (required).</param>
 /// <param name="Title">Title (required).</param>
 /// <param name="Price">Price (required).</param>
 /// <param name="StartDate">StartDate.</param>
 /// <param name="DiscontinuedDate">DiscontinuedDate.</param>
 /// <param name="Category">Category (required).</param>
 /// <param name="Trial">Trial (required).</param>
 /// <param name="Duration">Duration (required).</param>
 /// <param name="DurationUnits">Month, Quarter, Week, Year (required).</param>
 /// <param name="RiskCategoryId">id of RiskCategory.</param>
 /// <param name="MultipleAccounts">MultipleAccounts.</param>
 /// <param name="OrganizationId">id of Organization.</param>
 /// <param name="ReplaySessions">ReplaySessions.</param>
 /// <param name="Footnote">Footnote.</param>
 public TradovateSubscriptionPlan(int?Id = null, string Name = null, string Title = null, double?Price = null, TradeDate StartDate = null, TradeDate DiscontinuedDate = null, string Category = null, bool?Trial = null, int?Duration = null, DurationUnitsEnum?DurationUnits = null, int?RiskCategoryId = null, bool?MultipleAccounts = null, int?OrganizationId = null, int?ReplaySessions = null, string Footnote = null)
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for TradovateSubscriptionPlan and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Title" is required (not null)
     if (Title == null)
     {
         throw new InvalidDataException("Title is a required property for TradovateSubscriptionPlan and cannot be null");
     }
     else
     {
         this.Title = Title;
     }
     // to ensure "Price" is required (not null)
     if (Price == null)
     {
         throw new InvalidDataException("Price is a required property for TradovateSubscriptionPlan and cannot be null");
     }
     else
     {
         this.Price = Price;
     }
     // to ensure "Category" is required (not null)
     if (Category == null)
     {
         throw new InvalidDataException("Category is a required property for TradovateSubscriptionPlan and cannot be null");
     }
     else
     {
         this.Category = Category;
     }
     // to ensure "Trial" is required (not null)
     if (Trial == null)
     {
         throw new InvalidDataException("Trial is a required property for TradovateSubscriptionPlan and cannot be null");
     }
     else
     {
         this.Trial = Trial;
     }
     // to ensure "Duration" is required (not null)
     if (Duration == null)
     {
         throw new InvalidDataException("Duration is a required property for TradovateSubscriptionPlan and cannot be null");
     }
     else
     {
         this.Duration = Duration;
     }
     // to ensure "DurationUnits" is required (not null)
     if (DurationUnits == null)
     {
         throw new InvalidDataException("DurationUnits is a required property for TradovateSubscriptionPlan and cannot be null");
     }
     else
     {
         this.DurationUnits = DurationUnits;
     }
     this.Id               = Id;
     this.StartDate        = StartDate;
     this.DiscontinuedDate = DiscontinuedDate;
     this.RiskCategoryId   = RiskCategoryId;
     this.MultipleAccounts = MultipleAccounts;
     this.OrganizationId   = OrganizationId;
     this.ReplaySessions   = ReplaySessions;
     this.Footnote         = Footnote;
 }
コード例 #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExecutionReport" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="CommandId">id of Command (required).</param>
 /// <param name="Name">Name (required).</param>
 /// <param name="AccountId">id of Account (required).</param>
 /// <param name="ContractId">id of Contract (required).</param>
 /// <param name="Timestamp">Timestamp (required).</param>
 /// <param name="TradeDate">TradeDate.</param>
 /// <param name="OrderId">id of Order (required).</param>
 /// <param name="ExecType">Canceled, Completed, DoneForDay, Expired, New, OrderStatus, PendingCancel, PendingNew, PendingReplace, Rejected, Replaced, Stopped, Suspended, Trade, TradeCancel, TradeCorrect (required).</param>
 /// <param name="ExecRefId">ExecRefId.</param>
 /// <param name="OrdStatus">Canceled, Completed, Expired, Filled, PendingCancel, PendingNew, PendingReplace, Rejected, Suspended, Unknown, Working.</param>
 /// <param name="Action">Buy, Sell (required).</param>
 /// <param name="CumQty">CumQty.</param>
 /// <param name="AvgPx">AvgPx.</param>
 /// <param name="LastQty">LastQty.</param>
 /// <param name="LastPx">LastPx.</param>
 /// <param name="RejectReason">AccountClosed, AdvancedTrailingStopUnsupported, AnotherCommandPending, BackMonthProhibited, ExecutionProviderNotConfigured, ExecutionProviderUnavailable, InvalidContract, InvalidPrice, LiquidationOnly, LiquidationOnlyBeforeExpiration, MaxOrderQtyIsNotSpecified, MaxOrderQtyLimitReached, MaxPosLimitMisconfigured, MaxPosLimitReached, MaxTotalPosLimitReached, MultipleAccountPlanRequired, NoQuote, NotEnoughLiquidity, OtherExecutionRelated, ParentRejected, RiskCheckTimeout, SessionClosed, Success, TooLate, TradingLocked, TrailingStopNonOrderQtyModify, Unauthorized, UnknownReason, Unsupported.</param>
 /// <param name="Text">Text.</param>
 /// <param name="ExchangeOrderId">ExchangeOrderId.</param>
 public ExecutionReport(int?Id = null, int?CommandId = null, string Name = null, int?AccountId = null, int?ContractId = null, DateTime?Timestamp = null, TradeDate TradeDate = null, int?OrderId = null, ExecTypeEnum?ExecType = null, string ExecRefId = null, OrdStatusEnum?OrdStatus = null, ActionEnum?Action = null, int?CumQty = null, double?AvgPx = null, int?LastQty = null, double?LastPx = null, RejectReasonEnum?RejectReason = null, string Text = null, string ExchangeOrderId = null)
 {
     // to ensure "CommandId" is required (not null)
     if (CommandId == null)
     {
         throw new InvalidDataException("CommandId is a required property for ExecutionReport and cannot be null");
     }
     else
     {
         this.CommandId = CommandId;
     }
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for ExecutionReport and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "AccountId" is required (not null)
     if (AccountId == null)
     {
         throw new InvalidDataException("AccountId is a required property for ExecutionReport and cannot be null");
     }
     else
     {
         this.AccountId = AccountId;
     }
     // to ensure "ContractId" is required (not null)
     if (ContractId == null)
     {
         throw new InvalidDataException("ContractId is a required property for ExecutionReport and cannot be null");
     }
     else
     {
         this.ContractId = ContractId;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for ExecutionReport and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "OrderId" is required (not null)
     if (OrderId == null)
     {
         throw new InvalidDataException("OrderId is a required property for ExecutionReport and cannot be null");
     }
     else
     {
         this.OrderId = OrderId;
     }
     // to ensure "ExecType" is required (not null)
     if (ExecType == null)
     {
         throw new InvalidDataException("ExecType is a required property for ExecutionReport and cannot be null");
     }
     else
     {
         this.ExecType = ExecType;
     }
     // to ensure "Action" is required (not null)
     if (Action == null)
     {
         throw new InvalidDataException("Action is a required property for ExecutionReport and cannot be null");
     }
     else
     {
         this.Action = Action;
     }
     this.Id              = Id;
     this.TradeDate       = TradeDate;
     this.ExecRefId       = ExecRefId;
     this.OrdStatus       = OrdStatus;
     this.CumQty          = CumQty;
     this.AvgPx           = AvgPx;
     this.LastQty         = LastQty;
     this.LastPx          = LastPx;
     this.RejectReason    = RejectReason;
     this.Text            = Text;
     this.ExchangeOrderId = ExchangeOrderId;
 }