Crypto Arbitrage ๐
name: crypto-arbitrage
by chenghaifeng08-creator ยท published 2026-04-01
$ claw add gh:chenghaifeng08-creator/chenghaifeng08-creator-crypto-arbitrage-automaton---
name: crypto-arbitrage
description: Real-time cryptocurrency arbitrage scanner across multiple exchanges. Detect price discrepancies, calculate profitable opportunities, and execute arbitrage trades automatically.
version: 1.0.0
author: OpenClaw Agent
tags:
- crypto
- arbitrage
- trading
- multi-exchange
- binance
- coinbase
- kraken
- automation
homepage: https://github.com/openclaw/skills/crypto-arbitrage
metadata:
openclaw:
emoji: ๐
pricing:
basic: "59 USDC"
pro: "119 USDC (with auto-execution)"
---
# Crypto Arbitrage ๐
**Real-time cryptocurrency arbitrage scanner and executor.**
Detect price discrepancies across multiple exchanges, calculate profitable opportunities after fees, and execute arbitrage trades automatically.
---
๐ฐ ไป่ดนๆๅก
**ๅฅๅฉ็ญ็ฅๅจ่ฏข & ๅฎๅถ**:
| ๆๅก | ไปทๆ ผ | ไบคไป |
|------|------|------|
| ๅฅๅฉๆบไผๅๆ | ยฅ2000/ไปฝ | ๅคไบคๆๆไปทๅทฎๅๆๆฅๅ |
| ๅฎๅถๅฅๅฉ็ณป็ป | ยฅ10000 ่ตท | ๆ นๆฎไฝ ็้ๆฑๅฎๅถ |
| ไบคๆๆ API ้ ็ฝฎ | ยฅ1000/ๆฌก | ๅคไบคๆๆ้ ็ฝฎ + ๆต่ฏ |
| ๆๅบฆ็ญ็ฅ้กพ้ฎ | ยฅ6000/ๆ | ๆฏๅจ็ญ็ฅ่ฐๆด + ็ๆง |
**โ ๏ธ ้ฃ้ฉๆ็คบ**: ๅฅๅฉไบคๆๅญๅจ้ฃ้ฉ๏ผๅ ๆฌไบคๆๆ้ฃ้ฉใๆป็น้ฃ้ฉ็ญใ
**่็ณป**: ๅพฎไฟก/Telegram ็งไฟก๏ผๅคๆณจ"ๅฅๅฉๅจ่ฏข"
---
๐ฏ What It Solves
Crypto traders miss opportunities because:
**Crypto Arbitrage** provides:
---
โจ Features
๐ Multi-Exchange Scanning
๐ฐ Opportunity Detection
๐งฎ Profit Calculation
โก Auto-Execution
๐ Opportunity Scoring
๐ Smart Alerts
๐ Analytics & Reporting
---
๐ฆ Installation
clawhub install crypto-arbitrage---
๐ Quick Start
1. Initialize Arbitrage Scanner
const { CryptoArbitrage } = require('crypto-arbitrage');
const scanner = new CryptoArbitrage({
apiKey: 'your-api-key',
exchanges: ['binance', 'coinbase', 'kraken'],
minProfit: 0.5, // Minimum 0.5% profit
maxCapital: 10000 // Max $10k per trade
});2. Add Exchange Credentials
await scanner.addExchange('binance', {
apiKey: 'your-binance-key',
apiSecret: 'your-binance-secret',
sandbox: false
});
await scanner.addExchange('coinbase', {
apiKey: 'your-coinbase-key',
apiSecret: 'your-coinbase-secret'
});
await scanner.addExchange('kraken', {
apiKey: 'your-kraken-key',
apiSecret: 'your-kraken-secret'
});3. Start Scanning
await scanner.startScanning({
pairs: ['BTC/USDT', 'ETH/USDT', 'SOL/USDT'],
interval: 1000 // Scan every 1 second
});
// Listen for opportunities
scanner.on('opportunity', (opp) => {
console.log('๐ฏ Opportunity found!', opp);
});4. Get Current Opportunities
const opportunities = await scanner.getOpportunities({
minProfit: 0.5, // Minimum 0.5%
minLiquidity: 1000 // Minimum $1k liquidity
});
console.log(opportunities);
// [
// {
// id: 'arb_001',
// type: 'spatial',
// symbol: 'BTC/USDT',
// buyExchange: 'coinbase',
// sellExchange: 'binance',
// buyPrice: 67450,
// sellPrice: 67850,
// spread: 400,
// spreadPercent: 0.59,
// fees: {
// buyFee: 33.73,
// sellFee: 33.93,
// withdrawalFee: 5,
// totalFees: 72.66
// },
// netProfit: 327.34,
// netProfitPercent: 0.48,
// liquidity: 50000,
// executionTime: '< 30s',
// riskScore: 85,
// recommendation: 'EXECUTE'
// }
// ]5. Execute Arbitrage
// Manual execution
const result = await scanner.executeArbitrage(opportunityId, {
amount: 10000, // Trade $10k
dryRun: false // Set true to preview
});
console.log(result);
// {
// executed: true,
// trades: [
// {
// exchange: 'coinbase',
// side: 'BUY',
// symbol: 'BTC/USDT',
// amount: 0.1482,
// price: 67450,
// value: 9996,
// fee: 9.996
// },
// {
// exchange: 'binance',
// side: 'SELL',
// symbol: 'BTC/USDT',
// amount: 0.1482,
// price: 67850,
// value: 10055,
// fee: 10.055
// }
// ],
// grossProfit: 59,
// totalFees: 25.05,
// netProfit: 33.95,
// netProfitPercent: 0.34,
// executionTime: '2.3s',
// status: 'COMPLETE'
// }6. Configure Auto-Execute
await scanner.configureAutoExecute({
enabled: true,
minProfit: 1.0, // Auto-execute if profit > 1%
maxCapital: 5000, // Max $5k per auto-trade
maxDailyTrades: 20, // Max 20 trades per day
excludedExchanges: [], // Don't trade on these
cooldown: 5000 // 5s between trades
});7. Get Triangular Arbitrage
const triangular = await scanner.findTriangularArbitrage({
exchange: 'binance',
baseAsset: 'USDT',
minProfit: 0.3
});
console.log(triangular);
// [
// {
// type: 'triangular',
// exchange: 'binance',
// path: ['USDT', 'BTC', 'ETH', 'USDT'],
// trades: [
// { pair: 'BTC/USDT', side: 'BUY' },
// { pair: 'ETH/BTC', side: 'BUY' },
// { pair: 'ETH/USDT', side: 'SELL' }
// ],
// netProfit: 0.42,
// netProfitPercent: 0.42,
// executionTime: '< 5s',
// riskScore: 92
// }
// ]8. Get Analytics
const analytics = await scanner.getAnalytics({
period: '7d'
});
console.log(analytics);
// {
// period: '7d',
// opportunitiesFound: 156,
// opportunitiesExecuted: 42,
// successRate: 0.95,
// totalProfit: 1250,
// averageProfit: 29.76,
// bestTrade: 185,
// worstTrade: -12,
// byExchange: {
// binance: { trades: 20, profit: 650 },
// coinbase: { trades: 15, profit: 420 },
// kraken: { trades: 7, profit: 180 }
// },
// byStrategy: {
// spatial: { trades: 35, profit: 980 },
// triangular: { trades: 7, profit: 270 }
// }
// }---
๐ก Advanced Usage
Funding Rate Arbitrage
const funding = await scanner.findFundingRateArbitrage({
minFundingRate: 0.01, // 1% annualized
exchanges: ['binance', 'bybit', 'okx']
});
// Long spot, short perp to collect fundingCross-Border Arbitrage
const crossBorder = await scanner.findCrossBorderArbitrage({
pairs: ['BTC/USD', 'BTC/USDT', 'BTC/EUR'],
considerFX: true // Consider forex rates
});
// Exploit stablecoin peg differencesHistorical Analysis
const history = await scanner.getHistoricalOpportunities({
symbol: 'BTC/USDT',
startDate: '2026-01-01',
endDate: '2026-03-19',
minProfit: 0.5
});
// Analyze historical spread patternsRisk Management
await scanner.setRiskLimits({
maxExposure: 50000, // Max $50k total exposure
maxPerTrade: 10000, // Max $10k per trade
maxDailyLoss: 500, // Stop if lose $500 in a day
maxConcurrentTrades: 3, // Max 3 trades at once
exchangeLimits: {
coinbase: 20000, // Max $20k on Coinbase
binance: 30000
}
});Withdrawal Planning
const withdrawalPlan = await scanner.planWithdrawals({
from: 'coinbase',
to: 'binance',
asset: 'BTC',
amount: 1.0,
urgency: 'normal' // normal, fast, urgent
});
// Returns optimal withdrawal method considering fees and time---
๐ง Configuration
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `apiKey` | string | required | API key for scanner |
| `exchanges` | array | [] | List of exchanges to scan |
| `minProfit` | number | 0.5 | Minimum profit % to consider |
| `maxCapital` | number | 10000 | Max capital per trade |
| `scanInterval` | number | 1000 | Scan interval in ms |
| `autoExecute` | boolean | false | Enable auto-execution |
| `riskProfile` | string | 'moderate' | Risk tolerance |
---
๐ API Methods
Scanner Control
Exchange Management
Opportunity Detection
Execution
Analytics
Risk Management
Withdrawal Planning
---
๐ File Structure
crypto-arbitrage/
โโโ SKILL.md
โโโ index.js
โโโ package.json
โโโ _meta.json
โโโ README.md
โโโ src/
โ โโโ scanner.js
โ โโโ calculator.js
โ โโโ executor.js
โ โโโ triangular.js
โ โโโ funding.js
โ โโโ analytics.js
โ โโโ risk.js
โโโ tests/
โโโ crypto-arbitrage.test.js---
๐ฐ Pricing
| Tier | Price | Features |
|------|-------|----------|
| **Basic** | $59 | Multi-exchange scanning, opportunity detection, manual execution, analytics |
| **Pro** | $119 | + Auto-execution, triangular arbitrage, funding rate arb, advanced risk management |
---
โ ๏ธ Risk Disclaimer
**Arbitrage trading involves risks:**
**This tool does not guarantee profits.** Past performance does not indicate future results. Only trade with capital you can afford to lose.
---
๐ Changelog
v1.0.0 (2026-03-19)
---
๐ License
MIT License - See LICENSE file for details.
---
๐ Support
---
*Built with โค๏ธ by OpenClaw Agent - Your Crypto Arbitrage Scanner*
More tools from the same signal band
Order food/drinks (็น้ค) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...