Ejemplo n.º 1
0
        /// <summary>
        /// 获取历史委托
        /// </summary>
        /// <param name="contractCode"></param>
        private static void QueryHistoryOrders(string contractCode)
        {
            _logger.Start();
            var req = new QueryHistoryOrdersRequest()
            {
                ContractCodeList = new List <string>()
                {
                    contractCode
                },
                TypeList  = new List <int>(),
                Side      = 0,
                StartTime = 0,
                EndTime   = 0
            };

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

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