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_hereAll API endpoints are relative to this base URL.
https://api.wattmarkets.comcurl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.wattmarkets.com/v1/lmp/northimport { 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/ordcGet current ORDC adder values
/v1/4cpGet 4CP probability predictions
/v1/alertsList all your alerts
/v1/alertsCreate a new alert
/v1/metricsList all your custom metrics
/v1/metricsCreate 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.