Coinbase Coin Prices

I don’t have the knowledge to make it to a component. so for the wusses like me this works as a sensor.

- platform: command_line
  name: Coinbase BTC Spot Price
  command: "curl https://api.coinbase.com/v2/prices/BTC-USD/spot"
  unit_of_measurement: "USD"
  value_template: '{{ value_json["data"]["amount"] }}'

- platform: command_line
  name: Coinbase ETH Spot Price
  command: "curl https://api.coinbase.com/v2/prices/ETH-USD/spot"
  unit_of_measurement: "USD"
  value_template: '{{ value_json["data"]["amount"] }}'

- platform: command_line
  name: Coinbase LTC Spot Price
  command: "curl https://api.coinbase.com/v2/prices/LTC-USD/spot"
  unit_of_measurement: "USD"
  value_template: '{{ value_json["data"]["amount"] }}'