Skip to main content
POST
AI chat completion

Body

application/json
messages
object[]

Pre-built chat messages

systemPrompt
string

System prompt (used if messages is omitted)

Example:

"You are a helpful trading assistant."

prompt
string

User prompt (used if messages is omitted)

Example:

"Summarize my trade history and win rate today."

temperature
number
Required range: 0 <= x <= 2
maxTokens
integer
Required range: x >= 1

Response

Chat completion returned

success
boolean
Example:

true

response
string
model
string
provider
string
error
string | null
Last modified on June 17, 2026