DeFiLlama-1.1.0
توضیحات
Unofficial DeFi Llama API client.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | DeFiLlama-1.1.0 |
| نام | DeFiLlama |
| نسخه کتابخانه | 1.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tarique Anwer |
| ایمیل نویسنده | itzmetariq@gmail.com |
| آدرس صفحه اصلی | https://github.com/itzmestar/DeFiLlama |
| آدرس اینترنتی | https://pypi.org/project/DeFiLlama/ |
| مجوز | Apache License 2.0 |
# DeFiLlama
[](https://www.python.org/downloads/release/python-360/)
[](https://www.python.org/downloads/release/python-370/)
[](https://www.python.org/downloads/release/python-380/)
[](https://www.python.org/downloads/release/python-390/)
[](https://opensource.org/licenses/Apache-2.0)
[](https://github.com/itzmestar/DeFiLlama/actions/workflows/python-package.yml)
-------
### Unofficial [DeFi Llama API](https://defillama.com/home) client in python
For detailed information about the API endpoints, see [DeFi Llama API Documentation](https://docs.llama.fi/api)
### 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')
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.18.4 | requests |
نحوه نصب
نصب پکیج whl DeFiLlama-1.1.0:
pip install DeFiLlama-1.1.0.whl
نصب پکیج tar.gz DeFiLlama-1.1.0:
pip install DeFiLlama-1.1.0.tar.gz