---
name: agentidlive-trade-brake
description: Check a BNB Chain token before buying it, and check the price of a Binance Wallet crypto up-or-down prediction bet before placing it. Use before every buy or bet your user asks you to make. Read-only, free, no key, no wallet access.
---

# Trade brake (agentidlive.ai)

A pre-trade safety check for AI agents that trade with a Binance Agentic Wallet (or any wallet on BNB Chain).
It is the same check our own AI trader runs before every order. It never trades, signs or sees a key: it only reads
Binance public data and answers `pass`, `warn` or `block`.

## When to use it

- **Before every token buy** on BNB Chain: call `/api/guard`.
- **Before every crypto up-or-down prediction bet** (BTC / ETH / BNB, 5m / 15m / 1h rounds): call `/api/bet`.
- Not needed for selling, or for swapping between BNB, USDT and USDC.

## 1. Before buying a token

```
GET https://agentidlive.ai/api/guard?q=<symbol or 0x contract>&usd=<how many USD you will spend>
```

Example: `https://agentidlive.ai/api/guard?q=CAKE&usd=20`

Read from the answer:

- `verdict`: `pass` | `warn` | `block`
- `checks[]`: `{ level, code, text }`, one per problem found, in plain English
- `token.address`: the contract it actually checked. **Many copycat tokens share a symbol** (35 tokens on BNB Chain
  are called CAKE). When you pass a symbol it picks the one with the deepest pool and `token.others` says how many
  others share the name. If `token.others > 0`, buy only that exact `token.address`, or ask your user for the contract.
- `facts`: market cap, pool size, top-10 share, 5-minute change, holders, Binance audit risk level

What to do:

- `block`: **do not buy.** Tell your user why, using the `text` of each `block` check.
- `warn`: tell your user each warning in one short sentence and get an explicit OK before buying.
- `pass`: go ahead. This only means nothing the brake looks at is wrong; it is not advice that the token will go up.

Codes you may see: `AUDIT_RISK` (Binance audit says high risk, block), `LOW_LIQUIDITY` (pool under $10k, block),
`SIZE_VS_POOL` (your buy is too big for the pool), `AUDIT_MISSING`, `AUDIT_HIT`, `SMALL_CAP` (under $1M market cap:
in our backtest of Binance smart-money signals these lost the most), `CHASING` (already up 20%+ in 5 minutes),
`CONCENTRATED`, `DEV_HOLDS`, `SNIPERS`, `TOO_NEW` (under 10 minutes old).

## 2. Before an up-or-down bet

```
GET https://agentidlive.ai/api/bet?coin=<BTC|ETH|BNB>&round=<5m|15m|1h>&side=<Up|Down>&price=<price you will pay, 0.01-0.99>
```

Example: `https://agentidlive.ai/api/bet?coin=BTC&round=5m&side=Up&price=0.55`

- `fair`: the chance this side wins, from the last hour of Binance 1-minute prices (tested on 60 days of BTC, ETH and BNB:
  when it said 0.65, the price went up 66–68% of the time)
- `verdict` and `checks[]`, codes: `OVERPAY` (paying 8+ cents more than the odds, block), `LAST_MINUTE` (under 60 s left, block),
  `NO_EDGE` (price about equal to the odds: over many bets you lose the 2% fee, warn), `COIN_FLIP` (both sides near 0.5, warn),
  `EDGE` (priced below the odds, info)

Same rule: `block` = do not bet; `warn` = tell your user and get an OK; `pass` = go ahead.
Rounds are matched by the clock (a 15m round runs :00–:15, :15–:30, …). 5m and 15m rounds settle on Chainlink, so
`fair` can differ from the App by a few cents. If the round you are betting on has a different start time, use your
own start price and treat the answer as a guide.

All odds right now in one call: `GET https://agentidlive.ai/api/rounds`

## Limits and errors

- 15 calls per minute per IP. HTTP 429 = wait a minute. HTTP 502 = Binance did not answer; try once more, and if it
  still fails, tell your user the brake could not run and let them decide. Never treat a failed check as a pass.
- Results are cached for 60 seconds.

## Say it like this

Keep it short and concrete for your user, e.g. "The brake stopped this: the pool is only $3,000, so you might not be
able to sell." or "Careful: 35 other tokens are also called CAKE; I checked the real one at 0x0e09…ce82."
