[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HX8GQP9SFQBTSQMBMX998E":3,"skill-same:01M6HX8GQP9SFQBTSQMBMX998E":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":28,"publishedAt":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":6,"updatedAt":57,"install":58,"resources":71},"01M6HX8GQP9SFQBTSQMBMX998E","finnhub-stock-api",null,"Integrate with Finnhub Stock API for real-time and historical stock market data. Covers quote fetching, company profiles, and WebSocket streaming.","HKUDS\u002FAgentPilot","HKUDS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F118165258?v=4","01M6HW8VRNZP64G0P4MVJW2KKQ","✨Data Intelligence Lab@HKU✨","01M6HW8VWZVHBRHYH3T330PFWV",8029,"MIT","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fexamples\u002Fmy-daily-monitor\u002Fskills\u002Ffinnhub-stock-api\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],"api","stock","finnhub","finnhub stock api","streaming","data","websocket","real-time","integrate","Market","time","quote","with","profiles","market data","for","2026-11-10 10:12:30",false,"---\nname: finnhub-stock-api\ndescription: Integrate with Finnhub Stock API for real-time and historical stock market data. Covers quote fetching, company profiles, and WebSocket streaming.\n---\n\n# Finnhub Stock API Integration\n\nFinnhub provides free stock market data (REST + WebSocket). API key required (free tier: 60 calls\u002Fmin).\n\n- **Docs**: https:\u002F\u002Ffinnhub.io\u002Fdocs\u002Fapi\n- **Base URL**: `https:\u002F\u002Ffinnhub.io\u002Fapi\u002Fv1`\n- **Auth**: Query param `token=YOUR_API_KEY`\n- **Rate limit**: 60 requests\u002Fminute (free), 300\u002Fmin (premium)\n- **CORS**: Unknown (use server-side proxy)\n\n## Key Endpoints\n\n### 1. Stock Quote (Real-Time)\n\n```\nGET \u002Fquote?symbol=AAPL&token=API_KEY\n```\n\nResponse:\n```json\n{\n  \"c\": 178.72,     \u002F\u002F Current price\n  \"d\": 2.38,       \u002F\u002F Change (absolute)\n  \"dp\": 1.35,      \u002F\u002F Change percent\n  \"h\": 179.60,     \u002F\u002F High price of the day\n  \"l\": 175.10,     \u002F\u002F Low price of the day\n  \"o\": 176.15,     \u002F\u002F Open price\n  \"pc\": 176.34,    \u002F\u002F Previous close\n  \"t\": 1702569600  \u002F\u002F Timestamp\n}\n```\n\n### 2. Company Profile\n\n```\nGET \u002Fstock\u002Fprofile2?symbol=AAPL&token=API_KEY\n```\n\nResponse:\n```json\n{\n  \"country\": \"US\",\n  \"currency\": \"USD\",\n  \"exchange\": \"NASDAQ NMS - GLOBAL MARKET\",\n  \"name\": \"Apple Inc\",\n  \"ticker\": \"AAPL\",\n  \"ipo\": \"1980-12-12\",\n  \"marketCapitalization\": 2794000,\n  \"logo\": \"https:\u002F\u002Fstatic.finnhub.io\u002Flogo\u002F...\"\n}\n```\n\n### 3. Stock Candles (Historical)\n\n```\nGET \u002Fstock\u002Fcandle?symbol=AAPL&resolution=D&from=1609459200&to=1640995200&token=API_KEY\n```\n\n- `resolution`: 1, 5, 15, 30, 60, D, W, M\n- `from` \u002F `to`: UNIX timestamps\n\nResponse:\n```json\n{\n  \"c\": [130.21, 131.96, ...],  \u002F\u002F Close prices\n  \"h\": [131.74, 132.63, ...],  \u002F\u002F Highs\n  \"l\": [128.50, 130.23, ...],  \u002F\u002F Lows\n  \"o\": [130.92, 130.87, ...],  \u002F\u002F Opens\n  \"v\": [143301900, ...],       \u002F\u002F Volumes\n  \"t\": [1609459200, ...],      \u002F\u002F Timestamps\n  \"s\": \"ok\"                     \u002F\u002F Status\n}\n```\n\n### 4. Market News\n\n```\nGET \u002Fnews?category=general&token=API_KEY\n```\n\nCategories: `general`, `forex`, `crypto`, `merger`\n\n## Frontend Service Implementation\n\n```typescript\n\u002F\u002F src\u002Fservices\u002Fstock-market.ts\nimport { createCircuitBreaker } from '@\u002Futils\u002Fcircuit-breaker';\n\nexport interface StockQuote {\n  symbol: string;\n  name: string;\n  price: number | null;\n  change: number | null;\n  changePercent: number | null;\n  high: number | null;\n  low: number | null;\n  sparkline?: number[];\n}\n\nconst quoteBreaker = createCircuitBreaker\u003CStockQuote[]>({\n  name: 'StockQuotes',\n  cacheTtlMs: 30_000,\n});\n\nconst DEFAULT_SYMBOLS = ['AAPL', 'MSFT', 'GOOGL', 'AMZN', 'TSLA', 'NVDA', 'META'];\n\nexport async function fetchStockQuotes(symbols = DEFAULT_SYMBOLS): Promise\u003CStockQuote[]> {\n  return quoteBreaker.execute(async () => {\n    const resp = await fetch(`\u002Fapi\u002Fstocks?symbols=${symbols.join(',')}`);\n    if (!resp.ok) throw new Error(`HTTP ${resp.status}`);\n    const data = await resp.json();\n    return data.quotes.map((q: any) => ({\n      symbol: q.symbol,\n      name: q.name || q.symbol,\n      price: q.price ?? q.c ?? null,\n      change: q.change ?? q.d ?? null,\n      changePercent: q.changePercent ?? q.dp ?? null,\n      high: q.high ?? q.h ?? null,\n      low: q.low ?? q.l ?? null,\n    }));\n  }, []);\n}\n```\n\n## Alternative APIs (from public-apis)\n\nIf Finnhub rate limits are a concern, these alternatives are available:\n\n| API | Free Tier | Notes |\n|-----|-----------|-------|\n| **Alpha Vantage** | 25 req\u002Fday (free) | `https:\u002F\u002Fwww.alphavantage.co\u002F` |\n| **Twelve Data** | 800 req\u002Fday | `https:\u002F\u002Ftwelvedata.com\u002F` |\n| **Financial Modeling Prep** | 250 req\u002Fday | `https:\u002F\u002Ffinancialmodelingprep.com\u002F` |\n| **Yahoo Finance** (via RapidAPI) | Varies | `https:\u002F\u002Fwww.yahoofinanceapi.com\u002F` |\n| **Polygon** | 5 req\u002Fmin (free) | `https:\u002F\u002Fpolygon.io\u002F` |\n| **IEX Cloud** | 50k credits\u002Fmonth | `https:\u002F\u002Fiexcloud.io\u002F` |\n| **Marketstack** | 100 req\u002Fmonth | `https:\u002F\u002Fmarketstack.com\u002F` |\n\n## Server-Side Proxy\n\nThe frontend should **never** call Finnhub directly. Use the API proxy pattern (see `api-proxy-endpoint` skill) to:\n1. Hide the API key\n2. Batch multiple symbol requests\n3. Add edge caching (30s `Cache-Control`)\n4. Handle rate limit errors gracefully (return cached data)\n\n","# Finnhub Stock API Integration\n\nFinnhub provides free stock market data (REST + WebSocket). API key required (free tier: 60 calls\u002Fmin).\n\n- **Docs**: https:\u002F\u002Ffinnhub.io\u002Fdocs\u002Fapi\n- **Base URL**: `https:\u002F\u002Ffinnhub.io\u002Fapi\u002Fv1`\n- **Auth**: Query param `token=YOUR_API_KEY`\n- **Rate limit**: 60 requests\u002Fminute (free), 300\u002Fmin (premium)\n- **CORS**: Unknown (use server-side proxy)\n\n## Key Endpoints\n\n### 1. Stock Quote (Real-Time)\n\n```\nGET \u002Fquote?symbol=AAPL&token=API_KEY\n```\n\nResponse:\n```json\n{\n  \"c\": 178.72,     \u002F\u002F Current price\n  \"d\": 2.38,       \u002F\u002F Change (absolute)\n  \"dp\": 1.35,      \u002F\u002F Change percent\n  \"h\": 179.60,     \u002F\u002F High price of the day\n  \"l\": 175.10,     \u002F\u002F Low price of the day\n  \"o\": 176.15,     \u002F\u002F Open price\n  \"pc\": 176.34,    \u002F\u002F Previous close\n  \"t\": 1702569600  \u002F\u002F Timestamp\n}\n```\n\n### 2. Company Profile\n\n```\nGET \u002Fstock\u002Fprofile2?symbol=AAPL&token=API_KEY\n```\n\nResponse:\n```json\n{\n  \"country\": \"US\",\n  \"currency\": \"USD\",\n  \"exchange\": \"NASDAQ NMS - GLOBAL MARKET\",\n  \"name\": \"Apple Inc\",\n  \"ticker\": \"AAPL\",\n  \"ipo\": \"1980-12-12\",\n  \"marketCapitalization\": 2794000,\n  \"logo\": \"https:\u002F\u002Fstatic.finnhub.io\u002Flogo\u002F...\"\n}\n```\n\n### 3. Stock Candles (Historical)\n\n```\nGET \u002Fstock\u002Fcandle?symbol=AAPL&resolution=D&from=1609459200&to=1640995200&token=API_KEY\n```\n\n- `resolution`: 1, 5, 15, 30, 60, D, W, M\n- `from` \u002F `to`: UNIX timestamps\n\nResponse:\n```json\n{\n  \"c\": [130.21, 131.96, ...],  \u002F\u002F Close prices\n  \"h\": [131.74, 132.63, ...],  \u002F\u002F Highs\n  \"l\": [128.50, 130.23, ...],  \u002F\u002F Lows\n  \"o\": [130.92, 130.87, ...],  \u002F\u002F Opens\n  \"v\": [143301900, ...],       \u002F\u002F Volumes\n  \"t\": [1609459200, ...],      \u002F\u002F Timestamps\n  \"s\": \"ok\"                     \u002F\u002F Status\n}\n```\n\n### 4. Market News\n\n```\nGET \u002Fnews?category=general&token=API_KEY\n```\n\nCategories: `general`, `forex`, `crypto`, `merger`\n\n## Frontend Service Implementation\n\n```typescript\n\u002F\u002F src\u002Fservices\u002Fstock-market.ts\nimport { createCircuitBreaker } from '@\u002Futils\u002Fcircuit-breaker';\n\nexport interface StockQuote {\n  symbol: string;\n  name: string;\n  price: number | null;\n  change: number | null;\n  changePercent: number | null;\n  high: number | null;\n  low: number | null;\n  sparkline?: number[];\n}\n\nconst quoteBreaker = createCircuitBreaker\u003CStockQuote[]>({\n  name: 'StockQuotes',\n  cacheTtlMs: 30_000,\n});\n\nconst DEFAULT_SYMBOLS = ['AAPL', 'MSFT', 'GOOGL', 'AMZN', 'TSLA', 'NVDA', 'META'];\n\nexport async function fetchStockQuotes(symbols = DEFAULT_SYMBOLS): Promise\u003CStockQuote[]> {\n  return quoteBreaker.execute(async () => {\n    const resp = await fetch(`\u002Fapi\u002Fstocks?symbols=${symbols.join(',')}`);\n    if (!resp.ok) throw new Error(`HTTP ${resp.status}`);\n    const data = await resp.json();\n    return data.quotes.map((q: any) => ({\n      symbol: q.symbol,\n      name: q.name || q.symbol,\n      price: q.price ?? q.c ?? null,\n      change: q.change ?? q.d ?? null,\n      changePercent: q.changePercent ?? q.dp ?? null,\n      high: q.high ?? q.h ?? null,\n      low: q.low ?? q.l ?? null,\n    }));\n  }, []);\n}\n```\n\n## Alternative APIs (from public-apis)\n\nIf Finnhub rate limits are a concern, these alternatives are available:\n\n| API | Free Tier | Notes |\n|-----|-----------|-------|\n| **Alpha Vantage** | 25 req\u002Fday (free) | `https:\u002F\u002Fwww.alphavantage.co\u002F` |\n| **Twelve Data** | 800 req\u002Fday | `https:\u002F\u002Ftwelvedata.com\u002F` |\n| **Financial Modeling Prep** | 250 req\u002Fday | `https:\u002F\u002Ffinancialmodelingprep.com\u002F` |\n| **Yahoo Finance** (via RapidAPI) | Varies | `https:\u002F\u002Fwww.yahoofinanceapi.com\u002F` |\n| **Polygon** | 5 req\u002Fmin (free) | `https:\u002F\u002Fpolygon.io\u002F` |\n| **IEX Cloud** | 50k credits\u002Fmonth | `https:\u002F\u002Fiexcloud.io\u002F` |\n| **Marketstack** | 100 req\u002Fmonth | `https:\u002F\u002Fmarketstack.com\u002F` |\n\n## Server-Side Proxy\n\nThe frontend should **never** call Finnhub directly. Use the API proxy pattern (see `api-proxy-endpoint` skill) to:\n1. Hide the API key\n2. Batch multiple symbol requests\n3. Add edge caching (30s `Cache-Control`)\n4. Handle rate limit errors gracefully (return cached data)\n\n",{"name":5,"description":7},"main","6b84b0689ca0d9e7b1e4061188ff6b60758e0f8a","openspace\u002Fexamples\u002Fmy-daily-monitor\u002Fskills\u002Ffinnhub-stock-api",944,"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot","https:\u002F\u002Fgithub.com\u002FHKUDS","https:\u002F\u002Fsites.google.com\u002Fview\u002Fchaoh","2026-11-12 22:26:39",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add HKUDS\u002FAgentPilot --skill finnhub-stock-api",{"tool":64,"command":65},"bunx","bunx skills add HKUDS\u002FAgentPilot --skill finnhub-stock-api",{"tool":67,"command":68},"pnpm","pnpm dlx skills add HKUDS\u002FAgentPilot --skill finnhub-stock-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fexamples\u002Fmy-daily-monitor\u002Fskills\u002Ffinnhub-stock-api\u002FSKILL.md",true,[72],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},".skill_id","OTHER","其他",32,"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fexamples\u002Fmy-daily-monitor\u002Fskills\u002Ffinnhub-stock-api\u002F.skill_id",[79,98,117,140,162,185],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":45},"01M6HYB297NDABRERJRVG0K8R0","agentpilot","Set up AgentPilot and use its single entry to prepare missing inputs and run configured RSI experiments. Use when the user requests AgentPilot installation or work with AgentPilot.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fplugins\u002Fagentpilot\u002Fskills\u002Fagentpilot\u002FSKILL.md",[],[81,86,87,41,88,89,90,91,92,93,94,95,96,97],"prepare","requests","missing","installation","rsi","up","use","user","work","SET","run","experiments",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":45},"01M6HYAYWXTTE1J7DJM0MFNQ4H","remember","Review auto-memory entries and propose promotions to OPENSPACE.md, OPENSPACE.local.md, or retained auto-memory topics; detect duplicates, stale facts, conflicts, and ambiguous entries before making changes.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fopenspace\u002Fskills\u002Fremember\u002FSKILL.md",[],[100,105,106,107,108,109,110,111,112,113,114,115,116],"memory","review","auto","openspace","changes","facts","detect","entries","local","conflicts","stale","duplicates",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":126,"publishedAt":45},"01M6HYAVMPM4SBDV60R2B5HPV8","skill-discovery","Search reusable OpenSpace skills locally, and browse cloud packages step by step when a cloud skill may help. Reusing proven skills saves tokens, improves reliability, and extends your capabilities beyond built-in tools.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fopenspace\u002Fhost_skills\u002Fskill-discovery\u002FSKILL.md",[123],{"categoryNo":124,"categoryName":125,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[127,128,129,108,130,131,132,133,134,135,136,137,138,139],"skill discovery","discovery","reusable","step by step","tokens","packages","help","cloud","reliability","capabilities","browse","search","Tools",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":147,"publishedAt":45},"01M6HYAR811B3RB0M50RBEDGN6","delegate-task","Delegate tasks to OpenSpace — a full-stack autonomous worker for coding, DevOps, web research, and desktop automation, backed by an extensive MCP tool and skill library. Skills auto-improve through use, reducing token consumption over time. A cloud community lets agents share and collectively evolve reusable skills.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fopenspace\u002Fhost_skills\u002Fdelegate-task\u002FSKILL.md",[146],{"categoryNo":124,"categoryName":125,"taxonomyType":21,"taxonomyTypeDesc":22},[148,149,150,108,39,151,152,153,154,129,107,92,155,156,157,44,158,159,160,161],"delegate","task","delegate task","improve","desktop automation","worker","community","autonomous","tool","stack","share","tasks","automation","MCP",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":45},"01M6HYAM9FSGV6E52AYENDQXYH","write-special-chars-ts-check","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) using a Python heredoc script, plus a reliable TypeScript type-checking step that filters output to only the newly-written files to avoid being misled by pre-existing errors.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Flegacy\u002Fv1\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[169,170,171,172,173,174,175,176,177,178,179,180,181,182,44,183,184],"write special chars ts check","write","check","type","files","filters","only","template","file","python","typescript","output","Existing","type-checking","errors","script",{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":191,"publishedAt":45},"01M6HYAH05HGV7SVWSVR8PJRQD","write-special-chars-readback","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) using a Python heredoc script, with mandatory post-write verification via read_file and cleanup of \u002Ftmp helper scripts.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Flegacy\u002Fv1\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[192,193,170,41,44,184,194,195,196,197,198,176,177,199,200,178],"write special chars readback","readback","helper","post","via","scripts","read","verification","cleanup"]