public static QDMS.BarSize BarSizeConverter(Krs.Ats.IBNet.BarSize freq) { if (freq == Krs.Ats.IBNet.BarSize.OneYear) { return(QDMS.BarSize.OneYear); } return((QDMS.BarSize)(int) freq); }
public void GetHistoricalData() { //System.Void RequestHistoricalData(System.Int32 tickerId, // Krs.Ats.IBNet.Contract contract, // System.DateTime endDateTime, // System.String duration, // Krs.Ats.IBNet.BarSize barSizeSetting, // Krs.Ats.IBNet.HistoricalDataType whatToShow, // System.Int32 useRth) Krs.Ats.IBNet.BarSize barSizeSetting = Krs.Ats.IBNet.BarSize.FifteenMinutes; Krs.Ats.IBNet.HistoricalDataType whatToShow = Krs.Ats.IBNet.HistoricalDataType.Trades; DateTime endDateTime = new DateTime(2012, 4, 6, 3, 00, 0); m_Client.RequestHistoricalData(m_ID, m_Contract, endDateTime, "1 M", barSizeSetting, whatToShow, 0); }