econia-labs / econia

Hyper-parallelized on-chain order book for the Aptos blockchain
https://econia.dev
Other
134 stars 47 forks source link

[ECO-1997] Add transaction version in MQTT price levels topic payload #792

Closed CRBl69 closed 1 month ago

CRBl69 commented 1 month ago

Description

This PR adds the transaction version at which the price levels data was calculated in the MQTT levels topic payload.

This will help clients generate an accurate representation of data using the REST API, then stay up to date using an MQTT subscription, without counting any events twice, or missing any events.

Testing

Spin up a DSS.

Subscribe to levels/#.

Checklist