---
name: php186-skill-4537
description: "面向AI Agent 的金融数据 SDK，提供 218+ 只读接口，覆盖市场数据、价格与基本面。适配 Cursor、Claude、OpenClaw，仅用于数据获取。"
---

# PRISM OS SDK

## PRISM Finance OS

 

> **Financial Data SDK for AI Agents**

 

Read-only market data SDK. 218+ endpoints for prices, fundamentals, and analytics.

 

## Security Notes

 

- **Read-only API** — fetches public market data only
- **No wallet access** — does not interact with wallets or private keys
- **No trading execution** — execute modules are for quote simulation only, not live trades
- **Data only** — returns JSON market data for analysis
- **API key required** — set ` PRISM_API_KEY ` environment variable

 

## Quick Start

 

```
npm install prism-finance-os
```

 

```
import PrismOS from 'prism-finance-os';

const prism = new PrismOS({ apiKey: process.env.PRISM_API_KEY });

// Get crypto price
const btc = await prism.crypto.getConsensusPrice('BTC');

// Get stock fundamentals  
const aapl = await prism.stocks.getFundamentals('AAPL');

// Get DeFi protocol TVL
const tvl = await prism.defi.getProtocolTVL('aave');
```

 

## Required Environment Variable

 

```
export PRISM_API_KEY=your_api_key_here
```

 

Get your free API key at api.prismapi.ai

 

## Data Categories

 

| Category | Examples |
| --- | --- |
| Crypto Prices | BTC, ETH, SOL prices across exchanges |
| Stock Data | Fundamentals, earnings, financials |
| DeFi Analytics | Protocol TVL, yields, stablecoin supply |
| Macro Data | Fed rates, inflation, GDP (via FRED) |
| Technical Analysis | RSI, MACD, moving averages |
| News & Sentiment | Market news with sentiment scores |

 

## Links

 

- API Documentation
- GitHub Repository
- npm Package

 

## License

 

MIT License - see LICENSE
