Skip to content

Get EV products

Returns products that have variable load zone rates during the day and night. These products are primarily geared towards customers that have electric vehicles as they can benefit from our agile pricing.

Authentication not required

products does not require authentication.

Arguments

  • basedOnTimeOfUse: Boolean

Returns

query getEVProducts($basedOnTimeOfUse:Boolean!){
    products(basedOnTimeOfUse:$basedOnTimeOfUse){
        id
        availableFrom
        availableTo
        availabilityStatus
        autoTopUpDefaultAmount
        autoTopUpMinimumAmount
        basedOnTimeOfUse
        code
        description
        displayName
        fullName
        generationCredit
        isWholesale
        marketName
        notes
        prepay
        term
        termsContractType
    }
}

Example

query getEVProducts($basedOnTimeOfUse:Boolean!){
    products(basedOnTimeOfUse:$basedOnTimeOfUse){
        id
        availableFrom
        availableTo
        availabilityStatus
        autoTopUpDefaultAmount
        autoTopUpMinimumAmount
        basedOnTimeOfUse
        code
        description
        displayName
        fullName
        generationCredit
        isWholesale
        marketName
        notes
        prepay
        term
        termsContractType
    }
}
1
2
3
4
# Input Variables
{
  "basedOnTimeOfUse":true
}
import pprint

import requests

# API_URL = "https://api.oeus-kraken.energy/v1/graphql/" # Prod
API_URL = "https://api.oeus-kraken.systems/v1/graphql/" # Test
HEADERS = {}

QUERY = """
query getEVProducts($basedOnTimeOfUse:Boolean!){
        products(basedOnTimeOfUse:$basedOnTimeOfUse){
            id
            availableFrom
            availableTo
            availabilityStatus
            autoTopUpDefaultAmount
            autoTopUpMinimumAmount
            basedOnTimeOfUse
            code
            description
            displayName
            fullName
            generationCredit
            isWholesale
            marketName
            notes
            prepay
            term
            termsContractType
        }
    }
"""

VARIABLES = {
  "basedOnTimeOfUse":true
}

session = requests.Session()
session.headers.update(HEADERS)
response = session.post(
    url=API_URL,
    json={"query": QUERY, "variables": VARIABLES}
)
pprint.pprint(response.json())
const axios = require("axios")

// const API_URL = "https://api.oeus-kraken.energy/v1/graphql/" // Prod
const apiUrl = "https://api.oeus-kraken.systems/v1/graphql/" // Test
let headers = {'content-type': 'application/json'}

const query = `

  query getEVProducts($basedOnTimeOfUse:Boolean!){
      products(basedOnTimeOfUse:$basedOnTimeOfUse){
          id
          availableFrom
          availableTo
          availabilityStatus
          autoTopUpDefaultAmount
          autoTopUpMinimumAmount
          basedOnTimeOfUse
          code
          description
          displayName
          fullName
          generationCredit
          isWholesale
          marketName
          notes
          prepay
          term
          termsContractType
      }
  }
`
const variables = {
  "basedOnTimeOfUse":true
}

axios({
  url: apiUrl,
  method: "post",
  data: {
    query: query,
    variables: variables,
  },
  headers: headers,
}).then((response) => {
  console.log(JSON.stringify(response.data, null, 4));
});
import axios from 'axios';

// const API_URL = "https://api.oeus-kraken.energy/v1/graphql/" // Prod
export const apiUrl = "https://api.oeus-kraken.systems/v1/graphql/" // Test
let headers = {'content-type': 'application/json'}

export const query = `
query getEVProducts($basedOnTimeOfUse:Boolean!){
  products(basedOnTimeOfUse:$basedOnTimeOfUse){
      id
      availableFrom
      availableTo
      availabilityStatus
      autoTopUpDefaultAmount
      autoTopUpMinimumAmount
      basedOnTimeOfUse
      code
      description
      displayName
      fullName
      generationCredit
      isWholesale
      marketName
      notes
      prepay
      term
      termsContractType
  }
}
`

export const variables = {
    "basedOnTimeOfUse": true
}

axios({
  url: apiUrl,
  method: "post",
  data: {
    query: query,
    variables: variables,
  },
  headers: headers,
}).then((response) => {
  console.log(JSON.stringify(response.data, null, 4));
});
{
"data": {
    "products": [
        {
            "id": "22",
            "availableFrom": "2021-09-15T00:00:00-05:00",
            "availableTo": null,
            "availabilityStatus": "PUBLIC",
            "autoTopUpDefaultAmount": null,
            "autoTopUpMinimumAmount": null,
            "basedOnTimeOfUse": true,
            "code": "OCTOPUS-DRIVE-365-DAY-FIXED",
            "description": "12 month Time-of-Use fixed rate",
            "displayName": "OctoDrive 365 Day Fixed",
            "fullName": "OctoDrive 365 Day Fixed",
            "generationCredit": false,
            "isWholesale": false,
            "marketName": "USA_ERCOT_ELECTRICITY",
            "notes": "",
            "prepay": false,
            "term": 12,
            "termsContractType": ""
            }
        ]
    }
}
Back to top