network: devnet

Crypto Regime API

Is the crypto market in an uptrend or a downtrend, and which tokens are calm right now? Updated every hour. Built for AI agents: pay per call in USDC on Solana, no account and no API key.

Endpoints

RequestPriceReturns
GET /v1/regime$0.01BTC vs its 50/100/200-day averages, risk-on/off, days since the last flip, BTC volatility and drawdown
GET /v1/tokens$0.02Every token ranked calmest first: volatility, returns, trend, drawdown, volume, plus the regime
GET /v1/token/SOL$0.01One token's risk snapshot
GET /v1/preview/regimefreeYesterday's regime label
GET /healthfreeData freshness

Tokens: BTC, ETH, SOL, JUP, RAY, PYTH, JTO, WIF, BONK, ORCA, RENDER, HNT, W, PENGU.

How paying works (x402)

  1. Call a paid endpoint. It answers 402 Payment Required with the price and a Solana address.
  2. Your x402 client signs a USDC transfer and repeats the request with it attached.
  3. The data comes back and the payment settles. If the data is stale or the request fails, the payment is not settled.
pip install "x402[httpx,svm]"

from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.svm.exact import ExactSvmScheme
from x402.mechanisms.svm.signers import KeypairSigner

client = x402Client()
client.register("solana:*", ExactSvmScheme(KeypairSigner(your_keypair)))
async with x402HttpxClient(client) as http:
    r = await http.get("https://crypto-regime-api.onrender.com/v1/regime")
    print(r.json())

Machine-readable: /openapi.json ยท /llms.txt

Method

Closed Binance spot bars (USDT pairs, UTC). Trend = daily close vs simple moving averages. Volatility = standard deviation of hourly log returns, annualized. Nothing here is a forecast: it describes the market as it is, using textbook definitions.