统一加密行情数据一键查
简介
统一加密货币市场数据 API,提供交易所、交易对、实时价格、K 线及订单簿标准化查询,需 API 密钥授权。
原始描述
Unified crypto market data API and scripts for exchanges, markets, tickers, OHLCV, and orderbooks.
通过你的 Agent 添加
安装目录:milaex/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: milaex
description: Unified crypto market data API and scripts for exchanges, markets, tickers, OHLCV, and orderbooks.
metadata: {"clawdbot":{"emoji":"📈","requires":{"bins":["python3"],"env":["MILAEX_API_KEY"]}}}
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
Configuration
- 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
Configuration
Required env vars:
MILAEX_API_KEY(sent asx-api-key)
Example:
export MILAEX_API_KEY="..."
Endpoints (from public OpenAPI v1)
These scripts map to the following Milaex endpoints:
GET /api/v1/exchangeGET /api/v1/exchange/markets?exchange=GET /api/v1/exchange/ticker?exchange=&base_name="e_name=GET /api/v1/exchange/tickers?exchange=&symbols=GET /api/v1/exchange/ohlcv?exchange=&base_name="e_name=GET /api/v1/exchange/orderbook?exchange=&base_name="e_name=GET /api/v1/exchange/orderbook/complete?exchange=&base_name="e_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="e_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="e_name=
- Orderbook snapshot? ->
GET /api/v1/exchange/orderbook?exchange=&base_name="e_name=
Quick commands
GET /api/v1/exchangeGET /api/v1/exchange/markets?exchange=GET /api/v1/exchange/ticker?exchange=&base_name="e_name=GET /api/v1/exchange/tickers?exchange=&symbols=GET /api/v1/exchange/ohlcv?exchange=&base_name="e_name=GET /api/v1/exchange/orderbook?exchange=&base_name="e_name=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
python3 skills/milaex/scripts/list_exchanges.py
# or
bash skills/milaex/bin/list_exchanges.sh
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
python3 skills/milaex/scripts/get_ticker.py --exchange binance --symbol BTC/USDT
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
Common use cases
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.
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
- 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.
- 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
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。