# Send Unified crypto market data API and scripts for exchanges, markets, tickers, OHLCV, and orderbooks to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "milaex-crypto-api",
    "name": "Unified crypto market data API and scripts for exchanges, markets, tickers, OHLCV, and orderbooks",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Kmasterrr/milaex-crypto-api",
    "canonicalUrl": "https://clawhub.ai/Kmasterrr/milaex-crypto-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/milaex-crypto-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=milaex-crypto-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/get_ohlcv.py",
      "scripts/get_orderbook.py",
      "scripts/get_ticker.py",
      "scripts/get_tickers.py",
      "scripts/list_exchanges.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/milaex-crypto-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/milaex-crypto-api",
    "downloadUrl": "https://openagent3.xyz/downloads/milaex-crypto-api",
    "agentUrl": "https://openagent3.xyz/skills/milaex-crypto-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/milaex-crypto-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/milaex-crypto-api/agent.md"
  }
}
```
## Documentation

### Milaex skill (crypto market data)

Use this skill for crypto data-related searches that need real-time or normalized market data across multiple exchanges using the Milaex unified REST API.

### What this gives an agent

One place to query exchanges, markets/pairs, tickers, OHLCV/candles, and orderbooks.
Normalized request/response shapes across exchanges.
Consistent JSON output for piping into other tools.
Friendly error output (HTTP code + Milaex error payload) and optional rate-limit header printing.

### Service facts (from milaex.com)

Milaex is a unified crypto market data SaaS with a REST API across many exchanges.
Data types include markets, tickers, OHLCV, and order books.
API access is via an API key from the dashboard.
Milaex is data-only (no custody, no trade execution).
Docs: https://api.milaex.com/api-docs/index.html

### Setup (get an API key)

Go to https://milaex.com and sign up or log in.
In the Milaex dashboard, generate an API key for the market data API.

### Configuration

Required env vars:

MILAEX_API_KEY (sent as x-api-key)

### Recommended (Clawdbot): store the key in openclaw config

This lets Clawdbot inject the env var when running the skill.

Edit ~/.clawdbot/openclaw.json:

{
  "skills": {
    "entries": {
      "milaex": {
        "enabled": true,
        "env": {
          "MILAEX_API_KEY": "..."
        }
      }
    }
  }
}

### Manual shell usage (export env vars)

export MILAEX_API_KEY="..."

### Endpoints (from public OpenAPI v1)

These scripts map to the following Milaex endpoints:

GET /api/v1/exchange
GET /api/v1/exchange/markets?exchange=
GET /api/v1/exchange/ticker?exchange=&base_name=&quote_name=
GET /api/v1/exchange/tickers?exchange=&symbols=
GET /api/v1/exchange/ohlcv?exchange=&base_name=&quote_name=
GET /api/v1/exchange/orderbook?exchange=&base_name=&quote_name=
GET /api/v1/exchange/orderbook/complete?exchange=&base_name=&quote_name=

### Mapping common search questions to endpoints

Which exchanges are supported? -> GET /api/v1/exchange
What markets does exchange X support? -> GET /api/v1/exchange/markets?exchange=
Current price for BTC/USDT on exchange X? -> GET /api/v1/exchange/ticker?exchange=&base_name=&quote_name=
Multiple symbols on exchange X? -> GET /api/v1/exchange/tickers?exchange=&symbols=
Candle data for a pair? -> GET /api/v1/exchange/ohlcv?exchange=&base_name=&quote_name=
Orderbook snapshot? -> GET /api/v1/exchange/orderbook?exchange=&base_name=&quote_name=

### Quick commands

All commands print JSON to stdout. Rate limit headers (when present) print to stderr.

### List exchanges

python3 skills/milaex/scripts/list_exchanges.py
# or
bash skills/milaex/bin/list_exchanges.sh

### List markets for an exchange

python3 skills/milaex/scripts/list_markets.py --exchange binance

### Get a single ticker

python3 skills/milaex/scripts/get_ticker.py --exchange binance --symbol BTC/USDT

### Get tickers (optionally filtered by symbols)

python3 skills/milaex/scripts/get_tickers.py --exchange binance
python3 skills/milaex/scripts/get_tickers.py --exchange binance --symbols "BTC/USDT,ETH/USDT"

### Get OHLCV

Note: Milaex v1 OpenAPI exposes OHLCV by exchange/base_name/quote_name. The script accepts --timeframe for forward-compat but does not send it (to avoid 400s).

python3 skills/milaex/scripts/get_ohlcv.py --exchange binance --symbol BTC/USDT --limit 200

### Get orderbook

python3 skills/milaex/scripts/get_orderbook.py --exchange binance --symbol BTC/USDT --limit 50
python3 skills/milaex/scripts/get_orderbook.py --exchange binance --symbol BTC/USDT --complete

### For traders

Monitor best bid/ask spreads across venues
Build simple cross-exchange arb screens
Detect volatility regime changes via OHLCV
Alerting: “price moved X% in Y minutes”

### For data engineers / analysts

Pull normalized tick data for dashboards
Build research datasets (candles + orderbook snapshots)
Run periodic ETL without maintaining exchange adapters

### For product and support teams

Answer coverage questions (exchanges, pairs, availability)
Validate pricing/latency assumptions with real data

### Notes

Keep within endpoint RPM limits (Milaex also returns standard rate-limit headers when enabled for your plan).
Scripts require Python 3 and requests.

Install dependency if needed:

python3 -m pip install --user requests

### Test (expected unauthorized)

This is a small smoke test that verifies unauthorized handling using a dummy key. Some deployments return 401, others return 404 with an "Api Key not found" message.

MILAEX_API_KEY=dummy python3 skills/milaex/scripts/test_unauthorized.py
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Kmasterrr
- Version: 1.0.2
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-05-07T17:22:31.273Z
- Expires at: 2026-05-14T17:22:31.273Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/milaex-crypto-api)
- [Send to Agent page](https://openagent3.xyz/skills/milaex-crypto-api/agent)
- [JSON manifest](https://openagent3.xyz/skills/milaex-crypto-api/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/milaex-crypto-api/agent.md)
- [Download page](https://openagent3.xyz/downloads/milaex-crypto-api)