Python Wrapper for DefiLlama endpoints
Project description
pydefillama: a DefiLlama Python client
An unofficial DeFiLlama wrapper built for data science workflows.
For detailed instructions on the endpoints, refer to the API docs
Installation
pip install pydefillama
Usage
import pydefillama as llama
# fetch all protocols
protocols = llama.fetch_all_protocols()
# fetch TVL for a protocol
llama.fetch_protocol_tvl(protocols[0]["slug"])
# fetch all chains
chains = llama.fetch_all_chains()
# fetch TVL for a chain
llama.fetch_chain_tvl(chains["name"])
Full list of supported functions here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydefillama-1.0.4.tar.gz
(4.3 kB
view details)
Built Distribution
File details
Details for the file pydefillama-1.0.4.tar.gz
.
File metadata
- Download URL: pydefillama-1.0.4.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1383449fd7c1ce8a77cef0b4d430651d217ca4d817e9a08408b6d6506ca0de4 |
|
MD5 | 6f11d277386d5a0199477f4191a262fc |
|
BLAKE2b-256 | b43a42c66d3f911358fb8fe1770e3322d345dea16efd45aed0433385982f9714 |
File details
Details for the file pydefillama-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: pydefillama-1.0.4-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f975076d5427ec958cc31e2f763a4b0e71c92fd3cb05aa53c1a59e6838241bfe |
|
MD5 | 97aa017c9a4e7d61ee29124e37c56741 |
|
BLAKE2b-256 | 482e77af1f5c5feacbc0904b111ba50487d9d29777af778853933a8258aa5321 |