curl --request GET \
--url https://api.partner.cubee.cz/api/v1/aggregated-data/aggregated-pricesusing 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("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {method: 'GET'};
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"
response = requests.get(url)
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 electricity prices
Retrieves aggregated electricity prices between two dates with specified granularity.
curl --request GET \
--url https://api.partner.cubee.cz/api/v1/aggregated-data/aggregated-pricesusing 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("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {method: 'GET'};
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"
response = requests.get(url)
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>"Query Parameters
The start of the requested period for aggregated prices, including date and time in UTC.
The end of the requested period for aggregated prices, including date and time in UTC.
List of serial numbers of Cubee devices to filter the results.
Aggregation level. Allowed values: daily, monthly, all.
^(daily|monthly|all)$Response
OK
The start of the requested period for aggregated prices, including date and time in UTC.
The end of the requested period for aggregated prices, including date and time in UTC.
List of aggregated price periods within the specified date range, based on the chosen granularity (e.g., daily, monthly).
Show child attributes
Show child attributes
The currency in which the prices are expressed, following the ISO 4217 currency codes. Default is "CZK".
Was this page helpful?