Spreads

Get refining margin history

Changed on

Historical refining margin series.

get/v1/spreads/margin/historical

Request

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

Query parameters

periodstring
Example:30d

Lookback window for the series.

Response

Get refining margin history

statusstring required

Example response

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

Changes

    • 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