Token
- class Token(http: IHttp)
- all_markets(address: str, time_frame: str | None = '24h', sort_type: str | None = 'desc', sort_by: str | None = 'liquidity', offset: int | None = 0, limit: int | None = 10) dict
The API provides detailed information about the markets for a specific cryptocurrency token on a specified blockchain. Users can retrieve data for one or multiple markets related to a single token. This endpoint requires the specification of a token address and the blockchain to filter results. Additionally, it supports optional query parameters such as offset, limit, and required sorting by liquidity or sort type (ascending or descending) to refine the output.
- Parameters:
address – The address of the token.
time_frame – The time frame for the data (e.g., ‘24h’, ‘7d’).
sort_type – The type of sorting.
sort_by – The field to sort by.
offset – The offset.
limit – The limit.
- creation_info(address: str) dict
Get creation info of a token.
- Parameters:
address – The address of the token.
- holder(address: str, offset: int = 0, limit: int = 100) dict
Get top holder list of the given token.
- Parameters:
address – The address of the token.
offset – The offset.
limit – The limit.
- list_all(*, sort_by: str | None = 'v24hUSD', sort_type: str | None = 'desc', offset: int | None = 0, limit: int | None = 50, min_liquidity: int | None = 50) dict
Get token list of any supported chains.
- Parameters:
sort_by – The field to sort by.
sort_type – The type of sorting.
offset – The offset
limit – The limit
min_liquidity – The minimum liquidity to check.
- list_all_v2() dict
This endpoint facilitates the retrieval of a list of tokens on a specified blockchain network. This upgraded version is exclusive to business and enterprise packages. By simply including the header for the requested blockchain without any query parameters, business and enterprise users can get the full list of tokens on the specified blockchain in the URL returned in the response. This removes the need for the limit response of the previous version and reduces the workload of making multiple calls.
- market_data(address: str) dict
Get market data of single token.
- Parameters:
address – The address of the token.
- market_metadata_multiple(addresses: str | list[str]) dict
Get metadata of multiple tokens
- Parameters:
addresses – The address of the token…can be comma separated string or list of strings.
- market_metadata_single(address: str) dict
Get metadata of single token
- Parameters:
address – The address of the token.
- new_listing(time_to: int, limit: int | None = None, meme_platform_enabled: bool | None = None) dict
Get newly listed tokens of any supported chains.
- Parameters:
time_to – Specify the end time using Unix timestamps in seconds
limit – The limit
meme_platform_enabled – Enable to receive token new listing from meme platforms (eg: pump.fun). This filter only supports Solana
- overview(address: str) dict
Get overview of a token.
- Parameters:
address – The address of the token.
- security(address: str) dict
Get token security of any supported chains.
- Parameters:
address – The address of the token.
- top_traders(address: str, time_frame: str | None = '24h', sort_type: str | None = 'desc', sort_by: str | None = 'volume', offset: int | None = 0, limit: int | None = 10) dict
Get top traders of given token.
- Parameters:
address – The address of the token.
time_frame – The time frame for the data (e.g., ‘24h’, ‘7d’).
sort_type – The type of sorting.
sort_by – The field to sort by.
offset – The offset.
limit – The limit.
- trade_data_multiple(addresses: str | list[str]) dict
Get trade data of multiple tokens.
- Parameters:
addresses – The address of the token…can be comma separated string or list of strings.
- trade_data_single(address: str) dict
Get trade data of single token
- Parameters:
addresses – The address of the token.
- trending(sort_by: str = 'rank', sort_type: str = 'asc', offset: int = 0, limit: int = 10) dict
Retrieve a dynamic and up-to-date list of trending tokens based on specified sorting criteria.
- Parameters:
sort_by – The field to sort by.
sort_type – The type of sorting.
offset – The offset.
limit – The limit.