messari.nfts.nonfungible package
Submodules
messari.nfts.nonfungible.nonfungible module
This module is meant to contain the NonFungible class
- class messari.nfts.nonfungible.nonfungible.NonFungible
Bases:
messari.dataloader.DataLoaderThis class is a wrapper around the NonFungible API
Methods
get_collection_history(collections_in[, length])get collection history
get_collection_stats(collections_in[, length])get stats about collection
get_collection_summary(collections_in)Retrieve quick collection summary
get_response(endpoint_url[, params, headers])Gets response from endpoint and checks for HTTP errors when requesting data.
set_api_dict(api_dict)Sets a new dictionary to be used as an API key pair
set_taxonomy_dict(taxonomy_dict)Sets a new dictionary to be used for taxonomy translations
translate(input_slugs)Wrapper around messari.utils.validate_input, validate input & check if it's supported by DeFi Llama
- get_collection_history(collections_in: Union[str, List], length: int = 10) pandas.core.frame.DataFrame
get collection history
- Parameters
- collections_in: str, List
single collection name in or list of collection names, use ‘’ to get all collections
- length: int
optional length of history to return, default is 30
- Returns
- DataFrame
DataFrame with collection history
- get_collection_stats(collections_in: Union[str, List], length: int = 30) pandas.core.frame.DataFrame
get stats about collection
- Parameters
- collections_in: str, List
single collection name in or list of collection names
- length: int
optional length of stats to return, default is 30
- Returns
- DataFrame
DataFrame with collection statistics
- get_collection_summary(collections_in: Union[str, List]) pandas.core.frame.DataFrame
Retrieve quick collection summary
- Parameters
- collections_in: str, List
single collection name in or list of collection names
- Returns
- DataFrame
DataFrame with collection summary
Module contents
Module to handle initialization, imports, for NonFungible class