Unified crypto market data API and scripts for exchanges, markets, tickers, OHLCV, and orderbooks
by @kmasterrr
Unified crypto market data API and scripts for exchanges, markets, tickers, OHLCV, and orderbooks.
clawhub install milaex-crypto-apiπ About This Skill
name: milaex description: Unified crypto market data API and scripts for exchanges, markets, tickers, OHLCV, and orderbooks. homepage: https://api.milaex.com/api-docs/index.html 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
Service facts (from milaex.com)
Setup (get an API key)
1. Go to https://milaex.com and sign up or log in. 2. 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/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
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=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 byexchange/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
For data engineers / analysts
For product and support teams
Notes
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
βοΈ 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="..."
π Tips & Best Practices
requests.Install dependency if needed:
python3 -m pip install --user requests