public override string ToString() { return(MarketId.ToString() + "," + MarketOffDatetime.ToString("yyyy-MM-dd HH:mm:ss") + "," + SnapshotDatetime.ToString("yyyy-MM-dd HH:mm:ss") + "," + SecondsBeforeOff.ToString() + "," + SelectionId.ToString() + "," + SelectionName.ToString() + "," + (Back3 == 0 ? @"\N" : Back3.ToString()) + "," + (Back3Vol == 0 ? @"\N" : Back3Vol.ToString()) + "," + (Back2 == 0 ? @"\N" : Back2.ToString()) + "," + (Back2Vol == 0 ? @"\N" : Back2Vol.ToString()) + "," + (Back == 0 ? @"\N" : Back.ToString()) + "," + (BackVol == 0 ? @"\N" : BackVol.ToString()) + "," + (Lay == 0 ? @"\N" : Lay.ToString()) + "," + (LayVol == 0 ? @"\N" : LayVol.ToString()) + "," + (Lay2 == 0 ? @"\N" : Lay2.ToString()) + "," + (Lay2Vol == 0 ? @"\N" : Lay2Vol.ToString()) + "," + (Lay3 == 0 ? @"\N" : Lay3.ToString()) + "," + (Lay3Vol == 0 ? @"\N" : Lay3Vol.ToString()) + "," + (Trade ? "1" : "0") + "," + (LastTradedPrice == 0 ? @"\N" : LastTradedPrice.ToString()) + "," + CumulTradedVolSelection.ToString() + "," + CumulTradedVolMarket.ToString() + "," + (BecomesNonRunner ? "1" : "0") + "," + (ReductionFactorToApply > 0 ? ReductionFactorToApply.ToString() : @"\N") + "," + (Midpoint == 0 ? @"\N" : Midpoint.ToString()) + "," + (WeightedAverage == 0 ? @"\N" : WeightedAverage.ToString()) ); }
private void OrderBook_TradeCompleted(object sender, TradeCompletedEventArgs e) { LastTradedPrice = e.LastTradedPrice; TradeCompleted?.Invoke(this, e); System.Diagnostics.Debug.Print(LastTradedPrice.ToString()); }