Skip to main content

Python Wrapper for DefiLlama endpoints

Project description

pydefillama: a DefiLlama Python client

BUILD PyPi

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


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.3.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

pydefillama-1.0.3-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page