Exemplo n.º 1
0
        public static void Initialize(this TradingSet tradingSet, DataSet dataSet)
        {
            tradingSet.Quotations        = InitializationHelper.CreateArray <InitialQuotation>(dataSet, "Quotation", Initialize);
            tradingSet.Transactions      = InitializationHelper.CreateArray <Transaction>(dataSet, "Transaction", Initialize);
            tradingSet.Orders            = InitializationHelper.CreateArray <Order>(dataSet, "Order", Initialize);
            tradingSet.OrderRelations    = InitializationHelper.CreateArray <OrderRelation>(dataSet, "OrderRelation", Initialize);
            tradingSet.AccountCurrencies = InitializationHelper.CreateArray <AccountCurrency>(dataSet, "AccountCurrency", Initialize);
            tradingSet.DayPLNotValueds   = InitializationHelper.CreateArray <DayPLNotValued>(dataSet, "DayPLNotValued", Initialize);

            tradingSet.BestPendings = InitializationHelper.CreateArray <InitialPendingItem>(dataSet, "BestPending", Initialize);
            tradingSet.TimeAndSales = InitializationHelper.CreateArray <InitialTimeAndSale>(dataSet, "TimeAndSale", Initialize);
            tradingSet.HasMessage   = TradingSetHelper.GetHasMessage(dataSet);

            tradingSet.GroupStatus      = InitializationHelper.CreateArray <IdStatus>(dataSet, "InstrumentGroupState", Initialize);
            tradingSet.InstrumentStatus = InitializationHelper.CreateArray <IdStatus>(dataSet, "InstrumentState", Initialize);

            tradingSet.DeliveryRequests             = InitializationHelper.CreateArray <DeliveryRequest>(dataSet, "DeliveryRequest", Initialize);
            tradingSet.ScrapDeposits                = InitializationHelper.CreateArray <ScrapDeposit>(dataSet, "ScrapDeposit", Initialize);
            tradingSet.DeliveryRequestOrderRelation = InitializationHelper.CreateArray <DeliveryRequestOrderRelation>(dataSet, "DeliveryRequestOrderRelation", Initialize);
        }
Exemplo n.º 2
0
 public static void InitializeMessages(this TradingSet tradingSet, DataSet messagesDataSet)
 {
     tradingSet.Messages = InitializationHelper.CreateArray <Chat>(messagesDataSet, "Messages", Initialize);
 }