← AnsaOpen the explorer
A shield turns away coins marked RISKY and lets a CLEAR coin through to paper trading
GUIDE · BUILD A LOCAL BOT

A bot that refuses risky coins, built in one prompt

You don't need to write code to run your own trading bot. A coding AI can write it for you in a folder on your computer, as long as you tell it what data to trust and what it must never do. This guide gives you that prompt.

Why a bot needs a gate

Bots are fast, which is the problem: a bot that buys every new coin buys every bad one too. On bot.fun this quarter, 431 of 445 new coins ended with next to nothing left, and 45 creators sold out within ten minutes of launching (the full numbers).

A bot that bought every bot.fun launch this quarter would have bought 445 coins. 431 of them are now dead.

The fix is a risk gate: a check the bot must pass before every buy, which no other part of the bot can skip. Ansa gives every coin a verdict with the reasons, so the gate is one read. On Hyperliquid launches the words are RISKY, REVIEW or CLEAR; on Eden they are CLEAN, WATCH, CAUTION, AVOID or RUGGED. The prompt tells the AI which words mean no on each network.

What you need

You can build and paper-trade a bot on Ansa's data without an account: the first 200 calls each day are free.

The prompt

This is what the builder on Ansa's homepage writes when you pick a local bot, Eden and Hyperliquid, the coin verdicts and smart money, and the safety rails. Copy it, or build your own version.

Build me a small meme coin trading bot that runs on this computer, in a new folder, using live data from Ansa.

ABOUT ANSA
Ansa (https://www.ansanode.com) publishes read-only meme coin data as JSON over HTTPS GET. No sign-up. Full guide: https://www.ansanode.com/SKILL.md
Ansa only reads the chains. It cannot place trades, hold funds or see anyone's keys.

NETWORKS: Eden (bot.fun launches, priced in TIA); Hyperliquid launches (alt.fun, priced in USDC).

DATA (base address https://www.ansanode.com; every reply is JSON)
- Data freshness, Eden: GET https://www.ansanode.com/api/live.json  [free, not counted]
  scannedAt and ok tell you how fresh the Eden data is.
- Data freshness, Hyperliquid launches: GET https://www.ansanode.com/api/hl/status  [free, not counted]
  at and lastRun.at tell you how fresh the Hyperliquid data is; catchingUp true means it is behind.
- Live trades, Eden: GET https://www.ansanode.com/api/live.json  [free, not counted]
  refreshed every few minutes: recent[] with type (buy, sell or post), coin, symbol, tia, sender (the wallet), ts (milliseconds); coins{} keyed by coin address with p (price in TIA), mc (market cap in TIA), g (1 once graduated); tiaUsd converts TIA to USD.
- Live trades, Hyperliquid launches: wss://www.ansanode.com/api/live/hyperliquid  [free, not counted]
  a WebSocket. Messages are JSON; {"type":"trades","rows":[...]} rows have at, coin, ticker, wallet, side, usd, priceUsd, venue ("core" is HyperCore spot, anything else a launch). Reconnect after 5 seconds if it drops.
- Coin verdict, Eden: GET https://www.ansanode.com/api/signal/{coin}.json  [counts toward the free allowance]
  one coin. Use verdict (CLEAN, WATCH, CAUTION, AVOID or RUGGED), risk, and reasons[] for why.
- Coin verdict, Hyperliquid launches: GET https://www.ansanode.com/api/hl/altfun/audit/{coin}  [counts toward the free allowance]
  one coin. Use verdict.verdict (RISKY, REVIEW or CLEAR) and verdict.reasons[].
- Smart money, Eden: GET https://www.ansanode.com/api/eden/smart  [free, not counted]
  the most profitable Eden wallets: wallets[] with addr, closed, wins, realisedUsd, realisedTia; flows24h[] is what they bought and sold in the last 24 hours.
- Smart money, Hyperliquid launches: GET https://www.ansanode.com/api/hl/smart  [free, not counted]
  the most profitable Hyperliquid wallets: wallets[] with addr, closed, wins, realisedUsd, on (which markets); flows24h[] with coin, ticker, plat, buyUsd, sellUsd, netUsd.
{coin} and {wallet} are lower-case 0x addresses. Take them from the trades data (fields coin and wallet, or sender on Eden), or from me.
Verdict words differ by network: on Eden treat AVOID and RUGGED as unsafe and CAUTION as a warning; on Hyperliquid launches treat RISKY as unsafe and REVIEW as a warning.

ACCESS AND LIMITS
- No key is needed. Calls marked [free, not counted] are unlimited. Calls marked [counts toward the free allowance] share 200 free calls a day.
- Replies are cached for about 2 minutes, so never ask for the same address more often than every 2 minutes.
- After the free 200, a counted call returns HTTP 402 Payment Required. Then stop calling it and tell me. Never pay or sign anything yourself. Paying options are in the Paying section of https://www.ansanode.com/SKILL.md
- Always check Data freshness first. If it is more than 30 minutes old, say so rather than acting on stale data.
- If a call fails (timeout, 5xx), wait and retry up to 3 times, then report it. Never fill gaps with guesses.

HOW TO BUILD IT
- Node.js 20 or newer, no extra packages: use the built-in fetch and WebSocket. Files: config.json (every setting), bot.js, state.json (written by the bot), README.md (how to run and change settings).
- Run with: node bot.js. It loops: check freshness, read new trades, decide, record, sleep. Print one plain line per decision.
- Look up each coin verdict once and keep it for 30 minutes, so the free allowance lasts all day. Count counted calls per UTC day in state.json and pause them at 190.
- Ansa cannot trade, so trading is a paper simulation: a starting balance in config.json, simulated buys and sells at the latest price (priceUsd in the trades data; on Eden, coins{}.p in TIA), and a record of each one in state.json.
- Put the place a real order would go in one clearly named function that does nothing, and do not connect it to any wallet or exchange.
- Never ask me for a private key, seed phrase or password, and never write one to a file.

SAFETY RULES
- Paper only until I type "arm it". Even then, Ansa cannot place the order; show me what you would need from me first.
- Read the coin verdict before every buy. Never buy a coin marked unsafe (see the verdict words above). If the verdict cannot be read, do not buy.
- A kill switch: if a file named STOP exists in the folder, stop all trading at once and say so.
- Log every decision to a file, one line each: time, coin, action, and the data behind it (verdict, price, wallet).

PROFIT
Count realised profit only: money back from coins sold, minus what they cost and the fees. Never count the paper value of coins still held as profit.

When it is built, run it once, show me the first few lines of output, and tell me how to stop it.

What the prompt asks for

New coinAnsa verdictone readRISKY · AVOIDskip, and log whyCLEAR · REVIEWyour rules decidePaper tradeuntil “arm it”KILL SWITCH · one command stops all tradingEvery decision is written to the log with the data behind it.
  1. The risk gate. Every buy goes through the verdict check first. RISKY (Hyperliquid) or AVOID and RUGGED (Eden) means no, and so does a verdict that cannot be read.
  2. Paper trading. It pretends to trade until you type "arm it", so you can watch it decide before any money moves.
  3. A kill switch. One command stops all trading.
  4. A decision log. Every buy and skip, with the numbers it was based on.

The prompt tells the AI never to ask for your private key. Your keys stay on your computer, and the bot reads data from Ansa without them.

Paper first: the bot cannot place a real trade until you type "arm it".

Smart money, used as data

The smart-money feed lists wallets with a proven record: 10 or more coins closed, 60% or more in profit, and $500 or more banked. On Hyperliquid that was 128 wallets on 23 November. Your bot can read what they bought in the last 24 hours; what it does with that is up to you.

128 Hyperliquid wallets passed Ansa's smart-money test on 23 November, and your bot can read their last 24 hours of buys and sells.

What it costs

Every page on Ansa is free. For code: 200 calls a day free, then 0.002 USDC a call, prepaid in TIA or USDC. Agents can also pay one call at a time with x402 on Base, from $0.01 a call, with no key and no account.

Beyond the free 200 calls, a call costs 0.002 USDC: a bot checking a coin every minute all day would spend under $3.

Pick your networks and data, then copy your prompt.Open the builder

Sources and method

Launch outcomes from Ansa's Eden coin feeds, read 23 November 2026, 11:10 GST. Smart-money count from /api/hl/smart; prices from /api/pay/info and /.well-known/x402, read the same morning. The cost example: 1,440 calls a day, less 200 free, at 0.002 USDC each is 2.48 USDC.