Skip to Content
Scalar
Data APIs

Get recent ticks

Returns the last 120 seconds of price ticks for a feed, used to prepopulate streaming charts. Responses are cached for 1 second.

GET
/recent/{feed_id}

Returns the last 120 seconds of price ticks for a feed, used to prepopulate streaming charts. Responses are cached for 1 second.

Path Parameters

feed_id*number

Pyth Lazer feed ID (e.g. 1 for BTC)

Range1 <= value

Response Body

Recent price ticks for a feed

application/json
  1. response

Recent price ticks for a feed

items*array<>
Example Request
curl -X GET 'https://data.scalar.market/recent/1'
Example Response
{
  "items": [
    {
      "price": 0,
      "timestamp": 0
    }
  ]
}