DIA Nexus Documentation
  • Nexus Overview
  • Intro to Nexus
    • How it works
    • Nexus vs. Lumina
    • Integrated Chains
  • Data products
    • Token Price Feeds
    • RWA Price Feeds
    • Randomness
    • Fair-value Feeds
  • How-to Guides
    • Fetch Price Data
      • Solidity
      • Vyper
      • Demo Oracles
      • Chain-specific Guide
        • Aleph Zero
        • Alephium
        • Edu Chain
        • Hydration
        • Kadena
        • LUKSO
        • Somnia
        • Stacks
        • Superseed
        • XRP Ledger (XRPL)
    • Generate Randomness
      • Solidity
      • WASM
      • Demo Oracles
      • Chain-specific Guide
        • Alephium
    • Migrate to DIA
    • Fund the Oracle
    • Build a Scraper
      • Development Cluster Stack
      • DIA Test‐Space with Docker Compose
      • DIA Test‐Space with Minikube
      • Add a new exchange scraper
      • Add a new foreign scraper
      • Add a new liquidity scraper
      • Additional notes
  • Request a Custom Oracle
  • Reference
    • Architecture
      • Data sourcing
      • Data computation
      • Data delivery
    • APIs
      • Token prices
        • RestAPI
          • Request Samples
        • GraphQL
          • Request Samples
      • RWA prices
    • Pricing Methodologies
      • IR: Interquartile Range Filter
      • MAIR: Moving Average with Interquartile Range Filter
      • VWAP: Volume Weighted Average Price
      • VWAPIR: Volume Weighted Average Price with Interquartile Range Filter
      • LST fair price
    • Data Sources
      • CEXes Data
      • DEXes Data
    • Smart Contracts
      • DIAOracleV2.sol
      • DIARandomOracle.sol
    • Randomness Protocol
  • Resources
    • Audits
    • Community & Support
    • Security Bounty Program
    • Research
      • Return Rates in Crypto Farming
      • Crypto Volatility Index
      • Compounded Rates
      • Polkadot Medianizer
    • T&C
      • Licence Agreement
      • Contributor Covenant Code of Conduct
      • Disclaimer
Powered by GitBook
On this page
  • Forex
  • Path Parameter
  • Commodities
  • Path Parameter
  • ETFs
  • Path Parameter
Export as PDF
  1. Reference
  2. APIs

RWA prices

DIA currently offers a set of price feeds for a selection of traditional financial assets, delivered via RestAPI endpoints.

Data is refreshed every 1-min

Forex

GET https://api.diadata.org/v1/rwa/Fiat/:FiatQuote

Returns the latest available exchange rate for fiat currencies.

Path Parameter

Name
Type
Description

:FiatQuote*

String

Exchange pair, e.g. EUR-USD; GBP-USD

Available FX pairs
  1. NGN/USD

  2. EUR/USD

  3. BRL/USD

  4. JPY/USD

  5. CHF/USD

  6. GBP/USD

Sample Response

{
  "Ticker": "EUR-USD",
  "Price": 1.04512317205083,
  "Timestamp": "2025-02-18T14:49:00Z"
}

Commodities

GET https://api.diadata.org/v1/rwa/Commodities/:CommoditySymbol

Returns the latest price of a commodity in USD.

Path Parameter

Name
Type
Description

:CommoditySymbol*

String

Commodity symbol e.g. XAU-USD (Gold)

Available commodities
  1. XAU/USD (Gold)

  2. XAGG/USD (Silver)

  3. XG/USD (Copper)

Sample Response

{
  "Ticker": "XAU-USD",
  "Name": "Gold Spot / US Dollar",
  "Price": 2925.88989,
  "Timestamp": "2025-02-17T20:00:00Z"
}

ETFs

GET https://api.diadata.org/v1/rwa/ETF/:ETFSymbol

Returns the latest price of an ETF in USD.

Path Parameter

Name
Type
Description

:ETFSymbol*

String

ETF symbol e.g. IVV (iShares Core S&P 500 ETF)

Available ETFs
  1. IVV (iShares Core S&P 500 ETF)

  2. URTH (iShares MSCI World ETF)

  3. EEM (iShares MSCI Emerging Markets ETF)

Sample Response

{
  "Ticker": "IVV",
  "Name": "iShares Core S&P 500 ETF",
  "Price": 612.97,
  "Timestamp": "2025-02-18T14:30:00Z"
}

To request custom data feeds, you can always refer to the following section:

PreviousRequest SamplesNextPricing Methodologies

Last updated 1 month ago

Request a Custom Oracle