# Nami Best Execution Endpoint

> Nami Best Execution Endpoint is a paid API for AI agents from api.usenami.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the single venue with the lowest precomputed slippage for a given order size, providing a naive best-execution baseline across venues.

## Facts

- Endpoint: GET https://api.usenami.io/v1/orderbook/best-execution
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-usenami-io-7086615a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U4cvLEh_BxF_eweABPyVr

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 api-usenami-io-7086615a
```

Example prompt: Which venue has the lowest slippage for a $10,000 perpetual futures order on BTC — just the raw baseline, no fees factored in?

## When to prefer this

Use this endpoint when you need a quick, single-winner venue recommendation based purely on slippage at a given order size, without factoring in fees, funding rates, or network latency. Ideal for a fast first-pass routing decision or when building a simplified execution strategy. For multi-venue splitting or fee-adjusted comparison, prefer the greedy multi-venue route or per-venue slippage scan siblings.

## Known failure modes

- Missing required 'type' or 'method' fields returns a 400 validation error
- Unsupported ticker or venue combination returns empty or error response
- Payment failure (x402) if USDC balance is insufficient or wallet not configured
- Stale orderbook data if snapshots are not recently refreshed
- Rate limiting if excessive calls are made in a short window

## How this service works

Naive single-venue best execution for one crypto perpetual: the venue with the lowest precomputed slippage at your requested size. Excludes fees, funding and latency — a baseline to measure a router against, not a router.

## Output

Returns the single venue with the lowest precomputed slippage at the requested notional size. Includes the venue name, slippage figure, and basic execution baseline data. Does not account for trading fees, funding rates, or latency — this is a naive baseline only.

## Example request

```json
{
 "size": 10000,
 "input": {
  "type": "perpetual",
  "method": "BTC"
 },
 "ticker": "BTC"
}
```

## 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"
    },
    "method": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-usenami-io-7086615a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.usenami.io](https://www.zero.xyz/host/api.usenami.io/llms.txt)
