Trades

Trade tape

List trades that happened on a given market (trade tape).

GEThttps://api.prod.paradex.trade/v1/trades
Query parameters
Response

OK

Body
nextstring

The pointer to fetch next set of records (null if there are no records left)

Example: "eyJmaWx0ZXIiMsIm1hcmtlciI6eyJtYXJrZXIiOiIxNjc1NjUwMDE3NDMxMTAxNjk5N="
prevstring

The pointer to fetch previous set of records (null if there are no records left)

Example: "eyJmaWx0ZXIiOnsiTGltaXQiOjkwfSwidGltZSI6MTY4MTY3OTgzNzk3MTMwOTk1MywibWFya2VyIjp7Im1zMjExMD=="
resultsarray of responses.TradeResult (object)

List of trade details

Request
const response = await fetch('https://api.prod.paradex.trade/v1/trades?market=text', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "next": "eyJmaWx0ZXIiMsIm1hcmtlciI6eyJtYXJrZXIiOiIxNjc1NjUwMDE3NDMxMTAxNjk5N=",
  "prev": "eyJmaWx0ZXIiOnsiTGltaXQiOjkwfSwidGltZSI6MTY4MTY3OTgzNzk3MTMwOTk1MywibWFya2VyIjp7Im1zMjExMD==",
  "results": [
    {
      "created_at": 1681497002041,
      "id": "12345643",
      "market": "BTC-USD-PERP",
      "price": "30001.2",
      "side": {},
      "size": "0.01",
      "trade_type": "FILL"
    }
  ]
}

Last updated