PyPI - defi-analytics-py v4
Project description
defi-analytics-py v4
DeFi analytics library for NEAR Protocol.
Python: 3.9+ | PyPI: pypi-defi-analytics-py-v4
Installation
pip install pypi-defi-analytics-py-v4
Quick Start
from pypi_defi_analytics_py_v4 import PypiDefiAnalyticsPyV4Client
client = PypiDefiAnalyticsPyV4Client()
Network
status = client.get_network_status() block = client.get_block()
Accounts & Pricing
account = client.get_account("alice.near") price = client.get_near_price()
Pools
pools = client.get_pools() pool = client.get_pool(pool_id=1) top_pools = client.get_top_pools_by_tvl(limit=10)
Tokens
token_price = client.get_token_price("wrap.near") tokens = client.get_tokens()
Farms
farms = client.get_farm_list()
API Reference
| Method | Description |
|---|---|
get_network_status() |
Current NEAR network status |
get_block() |
Latest block info |
get_account(account_id) |
Account details |
get_near_price() |
NEAR token USD price |
get_pools() |
All Ref Finance pools |
get_pool(pool_id) |
Single pool by ID |
get_top_pools_by_tvl(limit) |
Top pools ranked by TVL |
get_token_price(token_id) |
Token price by contract ID |
get_tokens() |
All tracked tokens |
get_farm_list() |
Active farm list |
Custom Configuration
client = PypiDefiAnalyticsPyV4Client( rpc_url="https://rpc.mainnet.near.org", timeout=60, )
License
MIT
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypi_defi_analytics_py_v4-1.0.0.tar.gz.
File metadata
- Download URL: pypi_defi_analytics_py_v4-1.0.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4add58213f473a6e2d43fbdd02d3cbad9e864fc5044fb3b8653f78de9dc29baa
|
|
| MD5 |
ebb2f829ce6bc9a6584fbf78d13b0e51
|
|
| BLAKE2b-256 |
868790f41287fb512822f36073f528677a2769731fb547df9d40ff1080cca1f9
|
File details
Details for the file pypi_defi_analytics_py_v4-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pypi_defi_analytics_py_v4-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31d21bf775a705d103299a53b3d14a75454aa286e647a3c5c0afe8ff2bdd3ebb
|
|
| MD5 |
e9cb9917fb699a9ffe80ac607b730845
|
|
| BLAKE2b-256 |
9675028aca8afa802c96167e0b5e36da4d71b9d4bb663393989c42f60696820b
|