74trust / 100

Chain Exchange Reserves

by Tanod chainpeek in Onchain & crypto

x402 APIPassing, checked 4 h ago

Use when an agent must judge selling pressure or check reserves before depositing: a coin's exchange inflow or outflow. chainpeek (Tanod) exchange reserves: how much of a coin sits on centralised exchanges and its 1, 7 and 30-day inflow or outflow, from cached DefiLlama data.

POST https://tanod.dev/v1/chain/exchange-reserves

Last 30 days

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

Uptime
100%
Response time
1.0 s typical, 1.1 s slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

POST https://tanod.dev/v1/chain/exchange-reserves

Each call costs $0.01 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://tanod.dev/v1/chain/exchange-reserves
content-type: application/json

{
  "asset": "BTC",
  "days": 3,
  "exchanges": [
    "okx",
    "bitfinex"
  ]
}

Parameters

ParameterTypeRequiredDescription
assetstringYesToken symbol held on exchanges, e.g. BTC, ETH, USDT, USDC (case-insensitive; matched exactly, so WBTC is not BTC).
daysintegerNoLength of the daily history of the total, in days (default 30, at most 90). Default: 30.
exchangesarray of string or nullNoExchange slugs or names to include, e.g. binance-cex, okx, bybit, kucoin (default: every tracked exchange, at most 20 names). Default: null.

Example response

The provider's example. We can't check it without paying.

Example response, 101 lines
{
  "as_of": "2026-10-11",
  "asset": "BTC",
  "cache_age_hours": 0,
  "cache_refreshed_at": "2026-10-11T22:48:42Z",
  "days": 3,
  "exchange_count": 2,
  "exchanges": [
    {
      "amount": 157892.88715,
      "as_of": "2026-10-11",
      "change": {
        "1d": {
          "amount": 37.80942,
          "pct": 0.024
        },
        "30d": {
          "amount": 9143.91377,
          "pct": 6.147
        },
        "7d": {
          "amount": 4803.74547,
          "pct": 3.138
        }
      },
      "direction_7d": "inflow",
      "exchange": "Bitfinex",
      "share_pct": 51.97,
      "slug": "bitfinex",
      "stale": false,
      "usd_value": 13195310963.64
    },
    {
      "amount": 145924.63864,
      "as_of": "2026-10-11",
      "change": {
        "1d": {
          "amount": 372.45472,
          "pct": 0.256
        },
        "30d": {
          "amount": 2433.25547,
          "pct": 1.696
        },
        "7d": {
          "amount": 3457.86836,
          "pct": 2.427
        }
      },
      "direction_7d": "inflow",
      "exchange": "OKX",
      "share_pct": 48.03,
      "slug": "okx",
      "stale": false,
      "usd_value": 12184838489.28
    }
  ],
  "history": [
    {
      "amount": 301262.89765,
      "date": "2026-10-09",
      "exchanges": 2,
      "usd_value": 24616388603.82
    },
    {
      "amount": 303407.26165,
      "date": "2026-10-10",
      "exchanges": 2,
      "usd_value": 25036746237.95
    },
    {
      "amount": 303817.52579,
      "date": "2026-10-11",
      "exchanges": 2,
      "usd_value": 25380149452.92
    }
  ],
  "not_found": [],
  "note": "The wallets are the exchanges' published or labelled wallets (proof-of-reserves lists and addresses DefiLlama has labelled), so a rise means coins moved into those wallets and a fall means they moved out. It does not show an exchange's full custody, off-chain or internal balances, or what the coins are used for. Token symbols are matched exactly: a wrapped token (WBTC, WETH) is a different asset from BTC or ETH. USD values use DefiLlama's price for that day. Daily snapshots; the newest day can be partial. Informational only, not investment advice.",
  "reason": null,
  "source": "Data: DefiLlama (used with permission), served from Tanod's cache, refreshed every few hours",
  "totals": {
    "amount": 303817.52579,
    "change": {
      "1d": {
        "amount": 410.26414,
        "pct": 0.135
      },
      "30d": {
        "amount": 11577.16924,
        "pct": 3.962
      },
      "7d": {
        "amount": 8261.61383,
        "pct": 2.795
      }
    },
    "direction_7d": "inflow",
    "usd_value": 25380149452.92
  }
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://tanod.dev/v1/chain/exchange-reserves' \
  -H 'content-type: application/json' \
  --data-raw '{"asset":"BTC","days":3,"exchanges":["okx","bitfinex"]}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://tanod.dev/v1/chain/exchange-reserves' \
  -H 'content-type: application/json' \
  --data-raw '{"asset":"BTC","days":3,"exchanges":["okx","bitfinex"]}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Fchain%2Fexchange-reserves&method=POST
const res = await pay("https://tanod.dev/v1/chain/exchange-reserves", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "asset": "BTC",
    "days": 3,
    "exchanges": [
      "okx",
      "bitfinex"
    ]
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
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

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://tanod.dev/v1/chain/exchange-reserves",
        json={
            "asset": "BTC",
            "days": 3,
            "exchanges": [
                "okx",
                "bitfinex",
            ],
        },
    )
    print(res.status_code, res.text)

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed4021.0 s$0.01
8 h agoPassed402374 ms$0.01
11 h agoPassed4021.1 s$0.01
15 h agoPassed4021.0 s$0.01
19 h agoPassed4021.0 s$0.01
23 h agoPassed4021.1 s$0.01
27 h agoPassed402895 ms$0.01
31 h agoPassed402496 ms$0.01
34 h agoPassed4021.1 s$0.01
38 h agoPassed4021.0 s$0.01
41 h agoPassed4021.0 s$0.01
45 h agoPassed402435 ms$0.01
2 days agoPassed4021.3 s$0.01
2 days agoPassed4021.1 s$0.01
2 days agoPassed4021.0 s$0.01