Price data for US tax reporting

Oh look, CoinCap.io does provide the requisite API access for free, with minute-level granularity, and going back years:

$ START="`date -d "2017-01-01 23:00:00" "+%s"`000"
$ END="`date -d "2017-01-01 23:01:00" "+%s"`000"
$ curl "https://api.coincap.io/v2/assets/zcash/history?interval=m1&start=$START&end=$END"
{"data":[{"priceUsd":"48.3643886778885213","time":1483329600000,"circulatingSupply":null,"date":"2017-01-02T04:00:00.000Z"}],"timestamp":1583087061853}

Go ShapeShift! :smiley:

Whoever first writes the script that gets a transaction ID and outputs the ZECUSD price at the time of the transaction, please share!

4 Likes