GET
/
connect
/
oracle
/
v2
/
get_price?currency_pair=
{baseCurrency}
/
{quoteCurrency}
curl --request GET \
  --url 'https://lcd.testnet.initia.xyz/connect/oracle/v2/get_price?currency_pair={baseCurrency}%2F{quoteCurrency}'
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.