tenox7 / ttyplot

a realtime plotting utility for terminal/console with data input from stdin
Apache License 2.0
972 stars 45 forks source link

Coinbase API Example is deprecated ... #23

Closed ChrisGitIt closed 5 years ago

ChrisGitIt commented 5 years ago

Hi and thanks for this useful tool!

I noticed the the following example is not working anymore { while true; do curl -sL https://coinbase.com/api/v1/prices/historical | head -1 | cut -d, -f2 ; sleep 600; done } | ttyplot -t "bitcoin price" -u usd

I had a quick glance over the current API (https://developers.coinbase.com/api/v2) and it seems there are no "historical" prices anymore (actually, i could not find "historical" within the old api (https://developers.coinbase.com/api/v1).

Greetings,

Chris

tenox7 commented 5 years ago

thanks for info, changed to coindesk api, lets see if it works :)