0

https://api.gdax.com/products/BTC-EUR/ticker返回类似

{
"trade_id": 437092,
"price": "363.76",
"size": "2.73207436",
"bid": "363.63",
"ask": "364.39",
"volume": "444.19694168",
"time": "2016-03-21T16:41:40.230529Z"
}

文档没有说明这些东西的含义。

我的猜测是:

trade_id是某种独特的 id。

price是比特币买卖的平均价格

bid是某人愿意得到的最大金额

ask是某人愿意支付的最低金额

time是请求的时间戳

问题:

  • 我不知道size也不太确定音量。这些是什么?
  • 为什么所有内容都以字符串而不是浮点数返回?
  • trade_id 只是一个增量器吗?
4

1 回答 1

0

"Snapshot information about the last trade (tick), best bid/ask and 24h volume."

The size its the amount transfered on the last trade.

The volume its the total amount exchanged in the last 24h.

Why is everything returned in strings and not in floats?

Im sure that its to use a unique and type and also the most common for requests (strings).

is the trade_id just an incrementor?

The unique ID of the last trade registered on the last 24h

于 2016-03-22T23:30:04.847 回答