# CDR #019: Takepile Protocol | Asset Price

**URL:** <https://forum.diadata.org/t/cdr-019-takepile-protocol-asset-price/412>\
**Category:** CDRs - Custom Delivery Requests\
**Tags:** fantom, defi, token-price-feed\
**Created:** [August 25, 2022, 9:29am UTC](https://forum.diadata.org/t/cdr-019-takepile-protocol-asset-price/412 "2022-08-25T09:29:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![takepile](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.diadata.org/takepile/32/215_2.png) [@takepile](https://forum.diadata.org/u/takepile)\
**Post date:** [August 25, 2022, 9:29am UTC](https://forum.diadata.org/t/cdr-019-takepile-protocol-asset-price/412/1 "2022-08-25T09:29:41Z")

</div>

## dApp introduction

The Takepile Protocol is an isolated, no-slippage decentralized perpetual exchange with a novel “pile” liquidity system, guaranteeing solvency for all traders.

## Feed usage

**Data type** : Price feed  
**Use case** : The feed will be used to calculate asset prices

## Specifications

**Delivery method** : Fantom Mainnet  
**Update mechanism** : Time based  
**Threshold** : 60s  
**Methodology** : MA  
**Frequency** : 60s  
**Sources (by chain/version)**: All available markets  
**Pairs** : BTC / USD, ETH / USD, FTM / USD, AVAX / USD

---

<div class="post-metadata">

**Author:** ![Mikel](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.diadata.org/mikel/32/13_2.png) [@Mikel](https://forum.diadata.org/u/Mikel)\
**Post date:** [August 25, 2022, 9:57am UTC](https://forum.diadata.org/t/cdr-019-takepile-protocol-asset-price/412/2 "2022-08-25T09:57:04Z")

</div>

Thanks for submitting your Custom Delivery Request!

The DIA DAO will review your requirements shortly and if all information is correctly provided, a core developer will proceed and deliver the API endpoint. If the requirements are partially or incorrectly requested, a DAO member will get in touch with you again.

---

<div class="post-metadata">

**Author:** ![Samuel](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.diadata.org/samuel/32/119_2.png) [@Samuel](https://forum.diadata.org/u/Samuel)\
**Post date:** [August 30, 2022, 2:07pm UTC](https://forum.diadata.org/t/cdr-019-takepile-protocol-asset-price/412/3 "2022-08-30T14:07:29Z")

</div>

Thank you for requesting a DIA CDR. We confirm the CDR specifications were requested correctly. Find the oracle / API endpoint below:

**Markets**

By querying for blockchain and asset, the [API](https://docs.diadata.org/documentation/api-1/api-endpoints#asset-markets) provides the markets used for calculating this feed.

**API endpoint**

By querying for blockchain and asset, the [API](https://docs.diadata.org/documentation/api-1/api-endpoints#asset-quotation) provides the asset quotation for each asset in the feed.

**Oracle**

The oracle is deployed and can be accessed here.

> **[Contract Address 0x8a0e7e9130b2a8265dcb511a41acd859019427d3 | FtmScan](https://ftmscan.com/address/0x8a0e7e9130b2a8265dcb511a41acd859019427d3)**
>
> The Contract Address 0x8a0e7e9130b2a8265dcb511a41acd859019427d3 page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...

You can query for assets by calling the read function getValue() with parameters such as “BTC/USD”. It will return two values:

1. The price of the asset queried with 8 decimals
2. The timestamp of the last update

Please make sure to top up the gas wallets very soon, as we only put in some gas to deploy and start the oracle.  
Gas wallet: 0xE2c81ac9AfE840ADBD655B089397BA88c52bD418

Also make sure they always have sufficient funding.

---

<div class="post-metadata">

**Author:** ![takepile](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.diadata.org/takepile/32/215_2.png) [@takepile](https://forum.diadata.org/u/takepile)\
**Post date:** [September 19, 2022, 4:46pm UTC](https://forum.diadata.org/t/cdr-019-takepile-protocol-asset-price/412/4 "2022-09-19T16:46:35Z")

</div>

New price feed request:

**Pairs** : YFI / USD, ETC / USD

Other specifications the same as above. Thank you!

---

<div class="post-metadata">

**Author:** ![Samuel](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.diadata.org/samuel/32/119_2.png) [@Samuel](https://forum.diadata.org/u/Samuel)\
**Post date:** [September 20, 2022, 2:45pm UTC](https://forum.diadata.org/t/cdr-019-takepile-protocol-asset-price/412/5 "2022-09-20T14:45:37Z")

</div>

YFI and ETC have been integrated into the testnet and mainnet oracles.
