Skip to main content

Adanos for Haystack

adanos-haystack adds Adanos stock and crypto market sentiment to Haystack pipelines and agents. It retrieves structured signals from Reddit, X / FinTwit, financial news, and Polymarket without adding trading or portfolio logic.

Installation

pip install adanos-haystack

Create an API key at adanos.org/register and provide it through the ADANOS_API_KEY environment variable.

Free, Hobby, and Professional accounts use the same component. Adanos applies the request quota and historical lookback available to the API key's plan. See pricing for the current limits.

Component

AdanosMarketSentiment supports:

  • sentiment for one stock or crypto asset
  • trending assets
  • aggregate market sentiment
  • comparison of multiple assets
  • asset search
  • dataset statistics

Stocks can use reddit, x, news, or polymarket. Crypto sentiment uses reddit.

from haystack_integrations.components.tools.adanos import AdanosMarketSentiment

sentiment = AdanosMarketSentiment()
result = sentiment.run(
    operation="sentiment",
    asset_type="stock",
    source="news",
    symbol="NVDA",
    from_date="2026-07-01",
    to_date="2026-07-07",
)

print(result["result"])

The component supports synchronous run and asynchronous run_async calls.

Pipeline

from haystack import Pipeline
from haystack_integrations.components.tools.adanos import AdanosMarketSentiment

pipeline = Pipeline()
pipeline.add_component("sentiment", AdanosMarketSentiment())

result = pipeline.run(
    {
        "sentiment": {
            "operation": "trending",
            "asset_type": "stock",
            "source": "reddit",
            "limit": 5,
        }
    }
)
print(result["sentiment"]["result"])

Agent Tool

Wrap the component with Haystack's ComponentTool so an Agent can choose the appropriate operation and inputs:

from haystack.tools import ComponentTool
from haystack_integrations.components.tools.adanos import AdanosMarketSentiment

adanos_tool = ComponentTool(
    component=AdanosMarketSentiment(),
    name="market_sentiment",
    description=(
        "Get current and historical stock or crypto market sentiment from Reddit, "
        "X / FinTwit, financial news, and Polymarket."
    ),
)

Pass adanos_tool to a Haystack Agent or a tool-capable Chat Generator.

Authentication And Errors

The API key is stored as a Haystack Secret and sent only in the X-API-Key request header. HTTP errors expose the status code and optional Adanos request ID, but never the API key or upstream response body.

Development

pip install hatch
hatch run fmt-check
hatch run test:all

License

Apache-2.0

Download files

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

Source Distribution

adanos_haystack-0.1.1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

adanos_haystack-0.1.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file adanos_haystack-0.1.1.tar.gz.

File metadata

  • Download URL: adanos_haystack-0.1.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for adanos_haystack-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4b8b7aedf5d3cc74736057039dd80943e3db1e2d35b00b0676e1998405207610
MD5 c099adf0bd97db6fbbc8f2ce73731a24
BLAKE2b-256 18a663c571bdc6e32d8f441c375c85cd667c1fb3a4cede294f705f797324daa1

See more details on using hashes here.

Provenance

The following attestation bundles were made for adanos_haystack-0.1.1.tar.gz:

Publisher: release.yml on adanos-software/adanos-haystack

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

File details

Details for the file adanos_haystack-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: adanos_haystack-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for adanos_haystack-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4824eefc9a94d15f3c234610412b3ccd0683ae6dbf77939ae798fc79a9f99b9f
MD5 73c8ed569f25a176ec82a713cc1c2f3d
BLAKE2b-256 80e3e544c97367a1d13be86068f988d43666f603a6207e824ac0b93bb5a61184

See more details on using hashes here.

Provenance

The following attestation bundles were made for adanos_haystack-0.1.1-py3-none-any.whl:

Publisher: release.yml on adanos-software/adanos-haystack

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 Sentry Error logging StatusPage Status page