Polymarket

List Polymarket perps candles

List Polymarket perps candles for one instrument.

GET/v1/polymarket/perps/instruments/{instrumentId}/klines
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
5
instrumentIdstringrequiredpath

Perps instrument id from the instruments list.

pattern: ^\d{1,6}$

intervalstringoptionalquery

Candle length. Default: `1h`.

one of: 1m, 5m, 15m, 30m, 1h, 4h, 6h, 12h, 1d, 1w

fromintegeroptionalquery

Start of the range, unix seconds. Default: 48 hours before `to`.

≥ 1 · ≤ 4102444800

tointegeroptionalquery

End of the range, unix seconds. Default: now.

≥ 1 · ≤ 4102444800

cursorstringoptionalquery

Pass `page.nextCursor` from the previous response to get the next page. Keep the other filters the same.

min 1 chars · max 6000 chars

Response fields
19

Endpoint-specific response payload.

datalookupStatus
string

`found` on success. An id that matches no instrument returns an empty list.

one of: found, not_found

datainstrumentId
string

The instrument asked for.

datainterval
string

Candle length returned.

Oldest first.

datacandles[]at
string

Start of the candle (ISO-8601, UTC).

datacandles[]open
numbernullable

Opening price.

datacandles[]high
numbernullable

Highest price.

datacandles[]low
numbernullable

Lowest price.

datacandles[]close
numbernullable

Closing price.

datacandles[]volume

Volume in contracts. A number, or an exact decimal string when the value has more digits than a number can hold.

datacandles[]trades
numbernullable

Number of trades.

Pagination state for the current page.

datapagehasMore
boolean

Whether another page is available.

datapagenextCursor
stringnullable

Cursor to pass in the next request when more pages exist; null on the last page.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/polymarket/perps/instruments/1/klines?interval=1h" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Polymarket perps candles.