Home / Market / chord onchain trading

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.

skill★ 509060 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: chord-onchain-trading description: "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." category: blockchain risk: critical source: https://github.com/getchordlabs/chord/tree/main/skills/chord source_repo: getchordlabs/chord source_type: official date_added: "2026-10-16" author: Chord tags: [crypto, defi, dex, swap, evm, market-data] tools: [claude, codex, cursor, gemini] license: MIT license_source: https://github.com/getchordlabs/chord/blob/main/LICENSE

---

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

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 |

  1. Resolve tokens with GET /tokens?chain=ID (curated list with decimals). If a symbol has several candidates, show full addresses and ask.
  2. 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.
  3. Quote with GET /meta/quote?chain=ID&tokenIn=ADDR&tokenOut=ADDR&amount=RAW&slippageBps=50 without a wallet. amount is an integer in the input token's smallest unit; the zero address means the native gas token.
  4. 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 (or POST /meta/swap) to get the unsigned tx, the exact approval if one is needed, and a simulation from that wallet.
  5. 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

Limitations

Security & Safety Notes

Risk is critical because the skill prepares fund-moving transactions, even though it never signs or sends them.

Common Pitfalls