Chord

v1.2.0
io.github.getchordlabs/chord Checked 2 days ago Published 1 month ago

Swap quotes + unsigned txs on 8 EVM chains, plus Solana data: boards, candles, wallet PnL.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

chord_chains Chains and capabilities

The chains Chord serves, with their native asset, anchors and which capabilities each one has (overview, tokens, trades, candles, wallet PnL, smart money, holders, LP, quote, swap). Call this first when unsure what a chain supports.

chord_status Chain status

Live health of every chain: routing engine state, how old the newest indexed trade is, and the public status page link.

chord_overview Chain overview (24h)

A chain's last 24 hours on the venues Chord indexes: volume, swaps, venue share, hourly buckets.

ParameterTypeDescription
chain *stringChain key. chord_chains lists what each chain supports.

chord_tokens Token board

The chain's 24h token board: price, volume, trades, change. Sort names differ by chain; a wrong one is answered with the allowed list.

ParameterTypeDescription
chain *stringChain key. chord_chains lists what each chain supports.
limitintegerRows to return (default 50).
sortstringBoard order, e.g. volume, trades, change.

chord_token Token details

One token on one chain: price, 24h volume and trades, pools or venues, and what the index knows about it.

ParameterTypeDescription
address *stringToken address: 0x… on EVM chains, the base58 mint on Solana (case-sensitive).
chain *stringChain key. chord_chains lists what each chain supports.

chord_trades Token trades

The newest swaps of a token, with side, size in USD, price, venue and the wallet where it is known.

ParameterTypeDescription
address *stringToken address: 0x… on EVM chains, the base58 mint on Solana (case-sensitive).
chain *stringChain key. chord_chains lists what each chain supports.
limitintegerRows to return (default 30).

chord_candles Token candles

OHLCV candles of a token from Chord's own index.

ParameterTypeDescription
address *stringToken address: 0x… on EVM chains, the base58 mint on Solana (case-sensitive).
chain *stringChain key. chord_chains lists what each chain supports.
limitintegerRows to return (default 200).
tfstringCandle size (default 1h).

chord_wallet Wallet PnL

A wallet's trading result on one chain: realised and open PnL per token. Windows differ by chain and are stated in the answer.

ParameterTypeDescription
chain *stringChain key. chord_chains lists what each chain supports.
wallet *stringWallet address: 0x… on EVM chains, base58 on Solana.

chord_wallet_trades Wallet trades

A wallet's recent swaps on one chain. Not every chain has this; chord_chains says which.

ParameterTypeDescription
chain *stringChain key. chord_chains lists what each chain supports.
wallet *stringWallet address: 0x… on EVM chains, base58 on Solana.

chord_smart_money Smart money board

Wallets ranked by profit on one chain, bots removed. Not every chain has this board.

ParameterTypeDescription
chain *stringChain key. chord_chains lists what each chain supports.
daysintegerWindow in days (default 7). Solana has 1, 3, 7; EVM boards have 1, 7, 30.
limitintegerRows to return (default 25).

chord_holders Token holders

Holder ledger of a token (balances by address) on the chains that keep one.

ParameterTypeDescription
address *stringToken address: 0x… on EVM chains, the base58 mint on Solana (case-sensitive).
chain *stringChain key. chord_chains lists what each chain supports.
limitintegerRows to return (default 25).

chord_lp_pools LP pools

Pools ranked for a liquidity provider: volume, fees, TVL, fee/TVL.

ParameterTypeDescription
chain *stringChain key. chord_chains lists what each chain supports.
limitintegerRows to return (default 25).

chord_lp_positions LP positions

A wallet's liquidity positions on one chain: range, value, fees, in or out of range.

ParameterTypeDescription
chain *stringChain key. chord_chains lists what each chain supports.
wallet *stringWallet address: 0x… on EVM chains, base58 on Solana.

chord_quote Swap quote

Best swap quote on an EVM chain. Chord's own router answers first; another aggregator only when Chord cannot route. Amounts are integer strings in the token's smallest unit; the zero address is the native asset. Returns a quoteId valid for 2 minutes.

ParameterTypeDescription
amount *stringInput amount in the smallest unit, digits only.
chain *stringEVM chain key. Solana swaps are REST only: GET /v1/sol/trade/quote.
tokenIn *stringToken address: 0x… on EVM chains, the base58 mint on Solana (case-sensitive).
tokenOut *stringToken address: 0x… on EVM chains, the base58 mint on Solana (case-sensitive).
slippageBpsintegerDefault 50.
takerstringOptional: the wallet that will sign. With it the answer includes the transaction and a simulation.

chord_swap_tx Build swap transaction

The UNSIGNED transaction for a swap, plus the approval it needs and a simulation run as the taker. Nothing is sent: the taker's own wallet signs and broadcasts. Pass a quoteId from chord_quote, or the full parameters.

ParameterTypeDescription
taker *stringThe wallet that signs and receives.
amountstring
chainstringEVM chain key. Solana swaps are REST only: GET /v1/sol/trade/quote.
quoteIdstring
slippageBpsinteger
tokenInstringToken address: 0x… on EVM chains, the base58 mint on Solana (case-sensitive).
tokenOutstringToken address: 0x… on EVM chains, the base58 mint on Solana (case-sensitive).

chord_ask Ask Chord

Ask Chord's analyst a question in plain language (markets, tokens, wallets, perps, macro). Uses many data sources and takes 10 to 60 seconds. Needs an API key.

ParameterTypeDescription
question *stringUp to 1,000 characters.
walletstringOptional: lets 'my PnL' resolve.