public void AccountCrossGetUserSettlementRecordsTest(string marginAccount, long?startTime, long?endTime,
                                                             int?pageIndex = null, int?pageSize = null)
        {
            var    result = client.CrossGetUserSettlementRecordsAsync(marginAccount, startTime, endTime, pageIndex, pageSize).Result;
            string strret = JsonConvert.SerializeObject(result, Formatting.Indented);

            Console.WriteLine(strret);
            Assert.Equal("ok", result.status);
        }
Exemplo n.º 2
0
        public void AccountCrossGetUserSettlementRecordsTest(string marginAccount, long?startTime, long?endTime,
                                                             int?pageIndex = null, int?pageSize = null)
        {
            var    result = client.CrossGetUserSettlementRecordsAsync(marginAccount, startTime, endTime, pageIndex, pageSize).Result;
            string strret = JsonConvert.SerializeObject(result, Formatting.Indented);

            Console.WriteLine(strret);
            Assert.Equal("ok", result.status);
            string type = marginAccount.ToUpper();

            foreach (var d in result.data.settlementRecords)
            {
                foreach (var item in d.contractDetail)
                {
                    Assert.Equal(type, item.tradePartition);
                }
            }
            Console.WriteLine("------------");
        }