$ man token-volatility
/token-volatility(1)
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarketCATEGORY
uncategorized
STATUS
● live
NAME
token-volatility — token volatility / historical volatility / annualized vol / standard deviation of returns / crypto vol calculator
SYNOPSIS
POST https://x402.org/v1/token-volatility
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Token volatility / historical volatility / annualized vol / standard deviation of returns / crypto vol calculator. For any CoinGecko-listed token, computes log-return standard deviation over the last N days (default 30) and annualizes by sqrt(365). Returns daily and annualized volatility as percent, count of return observations, first and last close prices. Backed by CoinGecko's free public market_chart endpoint.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| coingecko_id | string | CoinGecko coin id (e.g. 'ethereum', 'bitcoin', 'solana'). Lower-case slug, not the symbol. | required |
| days | number | Lookback window in days. Range [7, 365]. Default 30. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| coingecko_id | string | CoinGecko ID of the token whose volatility was computed (e.g. bitcoin, ethereum). |
| days | string | Lookback window in days used for the return series (default 30). |
| returns_count | string | Number of daily log-return observations included in the standard deviation calculation. |
| daily_volatility_pct | string | Standard deviation of daily log returns over the window, expressed as a percent. |
| annualized_volatility_pct | string | Daily volatility scaled by sqrt(365), expressed as an annualized percent. |
| first_price_usd | string | Closing USD price at the start of the lookback window. |
| last_price_usd | string | Closing USD price at the end of the lookback window. |
| source | string | Upstream data provider for the price series (CoinGecko market_chart). |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/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 once claude mcp add x402 --command "npx x402-deployer-mcp" # then ask Claude Code: # "use the token-volatility tool to ..."
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
ADJACENT — other endpoints in edgemarket
| endpoint | description | price |
|---|---|---|
| agent-card-resolve | Agent card resolver / ERC-8004 Identity Registry lookup / Trustless Agents / agentId → owner + agentURI / A2A identity / agent.json fetch… | $0.005 |
| arbitrage-spread | Cross-exchange arbitrage spread / max-min price / CEX price dispersion / spread % calculator. | $0.005 |
| basename-resolve | Basename resolver / Coinbase Basenames / .base.eth lookup / Base name service / on-chain name resolution. | $0.005 |
| defi-yield-pools | DeFi yield pools / APY aggregator / yield-farming opportunities / DeFiLlama yields / cross-protocol APY ranking / stablecoin yields / LP… | $0.005 |
| ipfs-fetch | IPFS fetch / IPFS gateway / Web3 storage retrieval / NFT metadata fetcher / Filecoin gateway / decentralized content / pinned-content reader. | $0.005 |
| price-impact | Price-impact / slippage estimator / DEX swap size impact / size-keyed quote / depth simulation. | $0.005 |
| safe-multisig-status | Safe multisig status / Gnosis Safe info / Safe owners / Safe threshold / Safe pending queue / DAO treasury wallet / Safe wallet lookup. | $0.005 |
| stablecoin-monitor | Stablecoin monitor. | $0.005 |
SEE ALSO