Skip to main content
POST
Ask the indicator assistant (streaming)

Body

application/json
messages
object[]
required

Chat history, oldest first. The last message must be from the user. Each message is capped at 24,000 characters — enough for a full Pine Script paste.

Required array length: 1 - 40 elements
Example:
script
object
required

What is currently in the editor. The reply replaces it wholesale when it contains code.

error
string

Compile or runtime error the chart reported for the current script, if any.

Maximum string length: 2000
Example:

null

dataset
object

The sample series the builder chart is showing, so the model can reason about scale and bar count.

Response

NDJSON event stream (see notes)

The response is of type string.