Skip to content
HALOWERK

Blockchain Data

pool range spot ratio

Pool spot ratio converts Q96 square-root price to reciprocal decimal-adjusted token prices. Use it when an agent needs interpreting an on-chain price word.

POST https://kette.halowerk.com/v1/pool-range-spot-ratio

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
sqrtstringYes
decimals0integerYes
decimals1integerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "sqrt": {
      "type": "string",
      "pattern": "^[0-9]{1,49}$"
    },
    "decimals0": {
      "type": "integer",
      "minimum": 0,
      "maximum": 36
    },
    "decimals1": {
      "type": "integer",
      "minimum": 0,
      "maximum": 36
    }
  },
  "required": [
    "sqrt",
    "decimals0",
    "decimals1"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "sqrt": "1931360149565646249726964824798706",
  "decimals0": 6,
  "decimals1": 18
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’