HuobiRDCenter / huobi_Python

Python SDK for Huobi Spot API
https://huobiapi.github.io/docs/spot/v1/en
Apache License 2.0
683 stars 333 forks source link

关于接口 /v2/account/ledger 请求体返回数据不符合预期 #97

Open chenluyong opened 3 years ago

chenluyong commented 3 years ago

问题简要说明:请求体返回数据不符合预期 OTC账户UID:8521674 完整的URL请求:

https://api.huobi.pro/v2/account/ledger?accountId=8521674&transact-types=transfer&startTime=1602866044000&endTime=1603643644000&AccessKeyId=a533943f-83a6ff27-vf25treb80-dd201&SignatureVersion=2&SignatureMethod=HmacSHA256&Timestamp=2021-03-27T07%3A32%3A26&Signature=Xq5jLCRCqAbeiluBWjPCEn6juFP9gJKNsTxRAHGueM8%3D

完整的JSON格式的参数:无 完整的JSON格式的返回:

{
    "code":200,
    "message":"success",
    "data":[

    ],
    "ok":true
}

问题出现频率:每次都会出现 签名前字符串:

https://api.huobi.be/v2/account/ledger?accountId=8521674&transact-types=transfer&startTime=1602088444000&endTime=1602866044000

根据 /example/account/get_account_ledger.py 的脚本及接口文档,生成以上请求路径,但结果并不符合预期。

我希望能在这个返回结果中看到订单记录,包括:买入、卖出、转入、转出。

无论我是否填写 transact-types 字段值,返回内容皆为 [] 空数组,事实上我的账户内在 2020-10-17 是存有订单的,订单类型包括买入、转出

我通过该请求测试 spot 账户,发现是符合预期,能够返回转账交易记录

chenluyong commented 3 years ago

我期望获取法币订单的订单记录,包括:买入、卖出、转入、转出