Everything you need to integrate WattMarkets real-time energy data into your applications.
Quick setup guide and authentication
Complete endpoint reference
Sample code in multiple languages
Test endpoints interactively
All API requests require authentication using a Bearer token in the Authorization header.
Authorization: Bearer wm_your_api_key_here
All API endpoints are relative to this base URL.
https://api.wattmarkets.com
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.wattmarkets.com/v1/lmp/north
import { WattMarkets } from '@wattmarkets/sdk';
const wm = new WattMarkets('YOUR_API_KEY');
const lmp = await wm.lmp.get('north');
console.log(`North Hub: $${lmp.price}/MWh`);
from wattmarkets import WattMarkets
wm = WattMarkets('YOUR_API_KEY')
lmp = wm.lmp.get('north')
print(f"North Hub: ${lmp['price']}/MWh")
/v1/lmp/{hub}
Get real-time LMP data for a specific hub
/v1/ordc
Get current ORDC adder values
/v1/4cp
Get 4CP probability predictions
/v1/alerts
List all your alerts
/v1/alerts
Create a new alert
/v1/metrics
List all your custom metrics
/v1/metrics
Create a new custom metric
{ "success": true, "data": { "hub": "north", "price": 47.23, "timestamp": "2024-01-30T15:30:00Z", "unit": "$/MWh" } }
{ "success": false, "error": { "code": "RATE_LIMIT_EXCEEDED", "message": "API rate limit exceeded", "details": { "limit": 100, "reset_at": "2024-01-30T16:00:00Z" } } }
Get your API key and start building with real-time energy data.