예제 #1
0
 public TradeEntry(object[] entry)
 {
     this.Price         = decimal.Parse((string)entry[0]);
     this.Volume        = decimal.Parse((string)entry[1]);
     this.Ticks         = TickTime.FromUnixTimeStamp(double.Parse(entry[2].ToString()));
     this.buy_sell      = (string)entry[3];
     this.market_limit  = (string)entry[4];
     this.miscellaneous = (string)entry[5];
 }
예제 #2
0
 public SpreadEntry(object[] entry)
 {
     this.Ticks = TickTime.FromUnixTimeStamp(double.Parse(entry[0].ToString()));
     this.Bid   = decimal.Parse((string)entry[1]);
     this.Ask   = decimal.Parse((string)entry[2]);
 }
예제 #3
0
 public OrderBookEntry(object[] entry)
 {
     this.Price  = decimal.Parse((string)entry[0]);
     this.Volume = decimal.Parse((string)entry[1]);
     this.Ticks  = TickTime.FromUnixTimeStamp(double.Parse(entry[2].ToString()));
 }