Bentrix Docs
HomePricingDashboard

MCP tools: recordings, imports and generated markets

The recordings behind the laboratories: downloads followed, stopped, retried and dropped; data quality read; the person's own files inspected, imported and forgotten with their ledger; generated markets and baskets made from a recipe, previewed, generated and read.

Reached from a connected client as client.recordings in Python, client.recordings in JavaScript, client.recordings() in Rust — each tool below shows its call in every language.

data_quality#

Measure a market's data quality

readplan: freesince 1.14.0reads only

The data-quality report Market Watch's Data quality... Shows for a laboratory workbench's market over the workbench's days, measured off the store's own files: digits and point, ticks per year, traded days, the first day with real ticks and the days modelled before it, holes with their days, spikes, the share of ticks with both sides, zero-spread ticks and stretches, duplicate and backward stamps, and whose data it is - each figure with what it counts. Beside the figures, for a gate of the caller's own: traded, every day the store holds candles for; modelled, the traded days with no tick file (replayed from candles, never from ticks); holes, each day of a tick file with hours graded missing and those UTC hours; and per_year, each year's ticks, traded days, days with a tick file, modelled days and days with a hole. It reads every tick, so the first call starts the measure and answers measuring: true; call again for the report.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—A laboratory workbench, as a bentrix://bench/... Uri.
symbolstringyes—A market the workbench holds.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "data_quality",
    "arguments": {
      "bench": "…",
      "symbol": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def data_quality(self, bench: str, symbol: str) -> Dict[str, Any]

JavaScript

client.recordings
dataQuality(args)

C#

client.Recordings
public Task<JsonNode?> DataQuality(string bench, string symbol, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) DataQuality(ctx context.Context, args RecordingsDataQualityArgs) (any, error)

Java

client.recordings
public Object dataQuality(DataQualityArgs args)

C++

client.recordings
Json data_quality(const DataQualityArgs &args)

Julia

client.recordings
data_quality = (bench, symbol)

R

client$recordings
`data_quality` = function(bench, symbol)

Rust

client.recordings()
pub fn data_quality(&self, args: RecordingsDataQualityArgs) -> Result<Value, Error>

download_drop#

Take an ask out of the download queue

labplan: freesince 1.0.0destructive

Takes a queued ask out of the queue, as its row's Remove does; a market it was adding to a workbench, and that no trade names, leaves the workbench again. Answers the downloads.

ArgumentTypeRequiredDefaultWhat it is
queuedintegeryes—The ask's place in the queue, as downloads_list gives it.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "download_drop",
    "arguments": {
      "queued": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def download_drop(self, queued: int) -> Dict[str, Any]

JavaScript

client.recordings
downloadDrop(args)

C#

client.Recordings
public Task<JsonNode?> DownloadDrop(long queued, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) DownloadDrop(ctx context.Context, args RecordingsDownloadDropArgs) (any, error)

Java

client.recordings
public Object downloadDrop(DownloadDropArgs args)

C++

client.recordings
Json download_drop(const DownloadDropArgs &args)

Julia

client.recordings
download_drop = (queued)

R

client$recordings
`download_drop` = function(queued)

Rust

client.recordings()
pub fn download_drop(&self, args: RecordingsDownloadDropArgs) -> Result<Value, Error>

download_retry#

Try a download again

labplan: freesince 1.0.0

Asks for the same download again, as the row that says it came back short does with Try again; it waits behind its laboratory's running walk. Answers the downloads.

ArgumentTypeRequiredDefaultWhat it is
downloadintegeryes—The download's number, as downloads_list gives it.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "download_retry",
    "arguments": {
      "download": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def download_retry(self, download: int) -> Dict[str, Any]

JavaScript

client.recordings
downloadRetry(args)

C#

client.Recordings
public Task<JsonNode?> DownloadRetry(long download, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) DownloadRetry(ctx context.Context, args RecordingsDownloadRetryArgs) (any, error)

Java

client.recordings
public Object downloadRetry(DownloadRetryArgs args)

C++

client.recordings
Json download_retry(const DownloadRetryArgs &args)

Julia

client.recordings
download_retry = (download)

R

client$recordings
`download_retry` = function(download)

Rust

client.recordings()
pub fn download_retry(&self, args: RecordingsDownloadRetryArgs) -> Result<Value, Error>

download_stop#

Stop a download

labplan: freesince 1.0.0

Stops a running download, as its row's Stop does; what landed is kept. Answers the downloads.

ArgumentTypeRequiredDefaultWhat it is
downloadintegeryes—The download's number, as downloads_list gives it.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "download_stop",
    "arguments": {
      "download": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def download_stop(self, download: int) -> Dict[str, Any]

JavaScript

client.recordings
downloadStop(args)

C#

client.Recordings
public Task<JsonNode?> DownloadStop(long download, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) DownloadStop(ctx context.Context, args RecordingsDownloadStopArgs) (any, error)

Java

client.recordings
public Object downloadStop(DownloadStopArgs args)

C++

client.recordings
Json download_stop(const DownloadStopArgs &args)

Julia

client.recordings
download_stop = (download)

R

client$recordings
`download_stop` = function(download)

Rust

client.recordings()
pub fn download_stop(&self, args: RecordingsDownloadStopArgs) -> Result<Value, Error>

downloads_list#

Read the downloads

readplan: freesince 1.0.0reads only

Answers the downloads strip's rows - each download's number, laboratory, workbench, markets, days and whether it runs or is stopping - and the queue of asks waiting for their laboratory's walk, each by its place.

Takes no arguments.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "downloads_list",
    "arguments": {},
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def downloads_list(self) -> Dict[str, Any]

JavaScript

client.recordings
downloadsList(args)

C#

client.Recordings
public Task<JsonNode?> DownloadsList(CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) DownloadsList(ctx context.Context) (any, error)

Java

client.recordings
public Object downloadsList()

C++

client.recordings
Json downloads_list()

Julia

client.recordings
downloads_list = ()

R

client$recordings
`downloads_list` = function()

Rust

client.recordings()
pub fn downloads_list(&self) -> Result<Value, Error>

generated_basket_create#

Make a basket of generated markets

labplan: freesince 2.2.0

Makes markets that move together in the laboratory of generated markets: a basket of the gallery by its name (USD majors with an exact derived cross, Crypto majors, Two markets), or members of the caller's own (each a recipe's text) with a correlation matrix the fit approximates - made positive semi-definite the nearest way, approximated by a number of factors and pair factors - each member storing its loadings, never the matrix. Answers the markets, the implied matrix, and for a fit the valid matrix, the achieved one and its largest distance from the typed one. With workbench, every market joins it.

ArgumentTypeRequiredDefaultWhat it is
basketstring——A basket of the gallery by its name (USD majors, Crypto majors, Two markets).
factorsinteger——How many factors the fit uses, 1 to the members' count; 1 when omitted.
groupstring——The members' group, a name.
laboratorystringyes—The laboratory of generated markets, as a bentrix://lab/... Uri.
matrixarray of array of number——The correlation the members should have, N by N in the members' order: made valid, fitted with factors factors and pair factors, the achieved matrix answered beside it.
membersarray of string——Or the members, each a recipe's text; with matrix, fitted to it.
workbenchstring——A workbench of it the markets are added to.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generated_basket_create",
    "arguments": {
      "laboratory": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def generated_basket_create(self, laboratory: str, *, basket: Optional[str] = None, factors: Optional[int] = None, group: Optional[str] = None, matrix: Optional[List[List[float]]] = None, members: Optional[List[str]] = None, workbench: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.recordings
generatedBasketCreate(args)

C#

client.Recordings
public Task<JsonNode?> GeneratedBasketCreate(string laboratory, string? basket = null, long? factors = null, string? group = null, object? matrix = null, IReadOnlyList<string>? members = null, string? workbench = null, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) GeneratedBasketCreate(ctx context.Context, args RecordingsGeneratedBasketCreateArgs) (any, error)

Java

client.recordings
public Object generatedBasketCreate(GeneratedBasketCreateArgs args)

C++

client.recordings
Json generated_basket_create(const GeneratedBasketCreateArgs &args)

Julia

client.recordings
generated_basket_create = (laboratory; basket = nothing, factors = nothing, group = nothing, matrix = nothing, members = nothing, workbench = nothing)

R

client$recordings
`generated_basket_create` = function(laboratory, basket = NULL, factors = NULL, group = NULL, matrix = NULL, members = NULL, workbench = NULL)

Rust

client.recordings()
pub fn generated_basket_create(&self, args: RecordingsGeneratedBasketCreateArgs) -> Result<Value, Error>

generated_correlation#

Read generated markets' correlation

readplan: freesince 2.2.0reads only

The correlation of kept generated markets: the one their loadings imply (the shared factors' products and the pairs'), and the one their generated minute closes realise over the days asked, at the minutes they all traded - generated for the measure and kept nowhere. The two differ by the drift, the regimes' coupling and chance, which is what a person sees.

ArgumentTypeRequiredDefaultWhat it is
daysinteger——The days measured, 1 to 31; 5 when omitted.
fromstring——The first day measured, YYYY-MM-DD; the first market's first day when omitted.
laboratorystringyes—The laboratory of generated markets, as a bentrix://lab/... Uri.
marketsarray of stringyes—The kept markets, by name.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generated_correlation",
    "arguments": {
      "laboratory": "…",
      "markets": []
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def generated_correlation(self, laboratory: str, markets: List[str], *, days: Optional[int] = None, from_: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.recordings
generatedCorrelation(args)

C#

client.Recordings
public Task<JsonNode?> GeneratedCorrelation(string laboratory, IReadOnlyList<string> markets, long? days = null, string? from = null, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) GeneratedCorrelation(ctx context.Context, args RecordingsGeneratedCorrelationArgs) (any, error)

Java

client.recordings
public Object generatedCorrelation(GeneratedCorrelationArgs args)

C++

client.recordings
Json generated_correlation(const GeneratedCorrelationArgs &args)

Julia

client.recordings
generated_correlation = (laboratory, markets; days = nothing, from = nothing)

R

client$recordings
`generated_correlation` = function(laboratory, markets, days = NULL, from = NULL)

Rust

client.recordings()
pub fn generated_correlation(&self, args: RecordingsGeneratedCorrelationArgs) -> Result<Value, Error>

generated_episode#

Make a Gym episode's market

labplan: freesince 2.2.0

A seed per episode: makes the market of one episode of a reinforcement-learning curriculum - the recipe (a preset, the CI tape's shape among them, or a recipe's text) under the episode's seed, named SYN-<name>-S<seed> - keeps it and adds it to the workbench, so env_make on that market plays a market no episode before it saw, and the same seed replays the same episode on every computer. A market of that name kept already with the same recipe is reused.

ArgumentTypeRequiredDefaultWhat it is
laboratorystringyes—The laboratory of generated markets, as a bentrix://lab/... Uri.
presetstring——A preset by its name (TAPE is the CI tape's shape), the first when neither this nor recipe_text is given.
recipe_textstring——A whole recipe as text.
seedintegeryes—The episode's seed: the same seed is the same market on every computer.
workbenchstringyes—The workbench the episode's market joins (env_make on it reads the market).

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generated_episode",
    "arguments": {
      "laboratory": "…",
      "seed": 1,
      "workbench": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def generated_episode(self, laboratory: str, workbench: str, seed: int, *, preset: Optional[str] = None, recipe_text: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.recordings
generatedEpisode(args)

C#

client.Recordings
public Task<JsonNode?> GeneratedEpisode(string laboratory, string workbench, long seed, string? preset = null, string? recipeText = null, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) GeneratedEpisode(ctx context.Context, args RecordingsGeneratedEpisodeArgs) (any, error)

Java

client.recordings
public Object generatedEpisode(GeneratedEpisodeArgs args)

C++

client.recordings
Json generated_episode(const GeneratedEpisodeArgs &args)

Julia

client.recordings
generated_episode = (laboratory, workbench, seed; preset = nothing, recipe_text = nothing)

R

client$recordings
`generated_episode` = function(laboratory, workbench, seed, preset = NULL, recipe_text = NULL)

Rust

client.recordings()
pub fn generated_episode(&self, args: RecordingsGeneratedEpisodeArgs) -> Result<Value, Error>

generated_generate#

Generate a market's days now

labplan: freesince 2.2.0

Generates and writes a kept generated market's days of a span now (at most 31 days), as a workbench asking for them would: each day not on this computer yet - its ticks, its minutes, its grading - a derived market from its kept legs. Answers the days written; a day held already is not written again.

ArgumentTypeRequiredDefaultWhat it is
fromstringyes—The first day, YYYY-MM-DD.
laboratorystringyes—The laboratory of generated markets, as a bentrix://lab/... Uri.
marketstringyes—A kept market, by name.
tostringyes—The last day, at most 31 days after the first.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generated_generate",
    "arguments": {
      "from": "…",
      "laboratory": "…",
      "market": "…",
      "to": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def generated_generate(self, laboratory: str, market: str, from_: str, to: str) -> Dict[str, Any]

JavaScript

client.recordings
generatedGenerate(args)

C#

client.Recordings
public Task<JsonNode?> GeneratedGenerate(string laboratory, string market, string from, string to, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) GeneratedGenerate(ctx context.Context, args RecordingsGeneratedGenerateArgs) (any, error)

Java

client.recordings
public Object generatedGenerate(GeneratedGenerateArgs args)

C++

client.recordings
Json generated_generate(const GeneratedGenerateArgs &args)

Julia

client.recordings
generated_generate = (laboratory, market, from, to)

R

client$recordings
`generated_generate` = function(laboratory, market, from, to)

Rust

client.recordings()
pub fn generated_generate(&self, args: RecordingsGeneratedGenerateArgs) -> Result<Value, Error>

generated_market_create#

Make a generated market

labplan: freesince 2.1.0

Makes a market of the laboratory of generated markets from a recipe, as the recipe sheet's Create does: from a preset or a recipe's text, with its name (SYN- and the given word) and seed. The recipe is kept as the market's identity; a name already kept with other settings is refused (a changed recipe is a new market). Its days are generated when a workbench first plays them, the same bytes on every computer. With workbench, the market joins it. Answers the market, its identity and its text.

ArgumentTypeRequiredDefaultWhat it is
laboratorystringyes—The laboratory of generated markets, as a bentrix://lab/... Uri.
namestring——The market's name after SYN-, letters, digits and -.
presetstring——A preset to start from, by its name (generated_recipes); the first when neither this nor recipe_text is given.
recipe_textstring——A whole recipe as text (bentrix-recipe:{...}), as generated_recipes and the sheet's Copy give it.
seedinteger——The seed: the same recipe and seed make the same market on every computer.
workbenchstring——A workbench of it the market is added to.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generated_market_create",
    "arguments": {
      "laboratory": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def generated_market_create(self, laboratory: str, *, name: Optional[str] = None, preset: Optional[str] = None, recipe_text: Optional[str] = None, seed: Optional[int] = None, workbench: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.recordings
generatedMarketCreate(args)

C#

client.Recordings
public Task<JsonNode?> GeneratedMarketCreate(string laboratory, string? name = null, string? preset = null, string? recipeText = null, long? seed = null, string? workbench = null, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) GeneratedMarketCreate(ctx context.Context, args RecordingsGeneratedMarketCreateArgs) (any, error)

Java

client.recordings
public Object generatedMarketCreate(GeneratedMarketCreateArgs args)

C++

client.recordings
Json generated_market_create(const GeneratedMarketCreateArgs &args)

Julia

client.recordings
generated_market_create = (laboratory; name = nothing, preset = nothing, recipe_text = nothing, seed = nothing, workbench = nothing)

R

client$recordings
`generated_market_create` = function(laboratory, name = NULL, preset = NULL, recipe_text = NULL, seed = NULL, workbench = NULL)

Rust

client.recordings()
pub fn generated_market_create(&self, args: RecordingsGeneratedMarketCreateArgs) -> Result<Value, Error>

generated_preview#

Preview a recipe

readplan: freesince 2.2.0reads only

A recipe's first trading days as the generator renders them, kept nowhere: each day's open, high, low and close of the bid, its minutes and its regime, and the hourly closes - the sheet's preview, as numbers. A derived market is previewed through generated_basket_create's legs, not here.

ArgumentTypeRequiredDefaultWhat it is
daysinteger——Trading days previewed, 1 to 10; 5 when omitted.
presetstring——A preset by its name, the first when neither this nor recipe_text is given.
recipe_textstring——A whole recipe as text.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generated_preview",
    "arguments": {},
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def generated_preview(self, *, days: Optional[int] = None, preset: Optional[str] = None, recipe_text: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.recordings
generatedPreview(args)

C#

client.Recordings
public Task<JsonNode?> GeneratedPreview(long? days = null, string? preset = null, string? recipeText = null, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) GeneratedPreview(ctx context.Context, args RecordingsGeneratedPreviewArgs) (any, error)

Java

client.recordings
public Object generatedPreview(GeneratedPreviewArgs args)

C++

client.recordings
Json generated_preview(const GeneratedPreviewArgs &args)

Julia

client.recordings
generated_preview = (; days = nothing, preset = nothing, recipe_text = nothing)

R

client$recordings
`generated_preview` = function(days = NULL, preset = NULL, recipe_text = NULL)

Rust

client.recordings()
pub fn generated_preview(&self, args: RecordingsGeneratedPreviewArgs) -> Result<Value, Error>

generated_recipe_read#

Read a recipe's text

readplan: freesince 2.2.0reads only

A recipe's text read into its settings, with its identity (the hash that is the market's) and the generator version it renders under; a text that does not read, or a recipe this build does not render, is refused in words.

ArgumentTypeRequiredDefaultWhat it is
textstringyes—A recipe's text (bentrix-recipe:{...}).

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generated_recipe_read",
    "arguments": {
      "text": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def generated_recipe_read(self, text: str) -> Dict[str, Any]

JavaScript

client.recordings
generatedRecipeRead(args)

C#

client.Recordings
public Task<JsonNode?> GeneratedRecipeRead(string text, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) GeneratedRecipeRead(ctx context.Context, args RecordingsGeneratedRecipeReadArgs) (any, error)

Java

client.recordings
public Object generatedRecipeRead(GeneratedRecipeReadArgs args)

C++

client.recordings
Json generated_recipe_read(const GeneratedRecipeReadArgs &args)

Julia

client.recordings
generated_recipe_read = (text)

R

client$recordings
`generated_recipe_read` = function(text)

Rust

client.recordings()
pub fn generated_recipe_read(&self, args: RecordingsGeneratedRecipeReadArgs) -> Result<Value, Error>

generated_recipe_write#

Write a recipe as text

readplan: freesince 2.2.0reads only

A recipe's settings written as its text (what one person sends another to have the same market) with its identity; settings that do not make a recipe, or that this build does not render, are refused in words.

ArgumentTypeRequiredDefaultWhat it is
recipeanyyes—A recipe's settings, as generated_recipe_read answers them.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generated_recipe_write",
    "arguments": {
      "recipe": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def generated_recipe_write(self, recipe: Any) -> Dict[str, Any]

JavaScript

client.recordings
generatedRecipeWrite(args)

C#

client.Recordings
public Task<JsonNode?> GeneratedRecipeWrite(object recipe, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) GeneratedRecipeWrite(ctx context.Context, args RecordingsGeneratedRecipeWriteArgs) (any, error)

Java

client.recordings
public Object generatedRecipeWrite(GeneratedRecipeWriteArgs args)

C++

client.recordings
Json generated_recipe_write(const GeneratedRecipeWriteArgs &args)

Julia

client.recordings
generated_recipe_write = (recipe)

R

client$recordings
`generated_recipe_write` = function(recipe)

Rust

client.recordings()
pub fn generated_recipe_write(&self, args: RecordingsGeneratedRecipeWriteArgs) -> Result<Value, Error>

generated_recipes#

Read the generated markets' recipes

readplan: freesince 2.1.0reads only

The recipes of the laboratory of generated markets, by market, each as its settings and as its text (what one person sends another to have the same market), with its identity (a hash of the recipe); and the presets a new market starts from, by name.

ArgumentTypeRequiredDefaultWhat it is
laboratorystringyes—The laboratory of generated markets, as a bentrix://lab/... Uri.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generated_recipes",
    "arguments": {
      "laboratory": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def generated_recipes(self, laboratory: str) -> Dict[str, Any]

JavaScript

client.recordings
generatedRecipes(args)

C#

client.Recordings
public Task<JsonNode?> GeneratedRecipes(string laboratory, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) GeneratedRecipes(ctx context.Context, args RecordingsGeneratedRecipesArgs) (any, error)

Java

client.recordings
public Object generatedRecipes(GeneratedRecipesArgs args)

C++

client.recordings
Json generated_recipes(const GeneratedRecipesArgs &args)

Julia

client.recordings
generated_recipes = (laboratory)

R

client$recordings
`generated_recipes` = function(laboratory)

Rust

client.recordings()
pub fn generated_recipes(&self, args: RecordingsGeneratedRecipesArgs) -> Result<Value, Error>

import_forget#

Forget an import

labplan: freesince 2.1.0destructive

Removes one import from a laboratory of the person's own files and rebuilds the days it touched from the imports that remain. Refused while a workbench that has traded stands on data that holds it: move that workbench to other data first.

ArgumentTypeRequiredDefaultWhat it is
batchstringyes—The batch, as import_ledger names it.
laboratorystringyes—A laboratory of the person's own files, as a bentrix://lab/... Uri.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "import_forget",
    "arguments": {
      "batch": "…",
      "laboratory": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def import_forget(self, laboratory: str, batch: str) -> Dict[str, Any]

JavaScript

client.recordings
importForget(args)

C#

client.Recordings
public Task<JsonNode?> ImportForget(string laboratory, string batch, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) ImportForget(ctx context.Context, args RecordingsImportForgetArgs) (any, error)

Java

client.recordings
public Object importForget(ImportForgetArgs args)

C++

client.recordings
Json import_forget(const ImportForgetArgs &args)

Julia

client.recordings
import_forget = (laboratory, batch)

R

client$recordings
`import_forget` = function(laboratory, batch)

Rust

client.recordings()
pub fn import_forget(&self, args: RecordingsImportForgetArgs) -> Result<Value, Error>

import_inspect#

Read a data file before importing it

readplan: freesince 2.1.0reads only

Reads a market data file on this computer as the import sheet does, and imports nothing: what it holds (ticks or candles and their length, bid and ask or traded prices or bids alone), rows, the first and last instant in UTC, its header, each column's meaning as read (correctable with mapping), the markets a symbol column names, every fault seen with its count and first line, the first records as written, the market's name read off the file's name, whether the laboratory knows that market already, and whether the file wants a spread said (bids alone, or candles with no spread column). A question only the person can answer (day order, which file of a container) is said with the argument that answers it.

ArgumentTypeRequiredDefaultWhat it is
laboratorystringyes—A laboratory of the person's own files, as a bentrix://lab/... Uri.
pathstringyes—The file's path on this computer.
readobject——How the file is read, beyond the reader's own detection.
read.day_orderstring——Day_first or month_first, where the file's dates could be either.
read.file_in_containerstring——Which of a container's data files, by name.
read.mappingarray of string——One field per column, in the file's order: time, date, time_of_day, open, high, low, close, tick_volume, real_volume, spread, bid, ask, last, volume, flags, symbol, ignore.
read.offset_hoursnumber——The file's times' offset east of UTC, in hours; 0 or omitted for UTC.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "import_inspect",
    "arguments": {
      "laboratory": "…",
      "path": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def import_inspect(self, laboratory: str, path: str, *, read: Optional[ReadOptions] = None) -> Dict[str, Any]

JavaScript

client.recordings
importInspect(args)

C#

client.Recordings
public Task<JsonNode?> ImportInspect(string laboratory, string path, object? read = null, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) ImportInspect(ctx context.Context, args RecordingsImportInspectArgs) (any, error)

Java

client.recordings
public Object importInspect(ImportInspectArgs args)

C++

client.recordings
Json import_inspect(const ImportInspectArgs &args)

Julia

client.recordings
import_inspect = (laboratory, path; read = nothing)

R

client$recordings
`import_inspect` = function(laboratory, path, read = NULL)

Rust

client.recordings()
pub fn import_inspect(&self, args: RecordingsImportInspectArgs) -> Result<Value, Error>

import_ledger#

Read a laboratory's imports

readplan: freesince 2.1.0reads only

Every import of a laboratory of the person's own files, in the order they were made: its batch, the file with its size and sha256, when, merge or replace, the source's label, the market, ticks or candles and their length, its rows and its UTC days; and each market's facts as kept.

ArgumentTypeRequiredDefaultWhat it is
laboratorystringyes—A laboratory of the person's own files, as a bentrix://lab/... Uri.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "import_ledger",
    "arguments": {
      "laboratory": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def import_ledger(self, laboratory: str) -> Dict[str, Any]

JavaScript

client.recordings
importLedger(args)

C#

client.Recordings
public Task<JsonNode?> ImportLedger(string laboratory, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) ImportLedger(ctx context.Context, args RecordingsImportLedgerArgs) (any, error)

Java

client.recordings
public Object importLedger(ImportLedgerArgs args)

C++

client.recordings
Json import_ledger(const ImportLedgerArgs &args)

Julia

client.recordings
import_ledger = (laboratory)

R

client$recordings
`import_ledger` = function(laboratory)

Rust

client.recordings()
pub fn import_ledger(&self, args: RecordingsImportLedgerArgs) -> Result<Value, Error>

import_run#

Import a data file

labplan: freesince 2.1.0

Imports a market data file on this computer into a market of a laboratory of the person's own files, as the import sheet's Import does: a market the laboratory never held is defined from form (or the Forex template at the file's own decimals), with its trading hours, its carry a night and the rates typed for its currencies as the sheet's form takes them (hours, carry_long, carry_short, carry_triple, fixed_rates), the file is written as an immutable batch of the ledger, and the market's days are rebuilt — merge: the newer file wins at every instant (minute, for candles) it covers and older rows stay where it is silent; replace: every day it covers is cleared first. A workbench that has traded keeps the data it traded on and says the data changed (bench_data); one that has not reads the new days. With workbench, the market joins it. Answers the batch and, per day, the instants added, changed, kept and removed, and the minutes modelled from longer candles. A file of bids alone, or candles with no spread column, needs spread_points.

ArgumentTypeRequiredDefaultWhat it is
carry_longnumber——A new market's carry a night for a long position, in points a lot (MetaTrader's swap in points); 0 when omitted.
carry_shortnumber——A new market's carry a night for a short position, in points a lot; 0 when omitted.
carry_triplestring——The weekday a triple carry is charged on: Mon, Tue, Wed, Thu or Fri; Wed when omitted.
file_symbolinteger——Which of the file's own markets (its symbol column), by index into import_inspect's symbols.
fixed_ratesobject——Rates typed for a new market's currencies, keyed "FROM/TO" (JPY/USD: 0.0068): used only while the laboratory holds no pair converting FROM into TO.
formobject——A market the laboratory has never held: its facts. The Forex template with the file's own decimals when omitted.
hoursstring——A new market's trading hours in UTC, "HH:MM-HH:MM": a candle longer than a minute has its minutes laid inside them. The whole day when omitted.
labelstring——Where the file came from, in the ledger; the file's name when omitted.
laboratorystringyes—A laboratory of the person's own files, as a bentrix://lab/... Uri.
marketstring——The market it is imported into; read off the file when omitted.
modestring——Merge (the newer file wins where it has rows; older rows stay where it has none) or replace (every day the file covers is cleared first). Merge when omitted.
pathstringyes—The file's path on this computer.
readobject——How the file is read, beyond the reader's own detection.
read.day_orderstring——Day_first or month_first, where the file's dates could be either.
read.file_in_containerstring——Which of a container's data files, by name.
read.mappingarray of string——One field per column, in the file's order: time, date, time_of_day, open, high, low, close, tick_volume, real_volume, spread, bid, ask, last, volume, flags, symbol, ignore.
read.offset_hoursnumber——The file's times' offset east of UTC, in hours; 0 or omitted for UTC.
spread_pointsinteger——The spread, in points, for a file of bids alone or candles with no spread column.
workbenchstring——A workbench of the laboratory the market is added to when it lands.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "import_run",
    "arguments": {
      "laboratory": "…",
      "path": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def import_run(self, laboratory: str, path: str, *, carry_long: Optional[float] = None, carry_short: Optional[float] = None, carry_triple: Optional[str] = None, file_symbol: Optional[int] = None, fixed_rates: Optional[Dict[str, float]] = None, form: Optional[FormArgs] = None, hours: Optional[str] = None, label: Optional[str] = None, market: Optional[str] = None, mode: Optional[str] = None, read: Optional[ReadOptions] = None, spread_points: Optional[int] = None, workbench: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.recordings
importRun(args)

C#

client.Recordings
public Task<JsonNode?> ImportRun(string laboratory, string path, double? carryLong = null, double? carryShort = null, string? carryTriple = null, long? fileSymbol = null, object? fixedRates = null, object? form = null, string? hours = null, string? label = null, string? market = null, string? mode = null, object? read = null, long? spreadPoints = null, string? workbench = null, CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) ImportRun(ctx context.Context, args RecordingsImportRunArgs) (any, error)

Java

client.recordings
public Object importRun(ImportRunArgs args)

C++

client.recordings
Json import_run(const ImportRunArgs &args)

Julia

client.recordings
import_run = (laboratory, path; carry_long = nothing, carry_short = nothing, carry_triple = nothing, file_symbol = nothing, fixed_rates = nothing, form = nothing, hours = nothing, label = nothing, market = nothing, mode = nothing, read = nothing, spread_points = nothing, workbench = nothing)

R

client$recordings
`import_run` = function(laboratory, path, carry_long = NULL, carry_short = NULL, carry_triple = NULL, file_symbol = NULL, fixed_rates = NULL, form = NULL, hours = NULL, label = NULL, market = NULL, mode = NULL, read = NULL, spread_points = NULL, workbench = NULL)

Rust

client.recordings()
pub fn import_run(&self, args: RecordingsImportRunArgs) -> Result<Value, Error>

recording_rescan#

Look for the terminals and recordings again

labplan: freesince 1.0.0

Looks again for the MetaTrader terminals and the recordings on this computer and through the drivers, as the Sources sheet's Rescan does. Answers when the look has been asked; its answer arrives on a later frame.

Takes no arguments.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "recording_rescan",
    "arguments": {},
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.recordings
def recording_rescan(self) -> Dict[str, Any]

JavaScript

client.recordings
recordingRescan(args)

C#

client.Recordings
public Task<JsonNode?> RecordingRescan(CancellationToken ct = default)

Go

client.Recordings
func (a *RecordingsAPI) RecordingRescan(ctx context.Context) (any, error)

Java

client.recordings
public Object recordingRescan()

C++

client.recordings
Json recording_rescan()

Julia

client.recordings
recording_rescan = ()

R

client$recordings
`recording_rescan` = function()

Rust

client.recordings()
pub fn recording_rescan(&self) -> Result<Value, Error>

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