Quoter

The quoter contract provides price estimates using onchain data. Additional APIs will be exposed for accessing offchain prices, when available.

Request a quote

quote takes the same parameters as ClearingHouse.OpenPosition.

function quote(
    IClearingHouse.OpenPositionParams calldata params
)

returns (
    int256, // Amount of base token
    int256 // Amount of quote token
)

Last updated