Skip to Content
HTTP APISettings

Settings rows

Build your request

Change the values and the command follows. The token is never typed here: the command reads it from the SPECTRE_LOCAL_API_TOKEN environment variable. Run it in your own terminal.

Command
curl 'http://127.0.0.1:48180/v1/settings?category=multiview' \
  -H "Authorization: Bearer $SPECTRE_LOCAL_API_TOKEN"
GET
/settings

Rows as they are stored, with no defaults filled in, ordered by scope, scope_id, category, key. global rows belong to the whole terminal, and order_book rows hold the order-book settings of an instrument or their defaults. writable is false for leverage, trading/leverage_mode, and for service rows of the window.

Authorization

bearerToken settings:read
headerAuthorizationBearer <token>

The Local API token: spt_ and 64 hex characters. Copy it from Settings App → General → Local API. It is accepted only in the Authorization header. The names listed with an operation are the scopes it requires. The token of the terminal carries all of them.

Scope: settings:read

Query Parameters

scope?string

With instrument the scope is always order_book.

Default"global"
Value in"global""order_book"
category?string

Filter by category.

key?string

Filter by key.

connection_id?integer

Rows of this connection. Without it, rows that belong to no connection.

Formatint64
instrument?string

Rows of this pair.

Response Body

The rows.

application/json
  1. response
data*array<>
Example Request
curl 'http://127.0.0.1:48180/v1/settings?category=multiview' \  -H "Authorization: Bearer $SPECTRE_LOCAL_API_TOKEN"
Example Response
{  "data": [    {      "scope": "global",      "scope_id": "default",      "connection_id": null,      "category": "multiview",      "key": "stack_width_px",      "value": 250,      "writable": true    }  ]}