Quoter
Request a quote
function quote(
IClearingHouse.OpenPositionParams calldata params
)
returns (
int256, // Amount of base token
int256 // Amount of quote token
)Last updated
Was this helpful?
The quoter contract provides price estimates using onchain data. Additional APIs will be exposed for accessing offchain prices, when available.
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
Was this helpful?
Was this helpful?