### Install GeckoTerminal Py Client Source: https://github.com/cardosofede/geckoterminal-py/blob/main/README.md This command installs the GeckoTerminal Py client library using pip, the Python package installer. It ensures all necessary dependencies are downloaded and set up for use in your Python projects. ```bash pip install geckoterminal-py ``` -------------------------------- ### GeckoTerminalClient Available Methods Source: https://github.com/cardosofede/geckoterminal-py/blob/main/README.md This section lists the primary methods available in the GeckoTerminalClient for interacting with the GeckoTerminal API. Each method allows fetching specific types of data, such as networks, DEXes, pools, and OHLCV data, often requiring network or pool identifiers as parameters. ```APIDOC 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): ``` -------------------------------- ### Fetch Network Data Synchronously with GeckoTerminal Py Source: https://github.com/cardosofede/geckoterminal-py/blob/main/README.md This Python snippet illustrates how to use GeckoTerminalSyncClient to fetch network data synchronously. It initializes a sync client, retrieves network information, prints the result, and closes the client connection. ```python from geckoterminal_py import GeckoTerminalSyncClient def main(): client = GeckoTerminalSyncClient() networks_df = client.get_networks() print(networks_df) client.close() main() ``` -------------------------------- ### Fetch Network Data Asynchronously with GeckoTerminal Py Source: https://github.com/cardosofede/geckoterminal-py/blob/main/README.md This Python snippet demonstrates how to use GeckoTerminalAsyncClient to fetch network data asynchronously. It initializes an async client, retrieves network information, prints the result, and properly closes the client connection within an asyncio event loop. ```python 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()) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.