{"_id":"prism-finance-os","_rev":"2-31f44e99b1403b08fc8d912ad530732f","name":"prism-finance-os","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"prism-finance-os","version":"0.1.0","keywords":["ai-agent","finance-api","crypto-api","defi-sdk","trading-bot","autonomous-agent","openclaw","cursor-ai","claude","chatgpt","copilot","vibe-coding","financial-data","stock-api","forex-api","prediction-markets","polymarket","macro-data","cross-asset","unified-api","prism","canonical-id","mcp","agent-tools","devtools"],"author":{"name":"Strykr AI","email":"assistant@strykr.ai"},"license":"MIT","_id":"prism-finance-os@0.1.0","maintainers":[{"name":"strykrai","email":"assistant@strykr.ai"}],"homepage":"https://api.prismapi.ai","bugs":{"url":"https://github.com/Strykr-Prism/PRISM-OS-SDK/issues"},"dist":{"shasum":"bd53cb85324cc0922f2ff66072fc3ae683c3075e","tarball":"https://registry.npmjs.org/prism-finance-os/-/prism-finance-os-0.1.0.tgz","fileCount":60,"integrity":"sha512-sEwktMLv2AOyRslIvD8cVauLni8rbaM0FVTghsMN9vrOyfF7veK/iwLinNWqn8+wvffgdP6E3p/siQq1SEO+ow==","signatures":[{"sig":"MEQCID5ZiQKD92S92iY1f8OdqmY9Znan/DEt8IjCfEYzaHmqAiAWGTDXxobN0S0EeNoCtGksAgAEhhPWoVUtAETd94tv8w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":328007},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.js"}},"funding":{"url":"https://github.com/sponsors/Strykr-Prism","type":"github"},"gitHead":"9e86a276ab8c3b73526fa8a8a8216e89af062e9d","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","example":"ts-node examples/yield-optimizer-agent.ts"},"_npmUser":{"name":"strykrai","email":"assistant@strykr.ai"},"repository":{"url":"git+https://github.com/Strykr-Prism/PRISM-OS-SDK.git","type":"git"},"_npmVersion":"11.8.0","description":"Financial Operating System for AI Agents. 218+ endpoints for crypto, DeFi, stocks, forex, macro, predictions. Built for Cursor, Claude, OpenClaw, ChatGPT & autonomous agents. Vibe-coding ready. One SDK, all financial data.","directories":{},"_nodeVersion":"25.5.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","ts-jest":"^29.0.0","ts-node":"^10.9.0","typescript":"^5.3.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"peerDependencies":{"typescript":">=5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/prism-finance-os_0.1.0_1771494504035_0.290299223671487","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"prism-finance-os","version":"0.1.1","description":"Financial Operating System for AI Agents. 218+ endpoints for crypto, DeFi, stocks, forex, macro, predictions. Built for Cursor, Claude, OpenClaw, ChatGPT & autonomous agents. Vibe-coding ready. One SDK, all financial data.","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","exports":{".":{"import":"./dist/index.esm.js","require":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"tsc","dev":"tsc --watch","test":"jest","example":"ts-node examples/yield-optimizer-agent.ts","lint":"eslint src/**/*.ts"},"keywords":["ai-agent","finance-api","crypto-api","defi-sdk","trading-bot","autonomous-agent","openclaw","cursor-ai","claude","chatgpt","copilot","vibe-coding","financial-data","stock-api","forex-api","prediction-markets","polymarket","macro-data","cross-asset","unified-api","prism","canonical-id","mcp","agent-tools","devtools"],"author":{"name":"Strykr AI","email":"assistant@strykr.ai"},"license":"MIT","homepage":"https://api.prismapi.ai","repository":{"type":"git","url":"git+https://github.com/Strykr-Prism/PRISM-OS-SDK.git"},"bugs":{"url":"https://github.com/Strykr-Prism/PRISM-OS-SDK/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/Strykr-Prism"},"dependencies":{},"devDependencies":{"typescript":"^5.3.0","ts-node":"^10.9.0","@types/node":"^20.0.0","jest":"^29.0.0","@types/jest":"^29.0.0","ts-jest":"^29.0.0"},"peerDependencies":{"typescript":">=5.0.0"},"engines":{"node":">=18.0.0"},"gitHead":"04563a9cea401b842b73e37ff3bef3d40373ee12","_id":"prism-finance-os@0.1.1","_nodeVersion":"25.5.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-lsuILIgWwH7Sj9ABjKmaRdgUv6ZWmgR2i7TMM/5kcEztrdX1ggftg6H7z0JV5udStVrqltTVBWQayfLuWp1wUw==","shasum":"c811f145b702d8c6a9d17b2ca0eb12e450695573","tarball":"https://registry.npmjs.org/prism-finance-os/-/prism-finance-os-0.1.1.tgz","fileCount":61,"unpackedSize":328326,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIC4drtTG/lp/F8plM0CnKQCQ5Y0/gFaYV201+lwaN3y0AiEA+aN5F3AvoUlPVFYCxtAhzo5Nbz78+0KoCOdCsfLhHf0="}]},"_npmUser":{"name":"strykrai","email":"assistant@strykr.ai"},"directories":{},"maintainers":[{"name":"strykrai","email":"assistant@strykr.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/prism-finance-os_0.1.1_1771495550059_0.16529192631736533"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-19T09:48:23.954Z","modified":"2026-02-19T10:05:50.318Z","0.1.0":"2026-02-19T09:48:24.171Z","0.1.1":"2026-02-19T10:05:50.202Z"},"bugs":{"url":"https://github.com/Strykr-Prism/PRISM-OS-SDK/issues"},"author":{"name":"Strykr AI","email":"assistant@strykr.ai"},"license":"MIT","homepage":"https://api.prismapi.ai","keywords":["ai-agent","finance-api","crypto-api","defi-sdk","trading-bot","autonomous-agent","openclaw","cursor-ai","claude","chatgpt","copilot","vibe-coding","financial-data","stock-api","forex-api","prediction-markets","polymarket","macro-data","cross-asset","unified-api","prism","canonical-id","mcp","agent-tools","devtools"],"repository":{"type":"git","url":"git+https://github.com/Strykr-Prism/PRISM-OS-SDK.git"},"description":"Financial Operating System for AI Agents. 218+ endpoints for crypto, DeFi, stocks, forex, macro, predictions. Built for Cursor, Claude, OpenClaw, ChatGPT & autonomous agents. Vibe-coding ready. One SDK, all financial data.","maintainers":[{"name":"strykrai","email":"assistant@strykr.ai"}],"readme":"# PRISM Finance OS\n\n> **The Financial Operating System for AI Agents, Cursor, Claude, ChatGPT & Autonomous Trading Bots**\n\n[![npm version](https://img.shields.io/npm/v/prism-finance-os.svg)](https://www.npmjs.com/package/prism-finance-os)\n[![npm downloads](https://img.shields.io/npm/dm/prism-finance-os.svg)](https://www.npmjs.com/package/prism-finance-os)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n**One SDK. All financial data. 218+ endpoints.**\n\nBuilt for the vibe-coding era. Drop-in financial intelligence for any AI agent — Cursor, Claude, OpenClaw, ChatGPT, Copilot, or your custom autonomous trading bot.\n\n## Why PRISM Finance OS?\n\n| Problem | PRISM Solution |\n|---------|---------------|\n| Fragmented APIs | **One unified SDK** — crypto, stocks, DeFi, forex, macro, predictions |\n| No canonical IDs | **Chronicle ID** — resolve any ticker/contract to single source of truth |\n| Agent-unfriendly data | **Context injection** — get everything an AI needs in one call |\n| Expensive data | **Free tier + affordable plans** — 70% of data sources are free |\n\n## Installation\n\n```bash\nnpm install prism-finance-os\n```\n\n## Quick Start (30 seconds)\n\n```typescript\nimport PrismOS from 'prism-finance-os';\n\nconst prism = new PrismOS({ apiKey: 'your-api-key' });\n\n// Get crypto price\nconst btc = await prism.crypto.getConsensusPrice('BTC');\n\n// Get stock fundamentals\nconst aapl = await prism.stocks.getFundamentals('AAPL');\n\n// Get DeFi yields\nconst yields = await prism.defi.getTopYields({ minTvl: 1_000_000 });\n\n// Get prediction markets\nconst markets = await prism.predictions.getTrending();\n```\n\n## 24 Modules, 218+ Endpoints\n\n| Module | Methods | What It Does |\n|--------|---------|-------------|\n| **Resolution** | 17 | Canonical ID resolution — the core of PRISM |\n| **Crypto** | 26 | Prices, trending, market cap, NVT valuation |\n| **DeFi** | 17 | Protocols, TVL, yields, stablecoins, bridges |\n| **Onchain** | 9 | Whale movements, exchange flows, supply |\n| **Stocks** | 20 | Quotes, fundamentals, earnings, DCF |\n| **ETFs** | 3 | Holdings, sector weights |\n| **Forex** | 2 | Live quotes |\n| **Commodities** | 2 | Gold, oil, metals |\n| **Macro** | 11 | Fed rate, inflation, GDP, treasury yields |\n| **Historical** | 6 | OHLCV, returns, volatility |\n| **News** | 3 | Crypto + stock news with sentiment |\n| **Calendar** | 3 | Earnings, economic events |\n| **Technicals** | 8 | RSI, MACD, MAs, support/resistance |\n| **Signals** | 5 | Momentum, breakouts, divergence |\n| **Risk** | 3 | VaR, Sharpe, portfolio risk |\n| **Order Book** | 4 | Depth, spread, imbalance |\n| **Trades** | 2 | Recent and large trades |\n| **Social** | 5 | Sentiment, mentions, GitHub activity |\n| **Analysis** | 7 | Fork/copycat/rebrand detection |\n| **Predictions** | 10 | Polymarket, Kalshi, Manifold |\n| **Sports** | 7 | Events, live scores |\n| **Odds** | 5 | Arbitrage finder, odds history |\n| **Developer** | 8 | API keys, usage, health |\n| **Agent** | 3 | Context injection, endpoint discovery |\n\n## Use Cases\n\n### AI Trading Agent\n\n```typescript\n// Get all signals for a trading decision\nconst signals = await prism.signals.getAll('ETH');\nconst technicals = await prism.technicals.getAll('ETH');\nconst sentiment = await prism.social.getSentiment('ETH');\n\nif (signals.momentum > 0.7 && sentiment.score > 0.6) {\n  // Execute trade\n}\n```\n\n### DeFi Yield Scanner\n\n```typescript\nconst yields = await prism.defi.getTopYields({\n  minTvl: 1_000_000,\n  stablecoinOnly: true,\n  minApy: 5,\n});\n\n// Returns sorted by risk-adjusted yield\nfor (const pool of yields) {\n  console.log(`${pool.protocol}: ${pool.apy}% APY, $${pool.tvl} TVL`);\n}\n```\n\n### Cross-Asset Portfolio Analysis\n\n```typescript\nconst portfolio = ['BTC', 'ETH', 'AAPL', 'GLD', 'SPY'];\n\nconst risk = await prism.risk.getPortfolioRisk(portfolio);\nconst correlation = await prism.technicals.getCorrelation(portfolio);\n\nconsole.log(`Portfolio VaR: ${risk.var95}%`);\nconsole.log(`BTC-SPY Correlation: ${correlation['BTC-SPY']}`);\n```\n\n### Prediction Market Arbitrage\n\n```typescript\nconst arb = await prism.odds.getArbitrage();\n\nfor (const opp of arb.opportunities) {\n  console.log(`${opp.market}: ${opp.profit}% profit`);\n  console.log(`Buy ${opp.yes.platform} YES @ ${opp.yes.price}`);\n  console.log(`Buy ${opp.no.platform} NO @ ${opp.no.price}`);\n}\n```\n\n### Agent Context Injection (For AI Agents)\n\n```typescript\n// Get everything an AI agent needs about an asset in ONE call\nconst context = await prism.agent.getContext('ETH');\n// Returns: price, fundamentals, technicals, news, sentiment, signals\n\n// Discover relevant endpoints for a task\nconst endpoints = await prism.agent.discoverEndpoints('find high yield stablecoin pools');\n// Returns: prism.defi.getTopYields, prism.defi.getStablecoins, etc.\n```\n\n## Works With Everything\n\n- ✅ **Cursor** — drop into any Cursor project\n- ✅ **Claude** — use with Claude's tool calling\n- ✅ **OpenClaw / Clawdbot** — native integration\n- ✅ **ChatGPT** — GPT function calling compatible\n- ✅ **Copilot** — works in any VS Code setup\n- ✅ **LangChain** — use as a LangChain tool\n- ✅ **AutoGPT / AgentGPT** — plug into any agent framework\n- ✅ **Custom agents** — simple REST API under the hood\n\n## Configuration\n\n```typescript\nconst prism = new PrismOS({\n  apiKey: 'your-api-key',          // Get from api.prismapi.ai\n  baseUrl: 'https://api.prismapi.ai', // default\n  timeout: 10_000,                    // ms, default\n});\n```\n\n## Get Your API Key\n\n1. Go to [api.prismapi.ai](https://api.prismapi.ai)\n2. Sign up (free tier available)\n3. Copy your API key\n4. Start building\n\n## Pricing\n\n| Tier | Price | Calls/mo | Rate Limit |\n|------|-------|----------|------------|\n| **Free** | $0 | 5,000 | 10/min |\n| **Hobby** | $9/mo | 25,000 | 20/min |\n| **Dev** | $29/mo | 100,000 | 60/min |\n| **Pro** | $99/mo | 500,000 | 120/min |\n\n## Links\n\n- 📚 [API Documentation](https://api.prismapi.ai/docs)\n- 💬 [Discord](https://discord.gg/strykr)\n- 🐦 [Twitter](https://twitter.com/strykrai)\n- 🐙 [GitHub](https://github.com/Strykr-Prism/PRISM-OS-SDK)\n\n## License\n\nMIT — use it however you want.\n\n---\n\n**Built by [Strykr AI](https://strykr.ai)** — Market Intelligence for the Agentic Era.\n","readmeFilename":"README.md"}