Skip to main content
GET
Get Market Price

Authorizations

x-api-key
string
header
required

API key for authentication. Contact Swaps.xyz to obtain an API key.

Query Parameters

clobTokenId
string
required

CLOB token ID

side
enum<string>
required

Order side (BUY or SELL)

Available options:
BUY,
SELL

Response

Current market price

price
string
required

Current best price for the specified side

Example:

"0.52"