Bentrix Docs
HomePricingDashboard

MCP tools: zone

Time zones: every zone there is, by code, name and offset; the clock's three clocks read and its own settings changed; a workbench's charts' zone (every chart of it read and cut there, its trading on its own clock) and one chart's own; and a market's candles read and cut in any zone without changing the screen — bars_in_zone, or bars_window with its zone.

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

bars_in_zone#

Read a market's candles in any time zone

readplan: freesince 3.12.0reads only

Answers a workbench's candles of one market and interval read and cut in a time zone of the caller's choosing, without changing what the screen shows: a day opens at that zone's midnight, a week at its Monday, H4 on its grid — folded from the workbench's own finer candles (H1, or M30/M15 for a half- or quarter-hour zone), up to the cursor and never past it. Rows are time_ms (the workbench's own stamps), zone_time (the bar's open in that zone), open, high, low, close, tick_volume; newest limit (200 when omitted, at most 2000), oldest first. An interval the zone does not move is read as it is.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—The workbench's uri.
limitinteger——The newest bars kept, 200 when omitted, at most 2000.
symbolstringyes—One of the workbench's markets.
timeframestringyes—The interval, as the menu writes it (H4, D1, W1…).
zonestringyes—The zone to read and cut in: a code from zones_list, an IANA name, system, or display (the workbench's charts' zone).

MCP

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

Python

client.zone
def bars_in_zone(self, bench: str, symbol: str, timeframe: str, zone: str, *, limit: Optional[int] = None) -> Dict[str, Any]

JavaScript

client.zone
barsInZone(args)

C#

client.Zone
public Task<JsonNode?> BarsInZone(string bench, string symbol, string timeframe, string zone, long? limit = null, CancellationToken ct = default)

Go

client.Zone
func (a *ZoneAPI) BarsInZone(ctx context.Context, args ZoneBarsInZoneArgs) (any, error)

Java

client.zone
public Object barsInZone(BarsInZoneArgs args)

C++

client.zone
Json bars_in_zone(const BarsInZoneArgs &args)

Julia

client.zone
bars_in_zone = (bench, symbol, timeframe, zone; limit = nothing)

R

client$zone
`bars_in_zone` = function(bench, symbol, timeframe, zone, limit = NULL)

Rust

client.zone()
pub fn bars_in_zone(&self, args: ZoneBarsInZoneArgs) -> Result<Value, Error>

bench_set_display_zone#

Set a workbench's charts' time zone

labplan: freesince 3.12.0

Sets the time zone a workbench's charts are read in and their candles cut in, as a press on the clock's charts' face does: every chart of the workbench follows; its venue, strategies and swap keep the workbench's own clock. Default puts the workbench's own zone (or its broker's) back. Answers the zone.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—The workbench's uri, as get_state gives it.
zonestringyes—A zone's code from zones_list, an IANA name, system (this computer's), or default (the workbench's own zone, or its broker's).

MCP

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

Python

client.zone
def bench_set_display_zone(self, bench: str, zone: str) -> Dict[str, Any]

JavaScript

client.zone
benchSetDisplayZone(args)

C#

client.Zone
public Task<JsonNode?> BenchSetDisplayZone(string bench, string zone, CancellationToken ct = default)

Go

client.Zone
func (a *ZoneAPI) BenchSetDisplayZone(ctx context.Context, args ZoneBenchSetDisplayZoneArgs) (any, error)

Java

client.zone
public Object benchSetDisplayZone(BenchSetDisplayZoneArgs args)

C++

client.zone
Json bench_set_display_zone(const BenchSetDisplayZoneArgs &args)

Julia

client.zone
bench_set_display_zone = (bench, zone)

R

client$zone
`bench_set_display_zone` = function(bench, zone)

Rust

client.zone()
pub fn bench_set_display_zone(&self, args: ZoneBenchSetDisplayZoneArgs) -> Result<Value, Error>

chart_set_zone#

Set one chart's own time zone

labplan: freesince 3.12.0

Sets one chart's own time zone, as its settings' Time zone row does: its times read and its candles cut in it, a preview of that chart alone — the workbench's other charts and the clock as they were. Default reads it as its workbench again. Answers the chart's zone.

ArgumentTypeRequiredDefaultWhat it is
chartstringyes—The chart's uri.
zonestringyes—A zone's code from zones_list, an IANA name, system, or default (as its workbench).

MCP

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

Python

client.zone
def chart_set_zone(self, chart: str, zone: str) -> Dict[str, Any]

JavaScript

client.zone
chartSetZone(args)

C#

client.Zone
public Task<JsonNode?> ChartSetZone(string chart, string zone, CancellationToken ct = default)

Go

client.Zone
func (a *ZoneAPI) ChartSetZone(ctx context.Context, args ZoneChartSetZoneArgs) (any, error)

Java

client.zone
public Object chartSetZone(ChartSetZoneArgs args)

C++

client.zone
Json chart_set_zone(const ChartSetZoneArgs &args)

Julia

client.zone
chart_set_zone = (chart, zone)

R

client$zone
`chart_set_zone` = function(chart, zone)

Rust

client.zone()
pub fn chart_set_zone(&self, args: ZoneChartSetZoneArgs) -> Result<Value, Error>

clock_read#

Read the clock

readplan: freesince 3.12.0reads only

Answers the clock window as it reads the selected workbench: each clock it shows (market: the broker's or the laboratory's zone; computer: this computer's; charts: the workbench's display zone) with its time, region and offset; the workbench's display zone, chosen or default; and the clock's own settings (which clocks, face, hours, parts, sections, desks, band, glow window, close-together line).

Takes no arguments.

MCP

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

Python

client.zone
def clock_read(self) -> Dict[str, Any]

JavaScript

client.zone
clockRead(args)

C#

client.Zone
public Task<JsonNode?> ClockRead(CancellationToken ct = default)

Go

client.Zone
func (a *ZoneAPI) ClockRead(ctx context.Context) (any, error)

Java

client.zone
public Object clockRead()

C++

client.zone
Json clock_read()

Julia

client.zone
clock_read = ()

R

client$zone
`clock_read` = function()

Rust

client.zone()
pub fn clock_read(&self) -> Result<Value, Error>

clock_settings_set#

Change the clock's settings

labplan: freesince 3.12.0

Changes the clock window's own settings, as its gear's window does — the fields given laid over the rest. Answers the settings.

ArgumentTypeRequiredDefaultWhat it is
settingsanyyes—Fields of the clock's settings laid over what they are now (clock_read's settings): market, computer, charts, computer_time (replay_moment | real_now), face (analog | analog_and_digital | digital), hours (h24 | h12), seconds_hand, millis, date, week, zone_line, markets, candles, progress, holidays, desks (a bit each: Sydney 1, Tokyo 2, London 4, New York 8), band, warn (off | s10 | s30 | m1), together.

MCP

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

Python

client.zone
def clock_settings_set(self, settings: Any) -> Dict[str, Any]

JavaScript

client.zone
clockSettingsSet(args)

C#

client.Zone
public Task<JsonNode?> ClockSettingsSet(object settings, CancellationToken ct = default)

Go

client.Zone
func (a *ZoneAPI) ClockSettingsSet(ctx context.Context, args ZoneClockSettingsSetArgs) (any, error)

Java

client.zone
public Object clockSettingsSet(ClockSettingsSetArgs args)

C++

client.zone
Json clock_settings_set(const ClockSettingsSetArgs &args)

Julia

client.zone
clock_settings_set = (settings)

R

client$zone
`clock_settings_set` = function(settings)

Rust

client.zone()
pub fn clock_settings_set(&self, args: ZoneClockSettingsSetArgs) -> Result<Value, Error>

zones_list#

List every time zone

readplan: freesince 3.12.0reads only

Answers every time zone Bentrix offers, in the order its lists show them: system (this computer's), the important ones (UTC, New York close, New York, London, Tokyo, Chicago, Frankfurt, Eastern Europe, Dubai, Singapore, Hong Kong, Sydney), every zone of the IANA database and the fixed offsets — each its code (what the other zone tools take), label, region, offsets across the year and offset now. Search narrows them.

ArgumentTypeRequiredDefaultWhat it is
searchstring——Only the zones whose code or name holds this text (case does not matter).

MCP

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

Python

client.zone
def zones_list(self, *, search: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.zone
zonesList(args)

C#

client.Zone
public Task<JsonNode?> ZonesList(string? search = null, CancellationToken ct = default)

Go

client.Zone
func (a *ZoneAPI) ZonesList(ctx context.Context, args ZoneZonesListArgs) (any, error)

Java

client.zone
public Object zonesList(ZonesListArgs args)

C++

client.zone
Json zones_list(const ZonesListArgs &args)

Julia

client.zone
zones_list = (; search = nothing)

R

client$zone
`zones_list` = function(search = NULL)

Rust

client.zone()
pub fn zones_list(&self, args: ZoneZonesListArgs) -> Result<Value, Error>

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