Skip to main content

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

Using uv for dependency management

Installation

# Install uv
pip install uv

# Create and activate a virtual environment
uv venv

# Install dependencies
uv pip install -r requirements.txt

Development

# Install all dependencies including dev dependencies
uv pip install -r requirements.txt

# Update dependencies
uv pip sync requirements.txt

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

Endpoints to add:

  • /simple/networks/{network}/token_price/{addresses}
  • /search/pools
  • / rest of tokens list

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

geckoterminal_py-0.2.5.tar.gz (196.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geckoterminal_py-0.2.5-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file geckoterminal_py-0.2.5.tar.gz.

File metadata

  • Download URL: geckoterminal_py-0.2.5.tar.gz
  • Upload date:
  • Size: 196.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.6

File hashes

Hashes for geckoterminal_py-0.2.5.tar.gz
Algorithm Hash digest
SHA256 54be3953a44cefe0f3f46ffd4b1deec5eca09b295db8d42d9baf84ba0a565e15
MD5 291ff0a4a262b1c1f8e355da9670e286
BLAKE2b-256 a699165b68d01a243a6bbbe147fcdc6cb7e39b7287a5fcaa37d72e0542ba34da

See more details on using hashes here.

File details

Details for the file geckoterminal_py-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for geckoterminal_py-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 913a17993f37bd8fbf6216d297bc85c89299bcc7ffcafd3829de2aaf726fc6d7
MD5 38d748da87c2e1f474a1603fa0183d3b
BLAKE2b-256 365735cee1302682d171046653d46a6fc07143a69b4a69f5cef095ab6ec5e1ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page