Skip to main content

defillamaAPI

API Collection of DefiLlama (https://defillama.com/docs/api)

Splitted the endpoints categories on defillama's 'docs as a seperate class, so that user can import only required category endpoints.

Installation:

use pip to install:

pip install defillamaAPI

Example usage:

from defillamaAPI import TVL, Stablecoins

# initialize TVL api client
defillama_tvl = TVL()

# initialize Stablecoins api client
defillama_stablecoins = Stablecoins()

# Get all protocols data
protocols = defillama_tvl.get_protocols()

# Get all stablecoins along with their circulating amounts
stablecoins = defillama_stablecoins.get_all_stablecoins()

Task ToDo

  • Add Doc string details for all endpoints
  • User can select if he wants pandas dataframe or just response json
  • Test with other versions of python ( Although used only requests and time module with no fancy methods)

This is open-source project, I am extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.

Metadata

Release files for defillamaAPI 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for defillamaAPI 0.0.4
File Size Uploaded Provenance Actions
defillamaAPI-0.0.4.tar.gz 7.6 kB Without provenance Details for defillamaAPI-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for defillamaAPI 0.0.4
File Interpreter ABI Platform Actions
defillamaAPI-0.0.4-py3-none-any.whl Python 3 none any Details for defillamaAPI-0.0.4-py3-none-any.whl

Total release size: 17.3 kB

Release files / defillamaAPI-0.0.4.tar.gz

Download URL defillamaAPI-0.0.4.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a9147eba4db38155873e27d4d2ad1b586c34227972980092b1a98a567450cbbd
BLAKE2b-256 checksum
How to use checksums
ae6fc751ec9acc0a23b2f5fa6252a56acd117a56f1748a52645c57f550ce02b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / defillamaAPI-0.0.4-py3-none-any.whl

Download URL defillamaAPI-0.0.4-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f73c3927e1d854c1087c2dcf0422983045c9670248b9d79abbf9ad0b7b6e0c0
BLAKE2b-256 checksum
How to use checksums
5b59567fedc44797bda9b15057208ae600b128ce559eb0461ea9ac28b5f4b527
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for defillamaAPI 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page