Skip to content

Add optional Adanos sentiment features - #92

Open
alexander-schneider wants to merge 1 commit into
AI4Finance-Foundation:masterfrom
adanos-software:codex/adanos-sentiment-features
Open

Add optional Adanos sentiment features#92
alexander-schneider wants to merge 1 commit into
AI4Finance-Foundation:masterfrom
adanos-software:codex/adanos-sentiment-features

Conversation

@alexander-schneider

Copy link
Copy Markdown

Summary

  • add an opt-in AdanosSentimentProcessor for daily US equity sentiment from Reddit, X, news, and Polymarket
  • normalize source responses into one row per ticker and UTC date with source-prefixed features
  • cache only completed UTC windows and provide a validated left join for FinRL price datasets
  • document setup, plan-aware date windows, missing-data semantics, and look-ahead precautions

Design

The integration stays in the data layer and performs no API calls inside strategy, environment, backtest, or execution steps. It uses the existing requests dependency and ADANOS_API_KEY; no additional package is required. Requests use the current inclusive from / to API contract rather than the deprecated days parameter.

Successful historical responses are cached by a request fingerprint that excludes the API key. Windows including the current UTC date are deliberately re-fetched because their daily aggregates are incomplete and still changing.

Verification

  • python -m pytest -q (8 passed)
  • python -m black --check src/data/adanos_sentiment.py tests/data/test_adanos_sentiment.py
  • python -m compileall -q src/data/adanos_sentiment.py tests/data/test_adanos_sentiment.py
  • python -m pip check
  • current https://api.adanos.org/openapi.json checked for all four endpoint, date parameter, response schema, and activity-field contracts
  • structured autoreview: clean, no accepted/actionable findings

Adanos API documentation: https://api.adanos.org/docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant