I used to wget the "historical" from the original coinbase api - cant find it with v2 api

时间:2019-04-16 23:26:56

标签: windows http wget bitcoin coinbase-api

I used to use a simple wget to https://api.coinbase.com/api/v1/prices/historical to get a file of past and current buy prices from coinbase on Bitcoin. Now with the new v2 API i am unable to find documentation to lead me to this file in the new system. Anyone know what i should do?

1 个答案:

答案 0 :(得分:1)

请注意,https://developers.coinbase.com/api/v2#get-spot-price有一个标记为ARGUMENTS的部分,描述了如何添加参数。 “以YYYY-MM-DD(UTC)格式指定历史现货价格的日期”

或者,您也可以使用以下网址获取上个月的历史价格:http://api.coinbase.com/v2/prices/BTC-USD/historic?period=month