Skip to Content
Indexify
Market Data

Get stack chart payload with version segments

GET
/api/charts.php?action=stack-chart-payload

Returns token amounts for each allocation version segment so the frontend can build accurate historical charts across allocation edits. Includes a segments array with time ranges and per-version base amounts, plus a backwards-compatible tokens field with the current allocation.

Query Parameters

slug?string

Stack slug (either slug or stack_id required).

stack_id?integer

Stack ID (either slug or stack_id required).

bucket?string

Chart candle bucket size.

Default"5m"
Value in"1s""1m""5m""30m""1h""24h"
endTime?integer

End timestamp for pagination.

includeTokenValues?string

Whether to include per-token values in the chart response.

Value in"true""false"

Response Body

Chart payload with version segments.

application/json
  1. response
stack_id?integer
payload?
Example Request
curl -X GET 'https://api.indexify.finance/api/charts.php?action=stack-chart-payload'
Example Response
{  "stack_id": 0,  "payload": {    "segments": [      {        "version": 0,        "start": 0,        "end": 0,        "tokens": [          {            "address": "string",            "amount": 0          }        ]      }    ],    "tokens": [      {        "address": "string",        "amount": 0      }    ],    "bucket": "string",    "limit": 0,    "includeTokenValues": true  }}