Spreads

Get basis spread history

Changed on

Historical basis spread series.

get/v1/spreads/basis/historical

Request

  • Base URL
    https://api.oilpriceapi.com
  • Auth
    API key in header Authorization

Query parameters

pair'WAHA_HH' | 'BRENT_WTI' | 'BRENT_DUBAI' | 'TTF_HH' | 'BRENT_OMAN' required
Example:BRENT_WTI

Benchmark pair. The 400 response enumerates valid values.

periodstring
Example:30d

Lookback window for the series.

Response

Get basis spread history

statusstring required

Example response

{
  "status": "success",
  "data": {
    "period": "30d"
  }
}

Changes

    • breaking

      added the new required query request parameter pair

    • info

      added the new optional query request parameter period

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status