Skip to main content
GET
/
api
/
workflows
/
polymarket
/
getMarketPrice
Get Market Price
curl --request GET \
  --url https://api-v2.swaps.xyz/api/workflows/polymarket/getMarketPrice \
  --header 'x-api-key: <api-key>'
{
  "price": "0.52"
}

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"