Redstone on re.al

Current Price Feeds

So far we have deployed the GOLD (XAU) and GBP price feeds on Unreal with Chainlink interface adapter.

Code Snippets

Querying Prices

const getLatestSignedPrice = async () => {
  return await sdk.requestDataPackages({
    dataServiceId: "redstone-primary-prod",
    uniqueSignersCount: 3,
    dataFeeds: ["XAU"],
    urls: ["https://oracle-gateway-1.a.redstone.finance"],
  });
};

const dataPackagesResponse = await getLatestSignedPrice();

const { dataPackage } = dataPackagesResponse["XAU"]![0];

const parsedPrice = parsePrice(dataPackage.dataPoints[0].value);

Updating Price

Last updated