Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man token-volatility

/token-volatility

agentutility / edge-market / token-volatility
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarket
CATEGORY
uncategorized
STATUS
live
NAME
token-volatility computes historical volatility for any coingecko-listed token: log-return standard deviation over the last n days (default 30), annualize…
SYNOPSIS
POST https://x402.agentutility.ai/token-volatility
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Computes historical volatility for any CoinGecko-listed token: log-return standard deviation over the last N days (default 30), annualized by sqrt(365). Returns daily and annualized volatility as percent, count of return observations, and first and last close prices. Backed by CoinGecko's free public market_chart endpoint. Use it as an annualized vol calculator, standard-deviation-of-returns tool, or crypto vol calculator.

INPUTrequest schema
propertytypedescriptionreq?
coingecko_idstringCoinGecko coin id (e.g. 'ethereum', 'bitcoin', 'solana'). Lower-case slug, not the symbol.required
daysnumberLookback window in days. Range [7, 365]. Default 30.optional
OUTPUTresponse shape
fieldtypedescription
coingecko_idstringCoinGecko ID of the token whose volatility was computed (e.g. bitcoin, ethereum).
daysstringLookback window in days used for the return series (default 30).
returns_countstringNumber of daily log-return observations included in the standard deviation calculation.
daily_volatility_pctstringStandard deviation of daily log returns over the window, expressed as a percent.
annualized_volatility_pctstringDaily volatility scaled by sqrt(365), expressed as an annualized percent.
first_price_usdstringClosing USD price at the start of the lookback window.
last_price_usdstringClosing USD price at the end of the lookback window.
sourcestringUpstream data provider for the price series (CoinGecko market_chart).
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/token-volatility \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the token-volatility tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
edge-marketcryptovolatilityhistorical-volatilityannualized-volatilitycoingeckoprice-analyticstoken-volatility
methods
POST
cluster
edgemarket
price
$0.005 USDC per call
ADJACENTother endpoints in edgemarket
endpointdescriptionprice
agent-card-resolveResolves an ERC-8004 agentId to its on-chain owner, agentURI, and agent card JSON.$0.005
arbitrage-spreadFinds the cross-exchange arbitrage spread for any CoinGecko-listed coin.$0.005
basename-resolveResolves Coinbase Basenames (.base.eth) to Ethereum addresses and back, reading the Base mainnet L2 Resolver on-chain (no gas, no wallet).$0.005
cid-fetchFetches the content behind an IPFS CID and optional path through public gateways, returning text, JSON, or base64 with a 5 MB cap.$0.005
current-balanceReads a wallet's current ERC-20 token balance with a read-only balanceOf call on Base, Ethereum, Arbitrum, Optimism, Polygon, BSC, or Ava…$0.005
defi-yield-poolsFilters and ranks thousands of DeFi yield-bearing pools by APY across every chain DeFiLlama tracks.$0.005
erc20-balanceReads an ERC-20 token balance on-chain across any supported EVM chain, including Base, Ethereum, Arbitrum, Optimism, and Polygon.$0.005
erc20-metadataReads ERC-20 token metadata: name(), symbol(), decimals(), and totalSupply() in parallel via public RPC on Base, Ethereum, Arbitrum, Opti…$0.005
SEE ALSO
agentutility · edgemarket · x402 · mcp · llms.txt · registry.json · bazaar.x402.org