naftiko: "1.0.0-alpha2" info: label: "Polygon Reference REST API — Markets" description: >- Reference — Markets. 4 operations. Lead operation: List Markets. Self-contained Naftiko capability covering one Polygon business surface. tags: - Polygon - Reference - Markets created: "2026-05-29" modified: "2026-05-29" binds: - namespace: env keys: POLYGON_API_KEY: POLYGON_API_KEY capability: consumes: - type: http namespace: "reference-markets" baseUri: "https://api.polygon.io" description: "Polygon Reference REST API — Markets business capability." authentication: type: bearer token: "{{env.POLYGON_API_KEY}}" resources: - name: "reference-markets" path: "/v3/reference/markets" operations: - name: "listMarkets" method: GET description: "List Markets" outputRawFormat: json outputParameters: - name: result type: object value: "$." - name: "reference-exchanges" path: "/v3/reference/exchanges" operations: - name: "listExchanges" method: GET description: "List Exchanges" inputParameters: - name: "asset_class" in: query type: string required: false - name: "locale" in: query type: string required: false outputRawFormat: json outputParameters: - name: result type: object value: "$." - name: "marketstatus-upcoming" path: "/v1/marketstatus/upcoming" operations: - name: "listUpcomingMarketHolidays" method: GET description: "List Upcoming Market Holidays" outputRawFormat: json outputParameters: - name: result type: object value: "$." - name: "marketstatus-now" path: "/v1/marketstatus/now" operations: - name: "getCurrentMarketStatus" method: GET description: "Get Current Market Status" outputRawFormat: json outputParameters: - name: result type: object value: "$." exposes: - type: rest namespace: "reference-markets-rest" port: 8080 description: "REST adapter for Polygon Reference REST API — Markets." resources: - path: "/v1/v3/reference/markets" name: "reference-markets" description: "REST surface for reference-markets." operations: - method: GET name: "listMarkets" description: "List Markets" call: "reference-markets.listMarkets" outputParameters: - type: object mapping: "$." - path: "/v1/v3/reference/exchanges" name: "reference-exchanges" description: "REST surface for reference-exchanges." operations: - method: GET name: "listExchanges" description: "List Exchanges" call: "reference-markets.listExchanges" with: asset_class: "rest.asset_class" locale: "rest.locale" outputParameters: - type: object mapping: "$." - path: "/v1/v1/marketstatus/upcoming" name: "marketstatus-upcoming" description: "REST surface for marketstatus-upcoming." operations: - method: GET name: "listUpcomingMarketHolidays" description: "List Upcoming Market Holidays" call: "reference-markets.listUpcomingMarketHolidays" outputParameters: - type: object mapping: "$." - path: "/v1/v1/marketstatus/now" name: "marketstatus-now" description: "REST surface for marketstatus-now." operations: - method: GET name: "getCurrentMarketStatus" description: "Get Current Market Status" call: "reference-markets.getCurrentMarketStatus" outputParameters: - type: object mapping: "$." - type: mcp namespace: "reference-markets-mcp" port: 9090 transport: http description: "MCP adapter for Polygon Reference REST API — Markets." tools: - name: "list-markets" description: "List Markets" hints: readOnly: true destructive: false idempotent: true call: "reference-markets.listMarkets" outputParameters: - type: object mapping: "$." - name: "list-exchanges" description: "List Exchanges" hints: readOnly: true destructive: false idempotent: true call: "reference-markets.listExchanges" with: asset_class: "tools.asset_class" locale: "tools.locale" outputParameters: - type: object mapping: "$." - name: "list-upcoming-market-holidays" description: "List Upcoming Market Holidays" hints: readOnly: true destructive: false idempotent: true call: "reference-markets.listUpcomingMarketHolidays" outputParameters: - type: object mapping: "$." - name: "get-current-market-status" description: "Get Current Market Status" hints: readOnly: true destructive: false idempotent: true call: "reference-markets.getCurrentMarketStatus" outputParameters: - type: object mapping: "$."