# CorrelatedTokenOracle

## CorrelatedTokenOracle

This oracle fetches the price of a token that is correlated to another token.

## Solidity API

#### CORRELATED\_TOKEN

Address of the correlated token

```solidity
address CORRELATED_TOKEN
```

***

#### UNDERLYING\_TOKEN

Address of the underlying token

```solidity
address UNDERLYING_TOKEN
```

***

#### RESILIENT\_ORACLE

Address of Resilient Oracle

```solidity
contract OracleInterface RESILIENT_ORACLE
```

***

#### getPrice

Fetches the price of the correlated token

```solidity
function getPrice(address asset) external view returns (uint256)
```

**Parameters**

| Name  | Type    | Description                     |
| ----- | ------- | ------------------------------- |
| asset | address | Address of the correlated token |

**Return Values**

| Name | Type    | Description                                                      |
| ---- | ------- | ---------------------------------------------------------------- |
| \[0] | uint256 | price The price of the correlated token in scaled decimal places |

***


---

# 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://docs-v4.venus.io/technical-reference/reference-oracle/correlated-token-oracles/correlated-token-oracle.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.
