v1

latestOpenAPI 3.0.0MIT2026-07-171769101.7 KB

Gets the mean prices for the given liquidity pool and asset pairs. Mean is not AVG from the last values, but the remaining amount of assets on the pool output

post/dex/mean-price

Request body

limitnumber double

Defaults to DEX_PRICE_LIMIT.RESPONSE

dexesDex[] required
untilBlockstring required

block hash - inclusive

Example request

{
  "assetPairs": [
    {
      "asset2": {
        "assetName": "42657272794e617679",
        "policyId": "b863bc7369f46136ac1048adb2fa7dae3af944c3bbb2be2f216a8d4f"
      },
      "asset1": {
        "assetName": "42657272794e617679",
        "policyId": "b863bc7369f46136ac1048adb2fa7dae3af944c3bbb2be2f216a8d4f"
      }
    }
  ],
  "after": {
    "tx": "336d520af58ff440b2f20210ddb5ef5b2c035e0ec7ec258bae4b519a87fa1696",
    "block": "2548ad5d0d9d33d50ab43151f574474454017a733e307229fa509c4987ca9782"
  },
  "untilBlock": "cf8c63a909d91776e27f7d05457e823a9dba606a7ab499ac435e7904ee70d7c8"
}

Response

Example response

{
  "meanPrices": [
    {
      "amount2": "2042352568679",
      "amount1": "2042352568679",
      "asset2": {
        "assetName": "42657272794e617679",
        "policyId": "b863bc7369f46136ac1048adb2fa7dae3af944c3bbb2be2f216a8d4f"
      },
      "asset1": {
        "assetName": "42657272794e617679",
        "policyId": "b863bc7369f46136ac1048adb2fa7dae3af944c3bbb2be2f216a8d4f"
      }
    }
  ]
}