# Use Oracle Feeds

Acala's [Open Oracle Gateway](/learn/acala-introduction.md#open-oracle-gateway) allows multiple oracles to be deployed on the Acala network, leveraging Acala's DeFi optimized oracle infrastructure, and serving any DApps on Acala, Polkadot, Kusama and beyond. The Open Oracle Gateway ensures Quality of Service, that is oracle transactions are classified as system transactions, and are guaranteed to be included in a block.

This pre-compiled contract make querying various price feeds for various assets available inside Acala EVM. Currently the `getPrice` method returns the aggregated price for a given asset. More price feed options are being made available.

Contract source code here: [evm-examples/oracle](https://github.com/AcalaNetwork/evm-examples/tree/master/oracle).

> ***NOTE:*** If you're running a local Acala node with EVM playground, you are like to have 0 prices for all of the tokens.

## Contract Address

Oracle contract address: `0x0000000000000000000000000000000000000801`

## Contract Methods

```javascript
// Get the price of the currency_id.
// Returns the (price, timestamp)
function getPrice(address token) public view returns (uint256, uint256);
```

## Try it on Playground

Navigate to the [EVM Playground](https://evm.acala.network/#/execute) - `Execute tab`.

Find the `Oracle Price Feed` contract and click the `Execute` Button.

![](/files/-MS_ASZBa1Eve121DEoY)

In the `token: address` field, enter the ERC20 contract address (in the example DOT address as `0x0000000000000000000000000000000000000802`) for the token of interest. Feeds are available for DOT, RenBTC and XBTC.

Find all available token contract addresses [here](https://wiki.acala.network/build/development-guide/smart-contracts/advanced/use-native-tokens).

![](/files/-MS_AhT90-wYx6lU3ELu)

Click on the `Call` Button, `Call results` should show the price and timestamp.

![](/files/-MS_CSULQlX6vBePCt2x)


---

# 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://wiki.acala.network/build/development-guide/smart-contracts/advanced/use-oracle-feeds.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.
