private void InitializeSymbols() { var securityBase = new BloombergSecurity(dataGridViewTrnspsr.Rows[0], _transposerTable.Rows[0], _fields); _securities.Add(securityBase); _bloombergRealTimeData.AddSecurity(securityBase); baseSymbolName = _transposerTable.Rows[0][1].ToString().Trim(); securityBase.HighlightTimeInSecs = _highlightTimeInSecs; securityBase.Precision = _precision; for (int i = 1; i < dataGridViewTrnspsr.Rows.Count; i++) { var sec = new TransposedSecurity(securityBase, dataGridViewTrnspsr.Rows[i], _transposerTable.Rows[i], _fields); _securities.Add(sec); _bloombergRealTimeData.AddSecurity(sec); securityBase.AddTransposedSecurity(sec); sec.LookBack = _lookback; sec.HighlightTimeInSecs = _highlightTimeInSecs; sec.Precision = _precision; } }
public void AddSecurity(BloombergSecurity security) { _securities.Add(security.Ticker, security); }
public TransposedSecurity(BloombergSecurity baseSecurity, DataGridViewRow dataGridrow, DataRow dataRow, List<string> securityField) : base(dataGridrow, dataRow, securityField) { _baseSecurity = baseSecurity; }