Unofficial DeFi Llama API client.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
defillama-2.3.0.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for DeFiLlama-2.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2953f232e1dfd2c1e730374a580e428644fb5433c581e82dd28ab44728d2ef09 |
|
MD5 | 62b0f3d2a790dac2e56cd95d60d790d6 |
|
BLAKE2b-256 | e90e9868d82b11ac813810cbc27472dc1651d2ba6e574894c19143c93344a7ef |