CDR #019: Takepile Protocol | Asset Price

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 provides the markets used for calculating this feed.

API endpoint

By querying for blockchain and asset, the API provides the asset quotation for each asset in the feed.

Oracle

The oracle is deployed and can be accessed here.

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.

3 Likes