public String GetTickInfo(string symbol) { bool isConnected = SpaceInit(); if (!(isConnected)) { return("connection error"); } TickInfo.TickInfo tick = ReadTick(symbol); if (tick == null) { return("Not Exist"); } return(tick.ToString()); }
private string ReadTick(String symbol) { // reading the Person Data from the Spaces TickInfo.TickInfo template = new TickInfo.TickInfo(); template.Symbol = symbol; TickInfo.TickInfo tick = _proxy.Read <TickInfo.TickInfo>(template); if (tick == null) { return("Not Exist"); } else { return(tick.ToString()); } }