Skip to content

Conversation

@mxiao-cll
Copy link
Contributor

@mxiao-cll mxiao-cll commented Nov 18, 2025

Add mid which is calculated by (bid price x bid volume + ask price x ask volume) / (bid volume + ask volume)

{
    "result": null,
    "data": {
        "mid_price": 397.6909677419354,
        "bid_price": 397.42,
        "bid_volume": 46,
        "ask_price": 397.78,
        "ask_volume": 140
    },
    "timestamps": {
        "providerDataStreamEstablishedUnixMs": 1763480966345,
        "providerDataReceivedUnixMs": 1763480969722
    },
    "statusCode": 200,
    "meta": {
        "adapterName": "DXFEED",
        "metrics": {
            "feedId": "{\"base\":\"tsla\"}"
        }
    }
}

https://smartcontract-it.atlassian.net/browse/OPDATA-4774
https://smartcontract-it.atlassian.net/browse/OPDATA-4775

PRD: https://docs.google.com/document/d/1PVuwVubUOE_o8gJlrLfccU71v2WZKB66TULWMkODXQc/edit?tab=t.0#heading=h.btjmqsp0rgk7

@changeset-bot
Copy link

changeset-bot bot commented Nov 18, 2025

🦋 Changeset detected

Latest commit: 216d1ad

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

This PR includes changesets to release 15 packages
Name Type
@chainlink/dxfeed-adapter Minor
@chainlink/finage-adapter Minor
@chainlink/token-allocation-adapter Patch
@chainlink/apy-finance-adapter Patch
@chainlink/bsol-price-adapter Patch
@chainlink/crypto-volatility-index-adapter Patch
@chainlink/curve-3pool-adapter Patch
@chainlink/defi-dozen-adapter Patch
@chainlink/defi-pulse-adapter Patch
@chainlink/dxdao-adapter Patch
@chainlink/linear-finance-adapter Patch
@chainlink/savax-price-adapter Patch
@chainlink/set-token-index-adapter Patch
@chainlink/vesper-adapter Patch
@chainlink/xsushi-price-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

Copy link
Contributor

@mmcallister-cll mmcallister-cll left a comment

Choose a reason for hiding this comment

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

looks fine as impl, PRD has some recent comments from Dan that haven't been answered yet though

@mxiao-cll mxiao-cll merged commit c3a9d9b into main Nov 20, 2025
15 of 16 checks passed
@mxiao-cll mxiao-cll deleted the s branch November 20, 2025 21:01
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