CrossFin

AI 与智能体

by bubilife1202

为 AI agent 提供接入亚洲加密市场的能力,支持韩国交易所路由与 x402 付费 API 调用。

什么是 CrossFin

为 AI agent 提供接入亚洲加密市场的能力,支持韩国交易所路由与 x402 付费 API 调用。

README

CrossFin

The only way AI agents access Asian crypto markets.

CrossFin is a financial router for AI agents. It finds the cheapest path to move money across 14 exchanges (Bithumb, Upbit, Coinone, GoPax, bitFlyer, WazirX, bitbank, Indodax, Bitkub, Binance, OKX, Bybit, KuCoin, Coinbase), pays for APIs with crypto (x402 protocol), and gives agents real-time access to market data that's normally locked behind Korean-language interfaces and IP restrictions.

Live: crossfin.dev | Demo: live.crossfin.dev


Install in 30 seconds

Add this to your MCP client config:

json
{
  "mcpServers": {
    "crossfin": {
      "command": "npx",
      "args": ["-y", "crossfin-mcp"],
      "env": {
        "EVM_PRIVATE_KEY": "0x..."
      }
    }
  }
}

Restart your MCP client. Done. 16 tools available immediately.

All API endpoints are currently free during open beta. No API key required. EVM wallet is optional (needed for x402 payment flow testing).


What can it do?

Ask your agent:

  • "빗썸에서 바이낸스로 500만원 USDC 만들려면 가장 싼 방법이 뭐야?" → Routing engine evaluates 13 bridge coins across 14 exchanges, returns optimal path with fees
  • "지금 한국-글로벌 스프레드 얼마야?" → Real-time price spread between Korean and global exchanges for 13 crypto pairs
  • "일본이랑 태국 프리미엄 비교해줘" → Asian Premium Index across Korea, Japan, Indonesia, Thailand
  • "오늘 한국 시장 브리핑해줘" → Morning Brief bundle: route spread + FX + headlines

For developers/agents:

  • find_optimal_route — cheapest/fastest/balanced path across Bithumb, Upbit, Coinone, GoPax, bitFlyer, WazirX, bitbank, Indodax, Bitkub, Binance, OKX, Bybit, KuCoin, Coinbase using 13 bridge coins (BTC, ETH, XRP, SOL, DOGE, ADA, DOT, LINK, AVAX, TRX, KAIA, SUI, APT)
  • get_kimchi_premium — real-time Korean vs. global route spread
  • compare_exchange_prices — live Bithumb KRW vs Binance USD price comparison
  • call_paid_service — call any paid API with automatic x402 USDC payment (currently free during open beta)
  • Asian Premium endpoints — Japan, Indonesia, Thailand crypto premiums vs global markets

Why CrossFin?

Korean exchanges are a walled garden. Korean-language APIs, IP restrictions, real-name bank account requirements (실명확인 계좌제), and no English documentation. AI agents can't access them — unless they go through CrossFin.

Prices differ across exchanges. The same BTC can be 2-3% more expensive on Korean exchanges (route spread). CrossFin's routing engine finds the cheapest bridge coin and path, factoring in trading fees, withdrawal fees, slippage, and transfer time.

x402 ready. No API keys, no subscriptions, no invoices. All endpoints are currently free during open beta. x402 payment infrastructure (USDC on Base) ready for future activation.


Routing Engine

The core product. Given a source (exchange + currency) and destination, CrossFin evaluates all possible paths:

code
Input:  bithumb:KRW → binance:USDC, ₩5,000,000
Output: Buy AVAX on Bithumb → Transfer to Binance → Sell for USDC
        Cost: 0.07% (₩3,500) | Time: ~3 min | Output: $3,452 USDC

        Alternatives:
        BTC  → 0.33% | ~21 min | $3,443
        DOT  → 0.38% | ~6 min  | $3,441

Considers: trading fees (0.10–0.25%), withdrawal fees (fixed per coin), orderbook slippage, transfer time, route spread direction.

Supports bidirectional routing: Korea → Global and Global → Korea.

Free preview: POST /api/acp/quote (ACP compatible) Full route: GET /api/premium/route/find (free during open beta)


MCP Tools (16 total)

ToolWhat it does
find_optimal_routeOptimal crypto transfer path across 14 exchanges (free)
list_exchange_feesTrading + withdrawal fee comparison
compare_exchange_pricesLive Bithumb KRW vs Binance USD comparison
get_kimchi_premiumKorean vs. global route spread (free preview)
search_servicesSearch registered services
get_guideFull agent guide (services, payment flow, examples)
call_paid_serviceCall any paid API with automatic x402 payment
create_walletLocal ledger wallet
get_balanceCheck wallet balance
transferTransfer between wallets
list_transactionsTransaction history
set_budgetDaily spend limit
list_servicesBrowse service catalog
get_serviceService details
list_categoriesService categories
get_analyticsGateway usage stats

Asian Premium Index (v1.18.0)

Real-time crypto premium analysis across 4 Asian countries. All free, no API key needed.

EndpointDescription
GET /api/premium/asia/japanJapan premium — bitbank.cc JPY vs Binance USD
GET /api/premium/asia/indonesiaIndonesia premium — Indodax IDR vs Binance USD
GET /api/premium/asia/thailandThailand premium — Bitkub THB vs Binance USD
GET /api/premium/asia/overview4-country overview (Korea + Japan + Indonesia + Thailand)

Data sources: bitbank.cc (Japan), Indodax (Indonesia), Bitkub (Thailand), Bithumb (Korea), Binance (Global)


API Endpoints (Currently All Free)

All endpoints are currently free during open beta. x402 payment infrastructure is ready for future activation.

<details> <summary><strong>Korean Market APIs</strong></summary>
EndpointPriceDescription
/api/premium/arbitrage/kimchiFreeFull Route Spread (13 pairs incl. KAIA, SUI, APT)
/api/premium/arbitrage/opportunitiesFreeArbitrage indicators (POSITIVE_SPREAD/NEUTRAL/NEGATIVE_SPREAD)
/api/premium/bithumb/orderbook?pair=BTCFreeBithumb orderbook (30 levels)
/api/premium/market/upbit/tickerFreeUpbit ticker
/api/premium/market/upbit/orderbookFreeUpbit orderbook
/api/premium/market/coinone/tickerFreeCoinone ticker
/api/premium/market/fx/usdkrwFreeUSD/KRW exchange rate
/api/premium/market/koreaFreeKorean market sentiment
/api/premium/market/cross-exchangeFreeCross-exchange arbitrage decision
/api/premium/news/korea/headlinesFreeKorean headlines
/api/premium/arbitrage/kimchi/historyFreeRoute spread history (7 days)
/api/premium/bithumb/volume-analysisFreeBithumb volume analysis
/api/premium/market/upbit/signalsFreeUpbit trading signals
/api/premium/crypto/korea/5exchangeFreeCross-exchange price comparison
/api/premium/crypto/korea/exchange-statusFreeDeposit/withdrawal status
/api/premium/crypto/korea/fx-rateFreeReal-time KRW/USD (Upbit CRIX)
/api/premium/crypto/korea/upbit-candlesFreeUpbit OHLCV candles
</details> <details> <summary><strong>Bundle APIs</strong></summary>
EndpointPriceDescription
/api/premium/morning/briefFreeMorning Brief (route spread + FX + headlines)
/api/premium/crypto/snapshotFreeCrypto Snapshot (4-exchange + route spread + volume + FX)
/api/premium/kimchi/statsFreeRoute Spread Stats (spreads + trend + arbitrage signal)
</details> <details> <summary><strong>Utility APIs (Temporarily Free in Open Beta)</strong></summary>
EndpointPriceDescription
/api/premium/reportFreePremium report (agents/wallets/transactions summary)
/api/premium/enterpriseFreeEnterprise receipt/proof endpoint
/api/legal/disclaimerFreeFull legal disclaimer (EN/KO)
/api/analytics/overviewFreeGateway analytics overview
/api/analytics/funnel/overviewFreeFunnel analytics overview
/api/analytics/funnel/eventsFreeFunnel analytics event ingestion
/api/analytics/services/{serviceId}FreePer-service analytics
/api/onchain/usdc-transfersFreeOn-chain USDC transfer monitor (Base)
/api/proxy/{serviceId}FreeProxy endpoint for registered services
/api/telegram/webhookFreeTelegram bot webhook endpoint
</details> <details> <summary><strong>Protocol APIs (A2A + ACP)</strong></summary>
EndpointPriceDescription
POST /api/a2a/tasksFreeA2A task execution (crypto-routing, route-spread, market data)
GET /api/acp/statusFreeACP protocol status and capabilities
POST /api/acp/quoteFreeACP-compatible routing quote (preview)
POST /api/acp/executeFreeACP execution endpoint
</details> <details> <summary><strong>Routing Engine</strong></summary>
EndpointPriceDescription
GET /api/route/exchangesFreeSupported exchanges and coins
GET /api/route/feesFreeFee comparison table
GET /api/route/pairsFreeTrading pairs with live prices
GET /api/route/statusFreeExchange health check
GET /api/premium/route/findFreeFull optimal route analysis
POST /api/acp/quoteFreeACP-compatible routing quote (preview)
</details> <details> <summary><strong>Registry & Discovery (Free)</strong></summary>
EndpointDescription
GET /api/registryList all registered services
GET /api/registry/search?q=...Full-text search
GET /api/registry/categoriesCategories with counts
GET /api/registry/statsRegistry stats (total/crossfin/external)
GET /api/docs/guideStructured agent guide
GET /.well-known/crossfin.jsonAgent auto-discovery
GET /.well-known/x402.jsonx402 discovery metadata
GET /.well-known/agent.jsonA2A Agent Card
GET /.well-known/ai-plugin.jsonOpenAI plugin manifest
GET /llms.txtLLM-readable site map
GET /api/openapi.jsonOpenAPI 3.1 spec
</details>

Payment (x402)

Note: All endpoints are currently free during open beta. The x402 payment code below is for reference when payments are re-enabled.

No API keys. No subscriptions. Pay per call with USDC on Base.

javascript
import { x402Client, wrapFetchWithPayment } from '@x402/fetch'
import { registerExactEvmScheme } from '@x402/evm/exact/client'
import { privateKeyToAccount } from 'viem/accounts'

const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY)
const client = new x402Client()
registerExactEvmScheme(client, { signer })

const paidFetch = wrapFetchWithPayment(fetch, client)
const res = await paidFetch('https://crossfin.dev/api/premium/arbitrage/kimchi')
console.log(await res.json())
<details> <summary><strong>Python</strong></summary>
python
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

client = x402ClientSync()
account = Account.from_key(os.environ['EVM_PRIVATE_KEY'])
register_exact_evm_client(client, EthAccountSigner(account))

with x402_requests(client) as session:
    r = session.get('https://crossfin.dev/api/premium/arbitrage/kimchi')
    print(r.json())
</details>

Tech Stack

Cloudflare Workers + Hono, D1 (SQLite), x402 protocol, USDC on Base, MCP SDK, React + Vite (dashboard)

Project Structure

code
apps/
  api/          Cloudflare Workers API
  mcp-server/   MCP Server (16 tools, npm: crossfin-mcp)
  web/          Gateway Dashboard (crossfin.dev)
  live/         Live Demo (live.crossfin.dev)
  docs/         Documentation (docs.crossfin.dev)

Release Verification

Run a full pre-deploy verification sweep in one command:

bash
npm --prefix apps/api run verify:release

This command runs API contract/catalog verification, builds API/web/docs in parallel, checks production API/page responses, and fails on stale copy patterns in README/docs/web/live/examples.

Links

Built with AI

CrossFin was built entirely through AI collaboration by a non-developer in 1 week. Zero prior coding experience. This project is proof that AI agents can build production software — and CrossFin is the infrastructure for that future.

常见问题

CrossFin 是什么?

为 AI agent 提供接入亚洲加密市场的能力,支持韩国交易所路由与 x402 付费 API 调用。

相关 Skills

Claude接口

by anthropics

Universal
热门

面向接入 Claude API、Anthropic SDK 或 Agent SDK 的开发场景,自动识别项目语言并给出对应示例与默认配置,快速搭建 LLM 应用。

想把Claude能力接进应用或智能体,用claude-api上手快、兼容Anthropic与Agent SDK,集成路径清晰又省心

AI 与智能体
未扫描171.4k

RAG架构师

by alirezarezvani

Universal
热门

聚焦生产级RAG系统设计与优化,覆盖文档切块、检索链路、索引构建、召回评估等关键环节,适合搭建可扩展、高准确率的知识库问答与检索增强应用。

面向RAG落地,把知识库、向量检索和生成链路系统串联起来,做架构设计时更清晰,也更少踩坑。

AI 与智能体
未扫描24.9k

多智能体架构

by alirezarezvani

Universal
热门

聚焦多智能体系统架构设计,梳理 Supervisor、Swarm、分层和 Pipeline 等模式,覆盖角色定义、通信协作与性能评估,适合规划稳健可扩展的 AI agent 编排方案。

帮你系统解决多智能体应用的架构设计与协同编排难题,适合构建复杂 AI 工作流,成熟度高、社区认可也很亮眼。

AI 与智能体
未扫描24.9k

相关 MCP Server

知识图谱记忆

编辑精选

by Anthropic

热门

Memory 是一个基于本地知识图谱的持久化记忆系统,让 AI 记住长期上下文。

帮 AI 和智能体补上“记不住”的短板,用本地知识图谱沉淀长期上下文,连续对话更聪明,数据也更可控。

AI 与智能体
89.7k

顺序思维

编辑精选

by Anthropic

热门

Sequential Thinking 是让 AI 通过动态思维链解决复杂问题的参考服务器。

这个服务器展示了如何让 Claude 像人类一样逐步推理,适合开发者学习 MCP 的思维链实现。但注意它只是个参考示例,别指望直接用在生产环境里。

AI 与智能体
89.2k

by deusdata

热门

持久化的代码库知识图谱,可跨会话保留上下文,在 session 重启或上下文压缩后仍能继续使用。

专治 AI 编程助手“会话失忆”,把代码库沉淀为持久知识图谱,重启或压缩上下文后也能无缝续上开发状态。

AI 与智能体
37.3k

评论