Closed shrenujb closed 2 weeks ago
[!CAUTION]
Review failed
The pull request is closed.
The changes in this pull request involve updates to the TradingPerpetualMarketMessage
interface and the generatePerpetualMarketMessage
function within the codebase. Two optional properties, tickSize
and stepSize
, have been added to the interface, enhancing the data structure for market trading parameters. Additionally, the generatePerpetualMarketMessage
function has been modified to include several new properties, allowing for more detailed information to be conveyed in the perpetual market messages.
File Path | Change Summary |
---|---|
indexer/packages/postgres/src/types/websocket-message-types.ts |
Added optional properties tickSize?: string and stepSize?: string to the TradingPerpetualMarketMessage interface. |
indexer/services/ender/src/helpers/kafka-helper.ts |
Added import for protocolTranslations and expanded generatePerpetualMarketMessage to include new properties: marketType , tickSize , stepSize , priceChange24H , volume24H , trades24H , nextFundingRate , openInterest , and baseOpenInterest . |
generatePerpetualMarketMessage
function to include the tickSize
and stepSize
properties, which are also added to the TradingPerpetualMarketMessage
interface in the main PR, indicating a direct relationship in the data structure changes.🐇 In the market where rabbits play,
New fields have come to brighten the day.
Tick sizes and steps, oh what a treat,
For trading messages, they can't be beat!
With each hop, the data flows,
In the world of trading, excitement grows! 🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@mergifyio release/indexer/v7.x
release /indexer/v7.x
@mergifyio backport release/indexer/v7.x
backport release/indexer/v7.x
Changelist
Add additional fields to the perpetual markets updates needed by the websocket message to the FE
Test Plan
Existing tests
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.Summary by CodeRabbit
marketType
,tickSize
,stepSize
,priceChange24H
,volume24H
,trades24H
,nextFundingRate
,openInterest
, andbaseOpenInterest
.tickSize
andstepSize
to theTradingPerpetualMarketMessage
interface for more detailed market information.