Skip to main content

Market sentiment data from Reddit, News, X/Twitter, and Polymarket for OpenBB

Project description

openbb-adanos

PyPI version

Adanos market-sentiment integration for the OpenBB Platform.

The package now exposes two layers:

  • Standard OpenBB provider commands for quick cross-platform sentiment lookups.
  • A full obb.adanos.<platform>.* router surface for all Adanos stock endpoints.
  • An OpenBB Workspace app backend in workspace_app/ for dashboards and widgets.

Links:

Installation

pip install openbb-adanos

Setup

Get an API key at api.adanos.org, then configure OpenBB:

from openbb import obb

obb.user.credentials.adanos_api_key = "sk_live_..."

You can also use OPENBB_ADANOS_API_KEY.

OpenBB Workspace App

The workspace_app/ directory contains a FastAPI backend for OpenBB Workspace Data Connectors. It exposes /widgets.json, /apps.json, and Adanos sentiment endpoints for a ready-made dashboard.

Run it locally from the repository root:

pip install -e .
pip install -r workspace_app/requirements.txt
uvicorn workspace_app.main:app --reload --host 0.0.0.0 --port 7779

Then add http://localhost:7779 in OpenBB Workspace Data Connectors. For live data, add the custom connector header X-API-Key: sk_live_... or set ADANOS_API_KEY on the backend.

Quick Start

Standard OpenBB provider flow

from openbb import obb

# Single symbol, detailed sentiment
obb.equity.sentiment(symbol="AAPL", provider="adanos")

# Cross-platform support
obb.equity.sentiment(symbol="TSLA", source="x", provider="adanos")
obb.equity.sentiment(symbol="NVDA", source="news", provider="adanos")
obb.equity.sentiment(symbol="SPY", source="polymarket", provider="adanos")

# Trending list
obb.equity.sentiment.trending(provider="adanos")
obb.equity.sentiment.trending(source="news", days=3, limit=50, provider="adanos")

# Compact comparison
obb.equity.sentiment.compare(symbols="AAPL,MSFT,NVDA", provider="adanos")

Full Adanos endpoint surface inside OpenBB

from openbb import obb

# Reddit
obb.adanos.reddit.trending(days=1, limit=25)
obb.adanos.reddit.stock(symbol="TSLA", days=7)
obb.adanos.reddit.market_sentiment(days=7)
obb.adanos.reddit.explain(symbol="TSLA")
obb.adanos.reddit.search(query="tesla")
obb.adanos.reddit.compare(symbols=["TSLA", "NVDA", "AMD"])
obb.adanos.reddit.stats()
obb.adanos.reddit.health()

# News
obb.adanos.news.trending(days=3, source="reuters")
obb.adanos.news.trending_sectors(days=7, source="bloomberg")
obb.adanos.news.trending_countries(days=7)
obb.adanos.news.stock(symbol="AAPL", days=14)
obb.adanos.news.market_sentiment(days=7)
obb.adanos.news.explain(symbol="AAPL")

# X / Twitter
obb.adanos.x.trending(days=1, asset_type="stock")
obb.adanos.x.stock(symbol="TSLA", days=7)
obb.adanos.x.market_sentiment(days=7)
obb.adanos.x.explain(symbol="TSLA")
obb.adanos.x.search(query="nvidia")

# Polymarket
obb.adanos.polymarket.trending(days=7)
obb.adanos.polymarket.stock(symbol="NVDA", days=14)
obb.adanos.polymarket.market_sentiment(days=7)
obb.adanos.polymarket.compare(symbols="NVDA,TSLA,AMD")

Supported Endpoints

Provider commands

  • obb.equity.sentiment(..., provider="adanos")
  • obb.equity.sentiment.trending(..., provider="adanos")
  • obb.equity.sentiment.compare(..., provider="adanos")

Router commands

  • obb.adanos.reddit.{trending,trending_sectors,trending_countries,stock,market_sentiment,explain,search,compare,stats,health}
  • obb.adanos.news.{trending,trending_sectors,trending_countries,stock,market_sentiment,explain,search,compare,stats,health}
  • obb.adanos.x.{trending,trending_sectors,trending_countries,stock,market_sentiment,explain,search,compare,stats,health}
  • obb.adanos.polymarket.{trending,trending_sectors,trending_countries,stock,market_sentiment,search,compare,stats,health}

Notes

  • Provider-level source supports reddit, news, x, and polymarket.
  • Trending defaults to days=1, matching the API behavior.
  • Full stock detail remains platform-specific through obb.adanos.*.stock(...), so users get fields like top_tweets, source_distribution, or top_mentions instead of a flattened lowest-common-denominator response.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openbb_adanos-1.4.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openbb_adanos-1.4.1-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file openbb_adanos-1.4.1.tar.gz.

File metadata

  • Download URL: openbb_adanos-1.4.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openbb_adanos-1.4.1.tar.gz
Algorithm Hash digest
SHA256 729b509d0107c676d5e73137e902decc4cf06eee67c20b0c44dab291d22f97d9
MD5 d959475658beec928644d8280d72f523
BLAKE2b-256 c501f6ea28bdf2feffe2c8425b378a5c1bbaa445a4fb61b9f2d4c04b14d88aa2

See more details on using hashes here.

Provenance

The following attestation bundles were made for openbb_adanos-1.4.1.tar.gz:

Publisher: publish-pypi.yml on adanos-software/openbb-adanos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openbb_adanos-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: openbb_adanos-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openbb_adanos-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 73d10524fb08ad29e0d51690ffa014059ee7c3a497f2a88d35892347c07f606e
MD5 b853c0bbc92d1794b1106dfc0531edca
BLAKE2b-256 f3a42d2238a2b9a190861a30556d3f2e789056461a200b91ae95c2e57bf726c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for openbb_adanos-1.4.1-py3-none-any.whl:

Publisher: publish-pypi.yml on adanos-software/openbb-adanos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page