messari.nfts.opensea package
Submodules
messari.nfts.opensea.opensea module
This module is meant to contain the OpenSea class
- class messari.nfts.opensea.opensea.OpenSea(api_key=None)
Bases:
messari.dataloader.DataLoader
This class is a wrapper around the OpenSea API
Methods
get_asset
(contracts_in, assets_in[, account])Used to fetch more in-depth information about an individual asset
get_collection
(collections_in)Used for retrieving more in-depth information about individual collections, including real time statistics like floor price
get_collection_stats
(collections_in)fetch stats for a specific collection, including realtime floor price statistics
get_contract
(contracts_in)Used to fetch more in-depth information about an contract asset
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_asset(contracts_in: Union[str, List], assets_in: Union[str, List], account: Optional[str] = None) pandas.core.frame.DataFrame
Used to fetch more in-depth information about an individual asset
- Parameters
- contracts_in: str, List
single contract address in or list of contract addresses
- Returns
- DataFrame
DataFrame with asset info
- get_collection(collections_in: Union[str, List]) pandas.core.frame.DataFrame
Used for retrieving more in-depth information about individual collections, including real time statistics like floor price
- Parameters
- collections_in: str, List
single collection name in or list of collection names
- Returns
- DataFrame
DataFrame with collection info
- get_collection_stats(collections_in: Union[str, List]) pandas.core.frame.DataFrame
fetch stats for a specific collection, including realtime floor price statistics
- Parameters
- collections_in: str, List
single collection name in or list of collection names
- Returns
- DataFrame
DataFrame with collection stats
- get_contract(contracts_in: Union[str, List]) pandas.core.frame.DataFrame
Used to fetch more in-depth information about an contract asset
- Parameters
- contracts_in: str, List
single contract address in or list of contract addresses
- Returns
- DataFrame
DataFrame with contract info
Module contents
Module to handle initialization, imports, for OpenSea class