我很难弄清楚Binance的get_ticker()返回的最后三个数字是什么意思:
{
"priceChange": "-94.99999800",
"priceChangePercent": "-95.960",
"weightedAvgPrice": "0.29628482",
"prevClosePrice": "0.10002000",
"lastPrice": "4.00000200",
"bidPrice": "4.00000000",
"askPrice": "4.00000200",
"openPrice": "99.00000000",
"highPrice": "100.00000000",
"lowPrice": "0.10000000",
"volume": "8913.30000000",
"openTime": 1499783499040,
"closeTime": 1499869899040,
"fristId": 28385, # First tradeId
"lastId": 28460, # Last tradeId
"count": 76 # Trade count
}发布于 2019-01-04 20:45:45
以下是Binance的文档。毕竟,get_ticker所做的就是GET /api/v1/ticker/24hr。如您所见,这些值来自API。现在,如文档所述,这样的代码是一个24小时滚动窗口价格变动统计数据,因此,firstId和lastId是这段时间内第一次和最后一次交易的in,count表示在这段时间内发生了多少次交易。
https://stackoverflow.com/questions/54045546
复制相似问题