Example #1
0
 public string ToString(TickerProvider p_tp)
 {
     return $"{AssetID.ToString(p_tp)}[{Volume:F2}]";
     //return String.Format("{0}[{1} {2}]", SizeGroup, AssetID.ToString(p_tp), Size.ToString());
 }
Example #2
0
 /// <summary> Returns DBUtils.DefaultAssetIDString() (e.g. "Stock(103)")
 /// if the ticker is unknown </summary>
 public static string ToString(this IAssetID p_assetID, TickerProvider p_tp, DateTime? p_timeUtc = null)
 {
     return (p_assetID == null) ? null : p_tp.GetTicker(p_assetID, p_timeUtc);
 }