Skip to content

API Reference parrot_tools.massive.toolkit

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.massive.toolkit

View source

MassiveToolkit — Premium market data enrichment from Massive.com (ex-Polygon.io).

Provides institutional-grade data not available from free APIs:

  • Options chains with exchange-computed Greeks and IV
  • FINRA short interest and short volume data
  • Benzinga earnings with revenue estimates/actuals
  • Benzinga analyst ratings with individual analyst actions

Alias AbstractToolkit

Re-exported from parrot_tools.toolkit.AbstractToolkit.

Alias AnalystAction

Re-exported from parrot_tools.massive.models.AnalystAction.

Alias AnalystRatingsDerived

Re-exported from parrot_tools.massive.models.AnalystRatingsDerived.

Alias AnalystRatingsOutput

Re-exported from parrot_tools.massive.models.AnalystRatingsOutput.

Alias ConsensusRating

Re-exported from parrot_tools.massive.models.ConsensusRating.

Alias EarningsDerived

Re-exported from parrot_tools.massive.models.EarningsDerived.

Alias EarningsOutput

Re-exported from parrot_tools.massive.models.EarningsOutput.

Alias EarningsRecord

Re-exported from parrot_tools.massive.models.EarningsRecord.

Alias GreeksData

Re-exported from parrot_tools.massive.models.GreeksData.

Alias MassiveAPIError

Re-exported from parrot_tools.massive.client.MassiveAPIError.

Alias MassiveCache

Re-exported from parrot_tools.massive.cache.MassiveCache.

Alias MassiveClient

Re-exported from parrot_tools.massive.client.MassiveClient.

Class MassiveToolkit

Premium market data enrichment from Massive.com (ex-Polygon.io).

Provides options chains with Greeks, FINRA short interest/volume, Benzinga earnings data, and analyst ratings. All methods implement graceful degradation — errors return a structured fallback dict instead of raising exceptions.

Parameter Type Default Description
api_key str | None None
max_concurrent int DEFAULT_MAX_CONCURRENT
**kwargs {}

Method MassiveToolkit.stop

Close connections on shutdown.

stop()

Method MassiveToolkit.get_options_chain_enriched

Fetch options chain with pre-computed Greeks and IV.

Returns market-calibrated Greeks (delta, gamma, theta, vega) from OPRA data. Use for portfolio exposure calculations and spread analysis.

get_options_chain_enriched(underlying: str, expiration_date_gte: str | None = None, expiration_date_lte: str | None = None, strike_price_gte: float | None = None, strike_price_lte: float | None = None, contract_type: str | None = None, limit: int = 250) -> dict

Parameter Type Default Description
underlying str
expiration_date_gte str | None None
expiration_date_lte str | None None
strike_price_gte float | None None
strike_price_lte float | None None
contract_type str | None None
limit int 250

Returns: dict

Method MassiveToolkit.get_short_interest

Fetch FINRA short interest data with derived trend metrics.

Returns bi-monthly settlement data including short interest, days to cover, and derived change percentage and trend direction.

get_short_interest(symbol: str, limit: int = 10, order: str = 'desc') -> dict

Parameter Type Default Description
symbol str
limit int 10
order str 'desc'

Returns: dict

Method MassiveToolkit.get_short_volume

Fetch daily FINRA short volume data with derived ratios.

Returns daily short volume, total volume, short ratio, and derived 5/20-day averages with trend analysis.

get_short_volume(symbol: str, date_from: str | None = None, date_to: str | None = None, limit: int = 30) -> dict

Parameter Type Default Description
symbol str
date_from str | None None
date_to str | None None
limit int 30

Returns: dict

Method MassiveToolkit.get_earnings_data

Fetch Benzinga earnings data with revenue surprise metrics.

Returns historical earnings with EPS/revenue estimates vs actuals, and derived beat rate and surprise averages. Requires Benzinga add-on in Massive plan.

get_earnings_data(symbol: str | None = None, date_from: str | None = None, date_to: str | None = None, importance: int | None = None, limit: int = 50) -> dict

Parameter Type Default Description
symbol str | None None
date_from str | None None
date_to str | None None
importance int | None None
limit int 50

Returns: dict

Method MassiveToolkit.get_analyst_ratings

Fetch Benzinga analyst ratings with consensus summary.

Returns individual analyst actions (upgrades, downgrades, initiations) and consensus rating summary with target prices. Requires Benzinga add-on in Massive plan.

get_analyst_ratings(symbol: str, action: str | None = None, date_from: str | None = None, limit: int = 20, include_consensus: bool = True) -> dict

Parameter Type Default Description
symbol str
action str | None None
date_from str | None None
limit int 20
include_consensus bool True

Returns: dict

Method MassiveToolkit.enrich_ticker

Fetch all available data for a single ticker in parallel.

Returns a dict keyed by endpoint name with each result.

enrich_ticker(symbol: str) -> dict[str, Any]

Parameter Type Default Description
symbol str

Returns: dict[str, Any]

Method MassiveToolkit.enrich_candidates

Enrich multiple tickers with rate-limit-aware concurrency.

enrich_candidates(symbols: list[str], endpoints: list[str] | None = None, max_concurrent: int | None = None) -> dict[str, dict]

Parameter Type Default Description
symbols list[str] List of ticker symbols to enrich.
endpoints list[str] | None None Optional list of specific endpoints to call. Defaults to all.
max_concurrent int | None None Max parallel API calls. Defaults to instance setting.

Returns: dict[str, dict] — Dict keyed by symbol with enrichment results.

Alias OptionsChainOutput

Re-exported from parrot_tools.massive.models.OptionsChainOutput.

Alias OptionsContract

Re-exported from parrot_tools.massive.models.OptionsContract.

Alias ShortInterestDerived

Re-exported from parrot_tools.massive.models.ShortInterestDerived.

Alias ShortInterestOutput

Re-exported from parrot_tools.massive.models.ShortInterestOutput.

Alias ShortInterestRecord

Re-exported from parrot_tools.massive.models.ShortInterestRecord.

Alias ShortVolumeDerived

Re-exported from parrot_tools.massive.models.ShortVolumeDerived.

Alias ShortVolumeOutput

Re-exported from parrot_tools.massive.models.ShortVolumeOutput.

Alias ShortVolumeRecord

Re-exported from parrot_tools.massive.models.ShortVolumeRecord.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally