GmGnAPI

πŸš€ New to GMGN.ai? Create your account with our referral link to support GmGnAPI’s development β†’ Sign up on GMGN.ai
πŸ’¬ Need help? Join the Chipa Discord Β· ⚑ Go no-code with ChipaEditor

Professional Python client library for the GMGN.ai WebSocket API. GmGnAPI provides real-time access to Solana blockchain data with advanced features including intelligent filtering, data export, monitoring statistics, and automated alerting.

Get Started Β· View on GitLab

Key Features

FeatureDescription
Real-time WebSocketPersistent connection with automatic reconnection and exponential backoff
Type SafetyFull type hints with Pydantic v2 models for robust validation and IDE support
Advanced FilteringFilter tokens by market cap, liquidity, volume, holders, exchange, and risk score
Data ExportExport to JSON, CSV, or SQLite with automatic rotation and compression
Monitoring & StatsReal-time connection metrics, message counts, and unique token/pool tracking
Smart AlertsConfigurable alerts with rate limiting, webhook, and email notifications
Async FirstBuilt on asyncio and websockets for modern Python applications
Multi-ChainSolana by default, with support for Ethereum, BSC, and Polygon channels

Quick Installation

pip install gmgnapi

Quick Example

import asyncio
from gmgnapi import GmGnClient

async def main():
    async with GmGnClient() as client:
        # Subscribe to new token pools
        await client.subscribe_new_pools()

        # Handle real-time data
        @client.on_new_pool
        async def handle_pool(pool_data):
            print(f"New pool: {pool_data.chain}")

        # Start receiving data
        await client.listen()

asyncio.run(main())

Available Channels

Public Channels

  • new_pools β€” New liquidity pool creation events
  • pair_update β€” Trading pair price and volume updates
  • token_launch β€” New token launch notifications
  • chain_stats β€” Blockchain statistics and metrics

Authenticated Channels (require access token)

  • token_social β€” Token social media and community information
  • wallet_trades β€” Wallet trading activity and transactions
  • limit_orders β€” Limit order updates and fills

Account Setup

  1. Create a GMGN account β€” sign up with our referral link to support the project: Create GMGN Account
  2. Get your API token β€” log in, open Account Settings, generate an API token, and store it securely
  3. Join the community β€” get help and updates on the Chipa Discord

Documentation

  • Installation β€” pip, source, Docker, and virtual environment setup
  • Getting Started β€” first connection, authentication, and basic usage
  • Tutorials β€” step-by-step guides from zero to production
  • WebSocket Guide β€” connection lifecycle, reconnection, and performance tuning
  • Filters Guide β€” every filter parameter with presets and custom logic
  • Examples β€” practical, runnable examples for common scenarios
  • Advanced Usage β€” production deployment, persistence, performance, and security
  • Trading Bots β€” bot patterns, risk management, and architecture
  • API Reference β€” complete class, method, and model documentation
  • FAQ β€” quick answers to common questions
  • Community β€” Discord, contributing, and project links
  • Changelog β€” version history and upgrade notes

Community & Support

License & Disclaimer

GmGnAPI is open source under the MIT License. Trading cryptocurrencies involves substantial financial risk β€” this software is for educational purposes; always trade responsibly.


Level Up Your GmGnAPI Setup

  • πŸš€ Create your GMGN.ai account β†’ β€” Register with our referral link to get API access and support GmGnAPI’s continued development. It’s free and keeps the project actively maintained.
  • πŸ’¬ Join the Chipa Discord β†’ β€” Get real-time support, share your bots and strategies, and connect with other GmGnAPI developers.
  • ⚑ Try ChipaEditor β†’ β€” Build, backtest, and deploy trading strategies with our AI-powered, no-code editor. The perfect companion to GmGnAPI.