Skip to main content

Data models

The SDK relies on Pydantic models to validate payloads. Import them from simulacrum.models when you need structured access.

ForecastRequest

Serialise with model_dump() before sending requests manually.

ForecastResponse

Call get_forecast() to convert the list into a numpy array for downstream analysis.

ValidateAPIKeyResponse

Use this model to inspect key metadata. expires_at is optional and absent when the platform does not expose expiry information.