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')
# Get historical values of total TVL
response = llama.get_historical_tvl()
# Get protocol TVL
response = llama.get_protocol_tvl(name='uniswap')
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-1.1.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for DeFiLlama-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17b52a556dc4155030910b1ed61b8c5861b72809f4df2ea2a9a07bc317c1ef16 |
|
MD5 | 7d6b6ef66576012a9860517d2548a63a |
|
BLAKE2b-256 | c8eb1c8b76d0500e2db2588c568709eb65bb84784eb4847be9b9168454377f9e |