Skip to content

Python - Contract (Freight Forward)

The API Data Explorer tool is useful for picking elements from the JSON dictionary that the API returns. The endpoint used is the following: /v1.0/contracts/{contract_ticker_symbol}/price-releases/.

jsonc
{
    "errors": [],
    "data": [
      {
        "id": 20240924,
        "contractId": "spark30fo",
        "releaseDate": "2024-09-24",
        "previousPriceRelease": {
          "id": 20240917,
          "releaseDate": "2024-09-17"
        },
        "nextPriceRelease": {
          "id": 20241001,
          "releaseDate": "2024-10-01"
        },
        "assessmentWindowClosedAt": "2024-09-24T11:00:00Z",
        "assessmentWindowOpenedAt": "2024-09-24T08:00:00Z",
        "data": [
          {
            "revisionNumber": 0,
            "revisionPublishedAt": "2024-09-24T10:24:24.802970Z",
            "numberOfAssessors": null,
            "dataPoints": [
              {
                "index": 0,
                "deliveryPeriod": {
                  "type": "months",
                  "startAt": "2024-10-01",
                  "endAt": "2024-10-31",
                  "name": "M+1",
                  "lastAssessmentDate": "2024-09-24"
                },
                "yourAssessedPrice": null,
                "derivedPrices": {
                  "usdPerDay": {
                    "spark": "79750",
                    "sparkMin": "65000",
                    "sparkMax": "89000",
                    "portfolioPlayer": null,
                    "portfolioPlayerMin": null,
                    "portfolioPlayerMax": null,
                    "shipOwner": null,
                    "shipOwnerMin": null,
                    "shipOwnerMax": null
                  },
                  "usdPerMMBtu": {
                    "spark": "1.06",
                    "sparkMin": "0.94",
                    "sparkMax": "1.13",
                    "portfolioPlayer": null,
                    "portfolioPlayerMin": null,
                    "portfolioPlayerMax": null,
                    "shipOwner": null,
                    "shipOwnerMin": null,
                    "shipOwnerMax": null
                  }
                },
                "meta": [
                  {
                    "type": "freight-vessel-type",
                    "value": "174-2stroke"
                  }
                ]
              }
                // -----------------------**...**------------------------
            ],
            "aggregatedData": null
          }
        ],
        "publishedAt": "2024-09-24T10:24:24.802970Z",
        "meta": []
      }
      // -----------------------**...**------------------------
     ]
    }

Note

----**...**---- denotes repetition of the above dictionary

▲ prices and dates are given for sample purposes only

For simplicity, the JSON dictionary is denoted as response_json.

Indexation

Contract ID:

response_json["data"][0]["contractId"]

Release Date:

response_json["data"][0]["releaseDate"]

Delivery Period Start:

response_json["data"][0]["data"][0]["dataPoints"][0]["deliveryPeriod"]["startAt"]

Delivery Period Name:

response_json["data"][0]["data"][0]["dataPoints"][0]["deliveryPeriod"]["name"]

Price USD/MMBtu M+1:

response_json["data"][0]["data"][0]["dataPoints"][0]["derivedPrices"]["usdPerMMBtu"]["spark"]

Price USD/MMBtu M+2:

response_json["data"][0]["data"][0]["dataPoints"][1]["derivedPrices"]["usdPerMMBtu"]["spark"]

The JSON dictionary is the result of a successful request to the contract API endpoint using the Contract ID as the unique identifier for the Spark30 Spot Atlantic assessment. The Delivery Period Start/End refer to the delivery period of the assessment released on the Release Date. Assumptions made for the calculation are specified in the “meta” key within the JSON dictionary, it includes the type of assumptions and the details of these assumptions. Prices in USD or in USD per MMBtu denote the Spark30 Forward assessments for that Release Date: the minimum and maximum of these values are only accessible with a full subscription.