finding-arbitrage-opportunities

19
2
Source

Detect profitable arbitrage opportunities across CEX, DEX, and cross-chain markets in real-time. Use when scanning for price spreads, finding arbitrage paths, comparing exchange prices, or analyzing triangular arbitrage opportunities. Trigger with phrases like "find arbitrage", "scan for arb", "price spread", "exchange arbitrage", "triangular arb", "DEX price difference", or "cross-exchange opportunity".

Install

mkdir -p .claude/skills/finding-arbitrage-opportunities && curl -L -o skill.zip "https://mcp.directory/api/skills/download/1603" && unzip -o skill.zip -d .claude/skills/finding-arbitrage-opportunities && rm skill.zip

Installs to .claude/skills/finding-arbitrage-opportunities

About this skill

Finding Arbitrage Opportunities

Overview

This skill detects and analyzes arbitrage opportunities across cryptocurrency exchanges and DeFi protocols. It aggregates prices from multiple sources, calculates net profit after fees and costs, and identifies both direct and triangular arbitrage paths.

Prerequisites

Before using this skill, ensure you have:

  • Python 3.9+ with httpx, rich, and networkx packages
  • Internet access for API calls (no API keys required for basic use)
  • Optional: Exchange API keys for real-time order book access
  • Understanding of arbitrage concepts and trading fees

Instructions

Step 1: Configure Data Sources

Configure your price sources in {baseDir}/config/settings.yaml:

# Primary data sources
data_sources:
  coingecko:
    enabled: true
    base_url: "https://api.coingecko.com/api/v3"
    rate_limit: 10  # calls per minute (free tier)

exchanges:
  - binance
  - coinbase
  - kraken
  - kucoin
  - okx

Or use environment variables for API keys:

export BINANCE_API_KEY="your-key"
export COINBASE_API_KEY="your-key"

Step 2: Quick Spread Scan

Scan for arbitrage opportunities on a specific pair:

python {baseDir}/scripts/arb_finder.py scan ETH USDC

This shows:

  • Current prices on each exchange
  • Spread percentage
  • Estimated profit after fees
  • Recommended action

Step 3: Multi-Exchange Comparison

Compare prices across specific exchanges:

python {baseDir}/scripts/arb_finder.py scan ETH USDC \
  --exchanges binance,coinbase,kraken,kucoin,okx

Output includes:

ExchangeBidAskSpreadNet Profit
Binance2541.202541.500.01%-
Coinbase2543.802544.100.01%+$2.30

Step 4: DEX Price Comparison

Scan decentralized exchanges for arbitrage:

python {baseDir}/scripts/arb_finder.py scan ETH USDC --dex-only

Compares:

  • Uniswap V3
  • SushiSwap
  • Curve
  • Balancer

Includes gas cost estimates for on-chain execution.

Step 5: Triangular Arbitrage Discovery

Find profitable circular paths within an exchange:

python {baseDir}/scripts/arb_finder.py triangular binance --min-profit 0.5

Example output:

Path: ETH → BTC → USDT → ETH
Gross: +0.82%
Fees:  -0.30% (3 × 0.10%)
─────────────────────────────
Net:   +0.52%

Step 6: Cross-Chain Opportunities

Compare prices across different blockchains:

python {baseDir}/scripts/arb_finder.py cross-chain USDC \
  --chains ethereum,polygon,arbitrum

Shows:

  • Price on each chain
  • Bridge fees and times
  • Net profit after bridging

Step 7: Real-Time Monitoring

Continuously monitor for opportunities:

python {baseDir}/scripts/arb_finder.py monitor ETH USDC \
  --threshold 0.5 \
  --interval 5

Alerts when spread exceeds threshold:

[ALERT] ETH/USDC spread 0.62% (Binance → Coinbase)
        Buy: $2,541.20 | Sell: $2,556.98
        Net Profit: +$12.34 (after fees)

Step 8: Profit Calculator

Calculate exact profit for a trade:

python {baseDir}/scripts/arb_finder.py calc \
  --buy-exchange binance \
  --sell-exchange coinbase \
  --pair ETH/USDC \
  --amount 10

Shows detailed breakdown:

  • Gross profit
  • Trading fees (both exchanges)
  • Withdrawal fees
  • Net profit
  • Breakeven spread

Step 9: JSON Export

Export opportunities for bot integration:

python {baseDir}/scripts/arb_finder.py scan ETH USDC --output json > opportunities.json

Output

The scanner provides:

Quick Mode (default):

  • Best opportunity with profit estimate
  • Buy/sell recommendation
  • Risk level indicator

Detailed Mode (--detailed):

  • All exchange prices
  • Fee breakdown
  • Slippage estimates
  • Historical spread context

Monitor Mode:

  • Real-time updates
  • Threshold alerts
  • Trend indicators

Supported Exchanges

Centralized Exchanges (CEX)

ExchangeMaker FeeTaker FeeWithdrawal
Binance0.10%0.10%Variable
Coinbase0.40%0.60%Variable
Kraken0.16%0.26%Variable
KuCoin0.10%0.10%Variable
OKX0.08%0.10%Variable

Decentralized Exchanges (DEX)

DEXFee RangeGas (ETH)Chains
Uniswap V30.01-1%~150kETH, Polygon, Arbitrum
SushiSwap0.30%~150kMulti-chain
Curve0.04%~200kETH, Polygon, Arbitrum
Balancer0.01-10%~180kETH, Polygon, Arbitrum

Error Handling

See {baseDir}/references/errors.md for comprehensive error handling.

Common issues:

  • Rate Limited: Reduce polling frequency or use API key
  • Stale Prices: Data older than 10s flagged with warning
  • No Spread: All exchanges at similar prices (efficient market)
  • Insufficient Liquidity: Trade size exceeds order book depth

Examples

See {baseDir}/references/examples.md for detailed examples including:

  • ETH/USDC CEX arbitrage scan
  • DEX triangular arbitrage discovery
  • Cross-chain USDC opportunity
  • Automated monitoring setup

Educational Disclaimer

FOR EDUCATIONAL PURPOSES ONLY

Arbitrage trading involves significant risks:

  • Opportunities may disappear before execution
  • Price data may be delayed or inaccurate
  • Fees can exceed profits on small trades
  • Market conditions change rapidly

This tool provides analysis only. Do not trade without understanding the risks.

Resources

svg-icon-generator

jeremylongshore

Svg Icon Generator - Auto-activating skill for Visual Content. Triggers on: svg icon generator, svg icon generator Part of the Visual Content skill category.

10435

d2-diagram-creator

jeremylongshore

D2 Diagram Creator - Auto-activating skill for Visual Content. Triggers on: d2 diagram creator, d2 diagram creator Part of the Visual Content skill category.

8233

automating-mobile-app-testing

jeremylongshore

This skill enables automated testing of mobile applications on iOS and Android platforms using frameworks like Appium, Detox, XCUITest, and Espresso. It generates end-to-end tests, sets up page object models, and handles platform-specific elements. Use this skill when the user requests mobile app testing, test automation for iOS or Android, or needs assistance with setting up device farms and simulators. The skill is triggered by terms like "mobile testing", "appium", "detox", "xcuitest", "espresso", "android test", "ios test".

17728

performing-penetration-testing

jeremylongshore

This skill enables automated penetration testing of web applications. It uses the penetration-tester plugin to identify vulnerabilities, including OWASP Top 10 threats, and suggests exploitation techniques. Use this skill when the user requests a "penetration test", "pentest", "vulnerability assessment", or asks to "exploit" a web application. It provides comprehensive reporting on identified security flaws.

5317

designing-database-schemas

jeremylongshore

Design and visualize efficient database schemas, normalize data, map relationships, and generate ERD diagrams and SQL statements.

12414

optimizing-sql-queries

jeremylongshore

This skill analyzes and optimizes SQL queries for improved performance. It identifies potential bottlenecks, suggests optimal indexes, and proposes query rewrites. Use this when the user mentions "optimize SQL query", "improve SQL performance", "SQL query optimization", "slow SQL query", or asks for help with "SQL indexing". The skill helps enhance database efficiency by analyzing query structure, recommending indexes, and reviewing execution plans.

5413

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

1,5611,368

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

1,0941,178

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

1,4091,106

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

1,180741

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

1,139682

pdf-to-markdown

aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.

1,289604

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.