revolut-x-api
Monorepo for open-source tooling around the Revolut X crypto exchange.
Packages
| Package | Description |
|---|
api/ | Typed HTTP client for the Revolut X REST API. Zero runtime dependencies — Node.js built-ins only. |
mcp/ | MCP server exposing tools for market data, account management, orders, monitoring, and grid strategy backtests. Use with Claude Desktop, Claude Code, or any MCP-compatible client. |
cli/ | revx command-line interface for trading, monitoring, and running grid bots from the terminal. |
skills/ | Claude Code skills — focused revx CLI command references (auth, market, account, trading, monitor, telegram, strategy). |
Quick Start
MCP Server (Claude Desktop / Claude Code)
Build both the API and MCP packages:
git clone https://github.com/revolut-engineering/revolut-x-api.git
cd revolut-x-api
npm ci
npm run build -w api
npm run build -w mcp
Claude Desktop — edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"revolutx": {
"command": "node",
"args": ["/path/to/revolut-x-api/mcp/dist/index.js"]
}
}
}
Claude Code:
claude mcp add revolutx node /path/to/revolut-x-api/mcp/dist/index.js
Then ask Claude: "Set up my Revolut X API keys" to complete authentication.
CLI
git clone https://github.com/revolut-engineering/revolut-x-api.git
cd revolut-x-api
npm ci
npm run build -w api
npm run build -w cli
npm link -w cli
# Setup
revx configure # Set up API key and private key
# Account
revx account balances # Show non-zero balances
revx account balances BTC # Get BTC balance
revx account balances --currencies BTC,ETH,USD # Filter by currencies
revx account balances --all # Include zero balances
revx account sub-accounts # Sub-account totals in USD
revx account sub-accounts --convert-to EUR # Sub-account totals in EUR
# Market
revx market currencies # List supported currencies
revx market currencies fiat # Filter fiat only
revx market currencies crypto # Filter crypto only
revx market pairs # List all trading pairs
revx market pairs --filter BTC-USD,ETH-USD # Filter by pairs
revx market tickers # List all tickers
revx market tickers --symbols BTC-USD,ETH-USD # Filter tickers by pair
revx market ticker BTC-USD # Get BTC-USD ticker
revx market candles BTC-USD # Get hourly candles
revx market candles BTC-USD --interval 5m # Get 5-minute candles
revx market candles BTC-USD --since 7d --until today
revx market orderbook BTC-USD # Get order book (50 levels per side)
revx market orderbook BTC-USD --limit 192 # Get order book (max depth, 1–192)
revx market fees # Show fee tiers by trading volume