internal void Add(AccountClass.Instrument instrument)
 {
     if (!_instruments.ContainsKey(instrument.Id))
     {
         _instruments.AddItem(instrument, OperationType.AsNewRecord);
     }
 }
Exemplo n.º 2
0
 internal void AddResetItem(DateTime tradeDay, InstrumentResetItem resetItem)
 {
     if (_resetItemHistoryDict.ContainsKey(tradeDay))
     {
         Logger.WarnFormat("AddResetItem already Exists tradeDay = {0}, instrumentId ={1}, resetItem = {2}, previousResetItem = {3}", tradeDay, this.Id, resetItem,
                           _resetItemHistoryDict[tradeDay]);
     }
     else
     {
         _resetItemHistoryDict.AddItem(resetItem, OperationType.AsNewRecord);
     }
 }
Exemplo n.º 3
0
 internal bool ContainsOrderRelation(Guid openOrderId)
 {
     return(_orderRelations.ContainsKey(openOrderId));
 }