# Data Feed Consumer

This page guides you through an example of consuming a data feed from your consumer contract.

The example consumer contract is at [`0x0A787d834cEbFfedCb43a531Cf788F7229E7Fc51`](https://testnet.bkcscan.com/address/0x0A787d834cEbFfedCb43a531Cf788F7229E7Fc51/contracts).

As you can see in the consumer contract, we must create a variable to store the address of the data feed contract and use <mark style="color:orange;">`AggregatorV2V3Interface`</mark> to consume a token price.

![](https://lh5.googleusercontent.com/emm3u8VGCxN9f1s53dyfhVc5rz-Je1tMZP7JCP799G5X98mlX20c3TkDTAk8XGydOfiQRlFlwF-RtwfoBWPFYi0Vd4ewAveql9jAQXGpnbkfs9hhVblEoxMlMA-q8cRE0-i-egZP)

&#x20;If you want to get the answer of the latest round, you can use <mark style="color:orange;">`aggregator.latestRoundData()`</mark>.

![](https://lh4.googleusercontent.com/b7Zwg0ZeINP1p9RUMiJhwAyaTyWjnj-TkUhVZgUx_QhpqX4RwEHBWEprO0gXDMqCkiZAxw3OGnjLoEVb5C-ndegdzBiDt_rpnH0T5tVANtXm_E26mUqFjDxrYiLatd_o_G_5bZIp)

Five values will be returned after your contract is allowed to consume the data feed. The price is the second value of the returned values. In this case, the answer is the price of BTC in USD.

{% hint style="info" %}
Right now, we only offer 8 decimal places for the token prices.

The number of decimal places of each token price can be obtained using <mark style="color:orange;">`aggregator.decimals()`</mark>.&#x20;
{% endhint %}
