Skip to main content
Version: release (v0.77)

Estimate AMM bounds

GET 

/api/v2/estimate/amm/bounds

Get a list of AMMs or filter by market ID, party ID or AMM ID

Request

Query Parameters

    basePrice string

    Base price of the AMM pool, the price is an integer, for example 123456 is a correctly formatted price of 1.23456 assuming market configured to 5 decimal places.

    upperPrice string

    Upper price of the AMM pool, the price is an integer, for example 123456 is a correctly formatted price of 1.23456 assuming market configured to 5 decimal places.

    lowerPrice string

    Lower price of the AMM pool, the price is an integer, for example 123456 is a correctly formatted price of 1.23456 assuming market configured to 5 decimal places.

    leverageAtUpperPrice string

    Leverage at the upper price of the AMM pool.

    leverageAtLowerPrice string

    Leverage at the lower price of the AMM pool.

    commitmentAmount string

    Amount of the asset that the party is willing to commit to the AMM pool.

    marketId string

    Market ID to estimate the AMM for.

Responses

A successful response.

Schema
    liquidationPriceAtLower string

    Estimated price below the lower bound at which the commitment will be lost.

    liquidationPriceAtUpper string

    Estimated price above upper bound at which the commitment will be lost.

    lossOnCommitmentAtLower string

    Loss of commitment at the lower bound.

    lossOnCommitmentAtUpper string

    Loss of commitment at the upper bound.

    positionSizeAtLower string

    Theoretical volume at the top of the lower bound.

    positionSizeAtUpper string

    Theoretical volume at the top of the upper bound.

Loading...