Energy Prices
EnergyPricesEnergy Prices: Energy Prices returns the latest daily closing spot price for WTI and Brent crude, Henry Hub natural gas and US gasoline, diesel, heating oil, propane and jet fuel benchmarks, with the previous close, the daily change and the 52-week high and low. Convert to barrels, gallons, liters, MMBtu, therms or MWh, ask for several benchmarks at once, or pull a daily or weekly history. (Cost: 2 credits) REST: GET https://api.apiverve.com/v1/energyprices, params in the query string, key in the x-api-key header. Docs: https://apiverve.com/md/marketplace/energyprices.md
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "EnergyPrices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date to look up (YYYY-MM-DD). Returns the close on that day, or the latest trading day before it. Omit for the latest close. | |
| days | No | Calendar days of history to include (1-3650). Daily history allows up to 366. Defaults to 30. | |
| unit | No | Unit to price per: barrel, gallon or liter for crude and refined products; mmbtu, therm or mwh for natural gas. Defaults to each benchmark's published unit. | |
| history | No | Include a price series ending at the returned date: daily closes or the last close of each week. | |
| benchmark | No | Benchmark to price, or a comma-separated list (paid plans), or all. Defaults to wti. Ids: wti, brent, henryhub, gasoline_nyh, gasoline_gulf, rbob_la, ulsd_nyh, ulsd_gulf, carbdiesel_la, heatingoil, propane, jetfuel. Common names work too: crude or oil (wti), natural gas, natgas or henry hub (henryhub), gasoline (gasoline_nyh), diesel or ulsd (ulsd_nyh), heating oil, jet fuel or kerosene (jetfuel). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |