# Arbitrage Opportunity Scanner v1.1 > x402 pay-per-call API for real-time arbitrage opportunity detection ## Endpoints (all require x402 USDC payment on Base) ### /scan/kimchi — $0.001 USDC Kimchi premium tracker. 3-tier calculation: - official_fx: KRW price vs global price × ECB USD/KRW rate - effective_fx: KRW price vs global price × USDT/KRW rate (Upbit) - executable: bid/ask based premium using real orderbook data Tracks BTC, ETH, XRP, SOL, DOGE. Sources: Upbit (KR), Binance/Kraken/CoinGecko (global, 3-tier fallback). Response includes: premiums per asset, fx rates (official + effective + rate_date), global_price_source, request_cost_usdc. If CoinGecko is used as fallback, executable tier includes data_degraded: true (no real bid/ask). ### /scan/dex — $0.002 USDC DEX-only arbitrage scanner. Cross-DEX price discrepancy detection using DexScreener API. Scans WETH and WBTC across Ethereum, Base, Arbitrum, Optimism. Filters: min liquidity $10k, min 24h volume $1k, USDC/USDT quote pairs only. Query params: ?min_spread=0.1 (minimum spread % to filter) Response includes: opportunities with buy/sell dex+chain+price, spread_pct, estimated_profit_per_unit_usd, executable_volume_usd, confidence level. ### /scan/prediction — $0.002 USDC Prediction market arbitrage. Intra-market probability mispricing on Polymarket. Detects when outcome prices don't sum to 1.0 (threshold: 0.5% single, 1% multi-market). Response includes: opportunities, total_events_scanned, threshold, notice (when no opportunities found). ### /scan/all — $0.003 USDC Unified scanner. All arbitrage types in one call (kimchi + DEX + prediction). Uses Promise.allSettled — partial failures don't block other scanners. Response includes: kimchi/dex/prediction results, total_opportunities, errors array. ## Payment All paid endpoints use x402 protocol. Send GET request, receive 402 with payment details, sign USDC payment on Base network, resend with X-PAYMENT header. Every response includes request_cost_usdc for cost transparency.