Bentrix Docs
HomePricingDashboard

MCP tools: market watch

Market Watch: a market added or hidden, the view's columns set, and a market's contract read as the symbol window shows it.

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

marketwatch_add#

Add a market to a real account's Market Watch

realplan: freesince 1.0.0

Adds a market of the broker's list to a real account's Market Watch, as its + does; the first market of an empty account is charted on the selected workbench. Answers the account's markets.

ArgumentTypeRequiredDefaultWhat it is
accountstringyes—The account's uri, as get_state gives it: bentrix://account/<id>.
symbolstringyes—The broker's own name of the market.

MCP

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

Python

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

JavaScript

client.marketwatch
add(args)

C#

client.Marketwatch
public Task<JsonNode?> Add(string account, string symbol, CancellationToken ct = default)

Go

client.Marketwatch
func (a *MarketwatchAPI) Add(ctx context.Context, args MarketwatchAddArgs) (any, error)

Java

client.marketwatch
public Object add(AddArgs args)

C++

client.marketwatch
Json add(const AddArgs &args)

Julia

client.marketwatch
add = (account, symbol)

R

client$marketwatch
`add` = function(account, symbol)

Rust

client.marketwatch()
pub fn add(&self, args: MarketwatchAddArgs) -> Result<Value, Error>

marketwatch_hide#

Hide a market from a real account's Market Watch

realplan: freesince 1.0.0

Takes a market off a real account's Market Watch, as a row's Hide does; MetaTrader's own Market Watch is untouched. Answers the account's markets.

ArgumentTypeRequiredDefaultWhat it is
accountstringyes—The account's uri, as get_state gives it: bentrix://account/<id>.
symbolstringyes—The broker's own name of the market.

MCP

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

Python

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

JavaScript

client.marketwatch
hide(args)

C#

client.Marketwatch
public Task<JsonNode?> Hide(string account, string symbol, CancellationToken ct = default)

Go

client.Marketwatch
func (a *MarketwatchAPI) Hide(ctx context.Context, args MarketwatchHideArgs) (any, error)

Java

client.marketwatch
public Object hide(HideArgs args)

C++

client.marketwatch
Json hide(const HideArgs &args)

Julia

client.marketwatch
hide = (account, symbol)

R

client$marketwatch
`hide` = function(account, symbol)

Rust

client.marketwatch()
pub fn hide(&self, args: MarketwatchHideArgs) -> Result<Value, Error>

marketwatch_set_view#

Set Market Watch's view

labplan: plussince 1.0.0

Chooses Market Watch's columns, its sort and its filter, as its column chooser, its headers and its search do; and which list it shows (a workbench's markets) with that list's order, filters and refresh, as its switch and controls do. Answers the view.

ArgumentTypeRequiredDefaultWhat it is
base_marketboolean——The exchange list: the base market's rows too.
board_sortstring——The exchange list's order: symbol, last, change, volume or trades, as a header press.
collectboolean——The analysis desk's evening collection of every share that traded, on or off.
columnsarray of string——The columns shown, in Market Watch's own names (bid, ask, spread, change, high, low, time,...), in their order.
every_sinteger——The exchange list's refresh while the exchange trades, in seconds: 2, 5, 10, 30 or 60.
filterstring——The table's filter text.
opens_instring——Where a row's press shows its market: own_chart or chart_in_front.
reset_columnsboolean—falseBack to the default columns.
sortstring——Sorted by symbol or by a column's name, as a header press; the same again reverses it.
traded_onlyboolean——The exchange list: only what traded today.
viewstring——Which list it shows: workbench.

MCP

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

Python

client.marketwatch
def set_view(self, *, base_market: Optional[bool] = None, board_sort: Optional[str] = None, collect: Optional[bool] = None, columns: Optional[List[str]] = None, every_s: Optional[int] = None, filter: Optional[str] = None, opens_in: Optional[str] = None, reset_columns: Optional[bool] = None, sort: Optional[str] = None, traded_only: Optional[bool] = None, view: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.marketwatch
setView(args)

C#

client.Marketwatch
public Task<JsonNode?> SetView(bool? baseMarket = null, string? boardSort = null, bool? collect = null, IReadOnlyList<string>? columns = null, long? everyS = null, string? filter = null, string? opensIn = null, bool? resetColumns = null, string? sort = null, bool? tradedOnly = null, string? view = null, CancellationToken ct = default)

Go

client.Marketwatch
func (a *MarketwatchAPI) SetView(ctx context.Context, args MarketwatchSetViewArgs) (any, error)

Java

client.marketwatch
public Object setView(SetViewArgs args)

C++

client.marketwatch
Json set_view(const SetViewArgs &args)

Julia

client.marketwatch
set_view = (; base_market = nothing, board_sort = nothing, collect = nothing, columns = nothing, every_s = nothing, filter = nothing, opens_in = nothing, reset_columns = nothing, sort = nothing, traded_only = nothing, view = nothing)

R

client$marketwatch
`set_view` = function(base_market = NULL, board_sort = NULL, collect = NULL, columns = NULL, every_s = NULL, filter = NULL, opens_in = NULL, reset_columns = NULL, sort = NULL, traded_only = NULL, view = NULL)

Rust

client.marketwatch()
pub fn set_view(&self, args: MarketwatchSetViewArgs) -> Result<Value, Error>

symbol_info#

A market's contract

readplan: freesince 1.0.0reads only

The contract a workbench's venue prices a market under — contract size, point, volume limits, the swap and the basis of its point value — as Market Watch's Specification shows it. Read only.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—The workbench's uri.
symbolstringyes—

MCP

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

Python

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

JavaScript

client.marketwatch
symbolInfo(args)

C#

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

Go

client.Marketwatch
func (a *MarketwatchAPI) SymbolInfo(ctx context.Context, args MarketwatchSymbolInfoArgs) (any, error)

Java

client.marketwatch
public Object symbolInfo(SymbolInfoArgs args)

C++

client.marketwatch
Json symbol_info(const SymbolInfoArgs &args)

Julia

client.marketwatch
symbol_info = (bench, symbol)

R

client$marketwatch
`symbol_info` = function(bench, symbol)

Rust

client.marketwatch()
pub fn symbol_info(&self, args: MarketwatchSymbolInfoArgs) -> Result<Value, Error>

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