vega icon indicating copy to clipboard operation
vega copied to clipboard

[API]: Add AMM orders to market depth API

Open JonRay15 opened this issue 1 year ago • 0 comments

API Overview

In order to ... (context - overcome a problem or meet a requirement) display AMM orders in the book We will build an API to... (what - describe what the API needs to do) add them to the order book depth API So that ... (why - we create these outcomes) Console can show them

Specs

Spec name to spec or section within a spec

API request details

  • [ ] Enhance the existing market depth API (I assume it is this one?) to show the orders coming from AMM
  • [ ] The API will need to approximate the AMM volum curve into discrete price levels
  • [ ] The API should indicate at each level how much of that volume is regular orders vs what is AMM
  • [ ] A decision will be needed as to how far from the midprice we can generate and show this volume as it is expected to be a lot of data - performance benchmarking needed for this, doing some multiple of liquidity SLA for the market could be a good option here

Filtering requirements (inputs)

  • [ ] Filter to show AMM vs non-AMM volume

Sample API output (optional)


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.

JonRay15 avatar Feb 14 '24 15:02 JonRay15