Market Chart

Overview

Get time-series (chart) metrics for one or more protocols over a specified timeframe and interval.

Endpoint

GET /api/v1/partner/market/chart

Query Parameters

Parameter
Type
Required
Description

timeframe

string

Yes

Time window for aggregation. (e.g. 1d).

interval

string

Yes

Aggregation interval. (e.g. 1d).

protocols

string

Yes

Comma-separated protocol identifiers (e.g. flowx-clmm,flowx-cpmm).

List of supported timeframes:

Timeframe Key
Duration

1d

1 day

1w

1 week

1M

1 month

3M

3 months

6M

6 months

1Y

1 year

List of supported intervals:

Interval Key
Duration

1d

1 day

2d

2 days

1w

1 week

2w

2 weeks

List of supported protocols:

Protocol Key
Protocol Name

fullsail-clmm

Fullsail CLMM

kriya-clmm

Kriya CLMM (V3)

aftermath-cpmm

Aftermath CPMM

cetus-dlmm

Cetus DLMM

kriya-cpmm

Kriya CPMM (V2)

ferra-clmm

Ferra CLMM

bluefin-clmm

Bluefin CLMM

deepbookv3

Deepbook V3

ferra-dlmm

Ferra DLMM

7k-cpmm

7K CPMM

bluemove-cpmm

BlueMove CPMM

momentum-clmm

Momentum CLMM

interest-cpmm

Interest CPMM

flowx-cpmm

FlowX CPMM (V2)

magma-clmm

Magma CLMM

turbos-clmm

Turbos CLMM

magma-almm

Magma ALMM

flowx-clmm

FlowX CLMM (V3)

srm-cpmm

SRM CPMM

cetus-clmm

Cetus CLMM

steamm-cpmm

STEAMM CPMM

haedal-cpmm-v2

Haedal CPMM V2

haedal-cpmm

Haedal CPMM

Headers

Header
Required
Description

x-api-key

No

API key for authentication (if required).

cURL Example

Response

Fields

Field
Type
Description

code

number

HTTP-like response code (200 = success).

message

string

Human-readable status message.

data

object

Object containing arrays of protocol statistics.

Arrays of protocol statistics

Field
Type
Description

timestamp

number[]

Array of UNIX timestamps representing each data point.

protocol

string[]

Array of protocol identifiers corresponding to the statistics arrays.

tvl

number[][]

Array of TVL (Total Value Locked) arrays per protocol in USD. Each inner array corresponds to a protocol.

vol

number[][]

Array of trading volume arrays per protocol in USD. Each inner array corresponds to a protocol.

fee

number[][]

Array of fees collected arrays per protocol in USD. Each inner array corresponds to a protocol.

trade

number[][]

Array of trade count arrays per protocol. Each inner array corresponds to a protocol.

awallet

number[][]

Array of active wallet count arrays per protocol. Each inner array corresponds to a protocol.

Success Response

Notes:

  • Each metric is a 2D array: outer index = protocol index (matching protocol array), inner index = timestamp index.

  • Valid timeframes: 1d, 1w, 1M, 3M, 6M, 1Y.

  • Valid intervals: 1d, 2d, 1w, 2w.


See also: Environment Setup

Last updated