火币返回403错误

Author: bamsmen, Created: 2020-06-08 20:21:18, Updated: 2020-06-08 22:50:20

在使用调试工具时 1. function main(){ exchange.IO("base", “https://api.hbdm.com/”) let info = exchange.IO("api", “POST”, “/api/v1/contract_account_info”, “” ) return info } 返回以下错误,看文档好像是身份校验失败,是不是fmz的签名算法有问题? {“status”:“error”,“err_code”:403,“err_msg”:“Verification failure [校验失败]”,“ts”:1591618683532}

var d = exchange.IO("api", “GET”, “/market/history/kline”,“symbol=BTC_CQ&period=60min&size=30”) return d 如果使用火币或wexApp可以正常获取到k线数据,但是换成火币期货则会报以下错误 Futures_OP 4: &{map[err-code:invalid-parameter err-msg:invalid period status:error ts:1.59162767652e+12]}

请问这是为什么


More

小草 火币的基地址默认就是https://api.hbdm.com,一般不用切换,提示签名失败,首先确定key没有问题,刚才我测试了一下,没问题。对于公开接口,用HttpQuery就行,IO针对加密接口。