How to retrieve Bitcoin price via CMD using API service

Run CMDcurl https://api.coinbase.com/v2/prices/BTC-USD/buyPretty useful if you wish to retrieve some latest price every few seconds using a .bat script.
If you wish to log the data in a .txt file you could do the following command.
cd Desktopcurl https://api.coinbase.com/v2/prices/BTC-USD/buy -o btc.txtAnd now, you can find the btc.txt located on your Desktop.


Comments
Post a Comment