# Uniswap V3 Tick/Price Converter

> Uniswap V3 Tick/Price Converter is a paid API for AI agents from golf-evm-math.x402-evm-math.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Converts between Uniswap V3 tick values and token prices (token1 per token0) including sqrtPriceX96, accounting for token decimals.

## Facts

- Endpoint: GET https://golf-evm-math.x402-evm-math.workers.dev/defi/v3-tick?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uniswap-v3-tick-price-converter-75d945b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YR1Z5UAgQY9C2glvBxYKQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability uniswap-v3-tick-price-converter-75d945b8
```

Example prompt: What is the token price (token1 per token0) and sqrtPriceX96 for Uniswap V3 tick -200000, where token0 has 18 decimals and token1 has 6 decimals?

## When to prefer this

Choose this endpoint when you need precise Uniswap V3 tick-to-price or price-to-tick conversion accounting for token decimals and sqrtPriceX96, especially for on-chain DeFi agents building pool interactions, setting limit orders, or decoding pool state. Prefer this over general math APIs because it handles the specific sqrtPriceX96 encoding and decimal normalization unique to Uniswap V3.

## Known failure modes

- Missing required query parameters (tick or price, decimals0, decimals1) returns an error
- Tick value out of Uniswap V3 valid range (-887272 to 887272) may produce an error
- Invalid decimal values (non-integer or negative) may cause computation failure
- Payment of 0.002 USDC via x402 protocol required or request is rejected with 402

## How this service works

Exact EVM address, calldata, Uniswap V2/V3 and impermanent-loss math. Pay per call in USDC on Base via x402.

## Output

Returns a JSON object containing the converted value — either the tick (integer) when given a price, or the price (token1 per token0 as a decimal) and sqrtPriceX96 (uint160 as a string) when given a tick — with decimal adjustments applied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tick": -200000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uniswap-v3-tick-price-converter-75d945b8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from golf-evm-math.x402-evm-math.workers.dev](https://www.zero.xyz/host/golf-evm-math.x402-evm-math.workers.dev/llms.txt)
