Skip to content

feat(dxfeed): use NumericResultEndpoint for price endpoint - #5299

Open
danwilliams-cll wants to merge 3 commits into
mainfrom
feat/dxfeed-numeric-result-endpoint
Open

feat(dxfeed): use NumericResultEndpoint for price endpoint#5299
danwilliams-cll wants to merge 3 commits into
mainfrom
feat/dxfeed-numeric-result-endpoint

Conversation

@danwilliams-cll

@danwilliams-cll danwilliams-cll commented Aug 14, 2026

Copy link
Copy Markdown

Switches the dxfeed price endpoint to use the framework's generic NumericResultEndpoint for automatic numeric result validation.

Changes

  • Replaced AdapterEndpoint with NumericResultEndpoint<BaseEndpointTypes> in src/endpoint/price.ts.
  • Added integration tests covering the success path and the non-numeric result path (returns 502).

Local verification

  • Linked the framework from ea-framework-js via yarn portal: and ran the dxfeed test suite: 21 tests passed.
  • Ran the adapter against the live dxfeed demo endpoint with staging credentials; TSLA returned a valid price.

Dependency

This PR requires a framework release containing the generic NumericResultEndpoint (smartcontractkit/ea-framework-js#876). The package.json dependency will be bumped to that release version once it is available.

@changeset-bot

changeset-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3c85180

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@chainlink/dxfeed-adapter Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Switches the price endpoint from AdapterEndpoint to NumericResultEndpoint for automatic numeric result validation.
@danwilliams-cll
danwilliams-cll force-pushed the feat/dxfeed-numeric-result-endpoint branch from c62f374 to 7c97fd6 Compare August 14, 2026 16:40
@danwilliams-cll
danwilliams-cll marked this pull request as ready for review August 14, 2026 17:53
Adds tests verifying the dxfeed price endpoint returns 502 for non-numeric provider results and that the existing success path still works.
Adds a changeset for the dxfeed price endpoint NumericResultEndpoint migration.
@danwilliams-cll
danwilliams-cll force-pushed the feat/dxfeed-numeric-result-endpoint branch from e6b103e to 3c85180 Compare August 14, 2026 18:12
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