private void Sell(string[] args) { if (args.Length < 2 || args.Length > 3) { throw new ArgumentException("Sell epects 2-3 arguments"); } if (args.Length == 2) { Colored(() => Line(_coinspotService.QuickSell(args[0], float.Parse(args[1]))), ConsoleColor.DarkRed); } else { Colored(() => Line(_coinspotService.Sell(args[0], float.Parse(args[1]), float.Parse(args[2]))), ConsoleColor.DarkRed); } }