{"openapi":"3.1.0","info":{"title":"crypto-technicals-x402","version":"1.0.0","description":"Pay-per-call crypto technical analysis for AI agents (x402, USDC on Base). Daily trend regime, Donchian levels, ATR stops, signals and backtests computed with the code of a live trend-following bot from Binance spot klines.","contact":{"url":"https://github.com/ETwithin/x402-crypto-technicals"},"x-guidance":"Pay per call with any x402 v2 client (USDC on Base, network eip155:8453). Symbols are Binance spot USDT pairs such as BTCUSDT. Start with GET /v1/scan for a market overview, then GET /v1/regime/{symbol} for one pair; POST /v1/backtest to evaluate a strategy before acting. All responses are JSON; 402 means pay and retry the same request."},"servers":[{"url":"https://vmi3089643.contaboserver.net"}],"paths":{"/":{"get":{"summary":"Index: endpoints, prices, how to pay (free)","security":[],"responses":{"200":{"description":"JSON index"}}}},"/health":{"get":{"summary":"Health (free)","security":[],"responses":{"200":{"description":"ok"}}}},"/v1/strategies":{"get":{"summary":"Backtestable strategies and their default parameters (free)","security":[],"responses":{"200":{"description":"map of strategy -> {interval, defaults}"}}}},"/v1/regime/{symbol}":{"get":{"summary":"Daily trend regime, Donchian levels, ATR stop and signal","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string","example":"BTCUSDT"},"description":"Binance spot USDT pair"}],"responses":{"200":{"description":"regime object"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/levels/{symbol}":{"get":{"summary":"Same as regime with custom parameters","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string","example":"BTCUSDT"},"description":"Binance spot USDT pair"},{"name":"entryLen","in":"query","schema":{"type":"number"}},{"name":"exitLen","in":"query","schema":{"type":"number"}},{"name":"trendLen","in":"query","schema":{"type":"number"}},{"name":"atrLen","in":"query","schema":{"type":"number"}},{"name":"slAtr","in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"regime object"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.003"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/scan":{"get":{"summary":"Regime + signal table for up to 25 USDT pairs and the BTC>SMA200 gate","parameters":[{"name":"symbols","in":"query","schema":{"type":"string","example":"BTCUSDT,ETHUSDT,SOLUSDT"}}],"responses":{"200":{"description":"table"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/preview":{"get":{"summary":"Rounded BTC regime preview (free, 30/hour)","security":[],"responses":{"200":{"description":"preview"}}}},"/v1/size":{"post":{"summary":"Risk-based position size calculator (free)","security":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["equity","entry","stop"],"properties":{"equity":{"type":"number"},"riskPct":{"type":"number"},"entry":{"type":"number"},"stop":{"type":"number"},"maxPct":{"type":"number"}}}}}},"responses":{"200":{"description":"notional, qty, risk"}}}},"/v1/funding/{symbol}":{"get":{"summary":"Perpetual futures: mark/index, funding, open interest, long/short ratio","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string","example":"BTCUSDT"},"description":"Binance spot USDT pair"}],"responses":{"200":{"description":"futures context"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/volatility/{symbol}":{"get":{"summary":"Volatility profile","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string","example":"BTCUSDT"},"description":"Binance spot USDT pair"}],"responses":{"200":{"description":"vol profile"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/book/{symbol}":{"get":{"summary":"Order-book snapshot","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string","example":"BTCUSDT"},"description":"Binance spot USDT pair"}],"responses":{"200":{"description":"book"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/brief/{symbol}":{"get":{"summary":"Plain-English technical brief + facts","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string","example":"BTCUSDT"},"description":"Binance spot USDT pair"}],"responses":{"200":{"description":"brief"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/correlation":{"get":{"summary":"Return correlation matrix","parameters":[{"name":"symbols","in":"query","schema":{"type":"string"}},{"name":"days","in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"matrix"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/ai/summarize":{"post":{"summary":"LLM summary of text or URL","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string"},"url":{"type":"string"},"maxWords":{"type":"number"},"style":{"type":"string"}}}}}},"responses":{"200":{"description":"summary"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/ai/extract":{"post":{"summary":"Structured extraction to JSON","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["fields"],"properties":{"text":{"type":"string"},"url":{"type":"string"},"fields":{"type":"object"}}}}}},"responses":{"200":{"description":"data"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.008"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/ai/classify":{"post":{"summary":"Text classification","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text","labels"],"properties":{"text":{"type":"string"},"labels":{"type":"array","items":{"type":"string"}}}}}}},"responses":{"200":{"description":"label"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.003"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/ai/translate":{"post":{"summary":"Translation","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text","to"],"properties":{"text":{"type":"string"},"to":{"type":"string"},"from":{"type":"string"}}}}}},"responses":{"200":{"description":"translation"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/ai/code-review":{"post":{"summary":"Code review (ranked findings)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["code"],"properties":{"code":{"type":"string"},"language":{"type":"string"},"focus":{"type":"string"}}}}}},"responses":{"200":{"description":"findings"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/ai/market-commentary":{"post":{"summary":"LLM market commentary from computed facts","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string"},"audience":{"type":"string"}}}}}},"responses":{"200":{"description":"commentary"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/portfolio":{"post":{"summary":"Portfolio-level backtest across up to 10 pairs","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["strategy"],"properties":{"strategy":{"type":"string"},"params":{"type":"object"},"universe":{"type":"array","items":{"type":"string"}},"maxPositions":{"type":"number"},"sizePct":{"type":"number"},"riskPct":{"type":"number"},"years":{"type":"number"},"regimeSma":{"type":"number"},"timeStopDays":{"type":"number"}}}}}},"responses":{"200":{"description":"portfolio stats"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/screenshot":{"get":{"summary":"PNG screenshot of a public web page","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri"}},{"name":"width","in":"query","schema":{"type":"number"}},{"name":"fullPage","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"image/png"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/fetch":{"get":{"summary":"Public web page as Markdown","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri"}}],"responses":{"200":{"description":"markdown + metadata"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/dns/{domain}":{"get":{"summary":"DNS records for a domain","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"records"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/email/verify":{"get":{"summary":"Email address verification","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"verification"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/price/{symbol}":{"get":{"summary":"Spot price and 24h stats","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string","example":"BTCUSDT"},"description":"Binance spot USDT pair"}],"responses":{"200":{"description":"ticker"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}},"/v1/backtest":{"post":{"summary":"Single-symbol strategy backtest (fees and slippage), up to 4 years","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["symbol","strategy"],"properties":{"symbol":{"type":"string","example":"BTCUSDT"},"strategy":{"type":"string","example":"donchian_daily"},"params":{"type":"object"},"years":{"type":"number","minimum":0.5,"maximum":4}}}}}},"responses":{"200":{"description":"stats + last trades"},"402":{"description":"Payment required (x402 v2): the PAYMENT-REQUIRED header carries the base64 payment requirements"}},"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"network":"eip155:8453","asset":"USDC","payTo":"0xbE1C87B71ed7Ed7c9b0855674b59706D85Fd8aEd","scheme":"exact","facilitator":"https://facilitator.payai.network"},"security":[]}}}}