Working days¶
Returns a list of ERCOT and Octopus Energy holidays.
Authentication Required
Requires organization level
access.
-
Arguments
year
:Integer!
(required)
-
Returns
Example¶
const axios = require("axios")
// const apiUrl = "https://api.oeus-kraken.energy/v1/graphql/" // Prod
const apiUrl = "https://api.oeus-kraken.systems/v1/graphql/" // Test
const jwtToken = "PLACE_JWT_TOKEN_HERE"
let headers = {
"Authorization": `JWT ${jwtToken}`
}
const query = `
query getErcotHolidays($year:Int!){
ercotHolidays(year:$year){
holidayList
}
}
`
const variables = {
"year": 2022
}
axios({
url: apiUrl,
method: "post",
data: {
query: query,
variables: variables,
},
headers: headers,
}).then((response) => {
console.log(JSON.stringify(response.data, null, 4));
});