Skip to main content

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_address with a price_usd column (plus optional market_cap_usd / volume_usd_h24 / price_change_percentage_h24 / reserve_in_usd columns when requested).

Endpoints to add:

  • /search/pools
  • / rest of tokens list

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.3.1.tar.gz (17.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.3.1-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: geckoterminal_py-0.3.1.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for geckoterminal_py-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f9ee378f49060a0ddc57cfe8ff0a30718fdd57831d811c72e41cdd2d4a3c13ee
MD5 abbfb6b1b90c08cba2eb1364356339b4
BLAKE2b-256 932aca50d8bd19a7d980aa6df8510d51c6426683f0c0c5d8922b358afb33b262

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geckoterminal_py-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fec3fd6a5639c7478005536f10ea7401d93e005d3b738d92f5f73a774183f2c7
MD5 b76b66094e038d6dfe517203b69c40ef
BLAKE2b-256 f8af00745fcec035fd68d7cf7e5191adb51d4c8a1c4443f389ae952d7910fb7d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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