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.
Key Features
| Feature | Description |
|---|---|
| Real-time WebSocket | Persistent connection with automatic reconnection and exponential backoff |
| Type Safety | Full type hints with Pydantic v2 models for robust validation and IDE support |
| Advanced Filtering | Filter tokens by market cap, liquidity, volume, holders, exchange, and risk score |
| Data Export | Export to JSON, CSV, or SQLite with automatic rotation and compression |
| Monitoring & Stats | Real-time connection metrics, message counts, and unique token/pool tracking |
| Smart Alerts | Configurable alerts with rate limiting, webhook, and email notifications |
| Async First | Built on asyncio and websockets for modern Python applications |
| Multi-Chain | Solana by default, with support for Ethereum, BSC, and Polygon channels |
Quick Installation
pip install gmgnapiQuick 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 eventspair_updateβ Trading pair price and volume updatestoken_launchβ New token launch notificationschain_statsβ Blockchain statistics and metrics
Authenticated Channels (require access token)
token_socialβ Token social media and community informationwallet_tradesβ Wallet trading activity and transactionslimit_ordersβ Limit order updates and fills
Account Setup
- Create a GMGN account β sign up with our referral link to support the project: Create GMGN Account
- Get your API token β log in, open Account Settings, generate an API token, and store it securely
- 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
- GitLab Repository β source code, issues, and merge requests
- Discord Server β join the community, get help, and share your projects
- PyPI Package β latest releases
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.