0
Follow
1
Followers
在使用调试工具时
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]}
请问这是为什么
Related Recommendations
Advanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?5.5 Trading strategy optimization
Comment
All comments (1)
火币的基地址默认就是https://api.hbdm.com,一般不用切换,提示签名失败,首先确定key没有问题,刚才我测试了一下,没问题。对于公开接口,用HttpQuery就行,IO针对加密接口。
6 years ago
- 1
