POST
Draft a Pine strategy from plain English

Authorizations

Authorization
string
header
required

The authorization field takes the session bearer returned by sign-in, or an API key where the route allows keys. Paste the token itself into the authorization field.

Path Parameters

accountId
string
required
Minimum string length: 1

Body

application/json
text
string
required

The strategy in plain English: 1 to 4000 characters (Unicode code points) after trimming. A longer text answers 400.

Minimum string length: 1
strategyId
string
Required string length: 1 - 64
modelId
string

The model that drafts, from the venue's model catalog. Omitted: the catalog's default drafting model. A model the catalog does not hold for drafting answers 400.

Pattern: ^[a-z0-9][a-z0-9._-]{0,63}$

Response

Success

pine
string | null
required
valid
boolean
required
errors
string[]
required
refusalReason
enum<string>
Available options:
grid_orders,
dca_schedule,
twap_execution,
position_state,
unsupported_builtin,
multi_timeframe,
multi_symbol,
time_filter,
outside_subset
model
object

The model that answered: its id, version and data policy (in_network stays on Edel's infrastructure, third_party leaves for a vendor), and whether a declared fallback answered.