Skip to content

Antily15503/MISO-Agent-API-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MISO LMP API examples

Client examples and integrations for the MISO LMP API: real-time, hourly, and day-ahead wholesale electricity prices (LMP) for the MISO grid, as JSON. Built for bots, home automation, and scripts, not trading terminals.

This repo is examples only. The API itself is a hosted service, so there's nothing to install or run here except the snippets.

Quick start

Get a free-tier key (150 requests/day, no payment info required):

curl -X POST https://miso-lmp-api.vercel.app/api/v1/signup \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com"}'

Save the api_key from the response. It's shown once and can't be recovered later.

Get the current price at the grid node nearest a lat/lon:

curl "https://miso-lmp-api.vercel.app/api/v1/lmp/nearest?lat=41.85&lon=-87.65" \
  -H "x-api-key: YOUR_KEY"

Examples in this repo

Directory What it is
home-assistant/ REST sensor + automation for running appliances when grid prices are cheap
python/ Minimal Python client example
javascript/ Minimal Node/JS client example

Pricing

Tier Price Requests/day History
Free $0 150 2 days
Hobbyist $5/mo 2,000 7 days
Developer $9/mo 10,000 30 days
Professional $49/mo 500,000 2 years

Upgrade anytime via POST /api/stripe/checkout; manage or cancel via POST /api/stripe/portal. Both are documented in the OpenAPI spec.

License

The example code in this repo is MIT licensed, so copy and adapt it freely. The API service itself is a separately hosted product, not covered by this license.