private static void SwapETFIn() { var etfClient = new ETFClient(Config.AccessKey, Config.SecretKey); var response = etfClient.SwapETFInAsync(100).Result; if (response != null) { string message = string.IsNullOrEmpty(response.message) ? "" : response.message; if (response.success) { Console.WriteLine($"Swap in success: {message}"); } else { Console.WriteLine($"Swap in fail: {message}"); } } }
private static void SwapETFIn() { var etfClient = new ETFClient(Config.AccessKey, Config.SecretKey); _logger.Start(); var response = etfClient.SwapETFInAsync(100).Result; _logger.StopAndLog(); if (response != null) { string message = string.IsNullOrEmpty(response.message) ? "" : response.message; if (response.success) { AppLogger.Info($"Swap in success: {message}"); } else { AppLogger.Info($"Swap in fail: {message}"); } } }