Skip to content

API Reference parrot_tools.massive.client

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

parrot_tools.massive.client

View source

Async REST client for Massive (ex-Polygon.io).

Directly connects to https://api.massive.com using httpx, providing retry logic and rate limit handling.

Class MassiveAPIError

Base error for Massive API calls.

Parameter Type Default Description
message str
status_code int | None None

Class MassiveClient

Async REST client for Massive API with retry and rate limit handling.

Parameter Type Default Description
api_key str Massive API key
max_retries int DEFAULT_MAX_RETRIES Maximum retry attempts for transient errors
rate_limit_wait int DEFAULT_RATE_LIMIT_WAIT Default wait time (seconds) for rate limit without Retry-After

Method MassiveClient.list_snapshot_options_chain

Fetch options chain snapshot with Greeks and IV.

list_snapshot_options_chain(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) -> list[Any]

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: list[Any]

Method MassiveClient.list_short_interest

Fetch FINRA short interest data.

list_short_interest(symbol: str, limit: int = 10, order: str = 'desc') -> list[Any]

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

Returns: list[Any]

Method MassiveClient.list_short_volume

Fetch daily FINRA short volume data.

list_short_volume(symbol: str, date_from: str | None = None, date_to: str | None = None, limit: int = 30) -> list[Any]

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

Returns: list[Any]

Method MassiveClient.get_benzinga_earnings

Fetch Benzinga earnings data.

get_benzinga_earnings(symbol: str | None = None, date_from: str | None = None, date_to: str | None = None, importance: int | None = None, limit: int = 50) -> list[Any]

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: list[Any]

Method MassiveClient.get_benzinga_analyst_ratings

Fetch Benzinga analyst ratings.

get_benzinga_analyst_ratings(symbol: str, action: str | None = None, date_from: str | None = None, limit: int = 20) -> list[Any]

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

Returns: list[Any]

Method MassiveClient.get_benzinga_consensus_ratings

Fetch Benzinga consensus ratings.

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

Parameter Type Default Description
symbol str

Returns: dict[str, Any]

Class MassiveRateLimitError

Rate limit exceeded (429).

Parameter Type Default Description
message str
retry_after int | None None

Class MassiveTransientError

Transient error (5xx, timeouts).

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