Validate Python indicator source without loading bars

Shape check only. Returns { ok, diagnostics[] }: a compile failure is a 200 with ok:false, not an HTTP error.

post/v1/indicators/py/validate

Request

  • Base URL: https://app.texttoquant.com/api
  • URL: https://app.texttoquant.com/api/v1/indicators/py/validate
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Request body

py_codestring required

Response

Answers {success, ok, diagnostics, contract, stats} at the top level (no data wrapper)

successtrue required
okboolean required
diagnosticsobject[] required
contractobject

The declared inputs, plots and visuals.

statsobject

Changes

No recorded changes to this operation across all 1 revision of this API.