Skip to main content
GET
Ekubo pool spot price
Template dex.ekubo.price@1 · DEX · spot price as a decimal · reads Starknet

Authorizations

Authorization
string
header
required

Session token from POST /v1/session (sign in with the subscription owner's or a delegate's wallet). Each value uses one round of the plan's quota.

Query Parameters

chain
enum<string>
required

CAIP-2 id or alias (Starknet chains)

Available options:
starknet,
starknet:SN_MAIN,
starknet-sepolia,
starknet:SN_SEPOLIA
finality
string
default:final

"final" or "fast", or a raw mode: "finalized", "safe", "confirmations:" (EVM, Starknet), "confirmed" (Solana)

token0
string
required

the pool's lower token (Ekubo sorts a pool's tokens)

token1
string
required

the pool's higher token

fee
string
required

the fee as Ekubo writes it: a u128 fraction of 2^128 (0.05% is 170141183460469235273462165868118016)

Pattern: ^(0|[1-9][0-9]*)$
tickSpacing
string
required

the pool's tick spacing (1000 for the 0.05% pools)

Pattern: ^(0|[1-9][0-9]*)$
extension
string
default:0x0

the pool's extension contract; 0x0 for none

invert
enum<string>
default:false

false: token1 per token0; true: the inverse

Available options:
false,
true
signaturesRequired
integer
default:3

Signatures the round needs (default 3). Tolerance-mode sources need at least 3; the gateway bounds it by the protocol minimum, your plan and the live nodes.

Required range: 1 <= x <= 255

Response

The threshold-signed value (data.attestation) and its rendering (data.value); Molpha-Source-Id names the derived source.

data
object
status
string
Example:

"completed"