Bentrix Docs
HomePricingDashboard

R: drivers

Every method of client$drivers in the R SDK.

driver_forget#

Ask the person to forget a driver · tool driver_forget

scope: adminplan: freesince 1.0.0long work: answers a job

Asks the person, on a card in Bentrix's window naming this agent, to forget a driver elsewhere; Allow forgets it as Settings > Drivers' Forget does, and it must be paired again to be reached. Answers a job.

Declaration

client$drivers
driver_forget(driver)

Parameters

NameTypeWhat it is
driveranyrequiredThe driver's key, as drivers_list gives it.

Returns

A job — job$wait() answers the result: this is long work, or work the person allows first, so the call answers at once with a job and its result comes when it ends, as a list.

What it answers

Answers a job.

Example

client$drivers$driver_forget("…")

driver_pair#

Pair with a driver elsewhere · tool driver_pair

scope: adminplan: freesince 1.0.0

Pairs with a terminal driver on another computer of this network, as Settings > Drivers' Pair does: its address and the one-use code it shows on its own computer, where the person allows it. Answers that pairing is under way; the driver appears in drivers_list once paired.

Declaration

client$drivers
driver_pair(address, code)

Parameters

NameTypeWhat it is
addressanyrequiredThe driver's address on this network, host:port.
codeanyrequiredThe one-use code the driver shows on its own computer.

Returns

list — the tool’s answer as a list.

What it answers

Answers that pairing is under way; the driver appears in drivers_list once paired.

Example

client$drivers$driver_pair("…", "…")

driver_set_inside#

Run the driver inside Bentrix, or apart · tool driver_set_inside

scope: adminplan: freesince 2.3.0

Sets where this computer's driver runs, as Settings > Drivers' Run the driver inside Bentrix does: inside Bentrix's own process (one process fewer), or as a process of its own (the default: a fault of the driver's never closes Bentrix). Takes effect the next time the driver starts. Answers the drivers.

Declaration

client$drivers
driver_set_inside(inside)

Parameters

NameTypeWhat it is
insideanyrequiredTrue runs the driver inside Bentrix's own process; false (the default) as a process of its own.

Returns

list — the tool’s answer as a list.

What it answers

Answers the drivers.

Example

client$drivers$driver_set_inside(TRUE)

driver_set_rendezvous#

Set the drivers' rendezvous · tool driver_set_rendezvous

scope: adminplan: freesince 1.0.0

Sets the rendezvous a driver elsewhere is reached through, as Settings > Drivers' rendezvous row does; empty is Bentrix's own. Answers the drivers, or the row's own refusal of what was typed.

Declaration

client$drivers
driver_set_rendezvous(host)

Parameters

NameTypeWhat it is
hostanyrequiredThe rendezvous host the drivers elsewhere are reached through; empty for Bentrix's own.

Returns

list — the tool’s answer as a list.

What it answers

Answers the drivers, or the row's own refusal of what was typed.

Example

client$drivers$driver_set_rendezvous("…")

driver_settings#

Read the driver's settings · tool driver_settings

scope: readplan: freesince 2.3.0

What Settings > Driver shows, as this computer's driver last answered it: Keep the driver running, run as this user or as a Windows service, the applications paired with it (their capabilities, whether connected, whether paired from another computer), a pairing code and an application asking to pair, Reachable on this network and over the internet with the rendezvous, Allow trading through this driver, Manage MetaTrader's settings myself, the build and the log folder. Asks the driver again; an answer older than a moment is what it said last. Who may reach this computer's terminals, and how, is the person's to change, never an agent's.

Declaration

client$drivers
driver_settings()

It takes no arguments.

Returns

list — the tool’s answer as a list.

What it answers

What the tool's description says.

Example

client$drivers$driver_settings()

list#

Read the drivers · tool drivers_list

scope: readplan: freesince 1.0.0

Answers the terminal drivers elsewhere this install remembers - each one's key, the label it gave itself and the address it was paired at - the rendezvous in force, and this computer's driver's update setting.

Declaration

client$drivers
list()

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):

{
  "elsewhere": [],
  "rendezvous": "link.bentrix.net"
}

Example

client$drivers$list()

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