Aggregated electricity prices
curl --request GET \
--url https://api.partner.cubee.cz/api/v1/aggregated-data/aggregated-prices \
--header 'Authorization: Bearer <token>'using RestSharp;
var options = new RestClientOptions("https://api.partner.cubee.cz/api/v1/aggregated-data/aggregated-prices");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.partner.cubee.cz/api/v1/aggregated-data/aggregated-prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.partner.cubee.cz/api/v1/aggregated-data/aggregated-prices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"periods": [
{
"date": "2023-12-25",
"totalBuyEnergyMWh": 123,
"totalBuyFullPrice": 123,
"totalBuyPowerPrice": 123,
"totalSellEnergyMWh": 123,
"totalSellFullPrice": 123,
"totalSellPowerPrice": 123
}
],
"currency": "<string>"
}"<string>"{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}"<string>"Aggregated Data
Aggregated electricity prices
Retrieves aggregated electricity prices between two dates with specified granularity.
GET
/
api
/
v1
/
aggregated-data
/
aggregated-prices
Aggregated electricity prices
curl --request GET \
--url https://api.partner.cubee.cz/api/v1/aggregated-data/aggregated-prices \
--header 'Authorization: Bearer <token>'using RestSharp;
var options = new RestClientOptions("https://api.partner.cubee.cz/api/v1/aggregated-data/aggregated-prices");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.partner.cubee.cz/api/v1/aggregated-data/aggregated-prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.partner.cubee.cz/api/v1/aggregated-data/aggregated-prices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"periods": [
{
"date": "2023-12-25",
"totalBuyEnergyMWh": 123,
"totalBuyFullPrice": 123,
"totalBuyPowerPrice": 123,
"totalSellEnergyMWh": 123,
"totalSellFullPrice": 123,
"totalSellPowerPrice": 123
}
],
"currency": "<string>"
}"<string>"{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}"<string>"Authorizations
Query Parameters
Response
OK
Was this page helpful?