Tado Energy Rest API integration

Hello,

I am trying to integrate the API from Tado Energy.
Unfortunately, I am not successful. I would like to display the prices for the next 24 hours in a chart. The first thing I want to do is create a sensor.

The API:
https://api.awattar.de/v1/marketdata

My code in the configuration.yaml

rest:
  resource: https://api.awattar.de/v1/marketdata
  scan_interval: 1000
  sensor:
    - name: "tado"
      json_attributes_path: "$.data"
      json_attributes:
        - "start_timestamp"
        - "end_timestamp"
        - "marketprice"

Could someone help me with this?