예제 #1
0
        /// <summary>
        /// 设置用户合约杠杆
        /// </summary>
        /// <param name="contractCode"></param>
        private static void SetLeverage(string contractCode)
        {
            _logger.Start();

            var data = _tradeClient.SetLeverageAsync(contractCode, (int)Direct.Long, 20).Result;

            _logger.StopAndLog();

            AppLogger.Info($"set leverage, data:{JsonConvert.SerializeObject(data)}");
        }