Skip to main content
POST
Generate perp chart image
Send OHLC candles together with the header and footer blocks shown around the chart, and the rendered chart is returned in data. This is a synchronous proxy: one request in, one rendered chart out — nothing is stored.
Candles use the same t / o / h / l / c shape as GET /2/perp/ohlcv-history — feed that endpoint’s output directly. t is UNIX milliseconds, and priceChange is a percentage (e.g. -6.31 means -6.31%).

Body

application/json
candles
object[]
required

OHLC series, oldest-to-newest by t. Same shape as the /2/perp/ohlcv-history response, so its output can be passed in directly. Must contain at least one candle.

Minimum array length: 1
width
integer
required

Output image width in pixels. Positive integer.

height
integer
required

Output image height in pixels. Positive integer.

name
string
required

Chart title / pair label shown on the chart (e.g. FLUID/USD).

headerData
object
required

Header block shown above the chart.

Footer block shown below the chart.

lines
object

Optional horizontal overlay lines. Each level is independently optional — send only the ones you have.

Response

Rendered chart

data
string
required

The rendered chart returned by the renderer, passed through verbatim. Treat as an opaque string payload.