Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Market Data API with additional metrics #11029

Open
5 tasks
Tracked by #11019
JonRay15 opened this issue Mar 27, 2024 · 2 comments
Open
5 tasks
Tracked by #11019

Enhance Market Data API with additional metrics #11029

JonRay15 opened this issue Mar 27, 2024 · 2 comments

Comments

@JonRay15
Copy link

JonRay15 commented Mar 27, 2024

API Overview

There are a few metrics that we want to be able to display in various screens for AMM which would be good to add to the market data API.

API request details

  • Enhance market data API to include
    • Rolling 24h volume (rolling every minute)
    • Rolling 24h price change (rolling every minute)
    • Total order volume on the book broken down by AMM v Book

Filtering requirements (inputs)

  • Market ID

Questions

Open questions about the feature implementation, what can be done with the APIs, or currently unresolved questions around the feature.

API test scenarios

Detailed scenarios that can be executed as feature tests to verify that the API has been implemented as expected.

GIVEN (setup/context)
WHEN (action)
THEN (assertion) For example...
See here for more format information and examples.

Additional Details (optional)

Any additional information that provides context or gives information that will help us develop the feature.

@mattrussell36
Copy link
Contributor

mattrussell36 commented Mar 27, 2024

  • We really need 24 hour price change as well
  • Do we want more granularity on total order volume? IE AAM volume vs normal orders vs normal liquidity provisions?

@EVODelavega
Copy link
Contributor

WRT the rolling price change every minute: that's a rather strange one: for perps the mark price is only updated once when we mark to market, which could (and AFAIK always is less frequent than once per minute), so it doesn't make sense to track the price data on a per-minute basis. In terms of data that could be more accurately tracked (and doesn't require new events) could be the rolling price change in terms of actual trades on a market, but those might not be representative of the changes in mark price

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

4 participants