[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KKBJERZS74N5AF5XVJ9AGQ":3,"skill-same:01M6KKBJERZS74N5AF5XVJ9AGQ":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":13,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M6KKBJERZS74N5AF5XVJ9AGQ","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.","AG064\u002FOpenSpace","AG064","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184930299?v=4","01M6KHVFG7TB73NHX3RDYSTMH2","01M6KHVFMM7XA2PZA9Z83PHS3V",0,"MIT","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Ffinnhub-stock-api\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"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","ff671ef61ed6587c49bd54c81cdc751c0b99e363","showcase\u002Fskills\u002Ffinnhub-stock-api","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace","https:\u002F\u002Fgithub.com\u002FAG064","AG064, E.Mi.\r\n\r\nA person who thinks all the time, yet all they have to think about is nothing. I want to improve the world and work on open source projects","2026-10-08 06:53:48",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add AG064\u002FOpenSpace --skill finnhub-stock-api",{"tool":52,"command":53},"bunx","bunx skills add AG064\u002FOpenSpace --skill finnhub-stock-api",{"tool":55,"command":56},"pnpm","pnpm dlx skills add AG064\u002FOpenSpace --skill finnhub-stock-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Ffinnhub-stock-api\u002FSKILL.md",true,[60],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},".skill_id","OTHER","其他",32,"https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Ffinnhub-stock-api\u002F.skill_id",[67,90,106,115,138,154],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":34},"01M6KKMPWA0B5SCCH766F8M5EA","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[74,75,76,77,78,79,33,80,81,82,83,84,85,86,87,88,89],"write special chars ts check","check","write","filters","Existing","type-checking","errors","script","output","type","files","only","template","file","python","typescript",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":34},"01M6KKMJXVBNVEY3TRK055F4A7","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[97,98,76,86,99,100,87,88,101,102,103,104,105,33,81,30],"readback","write special chars readback","cleanup","read","scripts","verification","via","post","helper",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":34},"01M6KKMEGX9M9NC105J0W3Q5B9","write-special-chars-heredoc","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) by using a Python heredoc script executed via shell.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-heredoc\u002FSKILL.md",[],[76,113,88,33,103,86,114,87,81],"write special chars heredoc","shell",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":34},"01M6KKM8EJ2AATVHZBNB916WT0","worldmonitor-reference","Curated architecture index of the WorldMonitor open-source dashboard. Reference for extracting patterns — vanilla TypeScript, Panel class hierarchy, service layer, CSS grid, API edge functions, refresh scheduler, and 60+ data source integrations.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fworldmonitor-reference\u002FSKILL.md",[],[122,123,124,125,89,126,127,128,129,130,33,131,132,133,134,135,136,18,23,137],"reference","worldmonitor","worldmonitor reference","dashboard","css","architecture","extracting","hierarchy","source","layer","panel","patterns","edge functions","integrations","open","scheduler",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":34},"01M6KKM39PHYK627F19GE2B9XN","virtual-list","Implement efficient virtual scrolling for rendering large lists with DOM recycling, chunk-based rendering, and performance optimizations","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fvirtual-list\u002FSKILL.md",[],[145,146,147,148,33,149,30,150,151,152,153],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":34},"01M6KKKY7T2P61Y0JH54CDEJKQ","verify-directory-structure","Diagnose and resolve file access issues by first verifying the directory structure.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fverify-directory-structure\u002FSKILL.md",[],[161,162,163,164,165,166,87,167,168,169],"directory","verify","structure","verify directory structure","access","first","issues","diagnose","file access"]