Ejemplo n.º 1
0
        public void SwitchLeverRateTest(string contractCode, int leverRate)
        {
            var    result = client.IsolatedSwitchLeverRateAsync(contractCode, leverRate).Result;
            string strret = JsonConvert.SerializeObject(result, Formatting.Indented);

            Console.WriteLine(strret);
            System.Threading.Thread.Sleep(3000);
            Assert.Equal("ok", result.status);

            result = client.CrossSwitchLeverRateAsync(contractCode, leverRate).Result;
            strret = JsonConvert.SerializeObject(result, Formatting.Indented);
            Console.WriteLine(strret);
            System.Threading.Thread.Sleep(3000);
            Assert.Equal("ok", result.status);
        }