class APIError(Exception)General exception for API errors.
Attributes:
message- The error message.code- HTTP status code.status- HTTP status text.timestamp- When the error occurred.
class RateLimitError(APIError)Exception raised when rate limiting is exceeded.
class InsufficientCreditsError(APIError)Exception raised when the user has insufficient API credits. This is a non-retryable error that requires the user to add credits.
class Climate()def list_horizons() -> list[int]List the available horizons for climate analysis.
def list_pathways() -> list[Pathway]List the available pathways for climate analysis.
class BaseClient()def get(path: str, params: Dict[str, Any] = dict(),
**kwargs) -> Dict[str, Any]Make a GET request to the API. Version prefix /v3 is added only when the endpoint has no version prefix. Paths like /v3/assets or /v4/climate/metrics are used as-is. Absolute URLs are also supported and used as-is.
Arguments:
path- API endpoint pathparams- Query parameters**kwargs- Additional arguments to pass to the request
Returns:
API response data as JSON deserialized into a dictionary
async def get_async(path: str, params: Dict[str, Any] = dict(),
**kwargs) -> Dict[str, Any]Make an asynchronous GET request to the API. Version prefix /v3 is added only when the endpoint has no version prefix. Paths like /v3/assets or /v4/climate/metrics are used as-is. Absolute URLs are also supported and used as-is.
Arguments:
path- API endpoint pathparams- Query parameters**kwargs- Additional arguments to pass to the request
Returns:
API response data as JSON deserialized into a dictionary
def post(path: str, json: Dict[str, Any] = dict(), **kwargs) -> Dict[str, Any]Make a POST request to the API. Version prefix /v3 is added only when the endpoint has no version prefix. Paths like /v3/assets or /v4/climate/metrics are used as-is. Absolute URLs are also supported and used as-is.
Arguments:
path- API endpoint pathjson- JSON body data**kwargs- Additional arguments to pass to the request
Returns:
API response data as JSON deserialized into a dictionary
async def post_async(path: str, json: Dict[str, Any] = dict(),
**kwargs) -> Dict[str, Any]Make an asynchronous POST request to the API. Version prefix /v3 is added only when the endpoint has no version prefix. Paths like /v3/assets or /v4/climate/metrics are used as-is. Absolute URLs are also supported and used as-is.
Arguments:
path- API endpoint pathjson- JSON body data**kwargs- Additional arguments to pass to the request
Returns:
API response data as JSON deserialized into a dictionary
def put(path: str, json: Dict[str, Any] = dict(), **kwargs) -> Dict[str, Any]Make a PUT request to the API. Version prefix /v3 is added only when the endpoint has no version prefix. Paths like /v3/assets or /v4/climate/metrics are used as-is. Absolute URLs are also supported and used as-is.
Arguments:
path- API endpoint pathjson- JSON body data**kwargs- Additional arguments to pass to the request
Returns:
API response data as JSON deserialized into a dictionary
async def put_async(path: str, json: Dict[str, Any] = dict(),
**kwargs) -> Dict[str, Any]Make an asynchronous PUT request to the API. Version prefix /v3 is added only when the endpoint has no version prefix. Paths like /v3/assets or /v4/climate/metrics are used as-is. Absolute URLs are also supported and used as-is.
Arguments:
path- API endpoint pathjson- JSON body data**kwargs- Additional arguments to pass to the request
Returns:
API response data as JSON deserialized into a dictionary
def delete(path: str, **kwargs) -> Dict[str, Any]Make a DELETE request to the API. Version prefix /v3 is added only when the endpoint has no version prefix. Paths like /v3/assets or /v4/climate/metrics are used as-is. Absolute URLs are also supported and used as-is.
Arguments:
path- API endpoint path**kwargs- Additional arguments to pass to the request
Returns:
API response data as JSON deserialized into a dictionary
async def delete_async(path: str, **kwargs) -> Dict[str, Any]Make an asynchronous DELETE request to the API. Version prefix /v3 is added only when the endpoint has no version prefix. Paths like /v3/assets or /v4/climate/metrics are used as-is. Absolute URLs are also supported and used as-is.
Arguments:
path- API endpoint path**kwargs- Additional arguments to pass to the request
Returns:
API response data as JSON deserialized into a dictionary
def patch(path: str, json: Dict[str, Any] = dict(),
**kwargs) -> Dict[str, Any]Make a PATCH request to the API. Version prefix /v3 is added only when the endpoint has no version prefix. Paths like /v3/assets or /v4/climate/metrics are used as-is. Absolute URLs are also supported and used as-is.
Arguments:
path- API endpoint pathjson- JSON body data**kwargs- Additional arguments to pass to the request
Returns:
API response data as JSON deserialized into a dictionary
async def patch_async(path: str, json: Dict[str, Any] = dict(),
**kwargs) -> Dict[str, Any]Make an asynchronous PATCH request to the API. Version prefix /v3 is added only when the endpoint has no version prefix. Paths like /v3/assets or /v4/climate/metrics are used as-is. Absolute URLs are also supported and used as-is.
Arguments:
path- API endpoint pathjson- JSON body data**kwargs- Additional arguments to pass to the request
Returns:
API response data as JSON deserialized into a dictionary
class PaginatedIterator(Generic[T], Iterator[T])def fetch_page() -> list[T]Fetches the next page of results and returns them as a list.
def to_polars()Fetches all items from all pages, applies an optional transformation, and returns them as a Polars DataFrame. This method will consume the iterator.
Raises:
ImportError- If Polars is not installed. Install it with: pip install velo-sdk[polars]
class AsyncPaginatedIterator(Generic[T], AsyncIterator[T])async def afetch_page() -> list[T]Asynchronously fetches the next page of results and returns them as a list.
async def to_polars()Asynchronously fetches all items from all pages, applies an optional transformation, and returns them as a Polars DataFrame. This method will consume the iterator.
Raises:
ImportError- If Polars is not installed. Install it with: pip install velo-sdk[polars]
class StaticListIterator(Generic[T], Iterator[T], AsyncIterator[T])Helper to fetch, parse, and iterate over a list of items from an API endpoint that returns the full list under a 'results' key without pagination.
def fetch_all() -> List[T]Synchronously fetches all results from the endpoint and parses them. If data has already been fetched for iteration, returns the cached data.
Returns:
A list of parsed items of type T.
def __iter__() -> SelfReturns the iterator object itself, fetching data if needed.
def __next__() -> TReturns the next item in the fetched list.
async def afetch_all() -> List[T]Asynchronously fetches all results from the endpoint and parses them. If data has already been fetched for iteration, returns the cached data.
Returns:
A list of parsed items of type T.
def __aiter__() -> SelfReturns the async iterator object itself.
async def __anext__() -> TReturns the next item, fetching data asynchronously if needed.
def to_polars()Fetches all results (if not already fetched) and converts them into a Polars DataFrame.
Assumes that the generic type T is a Pydantic model.
Returns:
A Polars DataFrame containing the fetched data.
Raises:
ImportError- If Polars is not installed. Install it with: pip install velo-sdk[polars]
class Companies()def get_company(company_id: str) -> CompanyGet a company by its unique ID.
Arguments:
company_idstr - The unique identifier of the company.
Returns:
Company- The Company object.
async def get_company_async(company_id: str) -> CompanyGet a company by its unique ID asynchronously.
Arguments:
company_idstr - The unique identifier of the company.
Returns:
Company- The Company object.
def list_companies(*,
scope: Literal["public", "organization"] = "public",
**extra_params: Any) -> PaginatedIterator[Company]List all companies.
Arguments:
scopeLiteral["public", "organization"] - The scope to filter companies by "public" is the default scope and searches all available companies in VELO. "organization" searches all private companies uploaded to the organization.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
PaginatedIterator[Company]- An iterator over Company objects.
async def list_companies_async(
*,
scope: Literal["public", "organization"] = "public",
**extra_params: Any) -> AsyncPaginatedIterator[Company]List all companies asynchronously.
Arguments:
scopeLiteral["public", "organization"] - The scope to filter companies by "public" is the default scope and searches all available companies in VELO. "organization" searches all private companies uploaded to the organization.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
AsyncPaginatedIterator[Company]- An asynchronous iterator over Company objects.
def search_companies(*,
name: Optional[str] = None,
**extra_params: Any) -> list[Company]Search for companies by name.
Arguments:
nameOptional[str] - The name of the company to search for.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
list[Company]- A list of Company objects matching the search criteria.
async def search_companies_async(*,
name: Optional[str] = None,
**extra_params: Any) -> list[Company]Search for companies by name asynchronously.
Arguments:
nameOptional[str] - The name of the company to search for.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
list[Company]- A list of Company objects matching the search criteria.
def list_company_assets(company_id: str,
**extra_params: Any) -> PaginatedIterator[Asset]List all assets for a company.
Arguments:
company_idstr - The unique identifier of the company.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
PaginatedIterator[Asset]- An iterator over Asset objects belonging to the company.
async def list_company_assets_async(
company_id: str, **extra_params: Any) -> AsyncPaginatedIterator[Asset]List all assets for a company asynchronously.
Arguments:
company_idstr - The unique identifier of the company.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
AsyncPaginatedIterator[Asset]- An asynchronous iterator over Asset objects belonging to the company.
def list_uninsurable_company_assets(
company_id: str, pathway: Pathway, horizon: HorizonYear,
**extra_params: Any) -> PaginatedIterator[AssetClimateScore]List all uninsurable assets for a company. Uninsurable assets are defined as those with cvar_95 >= 0.35.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
PaginatedIterator[AssetClimateScore]- An iterator over AssetClimateScore objects for uninsurable assets.
async def list_uninsurable_company_assets_async(
company_id: str, pathway: Pathway, horizon: HorizonYear,
**extra_params: Any) -> AsyncPaginatedIterator[AssetClimateScore]List all uninsurable assets for a company asynchronously. Uninsurable assets are defined as those with cvar_95 >= 0.35.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
AsyncPaginatedIterator[AssetClimateScore]- An asynchronous iterator over AssetClimateScore objects for uninsurable assets.
def list_stranded_company_assets(
company_id: str, pathway: Pathway, horizon: HorizonYear,
**extra_params: Any) -> PaginatedIterator[AssetClimateScore]List all stranded assets for a company. Stranded assets are defined as those with cvar_95 >= 0.75.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
PaginatedIterator[AssetClimateScore]- An iterator over AssetClimateScore objects for stranded assets.
async def list_stranded_company_assets_async(
company_id: str, pathway: Pathway, horizon: HorizonYear,
**extra_params: Any) -> AsyncPaginatedIterator[AssetClimateScore]List all stranded assets for a company asynchronously. Stranded assets are defined as those with cvar_95 >= 0.75.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
AsyncPaginatedIterator[AssetClimateScore]- An asynchronous iterator over AssetClimateScore objects for stranded assets.
def get_company_climate_scores(company_id: str, pathway: Pathway,
horizon: HorizonYear) -> ClimateScoreGet the climate scores for a company.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
ClimateScore- The ClimateScore object for the company.
async def get_company_climate_scores_async(
company_id: str, pathway: Pathway,
horizon: HorizonYear) -> ClimateScoreGet the climate scores for a company asynchronously.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
ClimateScore- The ClimateScore object for the company.
def get_company_impact_scores(
company_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[ImpactScore]Get the impact scores for a company.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[ImpactScore]- An iterator over ImpactScore objects for the company.
async def get_company_impact_scores_async(
company_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[ImpactScore]Get the impact scores for a company asynchronously.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[ImpactScore]- An asynchronous iterator over ImpactScore objects for the company.
def list_company_asset_climate_scores(
company_id: str, pathway: Pathway, horizon: HorizonYear,
**extra_params: Any) -> PaginatedIterator[AssetClimateScore]Get the climate scores for all assets of a company.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
PaginatedIterator[AssetClimateScore]- An iterator over AssetClimateScore objects for the company's assets.
async def list_company_asset_climate_scores_async(
company_id: str, pathway: Pathway, horizon: HorizonYear,
**extra_params: Any) -> AsyncPaginatedIterator[AssetClimateScore]Get the climate scores for all assets of a company asynchronously.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
AsyncPaginatedIterator[AssetClimateScore]- An asynchronous iterator over AssetClimateScore objects for the company's assets.
def list_company_asset_impact_scores(
company_id: str, pathway: Pathway, horizon: HorizonYear,
**extra_params: Any) -> PaginatedIterator[AssetImpactScore]Get the impact scores for all assets of a company.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
PaginatedIterator[AssetImpactScore]- An iterator over AssetImpactScore objects for the company's assets.
async def list_company_asset_impact_scores_async(
company_id: str, pathway: Pathway, horizon: HorizonYear,
**extra_params: Any) -> AsyncPaginatedIterator[AssetImpactScore]Get the impact scores for all assets of a company asynchronously.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
AsyncPaginatedIterator[AssetImpactScore]- An asynchronous iterator over AssetImpactScore objects for the company's assets.
def aggregate_company_asset_climate_scores_by_country(
company_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[CountryClimateScore]Get the climate scores for all assets of a company aggregated by country.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[CountryClimateScore]- An iterator over CountryClimateScore objects, aggregated by country.
async def aggregate_company_asset_climate_scores_by_country_async(
company_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[CountryClimateScore]Get the climate scores for all assets of a company aggregated by country asynchronously.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[CountryClimateScore]- An asynchronous iterator over CountryClimateScore objects, aggregated by country.
def aggregate_company_asset_impact_scores_by_country(
company_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[CountryImpactScore]Get the impact scores for all assets of a company aggregated by country.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[CountryImpactScore]- An iterator over CountryImpactScore objects, aggregated by country.
async def aggregate_company_asset_impact_scores_by_country_async(
company_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[CountryImpactScore]Get the impact scores for all assets of a company aggregated by country asynchronously.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[CountryImpactScore]- An asynchronous iterator over CountryImpactScore objects, aggregated by country.
def aggregate_company_asset_climate_scores_by_asset_type(
company_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[AssetTypeClimateScore]Get the climate scores for all assets of a company aggregated by asset type.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[AssetTypeClimateScore]- An iterator over AssetTypeClimateScore objects, aggregated by asset type.
async def aggregate_company_asset_climate_scores_by_asset_type_async(
company_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[AssetTypeClimateScore]Get the climate scores for all assets of a company aggregated by asset type asynchronously.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[AssetTypeClimateScore]- An asynchronous iterator over AssetTypeClimateScore objects, aggregated by asset type.
def aggregate_company_asset_impact_scores_by_asset_type(
company_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[AssetTypeImpactScore]Get the impact scores for all assets of a company aggregated by asset type.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[AssetTypeImpactScore]- An iterator over AssetTypeImpactScore objects, aggregated by asset type.
async def aggregate_company_asset_impact_scores_by_asset_type_async(
company_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[AssetTypeImpactScore]Get the impact scores for all assets of a company aggregated by asset type asynchronously.
Arguments:
company_idstr - The unique identifier of the company.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[AssetTypeImpactScore]- An asynchronous iterator over AssetTypeImpactScore objects, aggregated by asset type.
def upload_company_assets(company_id: str, assets: list[Dict] | Any)Upload new assets to a company.
Arguments:
company_idstr - The unique identifier of the company.assetslist[Dict] | pl.DataFrame | pandas.DataFrame - A list of Asset objects to upload, or a DataFrame (pandas or polars) that will be converted to a list of dictionaries.
def create_company(name: str, sector: Sector) -> CompanyCreate a new company.
Arguments:
namestr - The name of the company.sectorSector - The sector of the company.
Returns:
Company- The newly created Company object.
async def create_company_async(name: str, sector: Sector) -> CompanyCreate a new company asynchronously.
Arguments:
namestr - The name of the company.sectorSector - The GICS sector of the company.
Returns:
Company- The newly created Company object.
class Assets()def get_asset(asset_id: str) -> AssetGet an asset by its unique ID.
Arguments:
asset_idstr - The unique identifier of the asset.
Returns:
Asset- The Asset object.
async def get_asset_async(asset_id: str) -> AssetGet an asset by its unique ID asynchronously.
Arguments:
asset_idstr - The unique identifier of the asset.
Returns:
Asset- The Asset object.
def list_assets(**extra_params: Any) -> PaginatedIterator[Asset]List all assets.
Arguments:
**extra_paramsAny - Additional parameters to pass to the API.
Returns:
PaginatedIterator[Asset]- An iterator over Asset objects.
async def list_assets_async(**extra_params: Any
) -> AsyncPaginatedIterator[Asset]List all assets asynchronously.
Arguments:
**extra_paramsAny - Additional parameters to pass to the API.
Returns:
AsyncPaginatedIterator[Asset]- An asynchronous iterator over Asset objects.
def get_asset_owner(asset_id: str) -> CompanyGet the company that owns an asset.
Arguments:
asset_idstr - The unique identifier of the asset.
Returns:
Company- The Company object that owns the asset.
async def get_asset_owner_async(asset_id: str) -> CompanyGet the company that owns an asset asynchronously.
Arguments:
asset_idstr - The unique identifier of the asset.
Returns:
Company- The Company object that owns the asset.
def search_assets(query: str,
scope: Literal["public", "company",
"organization"] = "public",
company_id: str | None = None,
**extra_params: Any) -> PaginatedIterator[Asset]Search for assets.
Arguments:
querystr - The search query string. Asset names and addresses are searched for.scopeLiteral["public", "company", "organization"] - The scope of the search. "public" is the default scope and searches all available assets in VELO. "organization" searches all private assets uploaded to the organization. If "company" is selected,company_idmust also be provided.company_idOptional[str] - The ID of the company to scope the search to. Required ifscopeis "company".**extra_paramsAny - Additional parameters to pass to the API.
Returns:
PaginatedIterator[Asset]- A paginated iterator of assets matching the search criteria.
async def search_assets_async(
query: str,
scope: Literal["public", "company", "organization"] = "public",
company_id: str | None = None,
**extra_params: Any) -> AsyncPaginatedIterator[Asset]Search for assets asynchronously.
Arguments:
querystr - The search query string. Asset names and addresses are searched for.scopeLiteral["public", "company", "organization"] - The scope of the search. "public" is the default scope and searches all available assets in VELO. "organization" searches all private assets uploaded to the organization. If "company" is selected,company_idmust also be provided.company_idOptional[str] - The ID of the company to scope the search to. Required ifscopeis "company".**extra_paramsAny - Additional parameters to pass to the API.
Returns:
AsyncPaginatedIterator[Asset]- An asynchronous paginated iterator of assets matching the search criteria.
class Company(BaseModel)A company is an entity that has assets and identifying information.
class Asset(BaseModel)An asset represents aphysical asset that is subject to climate risk.
class MarketIndex(BaseModel)A market index is a collection of companies.
class ClimateScore(BaseModel)The cimate risk metrics that represent the likelihood of a company or asset to be impacted by climate risk.
class ImpactScore(BaseModel)The impact risk metrics that represent the potential impact of a company or asset to be impacted by climate risk. These metrics represent an individual risk factor and its attribution to the total climate risk metrics.
class CountryClimateScore(ClimateScore)Climate risk metrics aggregated for a country.
class CountryImpactScore(ImpactScore)Impact risk metrics aggregated for a country.
class AssetTypeClimateScore(ClimateScore)Climate risk metrics aggregated for an asset type.
class AssetTypeImpactScore(ImpactScore)Impact risk metrics aggregated for an asset type.
class AssetClimateScore(ClimateScore)Climate risk metrics for an asset.
class AssetImpactScore(BaseModel)Impact risk metrics for an asset.
class Markets()def search_indexes(*,
name: Optional[str] = None,
**extra_params: Any) -> list[MarketIndex]Search for market indexes by name.
Arguments:
nameOptional[str] - The name of the market index to search for.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
list[MarketIndex]- A list of MarketIndex objects matching the search criteria.
async def search_indexes_async(*,
name: Optional[str] = None,
**extra_params: Any) -> list[MarketIndex]Search for market indexes by name asynchronously.
Arguments:
nameOptional[str] - The name of the market index to search for.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
list[MarketIndex]- A list of MarketIndex objects matching the search criteria.
def list_indexes() -> PaginatedIterator[MarketIndex]List all market indexes.
Returns:
PaginatedIterator[MarketIndex]- An iterator over MarketIndex objects.
async def list_indexes_async() -> AsyncPaginatedIterator[MarketIndex]List all market indexes asynchronously.
Returns:
AsyncPaginatedIterator[MarketIndex]- An asynchronous iterator over MarketIndex objects.
def get_index(index_id: str) -> MarketIndexGet a market index by its unique ID.
Arguments:
index_idstr - The unique identifier of the market index.
Returns:
MarketIndex- The MarketIndex object.
async def get_index_async(index_id: str) -> MarketIndexGet a market index by its unique ID asynchronously.
Arguments:
index_idstr - The unique identifier of the market index.
Returns:
MarketIndex- The MarketIndex object.
def get_index_companies(index_id: str) -> PaginatedIterator[Company]Get all companies in a market index.
Arguments:
index_idstr - The unique identifier of the market index.
Returns:
PaginatedIterator[Company]- An iterator over Company objects in the index.
async def get_index_companies_async(
index_id: str) -> AsyncPaginatedIterator[Company]Get all companies in a market index asynchronously.
Arguments:
index_idstr - The unique identifier of the market index.
Returns:
AsyncPaginatedIterator[Company]- An asynchronous iterator over Company objects in the index.
def get_index_climate_scores(index_id: str, pathway: Pathway,
horizon: HorizonYear) -> ClimateScoreGet the climate scores for a market index.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
ClimateScore- The ClimateScore object for the market index.
async def get_index_climate_scores_async(index_id: str, pathway: Pathway,
horizon: HorizonYear) -> ClimateScoreGet the climate scores for a market index asynchronously.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
ClimateScore- The ClimateScore object for the market index.
def get_index_impact_scores(
index_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[ImpactScore]Get the impact scores for a market index.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[ImpactScore]- An iterator over ImpactScore objects for the market index.
async def get_index_impact_scores_async(
index_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[ImpactScore]Get the impact scores for a market index asynchronously.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[ImpactScore]- An asynchronous iterator over ImpactScore objects for the market index.
def list_index_asset_impact_scores(
index_id: str, pathway: Pathway, horizon: HorizonYear,
**extra_params: Any) -> PaginatedIterator[AssetImpactScore]Get the impact scores for all assets of a market index.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
PaginatedIterator[AssetImpactScore]- An iterator over AssetImpactScore objects for the index's assets.
def list_index_asset_climate_scores(
index_id: str, pathway: Pathway, horizon: HorizonYear,
**extra_params: Any) -> PaginatedIterator[AssetClimateScore]Get the climate scores for all assets of a market index.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
PaginatedIterator[AssetClimateScore]- An iterator over AssetClimateScore objects for the index's assets.
async def list_index_asset_climate_scores_async(
index_id: str, pathway: Pathway, horizon: HorizonYear,
**extra_params: Any) -> AsyncPaginatedIterator[AssetClimateScore]Get the climate scores for all assets of a market index asynchronously.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
AsyncPaginatedIterator[AssetClimateScore]- An asynchronous iterator over AssetClimateScore objects for the index's assets.
async def list_index_asset_impact_scores_async(
index_id: str, pathway: Pathway, horizon: HorizonYear,
**extra_params: Any) -> AsyncPaginatedIterator[AssetImpactScore]Get the impact scores for all assets of a market index asynchronously.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.**extra_paramsAny - Additional parameters to pass to the API.
Returns:
AsyncPaginatedIterator[AssetImpactScore]- An asynchronous iterator over AssetImpactScore objects for the index's assets.
def aggregate_index_asset_climate_scores_by_country(
index_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[CountryClimateScore]Get the climate scores for all assets in a market index aggregated by country.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[CountryClimateScore]- An iterator over CountryClimateScore objects, aggregated by country.
async def aggregate_index_asset_climate_scores_by_country_async(
index_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[CountryClimateScore]Get the climate scores for all assets in a market index aggregated by country asynchronously.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[CountryClimateScore]- An asynchronous iterator over CountryClimateScore objects, aggregated by country.
def aggregate_index_asset_impact_scores_by_country(
index_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[CountryImpactScore]Get the impact scores for all assets in a market index aggregated by country.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[CountryImpactScore]- An iterator over CountryImpactScore objects, aggregated by country.
async def aggregate_index_asset_impact_scores_by_country_async(
index_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[CountryImpactScore]Get the impact scores for all assets in a market index aggregated by country asynchronously.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[CountryImpactScore]- An asynchronous iterator over CountryImpactScore objects, aggregated by country.
def aggregate_index_asset_climate_scores_by_asset_type(
index_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[AssetTypeClimateScore]Get the climate scores for all assets in a market index aggregated by asset type.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[AssetTypeClimateScore]- An iterator over AssetTypeClimateScore objects, aggregated by asset type.
async def aggregate_index_asset_climate_scores_by_asset_type_async(
index_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[AssetTypeClimateScore]Get the climate scores for all assets in a market index aggregated by asset type asynchronously.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[AssetTypeClimateScore]- An asynchronous iterator over AssetTypeClimateScore objects, aggregated by asset type.
def aggregate_index_asset_impact_scores_by_asset_type(
index_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[AssetTypeImpactScore]Get the impact scores for all assets in a market index aggregated by asset type.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[AssetTypeImpactScore]- An iterator over AssetTypeImpactScore objects, aggregated by asset type.
async def aggregate_index_asset_impact_scores_by_asset_type_async(
index_id: str, pathway: Pathway,
horizon: HorizonYear) -> StaticListIterator[AssetTypeImpactScore]Get the impact scores for all assets in a market index aggregated by asset type asynchronously.
Arguments:
index_idstr - The unique identifier of the market index.pathwayPathway - Climate scenario pathway powered by Climate Earth Digital Twin.horizonHorizonYear - Climatology year representing a decadal period.
Returns:
StaticListIterator[AssetTypeImpactScore]- An asynchronous iterator over AssetTypeImpactScore objects, aggregated by asset type.