Skip to main content

Exchange

UPDATED Thursday July 15, 10:08 PM PST

HTTP Request for wind
GET https://wprice.io/api/v1/present/exchange/exchange

This Endpoint returns the total megawatts exchanged between two interconnected zones

Requires an API Key

This feature is only available to WattPricer Account-holders.

Query Parameters#

ParameterDescriptionExamples
zone_key_1A string representing the first zone identifier (net flow will be in terms of net energy going from zone_key_1 to zone_key_2, with negative values indicating net inflow). We use a combination of ISO 3166-1 alpha-2 country codes, ISO 3166-2 country subdivision code, and where applicable, ISO 639-1 language codes for our locale codes. See the /zones endpoint for a list of valid zones.US-MISO
zone_key_2A string representing the second zone identifier.US-PJM
as_csv (OPTIONAL)Boolean indicating whether to return the data in CSV format.true

Code samples#

cURL command
@ECHO OFF
curl -v -X GET "https://wprice.io/api/v1/present/exchange/exchange?zone_key_1={string}&zone_key_2={string}&as_csv={boolean}"-H "x-api-key: {subscription key}"
--data-ascii "{body}"

Successful Response Samples#

HTTP 200 OK#

The above commands yield data such as the following (using zone_key_1=US-MISO and zone_key_2=US-SPP):

response for media types 'application/json' and 'text/json'
{  "datetime": ["2021-05-17T05:00:00+00:00"],  "netFlow": [-361],  "sortedZoneKeys": "US-MISO__US-SPP",  "source": "eia.gov",  "updated": "2021-05-17T05:00:00+00:00",}

Error Response Samples#

(Click to expand ๐Ÿ‘‡ )