naftiko: 1.0.0-alpha2 info: label: Broker API — Clock description: 'Broker API — Clock. 1 operations. Lead operation: Query market clock. Self-contained Naftiko capability covering one Alpaca business surface.' tags: - Alpaca - Clock created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ALPACA_API_KEY: ALPACA_API_KEY capability: consumes: - type: http namespace: broker-clock baseUri: https://broker-api.sandbox.alpaca.markets description: Broker API — Clock business capability. Self-contained, no shared references. resources: - name: v1-clock path: /v1/clock operations: - name: querymarketclock method: GET description: Query market clock outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: basic username: '{{env.ALPACA_USER}}' password: '{{env.ALPACA_PASS}}' exposes: - type: rest namespace: broker-clock-rest port: 8080 description: REST adapter for Broker API — Clock. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/clock name: v1-clock description: REST surface for v1-clock. operations: - method: GET name: querymarketclock description: Query market clock call: broker-clock.querymarketclock outputParameters: - type: object mapping: $. - type: mcp namespace: broker-clock-mcp port: 9090 transport: http description: MCP adapter for Broker API — Clock. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: query-market-clock description: Query market clock hints: readOnly: true destructive: false idempotent: true call: broker-clock.querymarketclock outputParameters: - type: object mapping: $.