Ejemplo n.º 1
0
        // Prototype
        public TickPricesResponse GetTicks(string symbol)
        {
            if (string.IsNullOrEmpty(symbol))
            {
                symbol = "OIL"; //default to oil, change this later
            }

            SyncAPIConnector connector     = new SyncAPIConnector(serverData);
            LoginResponse    loginResponse = APICommandFactory.ExecuteLoginCommand(connector, GetCredentials(), true);
            var ms    = DateTimeToUnixTimestamp(DateTime.Now.AddDays(-1));
            var ticks = APICommandFactory.ExecuteTickPricesCommand(connector, new List <string> {
                "OIL"
            }, DateTime.Now.Millisecond);

            return(ticks);
        }