# Quote Methods

#### getQuote

Generates an OTC conversion quote between two assets. This is useful when your frontend needs to show the user an expected rate before they commit to a trade.

```
const quote = await rampClient.getQuote({
  participantCode: "B0100007",
  tradingPair: "USDT/USD",
  direction: 1,
  quantity: 10000,
});
```

The `direction` field controls which side of the pair you're pricing: use it to indicate whether you're buying or selling the base asset. The `quantity` is denominated in the base currency of the pair. The response will include the quoted rate and any applicable fees so you can render a confirmation screen before execution.


---

# 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/software-development-kit/on-off-ramp-module/quote-methods.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.
