Esempio n. 1
0
File: Program.cs Progetto: ifzz/FDK
 public static LrpQuote ReadQuote(this TextStream stream, string name = null)
 {
     if (null != name)
     {
         stream.ValidateVerbatimText(name);
         stream.ValidateVerbatimText(" = ");
     }
     var result = new LrpQuote();
     stream.ValidateVerbatimText('{');
     result.Symbol = stream.ReadAString("Symbol");
     stream.ValidateVerbatimText(';');
     result.CreatingTime = stream.ReadTime("CreatingTime");
     stream.ValidateVerbatimText(';');
     result.Bids = stream.ReadQuoteEntryArray("Bids");
     stream.ValidateVerbatimText(';');
     result.Asks = stream.ReadQuoteEntryArray("Asks");
     stream.ValidateVerbatimText(';');
     result.Id = stream.ReadAString("Id");
     stream.ValidateVerbatimText(';');
     stream.ValidateVerbatimText('}');
     return result;
 }
Esempio n. 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="id"></param>
 /// <param name="quote"></param>
 public void SendQuote(long id, LrpQuote quote)
 {
     this.proxy.SendQuote(id, quote);
 }
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="id"></param>
 /// <param name="quote"></param>
 public void SendQuote(long id, LrpQuote quote)
 {
     this.proxy.SendQuote(id, quote);
 }