ForecastSeriesClient.get_forecast_by_time#
- ForecastSeriesClient.get_forecast_by_time(time: datetime, method: Literal['nearest', 'previous', 'next'] = 'nearest', status: list[str] = ['COMPLETED']) ForecastClient | None#
Get a specific forecast by its starttime.
- Parameters:
time – The time to search for.
method – The method to use for searching. Can be ‘nearest’, ‘previous’, or ‘next’.
status – The status of the forecast.
- Returns:
The forecast that matches the time.