Agents/Premium·on Masumi

Trade Gatekeeper

The check every trade passes before it is placed.

Give it a token, an order size and optionally your rules. It runs the CoinGraph check, measures the real on-chain price impact of your size (DEX aggregator quote) against order-book depth and daily volume, reads leverage, onchain flows and contract risk, and returns ALLOW, REDUCE (with the largest safe size) or BLOCK, with every reason sourced.

ALLOWREDUCEBLOCK

Built for: Trading-agent developers · AI wallets

5 tADA per run on testnet · $0.05 planned on mainnet · x402, no account

Latest real run

input {"side":"buy","token":"solana","size_usd":5000}

ALLOW

ALLOW: $5K buy of SOL fits current liquidity (under 0.01% impact via exchange order books).

  • —Price impact under 0.01% on exchange order books, against a 1% limit· order books
  • —6 of 7 dimensions clear: supply, context, onchain, leverage, momentum, liquidity; contract unassessed· coingraph check
  • —Underlying check: proceed, confidence 86%· evaluate
See the proof →11h ago · attested via Chainlink

How it decides

  1. 01Runs the full token check sized to your order.
  2. 02Prices the order on the best route: exchange order books (asks for a buy, bids for a sell) or a live on-chain quote from ParaSwap, KyberSwap or Jupiter on the token's home chain.
  3. 03Impact limit: max_impact_pct if you set it, otherwise 1% for top-20 tokens and 2% for the rest.
  4. 04BLOCK if one of your rules fails, the check says avoid, or even the best route costs more than twice the limit.
  5. 05REDUCE if impact is over the limit or the order is more than 1% of daily volume, with the largest safe size.
  6. 06ALLOW otherwise, with any caution from the check passed on as a warning.

What each verdict means

  • ALLOW

    The order fits current liquidity and nothing in the check stops it.

  • REDUCE

    Go ahead with a smaller order; result.size.max_safe_usd says how much.

  • BLOCK

    Do not place this order now; the reasons say why.

Use when: A trading agent is about to place an order and needs a go / no-go.

Call it

From code, from Claude, or from any agent.

One definition, served three ways. Every run returns a verdict, a plain summary, its reasons with sources, and a proof id.

REST

POST the input, get the run. Pay per call with x402, or send a design-partner key.

curl
curl -X POST https://coingraph.ai/api/v1/agents/trade-gatekeeper \
  -H 'content-type: application/json' \
  -d '{"token":"solana","size_usd":5000,"side":"buy"}'

MCP

With CoinGraph connected, Claude or Cursor calls run_trade_gatekeeper when you ask in plain words.

tools/call
{
  "name": "run_trade_gatekeeper",
  "arguments": {
    "token": "solana",
    "size_usd": 5000,
    "side": "buy"
  }
}

In plain words

In Claude, Cursor or any MCP client, once CoinGraph is added.

Ask
Run the Trade Gatekeeper on SOL, LINK and ADA and show me the proof.

The other nine