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

Metadata

Release files for adanos-haystack 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adanos-haystack 0.1.1
File Size Uploaded Provenance
adanos_haystack-0.1.1.tar.gz 15.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for adanos-haystack 0.1.1
File Interpreter ABI Platform
adanos_haystack-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 26.6 kB

Release files / adanos_haystack-0.1.1.tar.gz

Download URL adanos_haystack-0.1.1.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4b8b7aedf5d3cc74736057039dd80943e3db1e2d35b00b0676e1998405207610
BLAKE2b-256 checksum
How to use checksums
18a663c571bdc6e32d8f441c375c85cd667c1fb3a4cede294f705f797324daa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.

Transparency log

Release files / adanos_haystack-0.1.1-py3-none-any.whl

Download URL adanos_haystack-0.1.1-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4824eefc9a94d15f3c234610412b3ccd0683ae6dbf77939ae798fc79a9f99b9f
BLAKE2b-256 checksum
How to use checksums
80e3e544c97367a1d13be86068f988d43666f603a6207e824ac0b93bb5a61184
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.

Transparency log

Security for adanos-haystack 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for adanos_haystack-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page