Skip to content

Get scripts

GetScripts

Returns scripts available to the current session.

Request Parameters

Name Type Required Description
scope string No me, public, all
login int No Target login for staff sessions
kind string No indicator, robot, strategy, widget
language string No stscript, javascript
visibility string No private, public
enabled int No 0 or 1

Response Example

{
  "rows": [
    {
      "id": 42,
      "login": 1001,
      "name": "My MA",
      "script": "input length = 20",
      "description": "simple moving average",
      "kind": "indicator",
      "language": "stscript",
      "visibility": "private",
      "autostart": 0,
      "enabled": 1,
      "created_time": 1777196331,
      "updated_time": 1777196331
    }
  ],
  "count": 1
}