chord-onchain-trading
Read DEX market data and prepare best-route swap quotes and unsigned swap transactions on eight EVM chains with the Chord API. Never signs or moves funds.
от sickn33★ 50 670 звёзд на GitHub
Установить chord-onchain-trading в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Chord: On-chain Market Data and Swap Preparation
Overview
Chord (https://getchord.xyz) indexes DEX swaps on Ethereum, Base, Arbitrum One, BNB Chain, Avalanche, Monad, Robinhood Chain and Arc, prices tokens from those trades, and routes a swap across the DEXs of a chain through one router contract. This skill reads that data and prepares swaps as unsigned transactions for the user's own wallet. Adapted from the MIT chord skill in getchordlabs/chord; this edition is self-contained (no helper script, no API key, no Chord Ask).
When to Use This Skill
- The user asks for a token price, chart (OHLCV), the most traded tokens, or chain and DEX volume on one of the eight chains.
- The user wants a swap quote or route ("how much USDC for 0.5 ETH on Base?").
- The user wants an unsigned swap transaction to sign in their own wallet, after reviewing the quote.
- Do not use it for other chains, transfers, bridging, perps, limit orders or exchange accounts.
How It Works
Base URL https://api.getchord.xyz/v1, REST and JSON, no key (about 60 requests a minute per IP). Reference: https://getchord.xyz/docs and https://getchord.xyz/docs/openapi.json. A hosted MCP server with the same data exists at https://api.getchord.xyz/v1/mcp; if its chord_* tools are already connected, the same rules apply to them. Do not install software or change the host configuration to use this skill.
| Chain | id | key |
|---|---|---|
| Ethereum | 1 | ethereum |
| Base | 8453 | base |
| Arbitrum One | 42161 | arbitrum |
| BNB Chain | 56 | bnb |
| Avalanche | 43114 | avalanche |
| Monad | 143 | monad |
| Robinhood Chain | 4663 | robinhood |
| Arc | 5042 | arc |
- Resolve tokens with
GET /tokens?chain=ID(curated list with decimals). If a symbol has several candidates, show full addresses and ask. - Read data:
GET /chains(what each chain supports),GET /chains/{key}/tokens?limit=10(most traded, for 1, 8453, 42161, 56, 43114),GET /candles?chain=ID&token=ADDR&tf=1h&limit=168. - Quote with
GET /meta/quote?chain=ID&tokenIn=ADDR&tokenOut=ADDR&amount=RAW&slippageBps=50without a wallet.amountis an integer in the input token's smallest unit; the zero address means the native gas token. - Show a summary and stop (see Security & Safety Notes). Only after the user confirms in a later message, call the same quote with
taker=WALLET(orPOST /meta/swap) to get the unsignedtx, the exactapprovalif one is needed, and asimulationfrom that wallet. - Hand the unsigned transaction to the user's wallet. Say it is unsigned and not sent.
Examples
Read-only quote, 0.01 ETH to USDC on Base:
curl -s "https://api.getchord.xyz/v1/meta/quote?chain=8453&tokenIn=0x0000000000000000000000000000000000000000&tokenOut=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&amount=10000000000000000&slippageBps=50"
The answer names provider (chord when Chord's router answered, a third-party aggregator only when Chord's router failed, with fallbackReason), amountOut and minAmountOut in smallest units after fees, priceImpactPct, valueLossPct, feeBps and route.venues.
Most traded tokens on Arbitrum in the last 24 hours:
curl -s "https://api.getchord.xyz/v1/chains/arbitrum/tokens?limit=10"
Best Practices
- Numbers come only from calls made in this conversation; name the chain (name and id), the source and the time with every figure.
- Read decimals from the API; never assume 18 (USDC has 6; USDT and USDC on BNB Chain have 18).
- Show full addresses wherever money may move and compare every character (address poisoning).
- Flag a major (USDC, USDT, WETH) at a non-canonical address, bridged versus native variants (USDC vs USDC.e or USDbC), and look-alike tickers.
- Analysis is not advice: describe what the data shows, never recommend a trade or promise returns.
Limitations
- Eight EVM chains only; Solana data exists in the API but Solana swaps are not open to keys yet.
- No transfers, bridging, deposits, perps, leverage, limit or stop orders, or exchange accounts.
- A Chord price is the last trade on the token's main venue, not an exchange quote;
staleor a largestaleSecon a chain's status means figures may lag. - Taxed tokens are refused (
422 TAXED_TOKEN); an empty route means no pool can fill the size. - Rate limit about 60 requests a minute per IP; retry a failed call at most once.
Security & Safety Notes
Risk is critical because the skill prepares fund-moving transactions, even though it never signs or sends them.
- Never sign or broadcast anything. Never ask for, accept or store a private key or seed phrase.
- Every swap needs an explicit confirmation in a later message. First message: action, chain, amounts with full token addresses, minimum received, price impact and value loss, provider, fee, route, the router address that will be the transaction
toand approval spender, and the wallet. Then ask the user to reply confirm or cancel, and stop.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
claude - 02
codex - 03
cursor - 04
gemini
FAQ
Что делает скилл chord-onchain-trading?
Read DEX market data and prepare best-route swap quotes and unsigned swap transactions on eight EVM chains with the Chord API. Never signs or moves funds.
Как установить скилл chord-onchain-trading?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл chord-onchain-trading запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…