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.0.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for DeFiLlama-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4b1b61a91151729d29049fa5230e56ee22d764a1fd20d83ed88066b0394e9da |
|
MD5 | 3edbbbeda4e17bc0a956ea9a7de4e58a |
|
BLAKE2b-256 | e67ec2007c6f44b23836ef2f90a26e8c8eccdd007fde5eb18b7b89dbc7c59cb1 |