Skip to content

Use DateTimeOffset in the /prices endpoint and "lastUpdated" property #63

@mattiaspalmqvist

Description

@mattiaspalmqvist

To be explicit and avoid confusion I think it would be better to use DateTimeOffset objects with trailing +NN:NN (or Z for UTC) in the /prices endpoint.

It can otherwise be a bit confusing what is actually provided in the answer and what you are asking for in requests. As a developer I would rather work with explicit DateTimeOffset in this type of time series data.

Add this object and use where relevant:

"DateTimeOffset": {
  "type": "string",
  "format": "date-time",
  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$",
  "example": "2025-05-25T01:00:00+01:00",
  "description": "Date-time in ISO 8601 / RFC 3339 style with required numeric offset in the form ±HH:MM."
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions