> ## Documentation Index
> Fetch the complete documentation index at: https://xchangeapi.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Single currency rate

Get the latest exchange rate for a single, specific currency pair. This endpoint is optimized for retrieving precise, up-to-the-millisecond data for individual market instruments.

### Path parameters

<ParamField path="format" type="string" optional default="json">
  The desired output format. Options: `json`, `xml`, `csv`.

  <Warning>
    If you choose `xml`, you must use the **POST** method. `GET` requests for XML will fail.
  </Warning>
</ParamField>

### Query parameters

<ParamField path="currency-pair" type="string" optional>
  The currency pair symbol to retrieve (e.g., `EURUSD`). See the list of [available currencies](/docs/guides/available-currencies).
</ParamField>

### Response

<Warning>
  **Note on Precision**: Some currency pairs are returned with a [multiplier](/docs/http/metadata/multipliers) (e.g., 100 or 1000) to ensure high precision.
</Warning>

<ResponseField name="ask" type="string">
  The current ask price.
</ResponseField>

<ResponseField name="bid" type="string">
  The current bid price.
</ResponseField>

<ResponseField name="name" type="string">
  The currency pair symbol.
</ResponseField>

<ResponseField name="time" type="string">
  The Unix timestamp (epoch) of the rate.
</ResponseField>

<ResponseExample>
  ```json JSON theme={null}
  {
      "ask": "1.06742",
      "bid": "1.06727",
      "name": "EURUSD",
      "time": "1584640370.007"
  }
  ```

  ```xml XML theme={null}
  <result>
      <currency>
          <ask>1.06742</ask>
          <bid>1.06727</bid>
          <name>EURUSD</name>
          <time>1584640370.007</time>
      </currency>
  </result>
  ```

  ```csv CSV theme={null}
  ask,bid,name,time
  1.06742,1.06727,EURUSD,1584640370.007
  ```
</ResponseExample>
