Exemplo n.º 1
0
        private static void SwapETFOut()
        {
            var etfClient = new ETFClient(Config.AccessKey, Config.SecretKey);


            var response = etfClient.SwapETFOutAsync(100).Result;

            if (response != null)
            {
                string message = string.IsNullOrEmpty(response.message) ? "" : response.message;

                if (response.success)
                {
                    Console.WriteLine($"Swap out success: {message}");
                }
                else
                {
                    Console.WriteLine($"Swap out fail: {message}");
                }
            }
        }
Exemplo n.º 2
0
        private static void SwapETFOut()
        {
            var etfClient = new ETFClient(Config.AccessKey, Config.SecretKey);

            _logger.Start();
            var response = etfClient.SwapETFOutAsync(100).Result;

            _logger.StopAndLog();

            if (response != null)
            {
                string message = string.IsNullOrEmpty(response.message) ? "" : response.message;

                if (response.success)
                {
                    AppLogger.Info($"Swap out success: {message}");
                }
                else
                {
                    AppLogger.Info($"Swap out fail: {message}");
                }
            }
        }