Bentrix Docs
HomePricingDashboard

R: settings

Every method of client$settings in the R SDK.

keys_list#

Read the keyboard's keys · tool keys_list

scope: readplan: freesince 3.7.0

Answers every action Bentrix reads a key for, as Settings > Keyboard lists them: its token (chart.zoom_in), its group (everywhere, chart, tools, replay, trade, dialogs, editor, desk), what it does, its keys now, its default keys and whether they were changed - with the most keys an action may have and the operating system's own keys, which are refused.

Declaration

client$settings
keys_list()

It takes no arguments.

Returns

list — the tool’s answer as a list.

What it answers

Answers every action Bentrix reads a key for, as Settings > Keyboard lists them: its token (chart.

Example

client$settings$keys_list()

keys_reset#

Put keys back to the defaults · tool keys_reset

scope: adminplan: freesince 3.7.0

Puts one action's keys back to Bentrix's default, or every action's when none is named - Settings > Keyboard's Reset and Reset all to defaults. Answers the keys.

Declaration

client$settings
keys_reset(action = NULL)

Parameters

NameTypeWhat it is
actionanyoptionalThe action whose keys go back to Bentrix's default; omitted, every action's.

Returns

list — the tool’s answer as a list.

What it answers

Answers the keys.

Example

client$settings$keys_reset()

keys_set#

Change an action's keys · tool keys_set

scope: adminplan: freesince 3.7.0

Gives one action its keys, as Settings > Keyboard does: at most two, any combination of Ctrl, Alt and Shift with one key, or none. A key another action holds where both are read at once is refused naming that action, unless replace moves it here; the operating system's own keys are always refused. Kept with the account. Answers the action's row.

Declaration

client$settings
keys_set(action, keys, replace = NULL)

Parameters

NameTypeWhat it is
actionanyrequiredThe action's token, as keys_list answers it: chart.zoom_in.
keysanyrequiredIts keys, at most two, each written as Ctrl+Alt+K, Shift+F12 or Space; an empty list leaves the action with no key.
replaceanyoptionalTake a key another action holds where both are read at once, as Settings > Keyboard's Replace does; otherwise such a key is refused, naming that action.

Returns

list — the tool’s answer as a list.

What it answers

Answers the action's row.

Example

client$settings$keys_set("…", "…")

profile_delete#

Delete a settings profile · tool profile_delete

scope: adminplan: freesince 3.7.0

Deletes a settings profile - never the last one, never the one in use - as Settings > Profiles' Delete does. Answers the profiles.

Declaration

client$settings
profile_delete(name)

Parameters

NameTypeWhat it is
nameanyrequiredThe profile's name, as profiles_list answers it.

Returns

list — the tool’s answer as a list.

What it answers

Answers the profiles.

Example

client$settings$profile_delete("…")

profile_rename#

Rename a settings profile · tool profile_rename

scope: adminplan: freesince 3.7.0

Renames a settings profile, as Settings > Profiles' Rename does. Answers the profiles.

Declaration

client$settings
profile_rename(name, to)

Parameters

NameTypeWhat it is
nameanyrequiredThe profile's name now.
toanyrequiredIts new name.

Returns

list — the tool’s answer as a list.

What it answers

Answers the profiles.

Example

client$settings$profile_rename("…", "…")

profile_save_as#

Save the settings in use as a new profile · tool profile_save_as

scope: adminplan: freesince 3.7.0

Makes a new settings profile from the settings in use, under a new name, and puts it in use - Settings > Profiles' Save as a new profile. At most 20 profiles, a name of at most 40 characters, never one another profile has. Answers the profiles.

Declaration

client$settings
profile_save_as(name)

Parameters

NameTypeWhat it is
nameanyrequiredThe profile's name, as profiles_list answers it.

Returns

list — the tool’s answer as a list.

What it answers

Answers the profiles.

Example

client$settings$profile_save_as("…")

profile_use#

Use a settings profile · tool profile_use

scope: adminplan: freesince 3.7.0

Puts a settings profile in use, as Settings > Profiles' Use does: every setting, default and template it holds is in force at once; the workbenches, this computer's settings and where the windows stand do not move. Answers the profiles.

Declaration

client$settings
profile_use(name)

Parameters

NameTypeWhat it is
nameanyrequiredThe profile's name, as profiles_list answers it.

Returns

list — the tool’s answer as a list.

What it answers

Answers the profiles.

Example

client$settings$profile_use("…")

profiles_list#

Read the settings profiles · tool profiles_list

scope: readplan: freesince 3.7.0

Answers the account's settings profiles, as Settings > Profiles lists them: each one's name, whether it is in use, when it last changed and when it was last synced, and where they are kept (this computer, or Bentrix's server too on Plus and Pro). A profile holds every setting, default and template, never the work.

Declaration

client$settings
profiles_list()

It takes no arguments.

Returns

list — the tool’s answer as a list.

What it answers

Answers the account's settings profiles, as Settings > Profiles lists them: each one's name, whether it is in use, when it last changed and when it was last synced, and where they are kept (this computer, or Bentrix's server too on Plus and Pro).

Example

client$settings$profiles_list()

get#

Read the settings · tool settings_get

scope: readplan: freesince 1.0.0

Answers the settings an agent may read: the theme, the network route (automatic, direct or proxy) and the proxy's address without its password, and the folder agents' exports go to.

Declaration

client$settings
get()

It takes no arguments.

Returns

list — the tool’s answer as a list.

What it answers

Recorded from a running Bentrix 0.1.382 on a laboratory of generated markets (long lists cut to their first rows):

{
  "adjusted_prices": "off",
  "calendar": "gregorian",
  "exports": "C:\\Users\\mohaa\\AppData\\Local\\Temp\\bx-docs-answers-11gvyak4\\LocalAppData\\BENTRIX\\exports",
  "proxy_url": "http://127.0.0.1:9998",
  "route": "automatic",
  "theme": "night"
}

Example

client$settings$get()

set#

Set a setting · tool settings_set

scope: adminplan: freesince 1.0.0

Sets one setting through its own control's door: theme (night or day), adjusted_prices (on or off: charts on adjusted prices), route (automatic, direct or proxy), proxy_url (an address with no password - a password is never set by an agent) or exports (an absolute folder, or default). Answers the settings.

Declaration

client$settings
set(key, value)

Parameters

NameTypeWhat it is
keyanyrequired
valueanyrequired

Returns

list — the tool’s answer as a list.

What it answers

Answers the settings.

Example

client$settings$set("…", "…")

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed