AlphaForgealphaforge.ai
API Reference

Build on the AlphaForge stack.

Every UI surface on this site hits the same public endpoints. Use them in your own bots, dashboards, or CI pipelines.

BASE_URL
https://alphaforge-ai-sigma.vercel.app
POST/api/signalGenerate a multi-agent crypto signal.
Request body
{
  "symbol": "SOL"
}
Example response
{
  "ok": true,
  "signal": {
    "symbol": "SOL",
    "verdict": "BUY",
    "conviction": 72,
    "thesis": "...",
    "entry": "...",
    "target": "...",
    "invalidation": "...",
    "horizon": "7d",
    "agents": [{ "name": "Momentum", "score": 74, "note": "..." }],
    "risks": ["..."]
  },
  "meta": { "latency_ms": 9447, "model": "MiMo V2.5 Pro" }
}
curl
curl -X POST \
  https://alphaforge-ai-sigma.vercel.app/api/signal \
  -H "content-type: application/json" \
  -d '{"symbol":"SOL"}'
GET/api/market?ids=BTC,ETH,SOLLive market snapshot from CoinGecko.
Example response
{
  "ok": true,
  "data": [
    {
      "symbol": "BTC",
      "price": 76969,
      "change_24h": -1.62,
      "change_7d": -4.62,
      "sparkline": [...]
    }
  ]
}
curl
curl \
  https://alphaforge-ai-sigma.vercel.app/api/market \
  
POST/api/backtestDeterministic equity-curve simulator.
Request body
{
  "symbol": "BTC",
  "strategy": "multi_agent",
  "capital": 10000,
  "days": 90
}
Example response
{
  "ok": true,
  "summary": {
    "total_return_pct": 46.7,
    "alpha_pct": 33.2,
    "sharpe": 2.41,
    "win_rate_pct": 66.0,
    "max_drawdown_pct": -8.4
  },
  "series": [{ "t": 0, "equity": 10000, ... }]
}
curl
curl -X POST \
  https://alphaforge-ai-sigma.vercel.app/api/backtest \
  -H "content-type: application/json" \
  -d '{"symbol":"BTC","strategy":"multi_agent","capital":10000,"days":90}'
POST/api/composePlain English → executable strategy JSON.
Request body
{
  "intent": "Buy SOL on RSI < 30, TP +5%, SL -3%"
}
Example response
{
  "ok": true,
  "strategy": {
    "name": "SOL RSI dip-buy",
    "symbol": "SOL",
    "trigger": { "description": "...", "conditions": ["..."] },
    "entry": { "type": "limit", "size_pct": 10, "max_slippage_bps": 50 },
    "exit": { "take_profit": "+5%", "stop_loss": "-3%", "max_hold_hours": 72 },
    "risk": { "max_position_pct": 20, "max_drawdown_pct": 10, "cooldown_min": 60 }
  }
}
curl
curl -X POST \
  https://alphaforge-ai-sigma.vercel.app/api/compose \
  -H "content-type: application/json" \
  -d '{"intent":"Buy SOL on RSI < 30, TP +5%, SL -3%"}'
POST/api/chatSSE streaming chat with the agent runtime.
Request body
{
  "messages": [
    {
      "role": "user",
      "content": "Explain multi-agent scoring"
    }
  ]
}
Example response
Server-Sent Events stream of OpenAI-compatible chunks.
curl
curl -X POST \
  https://alphaforge-ai-sigma.vercel.app/api/chat \
  -H "content-type: application/json" \
  -d '{"messages":[{"role":"user","content":"Explain multi-agent scoring"}]}'
Authentication

Public endpoints are open for the demo deployment with light per-IP rate limiting. For production usage, generate a token in your dashboard and send it as Authorization: Bearer <token>.