No project description provided
Project description
GeckoTerminal Py
GeckoTerminal Py is a Python client for the GeckoTerminal. It provides a user-friendly way to fetch network and pool data asynchronously or synchronously.
Installation
To install GeckoTerminal Py, use pip:
pip install geckoterminal-py
Usage
You can fetch data about networks using GeckoTerminal Py in two ways:
Asynchronous usage
from geckoterminal_py import GeckoTerminalAsyncClient
import asyncio
async def main():
client = GeckoTerminalAsyncClient()
networks_df = await client.get_networks()
print(networks_df)
await client.close()
# In an asyncio environment, you'd use:
asyncio.run(main())
Synchronous usage
from geckoterminal_py import GeckoTerminalSyncClient
def main():
client = GeckoTerminalSyncClient()
networks_df = client.get_networks()
print(networks_df)
client.close()
main()
Methods Available
Here is a brief description of the methods available in the GeckoTerminalClient: Please check the examples notebook where you can find the usage of all of them.
Methods:
- get_networks():
- get_dexes_by_network(network_id: str):
- get_top_pools_by_network(network_id: str):
- get_top_pools_by_network_dex(network_id: str, dex_id: str):
- get_top_pools_by_network_token(network_id: str, token_id: str):
- get_new_pools_by_network(network_id: str):
- get_new_pools_all_networks():
- get_ohlcv(network_id: str, pool_address: str, timeframe: str, before_timestamp: int = None, currency: str = "usd", token: str = "base", limit: int = 1000):
- get_simple_token_price(network_id: str, token_addresses: list, include_market_cap: bool = False, mcap_fdv_fallback: bool = False, include_24hr_vol: bool = False, include_24hr_price_change: bool = False, include_total_reserve_in_usd: bool = False): Fetch USD prices for up to 30 token addresses in a single call. Returns a DataFrame keyed by
token_addresswith aprice_usdcolumn (plus optionalmarket_cap_usd/volume_usd_h24/price_change_percentage_h24/reserve_in_usdcolumns when requested).
Endpoints to add:
- /search/pools
- / rest of tokens list
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 geckoterminal_py-0.3.0.tar.gz.
File metadata
- Download URL: geckoterminal_py-0.3.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94877cc4df3636ac9c29de4095f7b79a472a0e16db83a1b5e5ffc51a7daf3276
|
|
| MD5 |
7a1e40df1235105df612d4f1e996df0e
|
|
| BLAKE2b-256 |
ef9626182829d2911bd00c257e92cda446659f116bfe6bbd98108cff1d2caebc
|
File details
Details for the file geckoterminal_py-0.3.0-py3-none-any.whl.
File metadata
- Download URL: geckoterminal_py-0.3.0-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0df2add98c422e8971d3f9c6c555b0981c9652d6467d32bb2e235082eeb2b9a
|
|
| MD5 |
403f817b2284828117c4389c226fe10d
|
|
| BLAKE2b-256 |
e84c4db46ce46921f9d1b092d2e75ac96c4a3a9b42986f7d07e0d6e1ec5aadfc
|