/// <summary> /// Initializes a new instance of the <see cref="LimitOrder" /> class. /// </summary> /// <param name="Id">The Order's identifier, unique within the Order's Account..</param> /// <param name="CreateTime">The time when the Order was created..</param> /// <param name="State">The current state of the Order..</param> /// <param name="ClientExtensions">ClientExtensions.</param> /// <param name="Type">The type of the Order. Always set to \"LIMIT\" for Limit Orders..</param> /// <param name="Instrument">The Limit Order's Instrument..</param> /// <param name="Units">The quantity requested to be filled by the Limit Order. A posititive number of units results in a long Order, and a negative number of units results in a short Order..</param> /// <param name="Price">The price threshold specified for the Limit Order. The Limit Order will only be filled by a market price that is equal to or better than this price..</param> /// <param name="TimeInForce">The time-in-force requested for the Limit Order..</param> /// <param name="GtdTime">The date/time when the Limit Order will be cancelled if its timeInForce is \"GTD\"..</param> /// <param name="PositionFill">Specification of how Positions in the Account are modified when the Order is filled..</param> /// <param name="TriggerCondition">Specification of what component of a price should be used for comparison when determining if the Order should be filled..</param> /// <param name="TakeProfitOnFill">TakeProfitOnFill.</param> /// <param name="StopLossOnFill">StopLossOnFill.</param> /// <param name="TrailingStopLossOnFill">TrailingStopLossOnFill.</param> /// <param name="TradeClientExtensions">TradeClientExtensions.</param> /// <param name="FillingTransactionID">ID of the Transaction that filled this Order (only provided when the Order's state is FILLED).</param> /// <param name="FilledTime">Date/time when the Order was filled (only provided when the Order's state is FILLED).</param> /// <param name="TradeOpenedID">Trade ID of Trade opened when the Order was filled (only provided when the Order's state is FILLED and a Trade was opened as a result of the fill).</param> /// <param name="TradeReducedID">Trade ID of Trade reduced when the Order was filled (only provided when the Order's state is FILLED and a Trade was reduced as a result of the fill).</param> /// <param name="TradeClosedIDs">Trade IDs of Trades closed when the Order was filled (only provided when the Order's state is FILLED and one or more Trades were closed as a result of the fill).</param> /// <param name="CancellingTransactionID">ID of the Transaction that cancelled the Order (only provided when the Order's state is CANCELLED).</param> /// <param name="CancelledTime">Date/time when the Order was cancelled (only provided when the state of the Order is CANCELLED).</param> /// <param name="ReplacesOrderID">The ID of the Order that was replaced by this Order (only provided if this Order was created as part of a cancel/replace)..</param> /// <param name="ReplacedByOrderID">The ID of the Order that replaced this Order (only provided if this Order was cancelled as part of a cancel/replace)..</param> public LimitOrder(string Id = default(string), string CreateTime = default(string), StateEnum?State = default(StateEnum?), ClientExtensions ClientExtensions = default(ClientExtensions), TypeEnum?Type = default(TypeEnum?), string Instrument = default(string), string Units = default(string), string Price = default(string), TimeInForceEnum?TimeInForce = default(TimeInForceEnum?), string GtdTime = default(string), PositionFillEnum?PositionFill = default(PositionFillEnum?), TriggerConditionEnum?TriggerCondition = default(TriggerConditionEnum?), TakeProfitDetails TakeProfitOnFill = default(TakeProfitDetails), StopLossDetails StopLossOnFill = default(StopLossDetails), TrailingStopLossDetails TrailingStopLossOnFill = default(TrailingStopLossDetails), ClientExtensions TradeClientExtensions = default(ClientExtensions), string FillingTransactionID = default(string), string FilledTime = default(string), string TradeOpenedID = default(string), string TradeReducedID = default(string), List <string> TradeClosedIDs = default(List <string>), string CancellingTransactionID = default(string), string CancelledTime = default(string), string ReplacesOrderID = default(string), string ReplacedByOrderID = default(string)) { this.Id = Id; this.CreateTime = CreateTime; this.State = State; this.ClientExtensions = ClientExtensions; this.Type = Type; this.Instrument = Instrument; this.Units = Units; this.Price = Price; this.TimeInForce = TimeInForce; this.GtdTime = GtdTime; this.PositionFill = PositionFill; this.TriggerCondition = TriggerCondition; this.TakeProfitOnFill = TakeProfitOnFill; this.StopLossOnFill = StopLossOnFill; this.TrailingStopLossOnFill = TrailingStopLossOnFill; this.TradeClientExtensions = TradeClientExtensions; this.FillingTransactionID = FillingTransactionID; this.FilledTime = FilledTime; this.TradeOpenedID = TradeOpenedID; this.TradeReducedID = TradeReducedID; this.TradeClosedIDs = TradeClosedIDs; this.CancellingTransactionID = CancellingTransactionID; this.CancelledTime = CancelledTime; this.ReplacesOrderID = ReplacesOrderID; this.ReplacedByOrderID = ReplacedByOrderID; }
/// <summary> /// Initializes a new instance of the <see cref="TrailingStopLossOrderRequest" /> class. /// </summary> /// <param name="Type">The type of the Order to Create. Must be set to \"TRAILING_STOP_LOSS\" when creating a Trailng Stop Loss Order..</param> /// <param name="TradeID">The ID of the Trade to close when the price threshold is breached..</param> /// <param name="ClientTradeID">The client ID of the Trade to be closed when the price threshold is breached..</param> /// <param name="Distance">The price distance specified for the TrailingStopLoss Order..</param> /// <param name="TimeInForce">The time-in-force requested for the TrailingStopLoss Order. Restricted to \"GTC\", \"GFD\" and \"GTD\" for TrailingStopLoss Orders..</param> /// <param name="GtdTime">The date/time when the StopLoss Order will be cancelled if its timeInForce is \"GTD\"..</param> /// <param name="TriggerCondition">Specification of what component of a price should be used for comparison when determining if the Order should be filled..</param> /// <param name="ClientExtensions">ClientExtensions.</param> public TrailingStopLossOrderRequest(TypeEnum?Type = default(TypeEnum?), string TradeID = default(string), string ClientTradeID = default(string), string Distance = default(string), TimeInForceEnum?TimeInForce = default(TimeInForceEnum?), string GtdTime = default(string), TriggerConditionEnum?TriggerCondition = default(TriggerConditionEnum?), ClientExtensions ClientExtensions = default(ClientExtensions)) { this.Type = Type; this.TradeID = TradeID; this.ClientTradeID = ClientTradeID; this.Distance = Distance; this.TimeInForce = TimeInForce; this.GtdTime = GtdTime; this.TriggerCondition = TriggerCondition; this.ClientExtensions = ClientExtensions; }
/// <summary> /// Initializes a new instance of the <see cref="TakeProfitOrderRequest" /> class. /// </summary> /// <param name="Type">The type of the Order to Create. Must be set to \"TAKE_PROFIT\" when creating a Take Profit Order..</param> /// <param name="TradeID">The ID of the Trade to close when the price threshold is breached..</param> /// <param name="ClientTradeID">The client ID of the Trade to be closed when the price threshold is breached..</param> /// <param name="Price">The price threshold specified for the TakeProfit Order. The associated Trade will be closed by a market price that is equal to or better than this threshold..</param> /// <param name="TimeInForce">The time-in-force requested for the TakeProfit Order. Restricted to \"GTC\", \"GFD\" and \"GTD\" for TakeProfit Orders..</param> /// <param name="GtdTime">The date/time when the TakeProfit Order will be cancelled if its timeInForce is \"GTD\"..</param> /// <param name="TriggerCondition">Specification of what component of a price should be used for comparison when determining if the Order should be filled..</param> /// <param name="ClientExtensions">ClientExtensions.</param> public TakeProfitOrderRequest(TypeEnum?Type = default(TypeEnum?), string TradeID = default(string), string ClientTradeID = default(string), string Price = default(string), TimeInForceEnum?TimeInForce = default(TimeInForceEnum?), string GtdTime = default(string), TriggerConditionEnum?TriggerCondition = default(TriggerConditionEnum?), ClientExtensions ClientExtensions = default(ClientExtensions)) { this.Type = Type; this.TradeID = TradeID; this.ClientTradeID = ClientTradeID; this.Price = Price; this.TimeInForce = TimeInForce; this.GtdTime = GtdTime; this.TriggerCondition = TriggerCondition; this.ClientExtensions = ClientExtensions; }
/// <summary> /// Initializes a new instance of the <see cref="LimitOrderRequest" /> class. /// </summary> /// <param name="Type">The type of the Order to Create. Must be set to \"LIMIT\" when creating a Market Order..</param> /// <param name="Instrument">The Limit Order's Instrument..</param> /// <param name="Units">The quantity requested to be filled by the Limit Order. A posititive number of units results in a long Order, and a negative number of units results in a short Order..</param> /// <param name="Price">The price threshold specified for the Limit Order. The Limit Order will only be filled by a market price that is equal to or better than this price..</param> /// <param name="TimeInForce">The time-in-force requested for the Limit Order..</param> /// <param name="GtdTime">The date/time when the Limit Order will be cancelled if its timeInForce is \"GTD\"..</param> /// <param name="PositionFill">Specification of how Positions in the Account are modified when the Order is filled..</param> /// <param name="TriggerCondition">Specification of what component of a price should be used for comparison when determining if the Order should be filled..</param> /// <param name="ClientExtensions">ClientExtensions.</param> /// <param name="TakeProfitOnFill">TakeProfitOnFill.</param> /// <param name="StopLossOnFill">StopLossOnFill.</param> /// <param name="TrailingStopLossOnFill">TrailingStopLossOnFill.</param> /// <param name="TradeClientExtensions">TradeClientExtensions.</param> public LimitOrderRequest(TypeEnum?Type = default(TypeEnum?), string Instrument = default(string), string Units = default(string), string Price = default(string), TimeInForceEnum?TimeInForce = default(TimeInForceEnum?), string GtdTime = default(string), PositionFillEnum?PositionFill = default(PositionFillEnum?), TriggerConditionEnum?TriggerCondition = default(TriggerConditionEnum?), ClientExtensions ClientExtensions = default(ClientExtensions), TakeProfitDetails TakeProfitOnFill = default(TakeProfitDetails), StopLossDetails StopLossOnFill = default(StopLossDetails), TrailingStopLossDetails TrailingStopLossOnFill = default(TrailingStopLossDetails), ClientExtensions TradeClientExtensions = default(ClientExtensions)) { this.Type = Type; this.Instrument = Instrument; this.Units = Units; this.Price = Price; this.TimeInForce = TimeInForce; this.GtdTime = GtdTime; this.PositionFill = PositionFill; this.TriggerCondition = TriggerCondition; this.ClientExtensions = ClientExtensions; this.TakeProfitOnFill = TakeProfitOnFill; this.StopLossOnFill = StopLossOnFill; this.TrailingStopLossOnFill = TrailingStopLossOnFill; this.TradeClientExtensions = TradeClientExtensions; }
/// <summary> /// Initializes a new instance of the <see cref="StopLossOrder" /> class. /// </summary> /// <param name="Id">The Order's identifier, unique within the Order's Account..</param> /// <param name="CreateTime">The time when the Order was created..</param> /// <param name="State">The current state of the Order..</param> /// <param name="ClientExtensions">ClientExtensions.</param> /// <param name="Type">The type of the Order. Always set to \"STOP_LOSS\" for Stop Loss Orders..</param> /// <param name="TradeID">The ID of the Trade to close when the price threshold is breached..</param> /// <param name="ClientTradeID">The client ID of the Trade to be closed when the price threshold is breached..</param> /// <param name="Price">The price threshold specified for the StopLoss Order. The associated Trade will be closed by a market price that is equal to or worse than this threshold..</param> /// <param name="TimeInForce">The time-in-force requested for the StopLoss Order. Restricted to \"GTC\", \"GFD\" and \"GTD\" for StopLoss Orders..</param> /// <param name="GtdTime">The date/time when the StopLoss Order will be cancelled if its timeInForce is \"GTD\"..</param> /// <param name="TriggerCondition">Specification of what component of a price should be used for comparison when determining if the Order should be filled..</param> /// <param name="FillingTransactionID">ID of the Transaction that filled this Order (only provided when the Order's state is FILLED).</param> /// <param name="FilledTime">Date/time when the Order was filled (only provided when the Order's state is FILLED).</param> /// <param name="TradeOpenedID">Trade ID of Trade opened when the Order was filled (only provided when the Order's state is FILLED and a Trade was opened as a result of the fill).</param> /// <param name="TradeReducedID">Trade ID of Trade reduced when the Order was filled (only provided when the Order's state is FILLED and a Trade was reduced as a result of the fill).</param> /// <param name="TradeClosedIDs">Trade IDs of Trades closed when the Order was filled (only provided when the Order's state is FILLED and one or more Trades were closed as a result of the fill).</param> /// <param name="CancellingTransactionID">ID of the Transaction that cancelled the Order (only provided when the Order's state is CANCELLED).</param> /// <param name="CancelledTime">Date/time when the Order was cancelled (only provided when the state of the Order is CANCELLED).</param> /// <param name="ReplacesOrderID">The ID of the Order that was replaced by this Order (only provided if this Order was created as part of a cancel/replace)..</param> /// <param name="ReplacedByOrderID">The ID of the Order that replaced this Order (only provided if this Order was cancelled as part of a cancel/replace)..</param> public StopLossOrder(string Id = default(string), string CreateTime = default(string), StateEnum?State = default(StateEnum?), ClientExtensions ClientExtensions = default(ClientExtensions), TypeEnum?Type = default(TypeEnum?), string TradeID = default(string), string ClientTradeID = default(string), string Price = default(string), TimeInForceEnum?TimeInForce = default(TimeInForceEnum?), string GtdTime = default(string), TriggerConditionEnum?TriggerCondition = default(TriggerConditionEnum?), string FillingTransactionID = default(string), string FilledTime = default(string), string TradeOpenedID = default(string), string TradeReducedID = default(string), List <string> TradeClosedIDs = default(List <string>), string CancellingTransactionID = default(string), string CancelledTime = default(string), string ReplacesOrderID = default(string), string ReplacedByOrderID = default(string)) { this.Id = Id; this.CreateTime = CreateTime; this.State = State; this.ClientExtensions = ClientExtensions; this.Type = Type; this.TradeID = TradeID; this.ClientTradeID = ClientTradeID; this.Price = Price; this.TimeInForce = TimeInForce; this.GtdTime = GtdTime; this.TriggerCondition = TriggerCondition; this.FillingTransactionID = FillingTransactionID; this.FilledTime = FilledTime; this.TradeOpenedID = TradeOpenedID; this.TradeReducedID = TradeReducedID; this.TradeClosedIDs = TradeClosedIDs; this.CancellingTransactionID = CancellingTransactionID; this.CancelledTime = CancelledTime; this.ReplacesOrderID = ReplacesOrderID; this.ReplacedByOrderID = ReplacedByOrderID; }
/// <summary> /// Initializes a new instance of the <see cref="LimitOrderTransaction" /> class. /// </summary> /// <param name="Id">The Transaction's Identifier..</param> /// <param name="Time">The date/time when the Transaction was created..</param> /// <param name="UserID">The ID of the user that initiated the creation of the Transaction..</param> /// <param name="AccountID">The ID of the Account the Transaction was created for..</param> /// <param name="BatchID">The ID of the \"batch\" that the Transaction belongs to. Transactions in the same batch are applied to the Account simultaneously..</param> /// <param name="RequestID">The Request ID of the request which generated the transaction..</param> /// <param name="Type">The Type of the Transaction. Always set to \"LIMIT_ORDER\" in a LimitOrderTransaction..</param> /// <param name="Instrument">The Limit Order's Instrument..</param> /// <param name="Units">The quantity requested to be filled by the Limit Order. A posititive number of units results in a long Order, and a negative number of units results in a short Order..</param> /// <param name="Price">The price threshold specified for the Limit Order. The Limit Order will only be filled by a market price that is equal to or better than this price..</param> /// <param name="TimeInForce">The time-in-force requested for the Limit Order..</param> /// <param name="GtdTime">The date/time when the Limit Order will be cancelled if its timeInForce is \"GTD\"..</param> /// <param name="PositionFill">Specification of how Positions in the Account are modified when the Order is filled..</param> /// <param name="TriggerCondition">Specification of what component of a price should be used for comparison when determining if the Order should be filled..</param> /// <param name="Reason">The reason that the Limit Order was initiated.</param> /// <param name="ClientExtensions">ClientExtensions.</param> /// <param name="TakeProfitOnFill">TakeProfitOnFill.</param> /// <param name="StopLossOnFill">StopLossOnFill.</param> /// <param name="TrailingStopLossOnFill">TrailingStopLossOnFill.</param> /// <param name="TradeClientExtensions">TradeClientExtensions.</param> /// <param name="ReplacesOrderID">The ID of the Order that this Order replaces (only provided if this Order replaces an existing Order)..</param> /// <param name="CancellingTransactionID">The ID of the Transaction that cancels the replaced Order (only provided if this Order replaces an existing Order)..</param> public LimitOrderTransaction(string Id = default(string), string Time = default(string), int?UserID = default(int?), string AccountID = default(string), string BatchID = default(string), string RequestID = default(string), TypeEnum?Type = default(TypeEnum?), string Instrument = default(string), string Units = default(string), string Price = default(string), TimeInForceEnum?TimeInForce = default(TimeInForceEnum?), string GtdTime = default(string), PositionFillEnum?PositionFill = default(PositionFillEnum?), TriggerConditionEnum?TriggerCondition = default(TriggerConditionEnum?), ReasonEnum?Reason = default(ReasonEnum?), ClientExtensions ClientExtensions = default(ClientExtensions), TakeProfitDetails TakeProfitOnFill = default(TakeProfitDetails), StopLossDetails StopLossOnFill = default(StopLossDetails), TrailingStopLossDetails TrailingStopLossOnFill = default(TrailingStopLossDetails), ClientExtensions TradeClientExtensions = default(ClientExtensions), string ReplacesOrderID = default(string), string CancellingTransactionID = default(string)) { this.Id = Id; this.Time = Time; this.UserID = UserID; this.AccountID = AccountID; this.BatchID = BatchID; this.RequestID = RequestID; this.Type = Type; this.Instrument = Instrument; this.Units = Units; this.Price = Price; this.TimeInForce = TimeInForce; this.GtdTime = GtdTime; this.PositionFill = PositionFill; this.TriggerCondition = TriggerCondition; this.Reason = Reason; this.ClientExtensions = ClientExtensions; this.TakeProfitOnFill = TakeProfitOnFill; this.StopLossOnFill = StopLossOnFill; this.TrailingStopLossOnFill = TrailingStopLossOnFill; this.TradeClientExtensions = TradeClientExtensions; this.ReplacesOrderID = ReplacesOrderID; this.CancellingTransactionID = CancellingTransactionID; }
/// <summary> /// Initializes a new instance of the <see cref="TakeProfitOrderTransaction" /> class. /// </summary> /// <param name="Id">The Transaction's Identifier..</param> /// <param name="Time">The date/time when the Transaction was created..</param> /// <param name="UserID">The ID of the user that initiated the creation of the Transaction..</param> /// <param name="AccountID">The ID of the Account the Transaction was created for..</param> /// <param name="BatchID">The ID of the \"batch\" that the Transaction belongs to. Transactions in the same batch are applied to the Account simultaneously..</param> /// <param name="RequestID">The Request ID of the request which generated the transaction..</param> /// <param name="Type">The Type of the Transaction. Always set to \"TAKE_PROFIT_ORDER\" in a TakeProfitOrderTransaction..</param> /// <param name="TradeID">The ID of the Trade to close when the price threshold is breached..</param> /// <param name="ClientTradeID">The client ID of the Trade to be closed when the price threshold is breached..</param> /// <param name="Price">The price threshold specified for the TakeProfit Order. The associated Trade will be closed by a market price that is equal to or better than this threshold..</param> /// <param name="TimeInForce">The time-in-force requested for the TakeProfit Order. Restricted to \"GTC\", \"GFD\" and \"GTD\" for TakeProfit Orders..</param> /// <param name="GtdTime">The date/time when the TakeProfit Order will be cancelled if its timeInForce is \"GTD\"..</param> /// <param name="TriggerCondition">Specification of what component of a price should be used for comparison when determining if the Order should be filled..</param> /// <param name="Reason">The reason that the Take Profit Order was initiated.</param> /// <param name="ClientExtensions">ClientExtensions.</param> /// <param name="OrderFillTransactionID">The ID of the OrderFill Transaction that caused this Order to be created (only provided if this Order was created automatically when another Order was filled)..</param> /// <param name="ReplacesOrderID">The ID of the Order that this Order replaces (only provided if this Order replaces an existing Order)..</param> /// <param name="CancellingTransactionID">The ID of the Transaction that cancels the replaced Order (only provided if this Order replaces an existing Order)..</param> public TakeProfitOrderTransaction(string Id = default(string), string Time = default(string), int?UserID = default(int?), string AccountID = default(string), string BatchID = default(string), string RequestID = default(string), TypeEnum?Type = default(TypeEnum?), string TradeID = default(string), string ClientTradeID = default(string), string Price = default(string), TimeInForceEnum?TimeInForce = default(TimeInForceEnum?), string GtdTime = default(string), TriggerConditionEnum?TriggerCondition = default(TriggerConditionEnum?), ReasonEnum?Reason = default(ReasonEnum?), ClientExtensions ClientExtensions = default(ClientExtensions), string OrderFillTransactionID = default(string), string ReplacesOrderID = default(string), string CancellingTransactionID = default(string)) { this.Id = Id; this.Time = Time; this.UserID = UserID; this.AccountID = AccountID; this.BatchID = BatchID; this.RequestID = RequestID; this.Type = Type; this.TradeID = TradeID; this.ClientTradeID = ClientTradeID; this.Price = Price; this.TimeInForce = TimeInForce; this.GtdTime = GtdTime; this.TriggerCondition = TriggerCondition; this.Reason = Reason; this.ClientExtensions = ClientExtensions; this.OrderFillTransactionID = OrderFillTransactionID; this.ReplacesOrderID = ReplacesOrderID; this.CancellingTransactionID = CancellingTransactionID; }