Bentrix Docs
HomePricingDashboard

MCP tools: account

What the venue measured of a workbench's own fills — its spread and slippage as filled — and a workbench made alike on them.

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

fills_get#

Read a real account's measured fills

readplan: freesince 1.14.0reads only

Answers the measurement fills_measure started: whether it is still reading, the laboratory it re-prices on, per market the shortfall's figures and the calibrated slippage (fixed at the median, random up to twice the mean, each in the market's price units), the latency, and every deal re-priced.

ArgumentTypeRequiredDefaultWhat it is
accountstringyes—The account's uri, as get_state gives it: bentrix://account/<id>.

MCP

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

Python

client.account
def fills_get(self, account: str) -> Dict[str, Any]

JavaScript

client.account
fillsGet(args)

C#

client.Account
public Task<JsonNode?> FillsGet(string account, CancellationToken ct = default)

Go

client.Account
func (a *AccountAPI) FillsGet(ctx context.Context, args AccountFillsGetArgs) (any, error)

Java

client.account
public Object fillsGet(FillsGetArgs args)

C++

client.account
Json fills_get(const FillsGetArgs &args)

Julia

client.account
fills_get = (account)

R

client$account
`fills_get` = function(account)

Rust

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

fills_make_bench#

Make a workbench with a real account's measured slippage

labplan: freesince 1.14.0

Makes a laboratory workbench alike one of the account's history's laboratory, its fills slipping by what fills_measure measured — fixed at the median or random with the measured mean, each market in its own price units — and waiting the measured latency where chosen; a strategy re-run there runs on the person's own slippage. Answers the workbench's uri.

ArgumentTypeRequiredDefaultWhat it is
accountstringyes—The account's uri, as get_state gives it: bentrix://account/<id>.
alikestring——The laboratory workbench to make it alike (the laboratory's first when absent): bentrix://lab/<lab>/bench/<bench>.
latencyboolean——Whether the measured latency is taken too (true when absent).
slippagestring——Median (fixed at each market's median shortfall) or mean (random, its mean the measured mean); median when absent.

MCP

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

Python

client.account
def fills_make_bench(self, account: str, *, alike: Optional[str] = None, latency: Optional[bool] = None, slippage: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.account
fillsMakeBench(args)

C#

client.Account
public Task<JsonNode?> FillsMakeBench(string account, string? alike = null, bool? latency = null, string? slippage = null, CancellationToken ct = default)

Go

client.Account
func (a *AccountAPI) FillsMakeBench(ctx context.Context, args AccountFillsMakeBenchArgs) (any, error)

Java

client.account
public Object fillsMakeBench(FillsMakeBenchArgs args)

C++

client.account
Json fills_make_bench(const FillsMakeBenchArgs &args)

Julia

client.account
fills_make_bench = (account; alike = nothing, latency = nothing, slippage = nothing)

R

client$account
`fills_make_bench` = function(account, alike = NULL, latency = NULL, slippage = NULL)

Rust

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

fills_measure#

Measure a real account's own fills

readplan: freesince 1.14.0reads only

Reads a real account's deals and orders off its MetaTrader (prices and moments, no money figure) and re-prices each on the laboratory of that account's history: per market the shortfall against what Bentrix's venue would have filled (median, mean, 90th percentile, worst, in points), the latency from placing a market order to its fill, and a calibrated slippage. Starts the read and answers as fills_get does; fills_get again until reading is false.

ArgumentTypeRequiredDefaultWhat it is
accountstringyes—The account's uri, as get_state gives it: bentrix://account/<id>.
spanstring——How far back: 30d, 90d, 1y or all (90d when absent).

MCP

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

Python

client.account
def fills_measure(self, account: str, *, span: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.account
fillsMeasure(args)

C#

client.Account
public Task<JsonNode?> FillsMeasure(string account, string? span = null, CancellationToken ct = default)

Go

client.Account
func (a *AccountAPI) FillsMeasure(ctx context.Context, args AccountFillsMeasureArgs) (any, error)

Java

client.account
public Object fillsMeasure(FillsMeasureArgs args)

C++

client.account
Json fills_measure(const FillsMeasureArgs &args)

Julia

client.account
fills_measure = (account; span = nothing)

R

client$account
`fills_measure` = function(account, span = NULL)

Rust

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

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