TRENDDocs
API referenceMarket data

Candles of a launch

GET
/v1/launches/{id}/chart

Oldest first. A candle opens at the previous candle's close; n: 0 means the price is carried. Prices are priceE12 (DNA units per whole token); multiply by dnaUnitSol for SOL.

Path Parameters

id*string

A launch address, its primary mint, or its ticker.

Query Parameters

bucket?string

Candle width in seconds, 1 to 86400. Default 60.

limit?string

How many candles, 1 to 1000. Default 500.

Response Body

OK

application/json
  1. response
dnaUnitSol*number|null
solUsd*number
openRule*"previousClose"
Value in"previousClose"
candles*array<>
curl -X GET 'https://api.dev.trend.fun/v1/launches/3rvGiCyHHkhATZNhSznAhpcXKRZ9788AD6yan1khxwuS/chart?bucket=300&limit=20'
{  "dnaUnitSol": 1,  "solUsd": 109.94,  "openRule": "previousClose",  "candles": [    {      "t": 1791641100,      "o": "2746037",      "h": "3027546",      "l": "2696179",      "c": "2765467",      "v": "7706809704995",      "vUsd": 2435.01909172428,      "n": 31    },    {      "t": 1791641400,      "o": "2765467",      "h": "2883527",      "l": "2649553",      "c": "2784124",      "v": "6741536101538",      "vUsd": 2052.52440079424,      "n": 35    },    {      "t": 1791641700,      "o": "2784124",      "h": "2919412",      "l": "2727770",      "c": "2794032",      "v": "2204984070431",      "vUsd": 686.2849731965,      "n": 12    }  ]}