# gmgn-trading

Adopt this skill: https://proskills.md/skills/other/mogons-noraz-agent-agents-skills-gmgn-trading

Page: https://proskills.md/skills/other/mogons-noraz-agent-agents-skills-gmgn-trading
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: .agents/skills/gmgn-trading/SKILL.md
size: 4141
upstream: https://github.com/mogons/noraz-agent/blob/master/.agents/skills/gmgn-trading/SKILL.md

```text
---
name: gmgn-trading
description: GMGN AI OpenAPI integration for Robinhood Chain smart money tracking, sniper ratio audit, and meme coin entry screening.
---

# GMGN AI Screening & Smart Money Trading Skill

This skill defines the screening criteria and smart money tracking standards powered by **GMGN AI (https://gmgn.ai)** for the **Robinhood Chain** (EVM, chain ID 4663). The GMGN OpenAPI adapter (`src/adapters/gmgn-adapter.ts`) is the single source of truth for all GMGN requests.

---

## 1. GMGN Smart Money & Sniper Audit Criteria

Before generating any high-confidence meme call or executing an entry:

### A. Smart Money & Whale Tracking
- **Smart Money Inflow:** Verify at least 2+ verified GMGN Smart Trader wallets have bought the same token (agent default: `minTrackWallets=2`, total buy `minTrackBuyUsd=$10k`, fresh within `trackFreshMinutes=30`).
- **Accumulation Cluster:** 3+ smart-money/KOL wallets buying the same token in the fresh window adds a confidence boost (+20) to qualifying signals.

### B. Insider & Sniper Risk Control (fail-open per field — null = not reported, skipped)
- **Insider (rat trader) Ratio:** Total supply held by insider wallets MUST be **< 30%** (agent default `maxRatTraderRate=0.3`).
- **Dev Holding Ratio:** Dev wallet holding MUST be **<= 10%** (or burned/renounced) — `dev_team_hold_rate` / `creator_close`.
- **Top-10 Holders:** MUST be **< 40%** (agent default `maxTop10HolderRate=0.4`).
- **Rug Ratio:** MUST be **< 30%** (agent default `maxRugRatio=0.3`).
- **Wash Trading Check:** Reject tokens flagged `is_wash_trading`.
- **Bundler:** NOT gated (alpha tokens often have high bundler — bundler filter removed 2026-08-09).

---

## 2. Robinhood Chain Screening Support (GMGN API)

- **Chain parameter:** `chain=robinhood` on every endpoint.
- **Separate key:** `GMGN_API_KEY_ROBINHOOD` for the robinhood agent (per-key rate limits); falls back to `GMGN_API_KEY`. Backups auto-rotate via `GMGN_BACKUP_KEYS` on 401/403/429.
- **Dedicated screening agent:** `src/agents/meme-robinhood/robinhood-screening-agent.ts` — 3 candidate sources (all graduated DEX tokens, 1H timeframe):
  1. `/v1/market/rank` (interval 1h, filters: not_honeypot, verified, renounced, is_out_market)
  2. `/v1/trenches` (completed only, max_rug_ratio/max_insider_ratio filters)
  3. `/v1/market/hot_searches` (migrated, not_honeypot, verified, renounced)

---

## 3. GMGN OpenAPI Reference (as implemented in `gmgn-adapter.ts`)

- **Base URL:** `https://openapi.gmgn.ai`
- **Auth:** `X-APIKEY` header (pool of stackable keys + `GMGN_BACKUP_KEYS` rotation on 401/403/429).
- **Signing:** every request appends `timestamp` (unix seconds) and `client_id` (UUID) query params.
- **429 Retry Policy:** read `X-RateLimit-Reset` (or error body `reset_at`), wait until reset + 1s buffer, retry AT MOST once; long bans (>30s) or `RATE_LIMIT_BANNED` are skipped — the next pass (~5m later) retries. Global pacing queue (`GMGN_REQUEST_SPACING_MS`, default 300ms) protects the leaky bucket (rate=20/capacity=20 per key).
- **Endpoints:**
  - `/v1/market/rank` — trending tokens per interval (GET).
  - `/v1/trenches` — newly launched tokens per category (POST, version v2).
  - `/v1/market/hot_searches` — most-searched tokens (POST).
  - `/v1/market/token_signal` — signal events (price spikes, smart money buys, CTO, KOL buys) — used as a confidence booster overlay, NOT a candidate source (GMGN never fills volume/swaps for robinhood events).
  - `/v1/token/info` — per-token detail (GET).
  - `/v1/token/security` — per-token security audit (honeypot, blacklist, renounced, sell-lock, tax, burn, lock) — **fail-closed**: unavailable audit = reject (10-min module cache).
  - `/v1/user/smartmoney` — real-time smart-money wallet trade feed (60s cache).
  - `/v1/user/kol` — real-time KOL wallet trade feed (60s cache).

---

## 4. Signal Card Embed Format & Quick Links

- Provide direct GMGN chart links in call cards:
  `https://gmgn.ai/robinhood/token/{contract_address}`
- Include GMGN Smart Money net buy volume, sniper/insider ratios, and security audit status in the card fields.
```

## File: README.md
upstream: https://github.com/mogons/noraz-agent/blob/master/README.md

````text
# 🐾 NORAZ AI — Robinhood Chain Edition

```
       /\_____/\
      /  ■   ■  \       🐾 NORAZ AI (ROBINHOOD CHAIN) 🐾
     ( ==  ^  == )      Autonomous Multi-Agent Crypto Intelligence
      )    ~    (       & On-Chain Trading Ecosystem
     (   _____   )      exclusively for Robinhood Chain EVM L2 (#4663)
    ( (  )   (  ) )
   (__(__)___(__)__)
```

**Autonomous Multi-Agent Crypto Intelligence & Trading Ecosystem** — built exclusively for **Robinhood Chain (EVM L2, chain ID 4663, native ETH)**, operated through a **Discord Command Center**, an **Interactive Terminal TUI**, and a **Telegram Notification Bridge**.

Noraz AI separates **24/7 market screening + 3-Layer Swarm Consensus signal generation** from **execution** — signal cards are delivered to Discord with audit data and one-click links, while execution stays under your control via `DRY_RUN` and manual confirmation.

[![Domain](https://img.shields.io/badge/Domain-noraz.space-brightgreen.svg)](https://noraz.space)
[![Chain](https://img.shields.io/badge/Robinhood%20Chain-4663%20%7C%20ETH-7b5cff.svg)](https://robinhoodchain.blockscout.com)
[![Platform](https://img.shields.io/badge/Platform-Windows%20%7C%20Linux%20%7C%20macOS-blue.svg)](https://nodejs.org/)
[![X (Twitter)](https://img.shields.io/badge/X-%40mogonsx-black.svg)](https://x.com/mogonsx)
[![Node](https://img.shields.io/badge/Node.js-%3E%3D22.12-green.svg)](https://nodejs.org/)
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Tests](https://img.shields.io/badge/Tests-264%20Passed-brightgreen.svg)](https://vitest.dev/)

> *"Chill trades, 9 lives, razor-sharp on-chain instincts."* 🐾⚡
>
> ⚠️ **Disclaimer (NFA & DYOR):** Noraz AI is an experimental open-source research and intelligence tool. On-chain cryptocurrency trading carries significant financial risk. Past performance does not guarantee future results. Not financial advice. Always do your own research.

---

## 🌐 Official Web Portal & Community Links

- 🌐 **Official Web Portal:** [noraz.space](https://noraz.space)
- 🐦 **Official X (Twitter):** [@norazspace](https://x.com/mogonsx)
- 📖 **Interactive Documentation & Quickstart:** [noraz.space/docs](https://noraz.space/docs)
- $Nora: [0xe03C7E86f6b73b47919be34602F233c6149F5C1e](https://www.ponsfamily.com/launchpad/0xe03C7E86f6b73b47919be34602F233c6149F5C1e)

---

## 🐾 The Noraz System Architecture

| Component | Role | What it does |
| :--- | :--- | :--- |
| 🐾 **Noraz Core** — Intelligence | Screening & Reasoning | **3-Layer Swarm Consensus Engine** (Quant & Liquidity, Catalyst & Sentiment, Security Audit) demanding a **≥ 80% Confidence Score** before a signal is posted. Five specialist screening agents run 24/7: **meme-robinhood** (GMGN smart-money data + GMGN/GoPlus security audits, **24h volume ≥ $25k**, **liquidity ≥ $5k**), **lp-robinhood** (Concentrated Liquidity velocity via **Krystal Cloud**, **TVL ≥ $10k**, **24h volume ≥ $100k**, **24h Fee/TVL ≥ 2%**), **nft** (OpenSea floor & rarity sniping, **floor surge ≥ +10%/1h**, **volume spike ≥ 1.5x**, **sales ≥ 3/h**), **alpha-robinhood** (1-hour Robinhood Chain alpha scraper + optional official **X (Twitter) API v2** social sentiment search), and **whale-eth** (Hyperliquid ETH smart money & institutional perps/spot order flow tracking, **perps ≥ $500k**, **spot ≥ $50k**). A **Position Manager** tracks open positions with Take Profit milestones (**+100% / +200%**), **Stop Loss (-20%)**, **dynamic trailing stops**, LP out-of-range warnings, and NFT floor-drop alerts. |
| 🎮 **Command Center** — Multi-Platform | Discord · Terminal · Telegram | **1. Discord**: `#noraz-control-room` natural-language chat, `#audit-on-demand` token auditor, portfolio & risk views, **22 slash commands**, interactive dashboard, and 5 dedicated call channels (`#call-meme-robinhood`, `#call-lp-robinhood`, `#call-nft-robinhood`, `#call-alpha-robinhood`, `#call-whale-eth`).<br>**2. Terminal TUI** (`noraz terminal` / `npm run terminal`): Full interactive standalone console with live token audits, screening triggers, strategy switcher, treasury & portfolio management without Discord.<br>**3. Telegram Bridge**: Real-time signal alert broadcast cards with quick inline action buttons and interactive callback dashboard. |
| ⚡ **Noraz Ops Ops** — Deploy & Maintain | Daemon & Health | **PM2 24/7 daemon** (`noraz deploy`), self-update engine (`noraz update` → git pull → install → build → detached PM2 restart) with **Telegram + Discord webhook deployment notifications**, `noraz doctor` full diagnostics, and interactive **`noraz onboard`** wizard. |

---

## 🗺️ System Flowchart

```
                          USER INTERFACE PLATFORMS
             (Discord Command Center · Terminal TUI · Telegram Bridge)
                                     │
                                     ▼
                  ┌───────────────────────────────────┐
                  │       NORAZ CORE HUB           │
                  │   #noraz-control-room · chat   │
                  │   risk gate · 9-lives risk engine │
                  │   wallet service · trade journal  │
                  └──────────────────┬────────────────┘
                                     │ candidate signals
    ┌────────────────┬───────────────┼───────────────┬────────────────┐
    ▼                ▼               ▼               ▼                ▼
┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│  MEME AGENT  │ │ LP VELOCITY  │ │  NFT AGENT   │ │ ALPHA SCRAPER│ │ ETH WHALES   │
│meme-robinhood│ │ lp-robinhood │ │    nft       │ │alpha-robinhood│ │ whale-eth    │
│GMGN+Dex tape │ │ Krystal Cloud│ │   OpenSea    │ │X API v2 / Web│ │ Hyperliquid  │
│vol 24h ≥ $25k│ │Fee/TVL ≥ 2%  │ │floor +10%/1h │ │1h rh alpha   │ │perps ≥ $500k │
│liq ≥ $5k     │ │TVL ≥ $10k    │ │sales ≥ 3/h   │ │sentiment high│ │spot ≥ $50k   │
└──────┬───────┘ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘
       └────────────────┴───────────────┼────────────────┴────────────────┘
                                        ▼
                  ┌────────────────────────────────────┐
                  │   SWARM CONSENSUS ENGINE (≥ 80%)   │
                  │  Quant · Catalyst · Security Audit │
                  └────────────────┬───────────────────┘
                                   │ only ≥ 80% confidence
                                   ▼
         MULTI-PLATFORM DISPATCH (Discord · Terminal TUI · Telegram)
  • Discord:  #call-meme-robinhood · #call-lp-robinhood · #call-nft-robinhood · #call-alpha-robinhood · #call-whale-eth
  • Terminal: Interactive TUI Live Feed, Audits & Chat (noraz terminal)
  • Telegram: Real-Time Signal Alert Cards & Interactive Inline Menu
                                   │
                                   ▼
                       WALLET TRACKER (holdings lifecycle)
                                   │
                                   ▼
                POSITION MANAGER (TP 2x/3x · SL -20% · trailing)
```

---

## ✨ Feature Grid

| # | Feature | Description |
| :-: | :--- | :--- |
| 1 | 🛡️ **3-Layer Swarm Consensus** | Quant & Liquidity, Catalyst & Sentiment, Security Audit — **≥ 80% confidence** required before any call card is posted. |
| 2 | 🌸 **Robinhood Meme Agent** (`#call-meme-robinhood`) | GMGN smart-money/rank/trenches screening + native DexScreener 1h tape (dump / vol-liq) + RH launchpad origin (Pons, NOXA, LetsCash, …) + GMGN & GoPlus security audits; hard gate **real 24h volume ≥ $25k**, **liquidity ≥ $5k**, **total fees ≥ $250**, fail-closed. |
| 3 | 🌊 **Robinhood LP Velocity Engine** (`#call-lp-robinhood`) | Concentrated-liquidity (Uniswap V3) high-yield pools via **Krystal Cloud** (`ethereum@4663`); **TVL ≥ $10k**, **24h volume ≥ $100k**, **24h Fee/TVL ≥ 2%**, **market cap ≥ $100k**, volume velocity, GMGN security re-check. |
| 4 | 🔮 **NFT Sniper** (`#call-nft-robinhood`) | OpenSea REST v2 floor & rarity sniping; hard filters **floor surge ≥ +10%/1h**, **volume ≥ 1.5x**, **s
````
