Graph api response

Hello QuickNode! I’ve been using the GraphAPI recently and I’m not sure what unit of payment the “response” here is talking about.
In other words, is it based on “ETH” or is it based on “MATIC”, etc.

graph-api: QuickNode - Graph API Playground
(fyi, contract in opensea: https://opensea.io/collection/polyfactions)

query:

query MyQueryAPI($contractAddress: String!, $filter: ERC721CollectionStatsInput) {
  polygon {
    contract(contractAddress: $contractAddress) {
      ... on NFTContract {
        collection {
          ... on ERC721Collection {
            stats(filter: $filter) {
              averageInNativeToken
              ceilingInNativeToken
              floorInNativeToken
              totalSales
              volumeInNativeToken
            }
          }
        }
      }
    }
  }
}

params :

{
            "contractAddress": "0xD96E1816569a881459E8354A380415908C6A7F78",
            "filter": {
                "timeRange": {
                    "gte": "2010-07-15T00:00:00Z",
                    "lt": "2023-08-15T00:00:00Z",
                }
            },
        }

response:

{
  "data": {
    "polygon": {
      "contract": {
        "collection": {
          "stats": {
            "averageInNativeToken": 20.892307602491574, // <= what is payment unit of this? matic? or eth
            "ceilingInNativeToken": 2000,
            "floorInNativeToken": 0.0023, // <= 0.0023 "ETH" or 0.0023 "MATIC" or 0.0023 "?" 
            "totalSales": 1514,
            "volumeInNativeToken": 31630.953710172245
          }
        }
      }
    }
  }
}

Hey lukas :wave: ,

We return the price in the native token of the chain you’re querying, so if you’re querying polygon, it’s Matic. Ethereum, would be Eth.

-Nick

Thank you for your kind response.

I checked it out as you said, and there is something a little strange, so when I look at the OpenSea data I linked above, I can see that there is too much difference with the data provided by Quicknode.
The floor price of the opensea is 11.9 matic, while the data provided by quicknode is 0.0023 matic.(It’s strange, but there is a value of 0.0023 ETH in the data shown by opensea, so I wonder if the field is shown in eth. I think it might be a slight bug in quicknode?)

@NickQuickNode I know you’re super busy, but I was wondering if you could answer these questions?

Hey Lukas,

Great news, a fix has been deployed for this. Can you please test this out? Thanks!

-Nick