Skip to content

[EPIC] Indices API Tools #9

@copyleftdev

Description

@copyleftdev

Depends On: #2, #1

POLYMCP-008

Goals

  • Index value data access
  • Historical index performance
  • Index snapshots
  • Technical indicators on indices

Implement MCP tools for Polygon.io Indices API. Includes index values, aggregates, and snapshots for market indices like S&P 500, NASDAQ, and Dow Jones.

Acceptance Criteria

AC-1

  • Given A user wants S&P 500 aggregates
  • When The get_index_aggregates tool is called with ticker=I:SPX
  • Then It returns OHLC bars for the index

AC-2

  • Given A user wants NASDAQ daily open/close
  • When The get_index_open_close tool is called with ticker=I:NDX, date=2024-01-15
  • Then It returns open, high, low, close values for that date

AC-3

  • Given A user wants index snapshot
  • When The get_index_snapshot tool is called
  • Then It returns current values for major indices with change percentages

Technical Context

Files:

  • src/tools/indices/mod.rs
  • src/tools/indices/aggregates.rs
  • src/tools/indices/snapshots.rs

Out of Scope

  • Index constituents
  • Index rebalancing data

Source: epics/07-indices-tools.json
Content Hash: af210bfdb5d7127f

Metadata

Metadata

Assignees

No one assigned

    Labels

    api:indicesPolygon Indices API endpointscomponent:toolsMCP tool implementationsepicLarge feature containing multiple storiespriority:mediumNormal priority

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions