Naicon
Naicon

Reputation: 3

Binance API get_ticker() data

I am having trouble figuring out what the last three numbers returned by Binance's get_ticker() mean:

{
    "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
}

Upvotes: 0

Views: 5683

Answers (1)

JoshuaCS
JoshuaCS

Reputation: 2624

Here are the docs of the Binance API. After all, what get_ticker does, is GET /api/v1/ticker/24hr. As you can see, those values come from the API. Now, as the docs say, such ticker is a 24 hour rolling window price change statistics so, firstId and lastId are the IDs of the first and last trades made in such period and count indicates how many trades occured in such time.

Upvotes: 2

Related Questions