/// <summary> /// Initializes a new instance of the <see cref="OrderExecutionReport" /> class. /// </summary> /// <param name="exchangeId">Exchange identifier used to identify the routing destination. (required).</param> /// <param name="clientOrderId">The unique identifier of the order assigned by the client. (required).</param> /// <param name="symbolIdExchange">Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order..</param> /// <param name="symbolIdCoinapi">CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order..</param> /// <param name="amountOrder">Order quantity. (required).</param> /// <param name="price">Order price. (required).</param> /// <param name="side">side (required).</param> /// <param name="orderType">orderType (required).</param> /// <param name="timeInForce">timeInForce (required).</param> /// <param name="expireTime">Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`..</param> /// <param name="execInst">Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> .</param> /// <param name="clientOrderIdFormatExchange">The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it. (required).</param> /// <param name="exchangeOrderId">Unique identifier of the order assigned by the exchange or executing system..</param> /// <param name="amountOpen">Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled` (required).</param> /// <param name="amountFilled">Total quantity filled. (required).</param> /// <param name="avgPx">Calculated average price of all fills on this order..</param> /// <param name="status">status (required).</param> /// <param name="statusHistory">Timestamped history of order status changes..</param> /// <param name="errorMessage">Error message..</param> /// <param name="fills">Relay fill information on working orders..</param> public OrderExecutionReport(string exchangeId = default(string), string clientOrderId = default(string), string symbolIdExchange = default(string), string symbolIdCoinapi = default(string), decimal amountOrder = default(decimal), decimal price = default(decimal), OrdSide side = default(OrdSide), OrdType orderType = default(OrdType), TimeInForce timeInForce = default(TimeInForce), DateTime expireTime = default(DateTime), List <ExecInstEnum> execInst = default(List <ExecInstEnum>), string clientOrderIdFormatExchange = default(string), string exchangeOrderId = default(string), decimal amountOpen = default(decimal), decimal amountFilled = default(decimal), decimal avgPx = default(decimal), OrdStatus status = default(OrdStatus), List <List <string> > statusHistory = default(List <List <string> >), string errorMessage = default(string), List <Fills> fills = default(List <Fills>)) { // to ensure "exchangeId" is required (not null) this.ExchangeId = exchangeId ?? throw new ArgumentNullException("exchangeId is a required property for OrderExecutionReport and cannot be null"); // to ensure "clientOrderId" is required (not null) this.ClientOrderId = clientOrderId ?? throw new ArgumentNullException("clientOrderId is a required property for OrderExecutionReport and cannot be null"); this.AmountOrder = amountOrder; this.Price = price; this.Side = side; this.OrderType = orderType; this.TimeInForce = timeInForce; // to ensure "clientOrderIdFormatExchange" is required (not null) this.ClientOrderIdFormatExchange = clientOrderIdFormatExchange ?? throw new ArgumentNullException("clientOrderIdFormatExchange is a required property for OrderExecutionReport and cannot be null"); this.AmountOpen = amountOpen; this.AmountFilled = amountFilled; this.Status = status; this.SymbolIdExchange = symbolIdExchange; this.SymbolIdCoinapi = symbolIdCoinapi; this.ExpireTime = expireTime; this.ExecInst = execInst; this.ExchangeOrderId = exchangeOrderId; this.AvgPx = avgPx; this.StatusHistory = statusHistory; this.ErrorMessage = errorMessage; this.Fills = fills; }
/// <summary> /// Initializes a new instance of the <see cref="OrderNewSingleRequest" /> class. /// </summary> /// <param name="exchangeId">Exchange identifier used to identify the routing destination. (required).</param> /// <param name="clientOrderId">The unique identifier of the order assigned by the client. (required).</param> /// <param name="symbolIdExchange">Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order..</param> /// <param name="symbolIdCoinapi">CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order..</param> /// <param name="amountOrder">Order quantity. (required).</param> /// <param name="price">Order price. (required).</param> /// <param name="side">side (required).</param> /// <param name="orderType">orderType (required).</param> /// <param name="timeInForce">timeInForce (required).</param> /// <param name="expireTime">Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`..</param> /// <param name="execInst">Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> .</param> public OrderNewSingleRequest(string exchangeId = default(string), string clientOrderId = default(string), string symbolIdExchange = default(string), string symbolIdCoinapi = default(string), decimal amountOrder = default(decimal), decimal price = default(decimal), OrdSide side = default(OrdSide), OrdType orderType = default(OrdType), TimeInForce timeInForce = default(TimeInForce), DateTime expireTime = default(DateTime), List <ExecInstEnum> execInst = default(List <ExecInstEnum>)) { // to ensure "exchangeId" is required (not null) this.ExchangeId = exchangeId ?? throw new ArgumentNullException("exchangeId is a required property for OrderNewSingleRequest and cannot be null"); // to ensure "clientOrderId" is required (not null) this.ClientOrderId = clientOrderId ?? throw new ArgumentNullException("clientOrderId is a required property for OrderNewSingleRequest and cannot be null"); this.AmountOrder = amountOrder; this.Price = price; this.Side = side; this.OrderType = orderType; this.TimeInForce = timeInForce; this.SymbolIdExchange = symbolIdExchange; this.SymbolIdCoinapi = symbolIdCoinapi; this.ExpireTime = expireTime; this.ExecInst = execInst; }
/// <summary> /// Initializes a new instance of the <see cref="OrderNewSingleRequest" /> class. /// </summary> /// <param name="exchangeId">Exchange identifier used to identify the routing destination. (required).</param> /// <param name="clientOrderId">The unique identifier of the order assigned by the client. (required).</param> /// <param name="symbolIdExchange">Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order..</param> /// <param name="symbolIdCoinapi">CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order..</param> /// <param name="amountOrder">Order quantity. (required).</param> /// <param name="price">Order price. (required).</param> /// <param name="side">side (required).</param> /// <param name="orderType">orderType (required).</param> /// <param name="timeInForce">timeInForce (required).</param> /// <param name="expireTime">Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`..</param> /// <param name="execInst">Order execution instructions are documented in the separate section: <a href=\"#ems-order-params-exec\">EMS / Starter Guide / Order parameters / Execution instructions</a> .</param> public OrderNewSingleRequest(string exchangeId = default(string), string clientOrderId = default(string), string symbolIdExchange = default(string), string symbolIdCoinapi = default(string), decimal amountOrder = default(decimal), decimal price = default(decimal), OrdSide side = default(OrdSide), OrdType orderType = default(OrdType), TimeInForce timeInForce = default(TimeInForce), DateTime expireTime = default(DateTime), List <ExecInstEnum> execInst = default(List <ExecInstEnum>)) { // to ensure "exchangeId" is required (not null) if (exchangeId == null) { throw new InvalidDataException("exchangeId is a required property for OrderNewSingleRequest and cannot be null"); } else { this.ExchangeId = exchangeId; } // to ensure "clientOrderId" is required (not null) if (clientOrderId == null) { throw new InvalidDataException("clientOrderId is a required property for OrderNewSingleRequest and cannot be null"); } else { this.ClientOrderId = clientOrderId; } // to ensure "amountOrder" is required (not null) if (amountOrder == null) { throw new InvalidDataException("amountOrder is a required property for OrderNewSingleRequest and cannot be null"); } else { this.AmountOrder = amountOrder; } // to ensure "price" is required (not null) if (price == null) { throw new InvalidDataException("price is a required property for OrderNewSingleRequest and cannot be null"); } else { this.Price = price; } // to ensure "side" is required (not null) if (side == null) { throw new InvalidDataException("side is a required property for OrderNewSingleRequest and cannot be null"); } else { this.Side = side; } // to ensure "orderType" is required (not null) if (orderType == null) { throw new InvalidDataException("orderType is a required property for OrderNewSingleRequest and cannot be null"); } else { this.OrderType = orderType; } // to ensure "timeInForce" is required (not null) if (timeInForce == null) { throw new InvalidDataException("timeInForce is a required property for OrderNewSingleRequest and cannot be null"); } else { this.TimeInForce = timeInForce; } this.SymbolIdExchange = symbolIdExchange; this.SymbolIdCoinapi = symbolIdCoinapi; this.ExpireTime = expireTime; this.ExecInst = execInst; }