Caiso
Contents
Caiso#
Module Contents#
Classes Summary#
California Independent System Operator (CAISO) |
Attributes Summary#
Contents#
- class gridstatus.caiso.CAISO[source]#
Bases:
gridstatus.base.ISOBaseCalifornia Independent System Operator (CAISO)
Attributes
default_timezone
US/Pacific
iso_id
caiso
markets
None
name
California ISO
status_homepage
trading_hub_locations
[‘TH_NP15_GEN-APND’, ‘TH_SP15_GEN-APND’, ‘TH_ZP26_GEN-APND’]
Methods
Get fuel mix in 5 minute intervals for a provided day
Return gas prices at a previous date
Return ghg allowance at a previous date
Get day ahead LMP pricing starting at supplied date for a list of locations.
Return load at a previous date in 5 minute intervals
Returns load forecast for a previous date in 1 hour intervals
Get Current Status of the Grid. Only date="latest" is supported
Return storage charging or discharging for today in 5 minute intervals
Get supply for a date or date range in hourly intervals
- get_fuel_mix(date, end=None, verbose=False)[source]#
Get fuel mix in 5 minute intervals for a provided day
- Arguments:
date (datetime or str): “latest”, “today”, or an object that can be parsed as a datetime for the day to return data.
start (datetime or str): start of date range to return. alias for date parameter. Only specify one of date or start.
end (datetime or str): “today” or an object that can be parsed as a datetime for the day to return data. Only used if requesting a range of dates.
verbose (bool): print verbose output. Defaults to False.
- Returns:
pd.Dataframe: dataframe with columns: Time and columns for each fuel type
- get_gas_prices(date, end=None, fuel_region_id='ALL', sleep=5, verbose=False)[source]#
Return gas prices at a previous date
- Arguments:
date: date to return data end: last date of range to return data. if None, returns only date. Defaults to None. fuel_region_id(str, or list): single fuel region id or list of fuel region ids to return data for. Defaults to ALL, which returns all fuel regions.
- get_ghg_allowance(date, end=None, sleep=5, verbose=False)[source]#
Return ghg allowance at a previous date
- Arguments:
date: date to return data end: last date of range to return data. if None, returns only date. Defaults to None.
- get_lmp(date, market: str, locations: list = None, sleep: int = 5, end=None, verbose=False)[source]#
Get day ahead LMP pricing starting at supplied date for a list of locations.
- Arguments:
date: date to return data
market: market to return from. supports:
locations(list): list of locations to get data from. If no locations are provided, defaults to NP15, SP15, and ZP26, which are the trading hub locations. For a list of locations, call CAISO.get_pnodes()
sleep(int): number of seconds to sleep before returning to avoid hitting rate limit in regular usage. Defaults to 5 seconds.
- Returns
dataframe of pricing data
- get_load(date, end=None, verbose=False)[source]#
Return load at a previous date in 5 minute intervals
- get_load_forecast(date, end=None, sleep=5, verbose=False)[source]#
Returns load forecast for a previous date in 1 hour intervals
- Arguments:
date(datetime, pd.Timestamp, or str): day to return. if string, format should be YYYYMMDD e.g 20200623 sleep(int): number of seconds to sleep before returning to avoid hitting rate limit in regular usage. Defaults to 5 seconds.
- get_status(date='latest') str[source]#
Get Current Status of the Grid. Only date=”latest” is supported
Known possible values: Normal, Restricted Maintenance Operations, Flex Alert