naftiko: 1.0.0-alpha2 info: label: Market Data API — Crypto Pricing Data API description: 'Market Data API — Crypto Pricing Data API. 17 operations. Lead operation: Get Bars for multiple Crypto symbols. Self-contained Naftiko capability covering one Alpaca business surface.' tags: - Alpaca - Crypto Pricing Data API created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ALPACA_API_KEY: ALPACA_API_KEY capability: consumes: - type: http namespace: data-crypto-pricing-data-api baseUri: https://data.alpaca.markets description: Market Data API — Crypto Pricing Data API business capability. Self-contained, no shared references. resources: - name: v1beta1-crypto-bars path: /v1beta1/crypto/bars operations: - name: getbarsformultiplecryptosymbols method: GET description: Get Bars for multiple Crypto symbols outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-bars-latest path: /v1beta1/crypto/bars/latest operations: - name: getlatestbarsformultiplecryptosymbols method: GET description: Get Latest Bars for multiple Crypto symbols outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-meta-spreads path: /v1beta1/crypto/meta/spreads operations: - name: getcryptometaspreads method: GET description: Get list of crypto spreads per exchange outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-quotes path: /v1beta1/crypto/quotes operations: - name: getquotesformultiplecryptosymbols method: GET description: Get Quotes for multiple crypto symbols outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-quotes-latest path: /v1beta1/crypto/quotes/latest operations: - name: getlatestquotesformultiplecryptosymbols method: GET description: Get Latest Quotes for multiple Crypto symbols outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-snapshots path: /v1beta1/crypto/snapshots operations: - name: getsnapshotsformultiplecryptosymbols method: GET description: Get Snapshots for multiple crypto symbols outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-trades path: /v1beta1/crypto/trades operations: - name: gettradesformultiplecryptosymbols method: GET description: Get Trade data for multiple crypto symbols outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-trades-latest path: /v1beta1/crypto/trades/latest operations: - name: getlatesttradesformultiplecryptosymbols method: GET description: Get Latest Trade data for multiple Crypto symbols outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-xbbos-latest path: /v1beta1/crypto/xbbos/latest operations: - name: getlatestxbboformultiplecryptosymbols method: GET description: Get Latest XBBO for multiple crypto symbols outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-symbol-bars path: /v1beta1/crypto/{symbol}/bars operations: - name: getbarsforcryptosymbol method: GET description: Get Bar data for a crypto symbol outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-symbol-bars-latest path: /v1beta1/crypto/{symbol}/bars/latest operations: - name: getlatestbarsforcryptosymbol method: GET description: Get Latest Bar data for a Crypto symbol outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-symbol-quotes path: /v1beta1/crypto/{symbol}/quotes operations: - name: getquotesforcryptosymbol method: GET description: Get Quotes for crypto symbol outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-symbol-quotes-latest path: /v1beta1/crypto/{symbol}/quotes/latest operations: - name: getlatestquoteforcryptosymbol method: GET description: Latest Quote outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-symbol-snapshot path: /v1beta1/crypto/{symbol}/snapshot operations: - name: getsnapshotforcryptosymbol method: GET description: Get a Snapshot for a crypto symbol outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-symbol-trades path: /v1beta1/crypto/{symbol}/trades operations: - name: gettradesforcryptosymbol method: GET description: Get Trade data for a crypto symbol outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-symbol-trades-latest path: /v1beta1/crypto/{symbol}/trades/latest operations: - name: getlatesttradesforcryptosymbol method: GET description: Latest Trades outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1beta1-crypto-symbol-xbbo-latest path: /v1beta1/crypto/{symbol}/xbbo/latest operations: - name: getlatestxbboforcryptosymbol method: GET description: Get Latest XBBO for a single crypto symbol outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: APCA-API-KEY-ID value: '{{env.ALPACA_API_KEY}}' placement: header exposes: - type: rest namespace: data-crypto-pricing-data-api-rest port: 8080 description: REST adapter for Market Data API — Crypto Pricing Data API. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1beta1/crypto/bars name: v1beta1-crypto-bars description: REST surface for v1beta1-crypto-bars. operations: - method: GET name: getbarsformultiplecryptosymbols description: Get Bars for multiple Crypto symbols call: data-crypto-pricing-data-api.getbarsformultiplecryptosymbols outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/bars/latest name: v1beta1-crypto-bars-latest description: REST surface for v1beta1-crypto-bars-latest. operations: - method: GET name: getlatestbarsformultiplecryptosymbols description: Get Latest Bars for multiple Crypto symbols call: data-crypto-pricing-data-api.getlatestbarsformultiplecryptosymbols outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/meta/spreads name: v1beta1-crypto-meta-spreads description: REST surface for v1beta1-crypto-meta-spreads. operations: - method: GET name: getcryptometaspreads description: Get list of crypto spreads per exchange call: data-crypto-pricing-data-api.getcryptometaspreads outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/quotes name: v1beta1-crypto-quotes description: REST surface for v1beta1-crypto-quotes. operations: - method: GET name: getquotesformultiplecryptosymbols description: Get Quotes for multiple crypto symbols call: data-crypto-pricing-data-api.getquotesformultiplecryptosymbols outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/quotes/latest name: v1beta1-crypto-quotes-latest description: REST surface for v1beta1-crypto-quotes-latest. operations: - method: GET name: getlatestquotesformultiplecryptosymbols description: Get Latest Quotes for multiple Crypto symbols call: data-crypto-pricing-data-api.getlatestquotesformultiplecryptosymbols outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/snapshots name: v1beta1-crypto-snapshots description: REST surface for v1beta1-crypto-snapshots. operations: - method: GET name: getsnapshotsformultiplecryptosymbols description: Get Snapshots for multiple crypto symbols call: data-crypto-pricing-data-api.getsnapshotsformultiplecryptosymbols outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/trades name: v1beta1-crypto-trades description: REST surface for v1beta1-crypto-trades. operations: - method: GET name: gettradesformultiplecryptosymbols description: Get Trade data for multiple crypto symbols call: data-crypto-pricing-data-api.gettradesformultiplecryptosymbols outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/trades/latest name: v1beta1-crypto-trades-latest description: REST surface for v1beta1-crypto-trades-latest. operations: - method: GET name: getlatesttradesformultiplecryptosymbols description: Get Latest Trade data for multiple Crypto symbols call: data-crypto-pricing-data-api.getlatesttradesformultiplecryptosymbols outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/xbbos/latest name: v1beta1-crypto-xbbos-latest description: REST surface for v1beta1-crypto-xbbos-latest. operations: - method: GET name: getlatestxbboformultiplecryptosymbols description: Get Latest XBBO for multiple crypto symbols call: data-crypto-pricing-data-api.getlatestxbboformultiplecryptosymbols outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/{symbol}/bars name: v1beta1-crypto-symbol-bars description: REST surface for v1beta1-crypto-symbol-bars. operations: - method: GET name: getbarsforcryptosymbol description: Get Bar data for a crypto symbol call: data-crypto-pricing-data-api.getbarsforcryptosymbol outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/{symbol}/bars/latest name: v1beta1-crypto-symbol-bars-latest description: REST surface for v1beta1-crypto-symbol-bars-latest. operations: - method: GET name: getlatestbarsforcryptosymbol description: Get Latest Bar data for a Crypto symbol call: data-crypto-pricing-data-api.getlatestbarsforcryptosymbol outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/{symbol}/quotes name: v1beta1-crypto-symbol-quotes description: REST surface for v1beta1-crypto-symbol-quotes. operations: - method: GET name: getquotesforcryptosymbol description: Get Quotes for crypto symbol call: data-crypto-pricing-data-api.getquotesforcryptosymbol outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/{symbol}/quotes/latest name: v1beta1-crypto-symbol-quotes-latest description: REST surface for v1beta1-crypto-symbol-quotes-latest. operations: - method: GET name: getlatestquoteforcryptosymbol description: Latest Quote call: data-crypto-pricing-data-api.getlatestquoteforcryptosymbol outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/{symbol}/snapshot name: v1beta1-crypto-symbol-snapshot description: REST surface for v1beta1-crypto-symbol-snapshot. operations: - method: GET name: getsnapshotforcryptosymbol description: Get a Snapshot for a crypto symbol call: data-crypto-pricing-data-api.getsnapshotforcryptosymbol outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/{symbol}/trades name: v1beta1-crypto-symbol-trades description: REST surface for v1beta1-crypto-symbol-trades. operations: - method: GET name: gettradesforcryptosymbol description: Get Trade data for a crypto symbol call: data-crypto-pricing-data-api.gettradesforcryptosymbol outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/{symbol}/trades/latest name: v1beta1-crypto-symbol-trades-latest description: REST surface for v1beta1-crypto-symbol-trades-latest. operations: - method: GET name: getlatesttradesforcryptosymbol description: Latest Trades call: data-crypto-pricing-data-api.getlatesttradesforcryptosymbol outputParameters: - type: object mapping: $. - path: /v1/v1beta1/crypto/{symbol}/xbbo/latest name: v1beta1-crypto-symbol-xbbo-latest description: REST surface for v1beta1-crypto-symbol-xbbo-latest. operations: - method: GET name: getlatestxbboforcryptosymbol description: Get Latest XBBO for a single crypto symbol call: data-crypto-pricing-data-api.getlatestxbboforcryptosymbol outputParameters: - type: object mapping: $. - type: mcp namespace: data-crypto-pricing-data-api-mcp port: 9090 transport: http description: MCP adapter for Market Data API — Crypto Pricing Data API. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-bars-multiple-crypto-symbols description: Get Bars for multiple Crypto symbols hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getbarsformultiplecryptosymbols outputParameters: - type: object mapping: $. - name: get-latest-bars-multiple-crypto description: Get Latest Bars for multiple Crypto symbols hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getlatestbarsformultiplecryptosymbols outputParameters: - type: object mapping: $. - name: get-list-crypto-spreads-per description: Get list of crypto spreads per exchange hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getcryptometaspreads outputParameters: - type: object mapping: $. - name: get-quotes-multiple-crypto-symbols description: Get Quotes for multiple crypto symbols hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getquotesformultiplecryptosymbols outputParameters: - type: object mapping: $. - name: get-latest-quotes-multiple-crypto description: Get Latest Quotes for multiple Crypto symbols hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getlatestquotesformultiplecryptosymbols outputParameters: - type: object mapping: $. - name: get-snapshots-multiple-crypto-symbols description: Get Snapshots for multiple crypto symbols hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getsnapshotsformultiplecryptosymbols outputParameters: - type: object mapping: $. - name: get-trade-data-multiple-crypto description: Get Trade data for multiple crypto symbols hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.gettradesformultiplecryptosymbols outputParameters: - type: object mapping: $. - name: get-latest-trade-data-multiple description: Get Latest Trade data for multiple Crypto symbols hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getlatesttradesformultiplecryptosymbols outputParameters: - type: object mapping: $. - name: get-latest-xbbo-multiple-crypto description: Get Latest XBBO for multiple crypto symbols hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getlatestxbboformultiplecryptosymbols outputParameters: - type: object mapping: $. - name: get-bar-data-crypto-symbol description: Get Bar data for a crypto symbol hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getbarsforcryptosymbol outputParameters: - type: object mapping: $. - name: get-latest-bar-data-crypto description: Get Latest Bar data for a Crypto symbol hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getlatestbarsforcryptosymbol outputParameters: - type: object mapping: $. - name: get-quotes-crypto-symbol description: Get Quotes for crypto symbol hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getquotesforcryptosymbol outputParameters: - type: object mapping: $. - name: latest-quote description: Latest Quote hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getlatestquoteforcryptosymbol outputParameters: - type: object mapping: $. - name: get-snapshot-crypto-symbol description: Get a Snapshot for a crypto symbol hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getsnapshotforcryptosymbol outputParameters: - type: object mapping: $. - name: get-trade-data-crypto-symbol description: Get Trade data for a crypto symbol hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.gettradesforcryptosymbol outputParameters: - type: object mapping: $. - name: latest-trades description: Latest Trades hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getlatesttradesforcryptosymbol outputParameters: - type: object mapping: $. - name: get-latest-xbbo-single-crypto description: Get Latest XBBO for a single crypto symbol hints: readOnly: true destructive: false idempotent: true call: data-crypto-pricing-data-api.getlatestxbboforcryptosymbol outputParameters: - type: object mapping: $.