public void Update(DEALS.deal dl) { //TO DO trigger recalc bots //TO DO update levels and candles LastRcvRD = new CRawDeal(dl); // m_dealQqueue.Add(new CRawDeal(dl)); m_bqRawDeal.Add(new CRawDeal(dl)); int tmp = 1; }
public CRawDeal(DEALS.deal d) { ReplID = d.replID; ReplRev = d.replRev; ReplAct = d.replAct; Isin_id = d.isin_id; Id_deal = d.id_deal; Amount = d.amount; Price = d.price; Id_ord_buy = d.id_ord_buy; Id_ord_sell = d.id_ord_sell; Moment = d.moment; Pos = d.pos; }
public void UpdateDeals(DEALS.deal dealInp) { try { int isin_id = dealInp.isin_id; string isin = _client.Instruments.GetInstrumentByIsinId(isin_id); m_dealsStructList[isin].Update(dealInp); } catch (Exception e) { string st = e.Message; Error("UpdateDeals", e); } }