Every method of client.Marketwatch in the C# SDK.
Add#
Add a market to a real account's Market Watch · tool marketwatch_add
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.
Declaration
client.Marketwatch
public Task<JsonNode?> Add(string account, string symbol, CancellationToken ct = default)Parameters
| Name | Type | What it is | |
|---|---|---|---|
account | string | required | The account's uri, as get_state gives it: bentrix://account/<id>. |
symbol | string | required | The broker's own name of the market. |
Returns
Task<JsonNode?> — the tool’s answer as a JsonNode.
What it answers
Answers the account's markets.
Example
await client.Marketwatch.Add(account, "SYN-DOCS")Hide#
Hide a market from a real account's Market Watch · tool marketwatch_hide
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.
Declaration
client.Marketwatch
public Task<JsonNode?> Hide(string account, string symbol, CancellationToken ct = default)Parameters
| Name | Type | What it is | |
|---|---|---|---|
account | string | required | The account's uri, as get_state gives it: bentrix://account/<id>. |
symbol | string | required | The broker's own name of the market. |
Returns
Task<JsonNode?> — the tool’s answer as a JsonNode.
What it answers
Answers the account's markets.
Example
await client.Marketwatch.Hide(account, "SYN-DOCS")SetView#
Set Market Watch's view · tool marketwatch_set_view
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.
Declaration
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)Parameters
| Name | Type | What it is | |
|---|---|---|---|
baseMarket | bool? | optional | The exchange list: the base market's rows too. |
boardSort | string? | optional | The exchange list's order: symbol, last, change, volume or trades, as a header press. |
collect | bool? | optional | The analysis desk's evening collection of every share that traded, on or off. |
columns | IReadOnlyList<string>? | optional | The columns shown, in Market Watch's own names (bid, ask, spread, change, high, low, time,...), in their order. |
everyS | long? | optional | The exchange list's refresh while the exchange trades, in seconds: 2, 5, 10, 30 or 60. |
filter | string? | optional | The table's filter text. |
opensIn | string? | optional | Where a row's press shows its market: own_chart or chart_in_front. |
resetColumns | bool? | optional | Back to the default columns. |
sort | string? | optional | Sorted by symbol or by a column's name, as a header press; the same again reverses it. |
tradedOnly | bool? | optional | The exchange list: only what traded today. |
view | string? | optional | Which list it shows: workbench. |
Returns
Task<JsonNode?> — the tool’s answer as a JsonNode.
What it answers
Answers the view.
Example
await client.Marketwatch.SetView()SymbolInfo#
A market's contract · tool symbol_info
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.
Declaration
client.Marketwatch
public Task<JsonNode?> SymbolInfo(string bench, string symbol, CancellationToken ct = default)Parameters
| Name | Type | What it is | |
|---|---|---|---|
bench | string | required | The workbench's uri. |
symbol | string | required |
Returns
Task<JsonNode?> — the tool’s answer as a JsonNode.
What it answers
Recorded from a running Bentrix 0.1.382 on a laboratory of generated markets (long lists cut to their first rows):
{
"contract_size": 100000.0,
"point": 1e-05,
"point_value_basis": "ContractTimesPoint",
"swap": "None",
"symbol": "SYN-DOCS",
"volume_max": 100.0,
"volume_min": 0.01,
"volume_step": 0.01
}Example
await client.Marketwatch.SymbolInfo(bench, "SYN-DOCS")