Polymarket

List Polymarket perps trades

List recent Polymarket perps trades.

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

API key (`sfk_...`)

Parameters
4
instrumentIdstringrequiredpath

Perps instrument id from the instruments list.

pattern: ^\d{1,6}$

fromintegeroptionalquery

Start of the range, unix seconds. Default: 24 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
17

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.

Newest first.

datatrades[]id
string

Trade id.

datatrades[]at
stringnullable

When the trade happened (ISO-8601, UTC).

datatrades[]side
stringnullable

`long` or `short`.

datatrades[]price
numbernullable

Price.

datatrades[]quantity

Contracts traded. A number, or an exact decimal string when the value has more digits than a number can hold.

datatrades[]settlement
booleannullable

Whether the trade was a settlement.

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/trades" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Polymarket perps trades.