Skip to content

Conversation

@mxiao-cll
Copy link
Contributor

Description

Add v11 schema

{
    "result": null,
    "data": {
        "mid": "225325000000000000000",
        "lastSeenTimestampNs": "1763378650248000000",
        "bid": "225300000000000000000",
        "bidVolume": 2426047410323587000,
        "ask": "225350000000000000000",
        "askVolume": 2426047410323587000,
        "lastTradedPrice": "221900000000000000000",
        "marketStatus": 0,
        "decimals": 18
    },
    "timestamps": {
        "providerDataStreamEstablishedUnixMs": 1763761180866,
        "providerDataReceivedUnixMs": 1763761186783
    },
    "statusCode": 200,
    "meta": {
        "adapterName": "DATA_ENGINE",
        "metrics": {
            "feedId": "{\"feedId\":\"0x000b5b1b8e542a6df9ba9dde5d1414d7ae63d62e57beb7f1467b8466780c336c\"}"
        }
    }
}

Quality Assurance

  • If a new adapter was made, or an existing one was modified so that its environment variables have changed, update the relevant infra-k8s configuration file.
  • If a new adapter was made, or an existing one was modified so that its environment variables have changed, update the relevant adapter-secrets configuration file.
  • If a new adapter was made, or a new endpoint was added, update the test-payload.json file with relevant requests.
  • The branch naming follows git flow (feature/x, chore/x, release/x, hotfix/x, fix/x) or is created from Jira.
  • This is related to a maximum of one Jira story or GitHub issue.
  • Types are safe (avoid TypeScript/TSLint features like any and disable, instead use more specific types).
  • All code changes have 100% unit and integration test coverage. If testing is not applicable or too difficult to justify doing, the reasoning should be documented explicitly in the PR.

@changeset-bot
Copy link

changeset-bot bot commented Nov 21, 2025

🦋 Changeset detected

Latest commit: e9df73c

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

This PR includes changesets to release 2 packages
Name Type
@chainlink/data-engine-adapter Minor
@chainlink/glv-token-adapter Patch

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

bidVolume: number
ask: string
askVolume: number
lastTradedPrice: string
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does Streams / DE handle the feeds where lastTradedPrice is not available?
For example, spot (FX) feeds don't have lastTradedPrice. Would it cause any issues here or would they return a default?

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.

2 participants