Skip to Content
Scalar
Data APIs

Get a product cycle

Returns start and last traded prices for a specific product cycle.

GET
/products/{product_ptr}/cycles/{cycle}

Returns start and last traded prices for a specific product cycle.

Path Parameters

product_ptr*string

Product pointer in hex format (0x prefix optional)

cycle*number

Cycle number, 0-based from initial_cycle_ts

Response Body

A product cycle with start and last traded prices

application/json
  1. response

A product cycle with start and last traded prices

product_cycle*

A product for a specific cycle

Example Request
curl -X GET 'https://data.scalar.market/products/string/cycles/0'
Example Response
{
  "product_cycle": {
    "product": {
      "product_ptr": "string",
      "name": "string",
      "settler_id": "string",
      "initial_cycle_ts": 0,
      "cycle_duration_secs": 0,
      "pyth_price_ids": [
        0
      ],
      "params_list": [
        "string"
      ],
      "created_at": 0
    },
    "cycle": 0,
    "start_prices": [
      "string"
    ],
    "last_prices": [
      "string"
    ],
    "open_interest": [
      "string"
    ]
  }
}