DeFiLlama
Unofficial DeFi Llama API client in python
For detailed information about the API endpoints, see DeFi Llama API Documentation
Installation:
use pip to install:
pip install DeFiLlama
Authentication:
Endpoints are accessible without an API key.
Example usage:
from defillama import DefiLlama
# initialize api client
llama = DefiLlama()
# Get all protocols data
response = llama.get_all_protocols()
# Get a protocol data
response = llama.get_protocol(name='uniswap')
Data from stablecoins dashboard
# List all stablecoins along with their circulating amounts
response = llama.get_stablecoins()
# Get historical mcap sum of all stablecoins in a chain
response = llama.get_stablecoins_chains_all_historical_mcap_sum(chain='Ethereum', stablecoin_id=1)
Donate & Help maintain the library
Release files for DeFiLlama 2.3.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 | |
|---|---|---|---|
| defillama-2.3.0.tar.gz | 9.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| DeFiLlama-2.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.2 kB
Release files / defillama-2.3.0.tar.gz
| Download URL | defillama-2.3.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2509c10eefc0122806d88f63f6a6d83170f5ab40b8a4ce30508baff6f897b8dc
|
|
BLAKE2b-256 checksum How to use checksums |
2fc9d6656e7617fe5a98c9c881292e35dcd7bb642405473b945e83d717f58283
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / DeFiLlama-2.3.0-py3-none-any.whl
| Download URL | DeFiLlama-2.3.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2953f232e1dfd2c1e730374a580e428644fb5433c581e82dd28ab44728d2ef09
|
|
BLAKE2b-256 checksum How to use checksums |
e90e9868d82b11ac813810cbc27472dc1651d2ba6e574894c19143c93344a7ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|