Skip to main content
GET
/
connect
/
oracle
/
v2
/
get_price?currency_pair=
{baseCurrency}
/
{quoteCurrency}
Single Asset Price
curl --request GET \
  --url 'https://rest.testnet.initia.xyz/connect/oracle/v2/get_price?currency_pair={baseCurrency}%2F{quoteCurrency}'

Documentation Index

Fetch the complete documentation index at: https://docs.initia.xyz/llms.txt

Use this file to discover all available pages before exploring further.

baseCurrency
string
required
The base currency of the asset to get the price for (e.g. BTC)
quoteCurrency
string
required
The quote currency of the asset to get the price for (e.g. USD)
This endpoint returns the latest price data for a given baseCurrency and quoteCurrency pair. Note that baseCurrency and quoteCurrency must be a pair supported and found in the supported feeds endpoint, and combinations are not supported. For example, even if BTC/USD and ETH/USD are supported, BTC/ETH is not supported.