Get Base Price based on currency in specific market

Hi, anyone know how to get the “base price” for a specific market? I tried to query using “PriceList” object, but it shows the price with my dev store currency (which is USD), what I want to get is the price using the market currency( which is Euro). Here is a query that I tried

 query {
   priceList(id: "gid://shopify/PriceList/14050525243") {
    prices(first: 1, query: "variant_id:34004908113979") {
     nodes {
      price {
       amount
       currencyCode
      }
      compareAtPrice{
       amount
       currencyCode
      }
      variant {
       id
       title
      }
      originType
    }
   }
   currency
 }
}

I want to get the Euro (Market currency) instead of USD (store currency)

Thank you in advance!

Are you sure you are quering the right PriceList?
You should have a priceList associated to your euro market, try to get the id and query that

Hi Luca,

Thank you for the fast response.

The price is correct, but it show as USD (store currency) not Euro (market currency)

Ok, now I understand your point. If you haven’t set a fixed price in EUR for that variant and market, the price is inherited from the backend price (“originType”: “RELATIVE”). This is why your query is returning the price in USD.

Since Shopify automatically converts prices between currencies, and you can apply a percentage price adjustment, you should be able to retrieve this data from the API.

Unfortunately, I don’t know how to do that. Let’s see if someone else can provide an answer.