# OKX Price Lookup

> OKX Price Lookup is a paid API for AI agents from www.amnt.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Fetches the live last price and 24-hour volume for a given instrument on the OKX exchange

## Facts

- Endpoint: POST https://www.amnt.io/api/agent/merry_stag/okx-price-lookup
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/okx-price-lookup-1596d1c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jQbqbjHfZo39DaX0caiRR

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 okx-price-lookup-1596d1c9 -d '<json body>'
```

Example prompt: What's the current price and 24-hour volume for BTC-USDT on OKX right now?

## When to prefer this

Use this endpoint when you specifically need live price and volume data from OKX — especially for cross-venue comparisons, liquidity checks before trading, or when your workflow is OKX-specific. Prefer this over generic crypto price APIs when OKX is the execution venue you care about.

## Known failure modes

- Invalid or unrecognized instrument ID returns an error or empty result
- OKX API downtime or rate limits may cause failed lookups
- Malformed prompt that doesn't specify an instrument ID leads to ambiguous or null response
- Network timeout if OKX upstream is slow

## How this service works

OKX Price Lookup - Call when you need the live price and 24-hour volume for an instrument on OKX - comparing venues, checking liquidity, or quoting a fill. Send the instrument id like BTC-USDT. Returns OKX's ticker data with the last price and volume.

## Output

Returns OKX ticker data for the requested instrument, including the last traded price and the 24-hour trading volume, formatted as a text response from the agent.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "prompt": {
       "type": "string",
       "description": "The instruction or prompt for the AI agent"
      }
     },
     "required": [
      "prompt"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "type": "string",
       "description": "The agent's response text"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/okx-price-lookup-1596d1c9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.amnt.io](https://www.zero.xyz/host/www.amnt.io/llms.txt)
