hbdmapi / huobi_sdk_CSharp

CSharp SDK for Huobi API
Apache License 2.0
9 stars 4 forks source link

查询获取没有成交的委托订单时出错,经常出现。 #3

Open jonas20 opened 3 years ago

jonas20 commented 3 years ago

image

ad-long commented 3 years ago

public async Task CrossGetOpenOrderAsync. 这边测试是没有问题的. 测试 case 为: Huobi.SDK.Core.Test/LinearSwap/RestOrderTest.cs [Theory] [InlineData("ltc-usdt", 1, 10, "created_at", 0)] public void GetOpenOrderTest(string contractCode, int pageIndex, int pageSize, string sortBy, int tradeType)


看到你有 models/dealentrustmodel.cs, 可以检查一下是不是这个 模型数据 json 反序列化引起的错误

jonas20 commented 3 years ago

不是每次都出问题。但经常有问题。我是用你封装好的那个sdk的方法

------------------ 原始邮件 ------------------ 发件人: "hbdmapi/huobi_futures_CSharp" @.>; 发送时间: 2021年4月21日(星期三) 中午11:13 @.>; @.**@.>; 主题: Re: [hbdmapi/huobi_futures_CSharp] 查询获取没有成交的委托订单时出错,经常出现。 (#3)

public async Task CrossGetOpenOrderAsync. 这边测试是没有问题的. 测试 case 为: Huobi.SDK.Core.Test/LinearSwap/RestOrderTest.cs [Theory] [InlineData("ltc-usdt", 1, 10, "created_at", 0)] public void GetOpenOrderTest(string contractCode, int pageIndex, int pageSize, string sortBy, int tradeType)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ad-long commented 3 years ago

可以把列举一下可以重新时的参数吗?或者当时你的持仓状态. 尽可能的可以重现问题, 这样才能知道是哪有问题.