Open a coin on every exchange
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.
curl -X POST 'http://127.0.0.1:48180/v1/workspace/multiview' \
-H "Authorization: Bearer $SPECTRE_LOCAL_API_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"base": "BTC",
"target": "new_window",
"activate": true
}'Opens the coin the way the Multiview button of the window does. It follows the rows of "Exchange layout", their order-book and chart toggles, and the quote currency of each exchange. Without target the tab opens as the "Open" setting of multiview says.
bearerToken workspace:writeAuthorizationBearer <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: workspace:write
application/json- body
base*stringA coin or a pair: BTC, BTC/USDT, BTCUSDT.
target?WorkspaceTargetnew_tab opens a tab in the window window_id, or in the focused window without it. new_window opens a new window.
"new_tab""new_window"window_id?integerint640 <= valueactivate?booleantrueWhere the multiview opened. stacks and charts are its widgets, in the order of columns.
application/json- response
What a workspace command opened or touched. The numbers it concerns are filled in. The rest is null or empty.
window_id*|int64tab_id*|int64stacks*array<>charts*array<>curl -X POST 'http://127.0.0.1:48180/v1/workspace/multiview' \ -H "Authorization: Bearer $SPECTRE_LOCAL_API_TOKEN" \ -H 'Content-Type: application/json' \ -d '{ "base": "BTC", "target": "new_window", "activate": true}'{ "window_id": 3, "tab_id": 1, "stacks": [ 20, 22 ], "charts": [ 21 ]}Close a stack DELETE
Works like the close button of the stack.
Settings rows GET
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.