internal ContractSide(DateTime date, Proposal parent, SideController sideController) { SideController = sideController; Parent = parent; EntryType action = parent.IsEveneSide(this) ? parent.Action : Graph.SideKey.OppositeType(parent.Action); SideKey = Graph.SideKey.Get(date, action); SideController.Register(this); }
internal SpreadMatrixData(string exchange, string symbol) { Exchange = exchange; Symbol = symbol; SideController = new SideController(); }
void InsertGroup(uint index, MarketDataSnapshotFullRefresh.NoMDEntries group, SideController sideController) { MDEntryGroups[index] = new Proposal(group, this, GetDatePair(), sideController); }
internal void UpdateMDEntry(MarketDataSnapshotFullRefresh entry, SideController sideController) { MDReqID = entry.getMDReqID().getValue(); ClearGroups(); MDGroupCount = entry.getNoMDEntries().getValue(); MDEntryGroups = new MDEntryGroup[MDGroupCount]; MarketDataSnapshotFullRefresh.NoMDEntries group = new MarketDataSnapshotFullRefresh.NoMDEntries(); for (uint i = 0; i < MDGroupCount; i++) { entry.getGroup(i + 1, group); InsertGroup(i, group, sideController); } IsMDUpdated = true; }
internal Alg(SideController sideController) { SideController = sideController; }