Bentrix Docs
HomePricingDashboard

Resources and streams

What an agent reads by address — the workspace, a workbench, its bars, ticks, book, deals and Journal, the screen, the logs — and the streams it follows. A resource is read with MCP's resources/read (or the resource_read tool, for a client that does not surface resources); a stream is followed with wait_for, which answers what came after the cursor it is given.

Resources

catalogue_indicators#

Every indicator a chart can hold

readplan: freesince 1.2.0

bentrix://catalogue/indicators{?source}

Every indicator a study can be attached as: the built-ins, each with its title, family, calculations and default settings, and every custom study a script or a program declared, with its spec, where it came from and who defined it. Kind is what study_attach takes.

ArgumentTypeRequiredDefaultWhat it is
sourcestring——Builtin, script or defined; omitted, every one.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://catalogue/indicators{?source}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.catalogue
def indicators(self, *, source: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.catalogue
indicators(vars)

C#

client.Catalogue
public Task<JsonNode?> Indicators(string? source = null, CancellationToken ct = default)

Go

client.Catalogue
func (a *CatalogueAPI) Indicators(ctx context.Context, args CatalogueIndicatorsArgs) (any, error)

Java

client.catalogue
public Object indicators(IndicatorsArgs args)

C++

client.catalogue
Json indicators(const IndicatorsArgs &args)

Julia

client.catalogue
indicators = (; source = nothing)

R

client$catalogue
`indicators` = function(source = NULL)

Rust

client.catalogue()
pub fn indicators(&self, args: CatalogueIndicatorsArgs) -> Result<Value, Error>

catalogue_script_builtins#

What an Assay script can call

readplan: freesince 1.5.0

bentrix://catalogue/script-builtins

Every built-in and construct of Assay with its disposition (runs, diverges, refused, later) and what it computes, where Bentrix's arithmetic takes a convention, what Bentrix lacks, or the phase it waits for — the table Settings › Assay draws — and every setting Assay scripts run under, with its value now, its default and its choices.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://catalogue/script-builtins",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.catalogue
def script_builtins(self) -> Dict[str, Any]

JavaScript

client.catalogue
scriptBuiltins(vars)

C#

client.Catalogue
public Task<JsonNode?> ScriptBuiltins(CancellationToken ct = default)

Go

client.Catalogue
func (a *CatalogueAPI) ScriptBuiltins(ctx context.Context) (any, error)

Java

client.catalogue
public Object scriptBuiltins()

C++

client.catalogue
Json script_builtins()

Julia

client.catalogue
script_builtins = ()

R

client$catalogue
`script_builtins` = function()

Rust

client.catalogue()
pub fn script_builtins(&self) -> Result<Value, Error>

catalogue_sources#

The data sources this edition carries

readplan: freesince 1.7.0

bentrix://sources

Every data source Bentrix knows, by its token (the vendor, the crypto exchange, iex): whether this edition carries its door (downloads, its Sources card, lab_create), and its laboratory on this computer when there is one — a laboratory of a source this edition does not carry is shown and replayed, and no more of it can be downloaded. With the edition's name and its release channel. MetaTrader is not a data source here and is in every edition.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://sources",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.catalogue
def sources(self) -> Dict[str, Any]

JavaScript

client.catalogue
sources(vars)

C#

client.Catalogue
public Task<JsonNode?> Sources(CancellationToken ct = default)

Go

client.Catalogue
func (a *CatalogueAPI) Sources(ctx context.Context) (any, error)

Java

client.catalogue
public Object sources()

C++

client.catalogue
Json sources()

Julia

client.catalogue
sources = ()

R

client$catalogue
`sources` = function()

Rust

client.catalogue()
pub fn sources(&self) -> Result<Value, Error>

data_bars#

A workbench's bars

readplan: freesince 1.0.0

bentrix://{home}/{owner}/bench/{bench}/bars/{symbol}/{tf}{?before,limit}

A workbench's bars of one market and interval, the candles its chart draws, up to its cursor and never past it: the newest limit (at most 5000) before before, oldest first. Next is the page before; a year of M1 is about 75 pages.

ArgumentTypeRequiredDefaultWhat it is
beforeinteger——Only bars that opened before this instant (UTC ms) — the page before a page.
benchstringyes—
homestringyes—
limitinteger——How many, at most 5000.
ownerstringyes—
symbolstringyes—
tfstringyes—An interval's label: M1, H4, D1, a custom one such as M95.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/bars/{symbol}/{tf}{?before,limit}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.data
def bars(self, home: str, owner: str, bench: str, symbol: str, tf: str, *, before: Optional[int] = None, limit: Optional[int] = None) -> BarsPage

JavaScript

client.data
bars(vars)

C#

client.Data
public Task<JsonNode?> Bars(string home, string owner, string bench, string symbol, string tf, long? before = null, long? limit = null, CancellationToken ct = default)

Go

client.Data
func (a *DataAPI) Bars(ctx context.Context, args DataBarsArgs) (any, error)

Java

client.data
public Object bars(BarsArgs args)

C++

client.data
Json bars(const BarsArgs &args)

Julia

client.data
bars = (home, owner, bench, symbol, tf; before = nothing, limit = nothing)

R

client$data
`bars` = function(home, owner, bench, symbol, tf, before = NULL, limit = NULL)

Rust

client.data()
pub fn bars(&self, args: DataBarsArgs) -> Result<Value, Error>

data_ticks#

A workbench's ticks of one day

readplan: freesince 1.0.0

bentrix://{home}/{owner}/bench/{bench}/ticks/{symbol}{?day,from,limit}

One market's ticks of one day that have happened at the workbench's cursor, never one past it: time, bid, ask, last, volume, flags, from the index from on, at most 20000 a page. Only a day the replay holds in memory is answered; an older day is read as bars.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—
daystring——The day, YYYY-MM-DD; omitted, the day at the workbench's cursor.
frominteger——Ticks from this index of the day on.
homestringyes—
limitinteger——How many, at most 20000.
ownerstringyes—
symbolstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/ticks/{symbol}{?day,from,limit}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.data
def ticks(self, home: str, owner: str, bench: str, symbol: str, *, day: Optional[str] = None, from_: Optional[int] = None, limit: Optional[int] = None) -> BarsPage

JavaScript

client.data
ticks(vars)

C#

client.Data
public Task<JsonNode?> Ticks(string home, string owner, string bench, string symbol, string? day = null, long? from = null, long? limit = null, CancellationToken ct = default)

Go

client.Data
func (a *DataAPI) Ticks(ctx context.Context, args DataTicksArgs) (any, error)

Java

client.data
public Object ticks(TicksArgs args)

C++

client.data
Json ticks(const TicksArgs &args)

Julia

client.data
ticks = (home, owner, bench, symbol; day = nothing, from = nothing, limit = nothing)

R

client$data
`ticks` = function(home, owner, bench, symbol, day = NULL, from = NULL, limit = NULL)

Rust

client.data()
pub fn ticks(&self, args: DataTicksArgs) -> Result<Value, Error>

forecast_models#

A workbench's forecasts

readplan: freesince 3.3.0

bentrix://{home}/{owner}/bench/{bench}/forecasts

The forecasts a reader at the workbench's clock sees, by arrival, each with its model, market, epoch, anchor, put_ms, steps, state and author; and every arrival kept per model.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—
homestringyes—lab or account.
ownerstringyes—The laboratory's or the account's id.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/forecasts",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def models(self, home: str, owner: str, bench: str) -> Dict[str, Any]

JavaScript

client.forecast
models(vars)

C#

client.Forecast
public Task<JsonNode?> Models(string home, string owner, string bench, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) Models(ctx context.Context, args ForecastModelsArgs) (any, error)

Java

client.forecast
public Object models(ModelsArgs args)

C++

client.forecast
Json models(const ModelsArgs &args)

Julia

client.forecast
models = (home, owner, bench)

R

client$forecast
`models` = function(home, owner, bench)

Rust

client.forecast()
pub fn models(&self, args: ForecastModelsArgs) -> Result<Value, Error>

indicators_state#

The indicators folder

readplan: freesince 1.2.0

bentrix://indicators

The person's indicators folder: where it is, the interpreter found, whether the person's scripts run, and each script with its state (ready, refused, failed, awaiting_tick, off, no_interpreter), its study's id when ready, the line that says why when not, and whether an agent installed it and the person ticked it.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://indicators",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.indicator
def indicators_state(self) -> Dict[str, Any]

JavaScript

client.indicator
indicatorsState(vars)

C#

client.Indicator
public Task<JsonNode?> IndicatorsState(CancellationToken ct = default)

Go

client.Indicator
func (a *IndicatorAPI) IndicatorsState(ctx context.Context) (any, error)

Java

client.indicator
public Object indicatorsState()

C++

client.indicator
Json indicators_state()

Julia

client.indicator
indicators_state = ()

R

client$indicator
`indicators_state` = function()

Rust

client.indicator()
pub fn indicators_state(&self) -> Result<Value, Error>

model_state#

One model Bentrix runs

readplan: freesince 3.6.0

bentrix://model/{model}

A running model as model_start answered it: its file, workbench, market, state and why it ended, its declaration, its runs, its late answers, its last error and its engine.

ArgumentTypeRequiredDefaultWhat it is
modelstringyes—A running model's id, as model_start answered it.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://model/{model}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.model
def state(self, model: str) -> Dict[str, Any]

JavaScript

client.model
state(vars)

C#

client.Model
public Task<JsonNode?> State(string model, CancellationToken ct = default)

Go

client.Model
func (a *ModelAPI) State(ctx context.Context, args ModelStateArgs) (any, error)

Java

client.model
public Object state(StateArgs args)

C++

client.model
Json state(const StateArgs &args)

Julia

client.model
state = (model)

R

client$model
`state` = function(model)

Rust

client.model()
pub fn state(&self, args: ModelStateArgs) -> Result<Value, Error>

models_state#

The models Bentrix runs

readplan: freesince 3.4.0

bentrix://models

Every model Bentrix is running: its file, workbench, market, state (starting, running, paused, ended and why), what it declared, how many closes it answered, how many past the time cap, and its last error; and the models folder with its.py files.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://models",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.model
def models_state(self) -> Dict[str, Any]

JavaScript

client.model
modelsState(vars)

C#

client.Model
public Task<JsonNode?> ModelsState(CancellationToken ct = default)

Go

client.Model
func (a *ModelAPI) ModelsState(ctx context.Context) (any, error)

Java

client.model
public Object modelsState()

C++

client.model
Json models_state()

Julia

client.model
models_state = ()

R

client$model
`models_state` = function()

Rust

client.model()
pub fn models_state(&self) -> Result<Value, Error>

strategy_run_state#

A strategy run

readplan: freesince 1.0.0

bentrix://run/{run}

One run as run_get answers it: its strategy and version, workbench, state, the counts of closes, intents, orders and refusals, and once ended MetaTrader's tester report.

ArgumentTypeRequiredDefaultWhat it is
runstringyes—The run's magic number, as bentrix://run/<magic> names it.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://run/{run}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.strategy
def run_state(self, run: str) -> Dict[str, Any]

JavaScript

client.strategy
runState(vars)

C#

client.Strategy
public Task<JsonNode?> RunState(string run, CancellationToken ct = default)

Go

client.Strategy
func (a *StrategyAPI) RunState(ctx context.Context, args StrategyRunStateArgs) (any, error)

Java

client.strategy
public Object runState(RunStateArgs args)

C++

client.strategy
Json run_state(const RunStateArgs &args)

Julia

client.strategy
run_state = (run)

R

client$strategy
`run_state` = function(run)

Rust

client.strategy()
pub fn run_state(&self, args: StrategyRunStateArgs) -> Result<Value, Error>

trade_account#

A workbench's money

readplan: freesince 1.1.0

bentrix://{home}/{owner}/bench/{bench}/account

The workbench's balance, equity, margin, free margin and margin level in its account's currency, as its Toolbox's money row holds them: a laboratory's or paper workbench's own venue (source venue), or on a real account MetaTrader's own figures (source metatrader), read and never stored. A real account's money is answered only to an agent holding real; before MetaTrader has said it there is none.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—
homestringyes—lab or account.
ownerstringyes—The laboratory's or the account's id.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/account",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.trade
def account(self, home: str, owner: str, bench: str) -> Dict[str, Any]

JavaScript

client.trade
account(vars)

C#

client.Trade
public Task<JsonNode?> Account(string home, string owner, string bench, CancellationToken ct = default)

Go

client.Trade
func (a *TradeAPI) Account(ctx context.Context, args TradeAccountArgs) (any, error)

Java

client.trade
public Object account(AccountArgs args)

C++

client.trade
Json account(const AccountArgs &args)

Julia

client.trade
account = (home, owner, bench)

R

client$trade
`account` = function(home, owner, bench)

Rust

client.trade()
pub fn account(&self, args: TradeAccountArgs) -> Result<Value, Error>

trade_book#

A workbench's book

readplan: freesince 1.0.0

bentrix://{home}/{owner}/bench/{bench}/book

The workbench's open positions and pending orders, as its Toolbox's Trade tab holds them, each with its ticket.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—
homestringyes—lab or account.
ownerstringyes—The laboratory's or the account's id.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/book",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.trade
def book(self, home: str, owner: str, bench: str) -> Dict[str, Any]

JavaScript

client.trade
book(vars)

C#

client.Trade
public Task<JsonNode?> Book(string home, string owner, string bench, CancellationToken ct = default)

Go

client.Trade
func (a *TradeAPI) Book(ctx context.Context, args TradeBookArgs) (any, error)

Java

client.trade
public Object book(BookArgs args)

C++

client.trade
Json book(const BookArgs &args)

Julia

client.trade
book = (home, owner, bench)

R

client$trade
`book` = function(home, owner, bench)

Rust

client.trade()
pub fn book(&self, args: TradeBookArgs) -> Result<Value, Error>

workbench_state#

A workbench

readplan: freesince 1.0.0

bentrix://{home}/{owner}/bench/{bench}

One workbench as get_state answers it at depth charts: its days, tick model, time zone, markets, cursor, whether it plays and its chart windows; and its book.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—
homestringyes—lab or account.
ownerstringyes—The laboratory's or the account's id.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.workbench
def state(self, home: str, owner: str, bench: str) -> Dict[str, Any]

JavaScript

client.workbench
state(vars)

C#

client.Workbench
public Task<JsonNode?> State(string home, string owner, string bench, CancellationToken ct = default)

Go

client.Workbench
func (a *WorkbenchAPI) State(ctx context.Context, args WorkbenchStateArgs) (any, error)

Java

client.workbench
public Object state(StateArgs args)

C++

client.workbench
Json state(const StateArgs &args)

Julia

client.workbench
state = (home, owner, bench)

R

client$workbench
`state` = function(home, owner, bench)

Rust

client.workbench()
pub fn state(&self, args: WorkbenchStateArgs) -> Result<Value, Error>

workspace_log#

A program's log

readplan: freesince 1.0.0

bentrix://log/{program}{?lines}

The newest lines of the program's own log (bentrix) or of the terminal driver's (driver), oldest first, as the Toolbox's Journal reads them.

ArgumentTypeRequiredDefaultWhat it is
linesinteger——The newest lines, at most 2000; 200 when omitted.
programstringyes—bentrix for the program's own log, driver for the terminal driver's.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://log/{program}{?lines}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.workspace
def log(self, program: str, *, lines: Optional[int] = None) -> Dict[str, Any]

JavaScript

client.workspace
log(vars)

C#

client.Workspace
public Task<JsonNode?> Log(string program, long? lines = null, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) Log(ctx context.Context, args WorkspaceLogArgs) (any, error)

Java

client.workspace
public Object log(LogArgs args)

C++

client.workspace
Json log(const LogArgs &args)

Julia

client.workspace
log = (program; lines = nothing)

R

client$workspace
`log` = function(program, lines = NULL)

Rust

client.workspace()
pub fn log(&self, args: WorkspaceLogArgs) -> Result<Value, Error>

workspace_screen#

What the window drew

readplan: freesince 1.0.0

bentrix://screen{?group,page}

Every thing the last frame drew, as data: its tag, the text that reached the screen, whether it can be pressed and whether it is enabled, its window and its rectangle in points. Paged at 2000 rows; group keeps the tags that start with it.

ArgumentTypeRequiredDefaultWhat it is
groupstring——Only the drawn things whose tag starts with this, such as pane, rail, toolbox, frame.
pageinteger——The page, from 0; at most 2000 drawn things a page.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://screen{?group,page}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.workspace
def screen(self, *, group: Optional[str] = None, page: Optional[int] = None) -> ScreenPage

JavaScript

client.workspace
screen(vars)

C#

client.Workspace
public Task<JsonNode?> Screen(string? group = null, long? page = null, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) Screen(ctx context.Context, args WorkspaceScreenArgs) (any, error)

Java

client.workspace
public Object screen(ScreenArgs args)

C++

client.workspace
Json screen(const ScreenArgs &args)

Julia

client.workspace
screen = (; group = nothing, page = nothing)

R

client$workspace
`screen` = function(group = NULL, page = NULL)

Rust

client.workspace()
pub fn screen(&self, args: WorkspaceScreenArgs) -> Result<Value, Error>

workspace_state#

The application's state

readplan: freesince 1.0.0

bentrix://workspace

The application as the person sees it, as get_state answers at depth charts: the shown area, the selected workbench, every laboratory and real account with its workbenches and their chart windows. Every node carries its uri.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://workspace",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.workspace
def state(self) -> Dict[str, Any]

JavaScript

client.workspace
state(vars)

C#

client.Workspace
public Task<JsonNode?> State(CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) State(ctx context.Context) (any, error)

Java

client.workspace
public Object state()

C++

client.workspace
Json state()

Julia

client.workspace
state = ()

R

client$workspace
`state` = function()

Rust

client.workspace()
pub fn state(&self) -> Result<Value, Error>

Streams

agent_log#

What an agent did

readplan: freesince 1.22.0a stream

bentrix://agents/{agent}/log{?after}

Each tool call an agent made this sitting, oldest first, at most 1000 a page: when, the tool, the scope it asked (a trading act: the workbench's area's), the outcome (ok, bad_arguments, not_found, refused) and the refusal's sentence, and for a trading act what it asked and what it was answered. An agent reads its own; a token holding admin any. Next is the last row's seq. Kept for the sitting, at most 5000 rows across agents.

ArgumentTypeRequiredDefaultWhat it is
afterstring——The seq a previous page answered as next; omitted, from the start of the sitting.
agentstringyes—The agent's pairing, as agent_whoami and Settings › Agents name it.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://agents/{agent}/log{?after}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.agent
def log(self, agent: str, *, after: Optional[str] = None, timeout_ms: int = 30000) -> Iterator[Any]

JavaScript

client.agent
log(vars, opts)

C#

client.Agent
public IAsyncEnumerable<JsonNode?> Log(string agent, string? after = null, int timeoutMs = 30000, CancellationToken ct = default)

Go

client.Agent
func (a *AgentAPI) Log(ctx context.Context, args AgentLogArgs, opts WatchOptions) iter.Seq2[any, error]

Java

client.agent
public Iterable<Object> log(LogArgs args, String after, int timeoutMs)

C++

client.agent
Json log(const LogArgs &args, const std::string &after = "", int64_t timeout_ms = 30000)

Julia

client.agent
log = (agent; after = nothing, timeout_ms = 30000)

R

client$agent
`log` = function(agent, after = NULL, timeout_ms = 30000)

Rust

client.agent()
pub fn log(&self, args: AgentLogArgs, after: Option<String>, timeout_ms: u64) -> Watch<'a>

alerts_log#

The alerts' log

readplan: freesince 1.0.0a stream

bentrix://alerts/log{?after}

Each alert that fires or expires, oldest first, as the Alerts panel's log lists it: the alert's id, the instant on its feed's clock, its market and its sentence; at most 1000 a page, never parting rows of one instant. Next is the newest instant read (UTC ms).

ArgumentTypeRequiredDefaultWhat it is
afterstring——The cursor a previous page answered as next; omitted, from the start.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://alerts/log{?after}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.alerts
def log(self, *, after: Optional[str] = None, timeout_ms: int = 30000) -> Iterator[Any]

JavaScript

client.alerts
log(vars, opts)

C#

client.Alerts
public IAsyncEnumerable<JsonNode?> Log(string? after = null, int timeoutMs = 30000, CancellationToken ct = default)

Go

client.Alerts
func (a *AlertsAPI) Log(ctx context.Context, opts WatchOptions) iter.Seq2[any, error]

Java

client.alerts
public Iterable<Object> log(String after, int timeoutMs)

C++

client.alerts
Json log(const std::string &after = "", int64_t timeout_ms = 30000)

Julia

client.alerts
log = (; after = nothing, timeout_ms = 30000)

R

client$alerts
`log` = function(after = NULL, timeout_ms = 30000)

Rust

client.alerts()
pub fn log(&self, after: Option<String>, timeout_ms: u64) -> Watch<'a>

data_closed_bars#

A workbench's bars, each once as it closes

readplan: freesince 1.3.0a stream

bentrix://{home}/{owner}/bench/{bench}/bars/{symbol}/{tf}/closed{?after}

Each bar of one market and interval that closed after the cursor, oldest first, never the one still forming, at most 2000 a page; next is the last closed bar's open time (UTC ms). Omitted after answers no bar and next at the newest closed bar, so a reader starts at the present. Rewound is true when the workbench's clock went back behind after (a laboratory's rewind): next is then the newest bar closed now, and the bars after it close again.

ArgumentTypeRequiredDefaultWhat it is
afterstring——The cursor a previous page answered as next: the open time (UTC ms) of the last bar read.
benchstringyes—
homestringyes—
ownerstringyes—
symbolstringyes—
tfstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/bars/{symbol}/{tf}/closed{?after}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.data
def closed_bars(self, home: str, owner: str, bench: str, symbol: str, tf: str, *, after: Optional[str] = None, timeout_ms: int = 30000) -> Iterator[Any]

JavaScript

client.data
closedBars(vars, opts)

C#

client.Data
public IAsyncEnumerable<JsonNode?> ClosedBars(string home, string owner, string bench, string symbol, string tf, string? after = null, int timeoutMs = 30000, CancellationToken ct = default)

Go

client.Data
func (a *DataAPI) ClosedBars(ctx context.Context, args DataClosedBarsArgs, opts WatchOptions) iter.Seq2[any, error]

Java

client.data
public Iterable<Object> closedBars(ClosedBarsArgs args, String after, int timeoutMs)

C++

client.data
Json closed_bars(const ClosedBarsArgs &args, const std::string &after = "", int64_t timeout_ms = 30000)

Julia

client.data
closed_bars = (home, owner, bench, symbol, tf; after = nothing, timeout_ms = 30000)

R

client$data
`closed_bars` = function(home, owner, bench, symbol, tf, after = NULL, timeout_ms = 30000)

Rust

client.data()
pub fn closed_bars(&self, args: DataClosedBarsArgs, after: Option<String>, timeout_ms: u64) -> Watch<'a>

data_closed_elements#

A chart's elements as they close

readplan: freesince 3.3.0a stream

bentrix://{home}/{owner}/bench/{bench}/chart/{chart}/elements/closed{?after}

Each element of a chart built by price or activity (Renko, Range bars, Line break, Point & Figure, Kagi, Volume bars) that closed after the cursor, oldest first, as chart_elements_get reads it (its candle's open and ordinal, open, high, low, close, volume), never the one forming. The cursor is time:ordinal; omitted after answers none and next at the newest closed element. Rewound is true when the chart's newest closed element stands behind the cursor (the clock went back, or the chart was rebuilt).

ArgumentTypeRequiredDefaultWhat it is
afterstring——The cursor a previous page answered as next: time:ordinal of the last element read.
benchstringyes—
chartstringyes—
homestringyes—
ownerstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/chart/{chart}/elements/closed{?after}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.data
def closed_elements(self, home: str, owner: str, bench: str, chart: str, *, after: Optional[str] = None, timeout_ms: int = 30000) -> Iterator[Any]

JavaScript

client.data
closedElements(vars, opts)

C#

client.Data
public IAsyncEnumerable<JsonNode?> ClosedElements(string home, string owner, string bench, string chart, string? after = null, int timeoutMs = 30000, CancellationToken ct = default)

Go

client.Data
func (a *DataAPI) ClosedElements(ctx context.Context, args DataClosedElementsArgs, opts WatchOptions) iter.Seq2[any, error]

Java

client.data
public Iterable<Object> closedElements(ClosedElementsArgs args, String after, int timeoutMs)

C++

client.data
Json closed_elements(const ClosedElementsArgs &args, const std::string &after = "", int64_t timeout_ms = 30000)

Julia

client.data
closed_elements = (home, owner, bench, chart; after = nothing, timeout_ms = 30000)

R

client$data
`closed_elements` = function(home, owner, bench, chart, after = NULL, timeout_ms = 30000)

Rust

client.data()
pub fn closed_elements(&self, args: DataClosedElementsArgs, after: Option<String>, timeout_ms: u64) -> Watch<'a>

data_closed_window#

A bars_window at each close

readplan: freesince 3.3.0a stream

bentrix://{home}/{owner}/bench/{bench}/bars/{symbol}/{tf}/closed/window{?after,frames,symbols,limit}

Each bar of one market and interval (tf) that closed after the cursor, oldest first, at most 8 a page, each with a bars_window aligned to that close: the frames (comma-separated intervals; tf alone when omitted) of the markets (comma-separated; symbol alone when omitted), every frame cut where that bar ended, limit rows each (200, at most 5000). A model reading it runs exactly once per close. Next is the last bar's open time (UTC ms); omitted after answers no window and next at the newest closed bar. Rewound is true when the workbench's clock went back behind after.

ArgumentTypeRequiredDefaultWhat it is
afterstring——The cursor a previous page answered as next: the open time (UTC ms) of the last bar of tf read.
benchstringyes—
framesstring——The frames, comma-separated intervals: M15,H1,H4. Omitted, tf alone.
homestringyes—
limitstring——Closed bars per frame per market in each window (200 when omitted, at most 5000).
ownerstringyes—
symbolstringyes—
symbolsstring——The markets, comma-separated: EURUSD,GBPUSD. Omitted, symbol alone.
tfstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/bars/{symbol}/{tf}/closed/window{?after,frames,symbols,limit}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.data
def closed_window(self, home: str, owner: str, bench: str, symbol: str, tf: str, *, frames: Optional[str] = None, limit: Optional[str] = None, symbols: Optional[str] = None, after: Optional[str] = None, timeout_ms: int = 30000) -> Iterator[Any]

JavaScript

client.data
closedWindow(vars, opts)

C#

client.Data
public IAsyncEnumerable<JsonNode?> ClosedWindow(string home, string owner, string bench, string symbol, string tf, string? frames = null, string? limit = null, string? symbols = null, string? after = null, int timeoutMs = 30000, CancellationToken ct = default)

Go

client.Data
func (a *DataAPI) ClosedWindow(ctx context.Context, args DataClosedWindowArgs, opts WatchOptions) iter.Seq2[any, error]

Java

client.data
public Iterable<Object> closedWindow(ClosedWindowArgs args, String after, int timeoutMs)

C++

client.data
Json closed_window(const ClosedWindowArgs &args, const std::string &after = "", int64_t timeout_ms = 30000)

Julia

client.data
closed_window = (home, owner, bench, symbol, tf; frames = nothing, limit = nothing, symbols = nothing, after = nothing, timeout_ms = 30000)

R

client$data
`closed_window` = function(home, owner, bench, symbol, tf, frames = NULL, limit = NULL, symbols = NULL, after = NULL, timeout_ms = 30000)

Rust

client.data()
pub fn closed_window(&self, args: DataClosedWindowArgs, after: Option<String>, timeout_ms: u64) -> Watch<'a>

data_elements_window#

A window at each closed element

readplan: freesince 3.3.0a stream

bentrix://{home}/{owner}/bench/{bench}/chart/{chart}/elements/window{?after,frames,limit}

Each element of a chart built by price that closed after the cursor (time:ordinal), at most 8 a page, with a bars_window beside it: the chart's own closed elements up to and with it, and the interval frames of its market (comma-separated) cut at the open of the candle the element formed in - the last instant every one of their bars had certainly closed before the element did. Rewound as data_closed_elements says it.

ArgumentTypeRequiredDefaultWhat it is
afterstring——The element cursor, time:ordinal.
benchstringyes—
chartstringyes—
framesstring——The interval frames beside the chart's own elements, comma-separated: M15,H1. Omitted, the elements alone.
homestringyes—
limitstring——Rows per frame in each window (200 when omitted, at most 5000).
ownerstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/chart/{chart}/elements/window{?after,frames,limit}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.data
def elements_window(self, home: str, owner: str, bench: str, chart: str, *, frames: Optional[str] = None, limit: Optional[str] = None, after: Optional[str] = None, timeout_ms: int = 30000) -> Iterator[Any]

JavaScript

client.data
elementsWindow(vars, opts)

C#

client.Data
public IAsyncEnumerable<JsonNode?> ElementsWindow(string home, string owner, string bench, string chart, string? frames = null, string? limit = null, string? after = null, int timeoutMs = 30000, CancellationToken ct = default)

Go

client.Data
func (a *DataAPI) ElementsWindow(ctx context.Context, args DataElementsWindowArgs, opts WatchOptions) iter.Seq2[any, error]

Java

client.data
public Iterable<Object> elementsWindow(ElementsWindowArgs args, String after, int timeoutMs)

C++

client.data
Json elements_window(const ElementsWindowArgs &args, const std::string &after = "", int64_t timeout_ms = 30000)

Julia

client.data
elements_window = (home, owner, bench, chart; frames = nothing, limit = nothing, after = nothing, timeout_ms = 30000)

R

client$data
`elements_window` = function(home, owner, bench, chart, frames = NULL, limit = NULL, after = NULL, timeout_ms = 30000)

Rust

client.data()
pub fn elements_window(&self, args: DataElementsWindowArgs, after: Option<String>, timeout_ms: u64) -> Watch<'a>

data_live_bars#

A workbench's bars, as they form and close

readplan: freesince 1.0.0a stream

bentrix://{home}/{owner}/bench/{bench}/bars/{symbol}/{tf}/live{?after}

Each bar of one market and interval from the cursor's open time on, oldest first, at most 2000 a page, the forming one last and said so; the bar at after is answered again, since it may have been forming. Next is the last bar's open time. Rewound is true when the workbench's clock went back behind after: next is then the bar forming now.

ArgumentTypeRequiredDefaultWhat it is
afterstring——The cursor a previous page answered as next: the open time (UTC ms) of the last bar read.
benchstringyes—
homestringyes—
ownerstringyes—
symbolstringyes—
tfstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/bars/{symbol}/{tf}/live{?after}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.data
def live_bars(self, home: str, owner: str, bench: str, symbol: str, tf: str, *, after: Optional[str] = None, timeout_ms: int = 30000) -> Iterator[Any]

JavaScript

client.data
liveBars(vars, opts)

C#

client.Data
public IAsyncEnumerable<JsonNode?> LiveBars(string home, string owner, string bench, string symbol, string tf, string? after = null, int timeoutMs = 30000, CancellationToken ct = default)

Go

client.Data
func (a *DataAPI) LiveBars(ctx context.Context, args DataLiveBarsArgs, opts WatchOptions) iter.Seq2[any, error]

Java

client.data
public Iterable<Object> liveBars(LiveBarsArgs args, String after, int timeoutMs)

C++

client.data
Json live_bars(const LiveBarsArgs &args, const std::string &after = "", int64_t timeout_ms = 30000)

Julia

client.data
live_bars = (home, owner, bench, symbol, tf; after = nothing, timeout_ms = 30000)

R

client$data
`live_bars` = function(home, owner, bench, symbol, tf, after = NULL, timeout_ms = 30000)

Rust

client.data()
pub fn live_bars(&self, args: DataLiveBarsArgs, after: Option<String>, timeout_ms: u64) -> Watch<'a>

data_live_ticks#

A workbench's ticks, as they happen

readplan: freesince 1.0.0a stream

bentrix://{home}/{owner}/bench/{bench}/ticks/{symbol}/live{?after}

Each tick of one market as the workbench's clock passes it, oldest first, at most 20000 a page; next is the cursor (day:index). A cursor on an earlier day reads the rest of that day first, then each later day held, so a reader across midnight loses none. Omitted after starts at the cursor's present. Rewound is true when the workbench's clock went back behind after (a laboratory's rewind): next is then the clock's present, and the ticks after it come again.

ArgumentTypeRequiredDefaultWhat it is
afterstring——The cursor a previous page answered as next; omitted, only what is new.
benchstringyes—
homestringyes—
ownerstringyes—
symbolstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/ticks/{symbol}/live{?after}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.data
def live_ticks(self, home: str, owner: str, bench: str, symbol: str, *, after: Optional[str] = None, timeout_ms: int = 30000) -> Iterator[Any]

JavaScript

client.data
liveTicks(vars, opts)

C#

client.Data
public IAsyncEnumerable<JsonNode?> LiveTicks(string home, string owner, string bench, string symbol, string? after = null, int timeoutMs = 30000, CancellationToken ct = default)

Go

client.Data
func (a *DataAPI) LiveTicks(ctx context.Context, args DataLiveTicksArgs, opts WatchOptions) iter.Seq2[any, error]

Java

client.data
public Iterable<Object> liveTicks(LiveTicksArgs args, String after, int timeoutMs)

C++

client.data
Json live_ticks(const LiveTicksArgs &args, const std::string &after = "", int64_t timeout_ms = 30000)

Julia

client.data
live_ticks = (home, owner, bench, symbol; after = nothing, timeout_ms = 30000)

R

client$data
`live_ticks` = function(home, owner, bench, symbol, after = NULL, timeout_ms = 30000)

Rust

client.data()
pub fn live_ticks(&self, args: DataLiveTicksArgs, after: Option<String>, timeout_ms: u64) -> Watch<'a>

data_quotes#

A workbench's quotes

readplan: freesince 1.0.0a stream

bentrix://{home}/{owner}/bench/{bench}/quotes{?after}

The newest bid and ask of each of the workbench's markets, with the instant it was quoted and its digits, each time one moves at the workbench's clock; next is the newest instant read (UTC ms).

ArgumentTypeRequiredDefaultWhat it is
afterstring——The cursor a previous page answered as next; omitted, from the start.
benchstringyes—
homestringyes—
ownerstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/quotes{?after}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.data
def quotes(self, home: str, owner: str, bench: str, *, after: Optional[str] = None, timeout_ms: int = 30000) -> Iterator[Any]

JavaScript

client.data
quotes(vars, opts)

C#

client.Data
public IAsyncEnumerable<JsonNode?> Quotes(string home, string owner, string bench, string? after = null, int timeoutMs = 30000, CancellationToken ct = default)

Go

client.Data
func (a *DataAPI) Quotes(ctx context.Context, args DataQuotesArgs, opts WatchOptions) iter.Seq2[any, error]

Java

client.data
public Iterable<Object> quotes(QuotesArgs args, String after, int timeoutMs)

C++

client.data
Json quotes(const QuotesArgs &args, const std::string &after = "", int64_t timeout_ms = 30000)

Julia

client.data
quotes = (home, owner, bench; after = nothing, timeout_ms = 30000)

R

client$data
`quotes` = function(home, owner, bench, after = NULL, timeout_ms = 30000)

Rust

client.data()
pub fn quotes(&self, args: DataQuotesArgs, after: Option<String>, timeout_ms: u64) -> Watch<'a>

forecasts_eval#

Each move of an evaluation's ask

readplan: plussince 3.5.0a stream

bentrix://forecasts/eval{?after}

Each move of an ask forecast_eval_make answered, oldest first: ask, state (asked, confirmed, made_laboratory, started, declined, failed), eval once started, laboratory once made, by: "the person" on a decline, why on a failure, at_ms. Next is the count of items read.

ArgumentTypeRequiredDefaultWhat it is
afterstring——The count of items read, as a previous page answered it in next; omitted, from the first.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://forecasts/eval{?after}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def forecasts_eval(self, *, after: Optional[str] = None, timeout_ms: int = 30000) -> Iterator[Any]

JavaScript

client.forecast
forecastsEval(vars, opts)

C#

client.Forecast
public IAsyncEnumerable<JsonNode?> ForecastsEval(string? after = null, int timeoutMs = 30000, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) ForecastsEval(ctx context.Context, opts WatchOptions) iter.Seq2[any, error]

Java

client.forecast
public Iterable<Object> forecastsEval(String after, int timeoutMs)

C++

client.forecast
Json forecasts_eval(const std::string &after = "", int64_t timeout_ms = 30000)

Julia

client.forecast
forecasts_eval = (; after = nothing, timeout_ms = 30000)

R

client$forecast
`forecasts_eval` = function(after = NULL, timeout_ms = 30000)

Rust

client.forecast()
pub fn forecasts_eval(&self, after: Option<String>, timeout_ms: u64) -> Watch<'a>

forecasts_journal#

A workbench's forecast journal

readplan: freesince 3.3.0a stream

bentrix://{home}/{owner}/bench/{bench}/forecasts/journal{?after,model,symbol}

Every forecast as it arrived on the workbench, oldest first, at most 500 a page: market, model, epoch, author, interval, anchor_ms, anchor_close_ms, the anchor bar's own close, put_ms (the arrival on the bench's clock), each step's open and close and the steps as given, and its source (live, or an evaluation run's). Written to a file under the workspace and read back after a restart. Model and symbol filter it; next is the count of lines read.

ArgumentTypeRequiredDefaultWhat it is
afterstring——The count of lines already read (next of the previous page).
benchstringyes—
homestringyes—
modelstring——
ownerstringyes—
symbolstring——

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/forecasts/journal{?after,model,symbol}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def forecasts_journal(self, home: str, owner: str, bench: str, *, model: Optional[str] = None, symbol: Optional[str] = None, after: Optional[str] = None, timeout_ms: int = 30000) -> Iterator[Any]

JavaScript

client.forecast
forecastsJournal(vars, opts)

C#

client.Forecast
public IAsyncEnumerable<JsonNode?> ForecastsJournal(string home, string owner, string bench, string? model = null, string? symbol = null, string? after = null, int timeoutMs = 30000, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) ForecastsJournal(ctx context.Context, args ForecastForecastsJournalArgs, opts WatchOptions) iter.Seq2[any, error]

Java

client.forecast
public Iterable<Object> forecastsJournal(ForecastsJournalArgs args, String after, int timeoutMs)

C++

client.forecast
Json forecasts_journal(const ForecastsJournalArgs &args, const std::string &after = "", int64_t timeout_ms = 30000)

Julia

client.forecast
forecasts_journal = (home, owner, bench; model = nothing, symbol = nothing, after = nothing, timeout_ms = 30000)

R

client$forecast
`forecasts_journal` = function(home, owner, bench, model = NULL, symbol = NULL, after = NULL, timeout_ms = 30000)

Rust

client.forecast()
pub fn forecasts_journal(&self, args: ForecastForecastsJournalArgs, after: Option<String>, timeout_ms: u64) -> Watch<'a>

models_runs#

Each run of a model

readplan: freesince 3.6.0a stream

bentrix://models/runs{?after}

Each run of a model Bentrix runs, oldest first - a running model's close, model_run_once, an evaluation it drives, a strategy reading it: model (its label), anchor_ms, took_ms, late (past Late is), error, at_ms. Next is the count of items read.

ArgumentTypeRequiredDefaultWhat it is
afterstring——The count of items read, as a previous page answered it in next; omitted, from the first.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://models/runs{?after}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.model
def models_runs(self, *, after: Optional[str] = None, timeout_ms: int = 30000) -> Iterator[Any]

JavaScript

client.model
modelsRuns(vars, opts)

C#

client.Model
public IAsyncEnumerable<JsonNode?> ModelsRuns(string? after = null, int timeoutMs = 30000, CancellationToken ct = default)

Go

client.Model
func (a *ModelAPI) ModelsRuns(ctx context.Context, opts WatchOptions) iter.Seq2[any, error]

Java

client.model
public Iterable<Object> modelsRuns(String after, int timeoutMs)

C++

client.model
Json models_runs(const std::string &after = "", int64_t timeout_ms = 30000)

Julia

client.model
models_runs = (; after = nothing, timeout_ms = 30000)

R

client$model
`models_runs` = function(after = NULL, timeout_ms = 30000)

Rust

client.model()
pub fn models_runs(&self, after: Option<String>, timeout_ms: u64) -> Watch<'a>

trade_deals#

A workbench's deals, as they are made

readplan: freesince 1.0.0a stream

bentrix://{home}/{owner}/bench/{bench}/deals{?after}

Each deal the workbench's venue makes, oldest first, as its History tab lists it: ticket, order, position, market, side, entry, time, price, volume, commission, swap, profit and magic; at most 1000 a page. Next is the count of deals read.

ArgumentTypeRequiredDefaultWhat it is
afterstring——The cursor a previous page answered as next; omitted, from the start.
benchstringyes—
homestringyes—
ownerstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/deals{?after}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.trade
def deals(self, home: str, owner: str, bench: str, *, after: Optional[str] = None, timeout_ms: int = 30000) -> Iterator[Any]

JavaScript

client.trade
deals(vars, opts)

C#

client.Trade
public IAsyncEnumerable<JsonNode?> Deals(string home, string owner, string bench, string? after = null, int timeoutMs = 30000, CancellationToken ct = default)

Go

client.Trade
func (a *TradeAPI) Deals(ctx context.Context, args TradeDealsArgs, opts WatchOptions) iter.Seq2[any, error]

Java

client.trade
public Iterable<Object> deals(DealsArgs args, String after, int timeoutMs)

C++

client.trade
Json deals(const DealsArgs &args, const std::string &after = "", int64_t timeout_ms = 30000)

Julia

client.trade
deals = (home, owner, bench; after = nothing, timeout_ms = 30000)

R

client$trade
`deals` = function(home, owner, bench, after = NULL, timeout_ms = 30000)

Rust

client.trade()
pub fn deals(&self, args: TradeDealsArgs, after: Option<String>, timeout_ms: u64) -> Watch<'a>

workbench_journal#

A workbench's Journal, as it is written

readplan: freesince 1.0.0a stream

bentrix://{home}/{owner}/bench/{bench}/journal{?after}

Each line the workbench's Journal gains, oldest first, at most 1000 a page; next is the count of lines read, the cursor for the following page.

ArgumentTypeRequiredDefaultWhat it is
afterstring——The cursor a previous page answered as next; omitted, from the start.
benchstringyes—
homestringyes—
ownerstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": {
    "uri": "bentrix://{home}/{owner}/bench/{bench}/journal{?after}",
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.workbench
def journal(self, home: str, owner: str, bench: str, *, after: Optional[str] = None, timeout_ms: int = 30000) -> Iterator[Any]

JavaScript

client.workbench
journal(vars, opts)

C#

client.Workbench
public IAsyncEnumerable<JsonNode?> Journal(string home, string owner, string bench, string? after = null, int timeoutMs = 30000, CancellationToken ct = default)

Go

client.Workbench
func (a *WorkbenchAPI) Journal(ctx context.Context, args WorkbenchJournalArgs, opts WatchOptions) iter.Seq2[any, error]

Java

client.workbench
public Iterable<Object> journal(JournalArgs args, String after, int timeoutMs)

C++

client.workbench
Json journal(const JournalArgs &args, const std::string &after = "", int64_t timeout_ms = 30000)

Julia

client.workbench
journal = (home, owner, bench; after = nothing, timeout_ms = 30000)

R

client$workbench
`journal` = function(home, owner, bench, after = NULL, timeout_ms = 30000)

Rust

client.workbench()
pub fn journal(&self, args: WorkbenchJournalArgs, after: Option<String>, timeout_ms: u64) -> Watch<'a>

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