コード例 #1
0
        /// <summary>
        /// 获取用户强平历史
        /// </summary>
        /// <param name="contractCode"></param>
        private static void QueryLiquidationHistory(string contractCode)
        {
            _logger.Start();
            var req = new QueryLiquidationHistoryRequest()
            {
                ContractCodeList = new List <string>()
                {
                    contractCode
                },
                Side = 0
            };

            var data = _tradeClient.QueryLiquidationHistoryAsync(req).Result;

            _logger.StopAndLog();
            AppLogger.Info($"query liquidation orders, data:{JsonConvert.SerializeObject(data)}");
        }