public static void Main14(string[] args) { // get properties from file getProperties(); wrapper = new AdharaHFT(domain, url_stream, url_polling, url_challenge, url_token, user, password, authentication_port, request_port, ssl, ssl_cert); bool auth = wrapper.doAuthentication(); if (!auth) { Console.WriteLine("Authentication failed"); Console.Read(); return; } // HISTORICAL PRICE POLLING // get tinterfaces List <AdharaHFT.tinterfaceTick> tinterfaceTickList = wrapper.getInterface(); Console.WriteLine("Starting Candle list 1"); List <String> tinterfacelist = null; if (tinterfaceTickList != null && tinterfaceTickList.Count > 1) { tinterfacelist = new List <string>(); tinterfacelist.Add(tinterfaceTickList[1].name); } List <AdharaHFT.candleTick> candleTickList1 = wrapper.getHistoricalPrice(new List <string> { "EUR/USD", "EUR/GBP", "EUR/JPY", "GBP/JPY", "GBP/USD", "USD/JPY" }, tinterfacelist, AdharaHFT.CANDLE_GRANULARITY_10MINUTES, AdharaHFT.SIDE_ASK, 5); foreach (AdharaHFT.candleTick tick in candleTickList1) { Console.WriteLine("Security: " + tick.security + " tinterface: " + tick.tinterface + " TimeStamp: " + tick.timestamp + " Side: " + tick.side + " Open: " + tick.open + " High: " + tick.high + " Low: " + tick.low + " Close: " + tick.close + " Ticks: " + tick.ticks); } Console.WriteLine("Candle list 1 Finished"); Console.WriteLine("Starting Candle list 2"); List <AdharaHFT.candleTick> candleTickList2 = wrapper.getHistoricalPrice(new List <string> { "EUR/USD" }, null, AdharaHFT.CANDLE_GRANULARITY_30MINUTES, AdharaHFT.SIDE_BID, 3); foreach (AdharaHFT.candleTick tick in candleTickList2) { Console.WriteLine("Security: " + tick.security + " tinterface: " + tick.tinterface + " TimeStamp: " + tick.timestamp + " Side: " + tick.side + " Open: " + tick.open + " High: " + tick.high + " Low: " + tick.low + " Close: " + tick.close + " Ticks: " + tick.ticks); } Console.WriteLine("Candle list 2 Finished"); Console.WriteLine("Press Enter to exit"); Console.Read(); }