Token Terminal
Unofficial Token Terminal API client in python
For more information, see Token Terminal API Documentation
Installation:
use pip to install:
pip install tokenterminal
Authentication:
Pass API key in object initialization.
Example usage:
from tokenterminal import TokenTerminal
# object initialization
token_terminal = TokenTerminal(key='xxxxx-xxxx-xxxx-xxxx-xxxxxxxx')
# Fetch all data for projects'
projects_data = token_terminal.get_all_projects()
for project_info in projects_data:
print(project_info)
# Fetch project's historical metrics
project_metrics = token_terminal.get_historical_metrics('0x')
for metrics in project_metrics:
print(metrics)
# To retrieve the metric availability for a project.
reponse = token_terminal.get_metric_availability(project_id=project_id)
# To retrieve metric aggregation data for one project.
reponse = token_terminal.get_metric_aggregations(project_id=project_id)
# Get financial statement for a project
reponse = token_terminal.get_financial_statement(
project_id=project_id,
timestamp_granularity='week',
interval='1m'
)
# Get list of all available market sectors that are available
reponse = token_terminal.get_market_sectors()
# Get list of all metrics
reponse = token_terminal.get_all_metrics()
# To retrieve metric aggregations for multiple projects.
project_ids = ['aave', 'uniswap']
reponse = token_terminal.get_projects_metric_aggregations(project_ids=project_ids)
Donate & Help maintain the library
Metadata
Release files for tokenterminal 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tokenterminal-2.0.0.tar.gz | 9.1 kB | Without provenance | Details for tokenterminal-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tokenterminal-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for tokenterminal-2.0.0-py3-none-any.whl |
Total release size: 18.1 kB
Release files / tokenterminal-2.0.0.tar.gz
| Download URL | tokenterminal-2.0.0.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3f44fc65e070cc5708f20d8213c0cc9c97a7169369a107d877878c151316a3a
|
|
BLAKE2b-256 checksum How to use checksums |
1046a6593c25cf5a3c37ed405ec3bb062a60dd6318feb6bad396d1c699ac11bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / tokenterminal-2.0.0-py3-none-any.whl
| Download URL | tokenterminal-2.0.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e395c4c5bd34c4beb2beb551ec05175ce0a83cda6591e8d66fc66265f88277ec
|
|
BLAKE2b-256 checksum How to use checksums |
1f232b3f0adc677476ed2291d391e706237e60ef3f259e0fc12b957fad4d4094
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for tokenterminal 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.