Install
openclaw skills install milaex-crypto-apiUnified crypto market data API and scripts for exchanges, markets, tickers, OHLCV, and orderbooks.
openclaw skills install milaex-crypto-apiUse this skill for crypto data-related searches that need real-time or normalized market data across multiple exchanges using the Milaex unified REST API.
Required env vars:
MILAEX_API_KEY (sent as x-api-key)This lets Clawdbot inject the env var when running the skill.
Edit ~/.clawdbot/openclaw.json:
{
"skills": {
"entries": {
"milaex": {
"enabled": true,
"env": {
"MILAEX_API_KEY": "..."
}
}
}
}
}
export MILAEX_API_KEY="..."
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=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.
python3 skills/milaex/scripts/list_exchanges.py
# or
bash skills/milaex/bin/list_exchanges.sh
python3 skills/milaex/scripts/list_markets.py --exchange binance
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"
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
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
requests.Install dependency if needed:
python3 -m pip install --user requests
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