Binance API get_ticker()数据

时间:2019-01-04 20:24:21

标签: python api 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
}

1 个答案:

答案 0 :(得分:1)

这里是Binance API的docs。毕竟,<bound method C.function of ...>所做的就是get_ticker。如您所见,这些值来自API。现在,正如文档所说的那样,这样的报价器是 24小时滚动窗口价格变化统计信息,因此,GET /api/v1/ticker/24hrfirstId是此类交易的第一笔和最后一笔交易的ID期间,lastId表示在这段时间内发生了多少笔交易。