Skip to main content

Unofficial DeFi Llama API client.

Project description

DeFiLlama

Python 3.7 Python 3.8 Python 3.9 Python 3.10 Python 3.11 Python 3.12

License

Build

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

Paypal


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 details)

Uploaded Source

Built Distribution

DeFiLlama-2.3.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file defillama-2.3.0.tar.gz.

File metadata

  • Download URL: defillama-2.3.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for defillama-2.3.0.tar.gz
Algorithm Hash digest
SHA256 2509c10eefc0122806d88f63f6a6d83170f5ab40b8a4ce30508baff6f897b8dc
MD5 2ed571c836a58a830886c95794066d64
BLAKE2b-256 2fc9d6656e7617fe5a98c9c881292e35dcd7bb642405473b945e83d717f58283

See more details on using hashes here.

File details

Details for the file DeFiLlama-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: DeFiLlama-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for DeFiLlama-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2953f232e1dfd2c1e730374a580e428644fb5433c581e82dd28ab44728d2ef09
MD5 62b0f3d2a790dac2e56cd95d60d790d6
BLAKE2b-256 e90e9868d82b11ac813810cbc27472dc1651d2ba6e574894c19143c93344a7ef

See more details on using hashes here.

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