---
updatedAt: 2026-05-27T22:36:11.000Z
agentTools:
  projectIndex: https://documentation.sparta.app/llms.txt
---

# Gets the last EOD values for a quotation

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "API Reference",
    "description": "Sparta Customer API provides live and historical market data.\n\nCheck [status.sparta.app](https://status.sparta.app) for live status and incident history.",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.sparta.app/v2",
      "description": "Sparta API Server"
    }
  ],
  "tags": [
    {
      "name": "Ongoing Data",
      "description": "Provides the latest market data."
    }
  ],
  "paths": {
    "/ongoing/last-settlement/{id}": {
      "get": {
        "tags": [
          "Ongoing Data"
        ],
        "summary": "Gets the last EOD values for a quotation",
        "operationId": "getLastSettlementsForQuotationId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Identifier of the curve quotation.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "36ff5409-a37e-5615-8714-937b3ef89f6d"
          },
          {
            "name": "dateBasis",
            "in": "query",
            "description": "Type of contract data to retrieve. Defaults to 'load'.",
            "required": false,
            "schema": {
              "type": "string",
              "default": "load",
              "enum": [
                "load",
                "delivery"
              ]
            },
            "example": "load"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SymbolValuesResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "DependencyValue": {
        "type": "object",
        "description": "Dependency symbol that was used to calculate the symbol value.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the dependency.",
            "example": "026edd71-8eec-5cad-88a8-568e61df10fe"
          },
          "name": {
            "type": "string",
            "description": "Name of the dependency.",
            "example": "ROTTERDAM - OFFSHORE LOME 10ppm Gasoil LR1 - Sales Price"
          },
          "value": {
            "type": "number",
            "format": "double",
            "description": "Value of the dependency.",
            "example": -7.5
          },
          "units": {
            "type": "string",
            "description": "Units of the dependency.",
            "example": "$/mt"
          },
          "tenorName": {
            "type": "string",
            "description": "Contract name of the dependency.",
            "examples": [
              "May 25",
              "1-5 May 25",
              "Q2 25"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "value"
        ]
      },
      "MetadataValue": {
        "type": "object",
        "description": "Fields to store additional contextual or descriptive information about the symbol value.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Key of the metadata field.",
            "example": "loadDate"
          },
          "value": {
            "type": "string",
            "description": "Value of the metadata field.",
            "example": "2025-06-15T00:00:00.000Z"
          }
        },
        "required": [
          "name",
          "value"
        ]
      },
      "SymbolValue": {
        "type": "object",
        "description": "Value of a symbol at a given point in time.",
        "properties": {
          "generatedOn": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of the symbol value in UTC.",
            "example": "2025-05-12T15:30:00.000"
          },
          "price": {
            "type": "number",
            "format": "double",
            "description": "Price of the symbol value.",
            "example": -7.5
          },
          "units": {
            "type": "string",
            "description": "Units of the symbol value.",
            "example": "$/mt"
          },
          "tenor": {
            "type": "string",
            "description": "Contract name of the symbol value.",
            "examples": [
              "May 25",
              "1-5 May 25",
              "Q2 25"
            ]
          },
          "dependencies": {
            "type": "array",
            "description": "List of symbol values that were used to calculate the symbol value.",
            "items": {
              "$ref": "#/components/schemas/DependencyValue"
            }
          },
          "metadata": {
            "type": "array",
            "description": "List of fields to store additional contextual or descriptive information about the symbol value.",
            "items": {
              "$ref": "#/components/schemas/MetadataValue"
            }
          }
        },
        "required": [
          "dependencies",
          "generatedOn",
          "metadata",
          "price",
          "tenor"
        ]
      },
      "SymbolValuesResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SymbolValue"
            }
          }
        },
        "required": [
          "items"
        ]
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "description": "Enter JWT Bearer token",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```