# OTC Quoting

The quoting system provides real-time conversion pricing between supported trading pairs. This is useful any time your product needs to move between fiat and crypto denominations, or between different stablecoins, without routing through an external exchange.

Your backend calls `getQuote` with a participant code, trading pair (e.g. `USDT/USD`), direction, and quantity. The `direction` parameter controls the side: `1` is a buy (acquiring the base currency), `2` is a sell. The quantity is denominated in the base currency of the pair.

The response includes the quoted price, the total expected proceeds, and an expiry timestamp. Quotes are not held indefinitely. Your frontend should display a countdown so the user knows how long the rate is valid before it needs to be refreshed. If the user accepts, the conversion is executed against the quoted rate before expiry.

Accuracy matters here for the same reason it matters in vault NAV pricing: the rate at which a conversion executes determines how much the user actually receives, and any slippage or stale pricing directly affects their outcome.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://city-protocol.gitbook.io/docs/neofinance-as-a-service/on-off-ramp-module/otc-quoting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
