vega
vega copied to clipboard
Create API to estimate order book depth based on defined vAMM shape
API Overview
When users are creating or amending their AMM shape we need to be able to give them information on what that will actually mean for them as a user. What shape they're quoting, what it means in terms of range, loss at range, liquidation price etc, so they can make informed decisions.
Since this API will need thorough testing and is complex functionality it has been explicitly included in the spec.
API request details
- [ ] Provide an API that delivers the functioinality described in the 0014-NP-VAMM-bounds-estimations spec
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.