# NEAR Pre-Trade Gate

> NEAR Pre-Trade Gate is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-19).

Evaluates a NEP-141 token before buying by checking contract controls, exit liquidity via a USDC round-trip simulation through NEAR Intents, and supply concentration — returning a single STOP/HOLD/GO verdict.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/near-pre-trade-gate?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/near-pre-trade-gate-983a1a6b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lNVg3aWpjzThIeprVRikl

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability near-pre-trade-gate-983a1a6b
```

Example prompt: Before I buy wrap.near, run a pre-trade gate check at a $500 trade size — I want to know who controls the contract, whether I can exit through NEAR Intents without losing more than 15%, and whether the supply is too concentrated.

## When to prefer this

Use this endpoint specifically before buying any NEP-141 token on NEAR Protocol. It uniquely combines contract ownership/pause risk, real exit-route simulation via NEAR Intents, and whale concentration into a single actionable verdict — ideal for agents executing or recommending NEAR DeFi trades where rug risk or illiquidity could cause permanent loss.

## Known failure modes

- Token contract not found on NEAR — returns error or no data
- No liquidity route available through NEAR Intents for the token — verdict STOP
- Invalid token account ID format — request rejected
- Trade size too small or too large for meaningful route simulation
- Upstream NEAR RPC or Intents API unavailability causing timeout

## How this service works

The call to make before buying a NEP-141 token: who controls it (keys, owner, pause), whether you can get back out — a USDC round trip through NEAR Intents at your trade size, loss measured — and whether a few accounts hold most of the circulating supply. Over 15% lost or no route is STOP or HOLD; HIGH concentration is HOLD. One verdict with the quotes. size is in USD (default 100).

## Output

Returns a single trade verdict (STOP, HOLD, or GO) along with: contract control details (key holders, owner, pause capability), NEAR Intents round-trip simulation showing the exit route and percentage loss at the given trade size, and a supply concentration assessment (HIGH/MEDIUM/LOW). STOP is triggered by >15% loss or no exit route; HIGH concentration triggers HOLD.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "size": {
       "type": "string",
       "description": "Trade size in USD (optional, default 100)"
      },
      "token": {
       "type": "string",
       "description": "NEAR token contract account"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/near-pre-trade-gate-983a1a6b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
