1. This my part of code from xyz.cs.
public void AddVolume(double price, long volume, TradeSide side, DateTime time, int barIdx)
{
if (ladder.Count == 0)
{
Begin = time;
BeginBarIdx = barIdx;
}
End = time;
EndBarIdx = barIdx;
AddVolume(price, volume, side);
close[barIdx] = price;
}
// } //newly added
public long GetPOCVolume() => ladder.Max(kv => kv.Value);
//the above line getting class member declaratione expected and ; expected => here
public long GetPOCVolume(TradeSide side) => ladderBidAsk[(int)side].Max(kv => kv.Value);//identifier expected here
public long Volume() => ladder.Sum(kv => kv.Value);//invali token ) class struct and the interface
public bool IsEmpty() => ladder.Count == 0;//invalid token => class struct ad interface declaratione

Comment