> For the complete documentation index, see [llms.txt](https://docs.nekodex.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nekodex.org/nekodex-playground/docs-for-devs/contracts/quoter.md).

# 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`](/nekodex-playground/docs-for-devs/contracts/clearinghouse.md#openposition).

{% code overflow="wrap" %}

```solidity
function quote(
    IClearingHouse.OpenPositionParams calldata params
)

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

{% endcode %}
