资源加载中... loading...

币安切换基地址时报错

Author: bamsmen, Created: 2023-02-09 17:59:05, Updated:

exchange.SetBase("https://api.binance.com") 
let vol = exchange.IO( "api","GET","/api/v3/ticker/24hr" )
Log(vol)
exchange.SetBase("https://fapi.binance.com")

错误信息:Futures_OP 4: 400: {"code":-1104,"msg":"Not all sent parameters were read; read '0' parameter(s) but was sent '3'."}

试了下切换基地址后访问其他接口,也都会报类似错误,请管理员看下

More

发明者量化-小小梦 您好,exchange.IO函数用于访问私有接口,这个函数内封装了签名参数(会传额外的时间戳等参数,所以用这个函数去访问公共接口会导致报错)。访问公共接口可以用HttpQuery函数。 ``` /api/v3/ticker/24hr ``` 这是一个公共接口。