Skip to content

Options quotes missing date params #18

@MarketDataApp

Description

@MarketDataApp

Customer Report

Customer asked how to get historical option quotes over a date range using the Python SDK. The REST API supports date, from, and to parameters on /v1/options/quotes/, but the SDK's quotes() method does not expose them.

Reproduction

The REST API works correctly with date range parameters:

curl -s "https://api.marketdata.app/v1/options/quotes/AAPL261218C00250000/?from=2026-04-14&to=2026-04-18"

Returns 4 daily quotes as expected.

The Python SDK OptionsQuotesInput model (sdk-py/src/marketdata/input_types/options.py:131-143) only defines symbols — no date, from_date, or to_date fields:

class OptionsQuotesInput(BaseInputType):
    model_config = BaseModelConfig
    symbols: str | list[str] = Field(
        description="A single symbol string or a list of symbol strings", min_length=1
    )

Compare with OptionsChainInput in the same file, which does expose date, from_date, and to_date.

The SDK documentation (sdk/py/options/quotes.mdx) also does not mention these parameters.

Expected Behavior

The SDK should expose date, from_date, and to_date parameters on options.quotes(), matching the REST API.

Actual Behavior

Only symbols is accepted. Users cannot request historical date ranges through the SDK.

Severity

Low — workaround exists (use the REST API directly or use kwargs passthrough).

Suggested Next Steps

  1. Add date, from_date, and to_date fields to OptionsQuotesInput in sdk-py/src/marketdata/input_types/options.py
  2. Update SDK documentation at sdk/py/options/quotes.mdx to document these parameters
  3. Add examples showing date range usage

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions