x402-tasignal / tree / README.md · raw (this view has old GitHub links rewritten for the mirror; raw is byte-exact)

TASignal: technical indicators, risk metrics, position sizing and backtests for crypto trading agents (x402 API + MCP)

One pay-per-call API for the chart work a trading agent does before it acts:

Not financial advice. Past performance does not guarantee future results. Indicators, risk metrics and backtests describe historical prices only. TASignal is read-only: it never trades, never holds funds and never asks for keys.

Routes and prices

Route Price Example
/v1/lite $0.005 ?symbol=BTC&timeframe=1h
/v1/risk $0.02 ?symbol=ETH&timeframe=4h&account_usd=10000&risk_pct=1&side=long
/v1/backtest $0.05 ?symbol=SOL&timeframe=4h&strategy=ema_cross&fast=20&slow=50
/v1/preview free (10/min/IP) ?symbol=BTC&timeframe=1h (bias, trend, regime only)

All paid routes accept POST with the same fields as JSON. Payment: x402 v2 (PAYMENT-SIGNATURE; USDC on Base, Polygon, Arbitrum One or Solana) or v1 (X-PAYMENT, Base), or a prepaid YourAITools credits key (Authorization: Bearer yatc_...). Bad input (400), unknown symbols (404) and upstream failures (503) are never charged.

Data and fail-closed behaviour

Candles come from Hyperliquid (candleSnapshot), with the dYdX v4 indexer as fallback; the source is named in every answer. If Hyperliquid fails, the answer says so in sources_failed and confidence drops. If no source answers: HTTP 503 upstream_unavailable, not charged. Only closed candles are used. An indicator that needs more history than is available is null with a note, never extrapolated.

stdio MCP paid mode

Set TASIGNAL_X402_PRIVATE_KEY (a Base wallet with a little USDC) and install the optional peers: npx -y -p @agentgate-builder/tasignal -p @x402/fetch -p @x402/evm -p viem tasignal. Spend guard: Base USDC only, max $0.05 per payment, only to the TASignal payTo.

Develop

npm test (offline mocks) · npm start (Node server) · wrangler deploy (Cloudflare Worker). MIT.


agentgate-source: code mirror on Cloudflare Pages. All repos