{"id":48133174,"url":"https://github.com/adanos-software/adanos-ts-sdk","last_synced_at":"2026-04-20T09:05:48.647Z","repository":{"id":344755576,"uuid":"1182952840","full_name":"adanos-software/adanos-ts-sdk","owner":"adanos-software","description":"TypeScript SDK for the Adanos Finance Sentiment API","archived":false,"fork":false,"pushed_at":"2026-03-27T06:49:36.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T17:33:30.143Z","etag":null,"topics":["finance","sentiment","sentiment-classification","stock-market"],"latest_commit_sha":null,"homepage":"https://adanos.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adanos-software.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-16T05:52:55.000Z","updated_at":"2026-03-27T06:49:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/adanos-software/adanos-ts-sdk","commit_stats":null,"previous_names":["adanos-software/adanos-ts-sdk"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/adanos-software/adanos-ts-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adanos-software%2Fadanos-ts-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adanos-software%2Fadanos-ts-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adanos-software%2Fadanos-ts-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adanos-software%2Fadanos-ts-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adanos-software","download_url":"https://codeload.github.com/adanos-software/adanos-ts-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adanos-software%2Fadanos-ts-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32040364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["finance","sentiment","sentiment-classification","stock-market"],"created_at":"2026-04-04T16:41:19.770Z","updated_at":"2026-04-20T09:05:48.629Z","avatar_url":"https://github.com/adanos-software.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# finance-sentiment\n\n[![npm version](https://img.shields.io/npm/v/finance-sentiment.svg)](https://www.npmjs.com/package/finance-sentiment)\n\n`finance-sentiment` is the public TypeScript SDK for the [Adanos Market Sentiment API](https://api.adanos.org/docs).\n\nIt gives you typed access to:\n- Reddit stock sentiment\n- News sentiment and source-filtered rankings\n- X/Twitter stock sentiment\n- Polymarket stock activity and market attention\n\nLinks:\n- Source: https://github.com/adanos-software/adanos-ts-sdk\n- npm: https://www.npmjs.com/package/finance-sentiment\n- API docs: https://api.adanos.org/docs\n- Homepage: https://adanos.org\n\nPackage and import:\n- npm package: `finance-sentiment`\n- Primary client: `AdanosClient`\n- Compatibility alias: `StockSentimentClient`\n\n## Install\n\n```bash\nnpm install finance-sentiment\n```\n\n## Quick Start\n\n```typescript\nimport { AdanosClient } from \"finance-sentiment\";\n\nconst client = new AdanosClient({ apiKey: \"adanos_api_key_here\" });\n\nconst trending = await client.reddit.trending({ days: 7, limit: 10 });\nconst tsla = await client.reddit.stock(\"TSLA\", { days: 14 });\nconst explanation = await client.reddit.explain(\"TSLA\");\n\nconsole.log(trending[0].ticker);\nconsole.log(tsla.buzz_score);\nconsole.log(explanation.explanation);\n```\n\n## What You Can Do\n\n- Rank trending stocks across Reddit, News, X, and Polymarket\n- Pull service-level market sentiment snapshots across every stock namespace\n- Pull detailed ticker reports for a configurable lookback window\n- Search and compare tickers across datasets\n- Generate AI-written explanations for Reddit and News stock trends\n- Use the same client shape across all supported stock datasets\n\n## Namespaces\n\n- `client.reddit.*` for Reddit Stocks\n- `client.news.*` for News Stocks\n- `client.x.*` for X/Twitter Stocks\n- `client.polymarket.*` for Polymarket Stocks\n\n## Examples\n\n### Reddit Stocks\n\n```typescript\nimport { AdanosClient } from \"finance-sentiment\";\n\nconst client = new AdanosClient({ apiKey: \"adanos_api_key_here\" });\n\nconst trending = await client.reddit.trending({ days: 7, limit: 10 });\nconst sectors = await client.reddit.trendingSectors({ days: 7, limit: 10 });\nconst countries = await client.reddit.trendingCountries({ days: 7, limit: 10 });\nconst tsla = await client.reddit.stock(\"TSLA\", { days: 14 });\nconst explanation = await client.reddit.explain(\"TSLA\");\nconst results = await client.reddit.search(\"Tesla\", { days: 7, limit: 10 });\nconst comparison = await client.reddit.compare([\"TSLA\", \"AAPL\", \"MSFT\"], { days: 7 });\nconst market = await client.reddit.marketSentiment({ days: 7 });\n```\n\n### News\n\n```typescript\nimport { AdanosClient } from \"finance-sentiment\";\n\nconst client = new AdanosClient({ apiKey: \"adanos_api_key_here\" });\n\nconst trending = await client.news.trending({ days: 7, source: \"reuters\" });\nconst sectors = await client.news.trendingSectors({ days: 7, source: \"reuters\" });\nconst countries = await client.news.trendingCountries({ days: 7, source: \"reuters\" });\nconst nvda = await client.news.stock(\"NVDA\", { days: 7 });\nconst explanation = await client.news.explain(\"NVDA\");\nconst results = await client.news.search(\"Nvidia\", { days: 7, limit: 10 });\nconst comparison = await client.news.compare([\"NVDA\", \"AAPL\"], { days: 7 });\nconst market = await client.news.marketSentiment({ days: 7 });\nconst stats = await client.news.stats();\nconst health = await client.news.health();\n```\n\n### X/Twitter\n\n```typescript\nimport { AdanosClient } from \"finance-sentiment\";\n\nconst client = new AdanosClient({ apiKey: \"adanos_api_key_here\" });\n\nconst trending = await client.x.trending({ days: 1, limit: 20 });\nconst sectors = await client.x.trendingSectors({ days: 1, limit: 10 });\nconst countries = await client.x.trendingCountries({ days: 1, limit: 10 });\nconst nvda = await client.x.stock(\"NVDA\");\nconst explanation = await client.x.explain(\"NVDA\");\nconst results = await client.x.search(\"Nvidia\", { days: 7, limit: 10 });\nconst comparison = await client.x.compare([\"NVDA\", \"AMD\"], { days: 7 });\nconst market = await client.x.marketSentiment({ days: 7 });\n```\n\n### Polymarket\n\n```typescript\nimport { AdanosClient } from \"finance-sentiment\";\n\nconst client = new AdanosClient({ apiKey: \"adanos_api_key_here\" });\n\nconst trending = await client.polymarket.trending({ days: 7, limit: 20, type: \"stock\" });\nconst sectors = await client.polymarket.trendingSectors({ days: 7, limit: 10 });\nconst countries = await client.polymarket.trendingCountries({ days: 7, limit: 10 });\nconst aapl = await client.polymarket.stock(\"AAPL\");\nconst results = await client.polymarket.search(\"Apple\", { days: 7, limit: 10 });\nconst comparison = await client.polymarket.compare([\"AAPL\", \"TSLA\"], { days: 7 });\nconst market = await client.polymarket.marketSentiment({ days: 7 });\n```\n\nPolymarket semantics:\n- `buzz_score` is activity-first and optimized for current market attention\n- `total_liquidity` is a windowed signal over the selected `days`\n- `top_mentions` on `stock()` are relevance-sorted by trading activity first\n\n## Available Methods\n\n### `client.reddit.*`\n\n| Method | Description |\n|--------|-------------|\n| `trending({ days, limit, offset, type })` | Trending stocks by buzz score |\n| `trendingSectors({ days, limit, offset })` | Trending sectors |\n| `trendingCountries({ days, limit, offset })` | Trending countries |\n| `stock(ticker, { days })` | Detailed sentiment for a ticker |\n| `explain(ticker)` | AI-generated trend explanation |\n| `search(query, { days, limit })` | Search stocks by name or ticker with recent-period summaries |\n| `compare(tickers, { days })` | Compare up to 10 stocks |\n| `marketSentiment({ days })` | Service-level Reddit market sentiment snapshot |\n| `stats()` | Dataset statistics |\n| `health()` | Public service health |\n\n### `client.news.*`\n\n| Method | Description |\n|--------|-------------|\n| `trending({ days, limit, offset, type, source })` | Trending stocks from news |\n| `trendingSectors({ days, limit, offset, source })` | Trending sectors from news |\n| `trendingCountries({ days, limit, offset, source })` | Trending countries from news |\n| `stock(ticker, { days })` | Detailed news sentiment for a ticker |\n| `explain(ticker)` | AI-generated explanation from news context |\n| `search(query, { days, limit })` | Search stocks in the news dataset with recent-period summaries |\n| `compare(tickers, { days })` | Compare up to 10 stocks in news |\n| `marketSentiment({ days })` | Service-level News market sentiment snapshot |\n| `stats()` | News dataset statistics |\n| `health()` | Public news service health |\n\n### `client.x.*`\n\n| Method | Description |\n|--------|-------------|\n| `trending({ days, limit, offset, type })` | Trending stocks on X/Twitter |\n| `trendingSectors({ days, limit, offset })` | Trending sectors |\n| `trendingCountries({ days, limit, offset })` | Trending countries |\n| `stock(ticker, { days })` | Detailed X/Twitter sentiment |\n| `explain(ticker)` | AI-generated explanation from X/Twitter context |\n| `search(query, { days, limit })` | Search stocks with recent-period summaries |\n| `compare(tickers, { days })` | Compare stocks |\n| `marketSentiment({ days })` | Service-level X/Twitter market sentiment snapshot |\n| `stats()` | Dataset statistics |\n| `health()` | Public service health |\n\n### `client.polymarket.*`\n\n| Method | Description |\n|--------|-------------|\n| `trending({ days, limit, offset, type })` | Trending stocks on Polymarket with activity-first buzz and windowed liquidity |\n| `trendingSectors({ days, limit, offset })` | Trending sectors |\n| `trendingCountries({ days, limit, offset })` | Trending countries |\n| `stock(ticker, { days })` | Detailed Polymarket activity, sentiment, and relevance-sorted market questions |\n| `search(query, { days, limit })` | Search stocks with recent-period summaries |\n| `compare(tickers, { days })` | Compare stocks with windowed Polymarket activity signals |\n| `marketSentiment({ days })` | Service-level Polymarket market sentiment snapshot |\n| `stats()` | Dataset statistics |\n| `health()` | Public service health |\n\n## Error Handling\n\nAll non-2xx responses throw an `ApiError`:\n\n```typescript\nimport { AdanosClient, ApiError } from \"finance-sentiment\";\n\nconst client = new AdanosClient({ apiKey: \"adanos_api_key_here\" });\n\ntry {\n  await client.reddit.trending();\n} catch (error) {\n  if (error instanceof ApiError) {\n    console.error(`API error ${error.status}: ${error.detail}`);\n  }\n}\n```\n\n## Authentication and Configuration\n\nGet your API key at [adanos.org](https://adanos.org).\n\n```typescript\nimport { AdanosClient } from \"finance-sentiment\";\n\nconst client = new AdanosClient({\n  apiKey: \"adanos_api_key_here\",\n  baseUrl: \"https://api.adanos.org\",\n  timeout: 60_000,\n});\n```\n\n## Rate Limits\n\n| Tier | Monthly Requests | Burst Limit |\n|------|------------------|-------------|\n| Free | 250 | 100/min |\n| Paid | Unlimited | 1000/min |\n\nSuccessful protected responses include rate-limit headers.\n\n## Requirements\n\n- Node.js `\u003e=18`\n- ESM and CJS consumers supported\n- Works in Bun and modern runtimes with `fetch`\n\n## Migration from `social-stock-sentiment`\n\nVersion `1.0.0` starts the new `finance-sentiment` package line and promotes `AdanosClient` as the primary public client name.\n\nOld:\n\n```bash\nnpm install social-stock-sentiment\n```\n\n```typescript\nimport { StockSentimentClient } from \"social-stock-sentiment\";\n```\n\nNew:\n\n```bash\nnpm install finance-sentiment\n```\n\n```typescript\nimport { AdanosClient } from \"finance-sentiment\";\n```\n\n`StockSentimentClient` remains available as a compatibility alias.\n\n## License\n\nMIT\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadanos-software%2Fadanos-ts-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadanos-software%2Fadanos-ts-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadanos-software%2Fadanos-ts-sdk/lists"}