voltra-hub-api-client
v1.2.0
Published
A Voltra Hub API Client
Maintainers
Readme
Voltra Hub Server
OpenAPI package for Voltra Hub API.
📦 Packages
📦 CommonJS
const { VoltraHubAPIClient } = require('voltra-hub-api-client');📦 ESM
import { VoltraHubAPIClient } from 'voltra-hub-api-client';📦 TypeScript
import { VoltraHubAPIClient } from 'voltra-hub-api-client';Usage
import { VoltraHubAPIClient } from 'voltra-hub-api-client';
const client = new VoltraHubAPIClient('https://voltrahub.com/api');
// Check if the server is up
const healthCheck = await client.healthCheck();
console.log(healthCheck);
// Get PVPC for today
const pvpcToday = await client.pvpc.get(new Date());
console.log(pvpcToday);
// Get PVPC as indicator for a specific date
const pvpcDate = await client.indicator.pvpc.get(new Date('2025-09-01'));
console.log(pvpcDate);
// Get Spot for today
const spotToday = await client.indicator.spot.get(new Date());
console.log(spotToday);📝 License
This project is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE - see the LICENSE file for details
