Skip to content

MOCK: Add price feed node-mode action capability - #898

Closed
alecgard wants to merge 1 commit into
mainfrom
feat/pricefeed-capability
Closed

alecgard wants to merge 1 commit into
mainfrom
feat/pricefeed-capability

Conversation

@alecgard

Copy link
Copy Markdown

Implements the PriceFeed PRD. This adds a node-mode action (price-feed@1.0.0-alpha) that takes a ticker and returns (price, timestamp) from a provider the node operator configures, so workflows need no API keys, URLs or response parsing.

  • pricing/pricefeed, scaffolded with newcapability --action --node. The price feature is released, so the production proto is generated (see MOCK: cre: add price feed capability protos chainlink-protos#484).
  • Providers: Coinbase Price API (no key) and Chainlink Data Engine REST API (HMAC auth, decodes v2/v3/v4 reports, ticker-to-feed-ID map in the config).
  • Validation: ticker format, HTTP status, JSON, pair match, price > 0, max price age and future timestamps. Errors map to user codes (InvalidArgument, NotFound) or system codes (Unavailable, DeadlineExceeded). Network errors stay private.
  • The price is a values.v1.Decimal (no float loss), so workflows can take the median across nodes.
  • workflow/: an example of the PRD's "Desired" flow, run against the real capability through a fake SDK (the same pattern as the HTTP action test workflow).

Follow-ups: the cre-sdk-go client, and Data Engine report signature verification if we want it off-chain.

Adds pricing/pricefeed, a node-mode action (price-feed@1.0.0-alpha) that
returns (price, timestamp) for a BASE-QUOTE ticker from a provider the node
operator configures, so workflows need no API keys of their own.

- Providers: Coinbase Price API (no key) and Chainlink Data Engine REST API
  (HMAC auth, v2/v3/v4 report decoding)
- Validates the ticker and the response (status, JSON, pair, positive price,
  stale or future timestamp) and maps failures to user or system errors
- Example workflow running against the real capability via a fake SDK

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alecgard alecgard closed this Nov 12, 2026
@alecgard alecgard changed the title Add price feed node-mode action capability MOCK: Add price feed node-mode action capability Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant