{
  "name": "pragma.trading",
  "version": "1.0.0",
  "description": "BTC derivatives signal engine. Flow analysis (funding, OI, liquidations) + Structure (trend, momentum, price action). Free + paid tiers via x402 USDC on Base.",
  "transport": "http",
  "url": "https://pragma.trading/api/v1/signals",
  "tools": [
    {
      "name": "get_signal",
      "description": "Get the current BTC signal — direction, conviction tier (NONE/FORMING/ACTIONABLE/CONFIRMED/MASTER), composite score, and price.",
      "endpoint": "https://pragma.trading/api/v1/signals/latest",
      "method": "GET",
      "parameters": {
        "asset": { "type": "string", "default": "BTC", "description": "Asset symbol" },
        "tf": { "type": "string", "default": "4H", "description": "Timeframe" }
      },
      "pricing": { "free": true }
    },
    {
      "name": "get_signal_pro",
      "description": "Get full signal with flow/structure breakdown, entry triggers, and fail reasons. Requires x402 payment ($0.25 USDC).",
      "endpoint": "https://pragma.trading/api/v1/signals/pro",
      "method": "GET",
      "pricing": { "amount": "250000", "asset": "USDC", "network": "base", "protocol": "x402" }
    },
    {
      "name": "get_signal_enterprise",
      "description": "Multi-timeframe signal (4H+1H+1D) with raw scores, all entry triggers, and 20-signal history. Requires x402 payment ($0.50 USDC).",
      "endpoint": "https://pragma.trading/api/v1/signals/enterprise",
      "method": "GET",
      "pricing": { "amount": "500000", "asset": "USDC", "network": "base", "protocol": "x402" }
    },
    {
      "name": "get_signal_history",
      "description": "Recent signal history with timestamps and outcomes.",
      "endpoint": "https://pragma.trading/api/v1/signals/history",
      "method": "GET",
      "parameters": {
        "asset": { "type": "string", "default": "BTC" },
        "limit": { "type": "number", "default": 20, "max": 100 }
      },
      "pricing": { "free": true }
    },
    {
      "name": "get_engine_status",
      "description": "Signal engine health, total signal count, tier breakdown, and pricing info.",
      "endpoint": "https://pragma.trading/api/v1/signals/status",
      "method": "GET",
      "pricing": { "free": true }
    }
  ],
  "affiliate": {
    "protocol": "pyrimid",
    "commission": "50%",
    "register": "https://pyrimid.ai/docs"
  }
}
