{"openapi":"3.1.0","info":{"title":"Volvaira API","version":"0.1.0","description":"Wheel agents for stock tokens. Stakers collect the premium. Paper only: options are synthetic, premiums are modeled with Black-Scholes (r = 0) from the realized volatility of the Chainlink feed. No order is placed anywhere. Read-only except POST /api/rimtest (a replay) and POST /api/spinners (creates a paper spinner). No key."},"servers":[{"url":"https://volvaira.xyz"}],"paths":{"/health":{"get":{"summary":"Liveness","parameters":[],"responses":{"200":{"description":"JSON"}}}},"/api/feeds":{"get":{"summary":"Every stock-token Chainlink feed: price, roundId, updatedAt, 24/5 paused flag, 20-day realized vol","parameters":[],"responses":{"200":{"description":"JSON"}}}},"/api/history":{"get":{"summary":"Feed history (downsampled) for one symbol","parameters":[{"name":"symbol","in":"query","required":true,"schema":{"type":"string"},"description":"feed id, e.g. NVDA-247"},{"name":"days","in":"query","required":false,"schema":{"type":"string"},"description":"1–180, default 30"}],"responses":{"200":{"description":"JSON"}}}},"/api/rimtest":{"post":{"summary":"Rim test: replay wheel rules over real Chainlink rounds","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string"},"days":{"type":"integer","minimum":3,"maximum":180,"default":30},"end":{"type":"string","description":"ISO end time (default: last round, floored to the hour)"},"rules":{"type":"object","properties":{"putOtmPct":{"type":"number","minimum":0,"maximum":50,"default":5,"description":"Put strike, % below spot"},"callOtmPct":{"type":"number","minimum":0,"maximum":50,"default":5,"description":"Call strike, % above spot"},"tenorDays":{"type":"number","minimum":1,"maximum":60,"default":7,"description":"Tenor, days"},"sizeUsd":{"type":"number","minimum":100,"maximum":10000000,"default":10000,"description":"Size, notional USD (cash secured)"},"breakerPct":{"type":"number","minimum":1,"maximum":90,"default":20,"description":"Breaker, max drawdown %"},"volDays":{"type":"number","minimum":5,"maximum":120,"default":20,"description":"Volatility window, days"}}}}}}}},"responses":{"200":{"description":"equity curve vs hold vs cash, decisions with roundIds"},"400":{"description":"invalid input"}}}},"/api/spinners":{"get":{"summary":"House spinners (add ?all=1 for paper spinners too)","responses":{"200":{"description":"JSON"}}},"post":{"summary":"Launch a paper spinner (no login, rate-limited)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string"},"name":{"type":"string"},"rules":{"type":"object","properties":{"putOtmPct":{"type":"number","minimum":0,"maximum":50,"default":5,"description":"Put strike, % below spot"},"callOtmPct":{"type":"number","minimum":0,"maximum":50,"default":5,"description":"Call strike, % above spot"},"tenorDays":{"type":"number","minimum":1,"maximum":60,"default":7,"description":"Tenor, days"},"sizeUsd":{"type":"number","minimum":100,"maximum":10000000,"default":10000,"description":"Size, notional USD (cash secured)"},"breakerPct":{"type":"number","minimum":1,"maximum":90,"default":20,"description":"Breaker, max drawdown %"},"volDays":{"type":"number","minimum":5,"maximum":120,"default":20,"description":"Volatility window, days"}}}}}}}},"responses":{"201":{"description":"created"},"429":{"description":"rate limited"}}}},"/api/spinners/{id}":{"get":{"summary":"One spinner","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"JSON"}}}},"/api/spinlog":{"get":{"summary":"Spin log, newest first","parameters":[{"name":"spinner","in":"query","required":false,"schema":{"type":"string"},"description":"spinner id; omit for all house spinners"},{"name":"limit","in":"query","required":false,"schema":{"type":"string"},"description":"1–500, default 50"},{"name":"before","in":"query","required":false,"schema":{"type":"string"},"description":"seq cursor"}],"responses":{"200":{"description":"JSON"}}}},"/api/compose":{"post":{"summary":"Describe your wheel: plain English (max 400 chars) → rules. A model (OpenRouter) fills the fields, the server validates and clamps them. 503 \"AI is off\" without a key; 20/hour per IP; daily cap.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","maxLength":400}}}}}},"responses":{"200":{"description":"symbol, rules, summary, unmapped, notes, model"},"503":{"description":"AI is off or daily limit reached"}}}},"/api/spinlog/reason":{"post":{"summary":"AI reason for one Spin log entry of a paper spinner, written from the logged numbers only (cached). House entries carry theirs inline.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["spinner","seq"],"properties":{"spinner":{"type":"string"},"seq":{"type":"integer"}}}}}},"responses":{"200":{"description":"reason, reasonModel"},"503":{"description":"AI is off or daily limit reached"}}}},"/api/ai":{"get":{"summary":"AI helper status: on/off, model, calls today, daily cap","parameters":[],"responses":{"200":{"description":"JSON"}}}},"/api/stake":{"get":{"summary":"VairaStake live numbers","parameters":[],"responses":{"200":{"description":"JSON"}}}},"/api/stake/{address}":{"get":{"summary":"A wallet's stake and earned ETH","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"JSON"}}}},"/api/stats":{"get":{"summary":"Summary counts","parameters":[],"responses":{"200":{"description":"JSON"}}}},"/dashboard.json":{"get":{"summary":"Every feature, with its proof","parameters":[],"responses":{"200":{"description":"JSON"}}}},"/proof.json":{"get":{"summary":"Addresses, feeds, latest decisions and how to check them","parameters":[],"responses":{"200":{"description":"JSON"}}}},"/llms.txt":{"get":{"summary":"Plain-text guide for agents","parameters":[],"responses":{"200":{"description":"JSON"}}}},"/.well-known/agent-card.json":{"get":{"summary":"A2A agent card","parameters":[],"responses":{"200":{"description":"JSON"}}}},"/mcp":{"post":{"summary":"MCP (streamable HTTP, read-only): feeds, rimtest, spinners, spinlog, stake, compose","responses":{"200":{"description":"MCP"}}}},"/mcp/volvaira-mcp.mjs":{"get":{"summary":"Single-file stdio MCP server (sha256 at /mcp/volvaira-mcp.mjs.sha256)","parameters":[],"responses":{"200":{"description":"JSON"}}}}}}