WattTime / pyiso

Python client libraries for ISO and other power grid data sources.
http://pyiso.readthedocs.org/
Other
237 stars 110 forks source link

Thanks for the response, @xinyue-luna. #204

Closed rajkumarks7 closed 3 years ago

rajkumarks7 commented 3 years ago

Thanks for the response, @xinyue-luna.

freq actually is ignored in get_load(), and only market is used to decide if to return dam or fivemin data. Unless user specify market=c.MARKET_CHOICES.dam, market will be set to fivemin.

So, is another way of stating this, "Only fivemin market (and frequency) are supported for historical load data?" Because the day-ahead market doesn't make sense for historical data, right?

When I request the forecast data with:

c = client_factory('CAISO')
now = datetime.utcnow().replace(tzinfo=pytz.utc)
start_at = now + timedelta(hours=1)
end_at = now + timedelta(hours=10)
results = c.get_load(start_at=start_at, end_at=end_at, market=c.MARKET_CHOICES.dam)

The day-ahead market freq is 1hr. So really, it doesn't seem like there's an option at all. Historical is always 5min and forecast is always 1hr. Am I understanding this correctly?

If so:

Originally posted by @r24mille in https://github.com/WattTime/pyiso/issues/160#issuecomment-335438070

information = client_factory('CAISO') data_generated = information.get_generation(latest=True) it is returning me empty list