Every method of client.trading in the Java SDK.
tradePanelShow#
Show the trade panel · tool trade_panel_show
Brings the trade panel to a market of a workbench, pinned to it when pin asks, as the chart bar's trade button, F9 and Market Watch's New order do. The panel is the person's; this shows it. Answers the panel's market.
Declaration
client.trading
public Object tradePanelShow(TradePanelShowArgs args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
bench | String | required | The workbench's uri. |
symbol | String | required | The market the panel shows. |
pin | boolean | optional | Kept on this market whatever chart has the focus. |
Returns
Object — the tool’s answer as maps and lists.
What it answers
Answers the panel's market.
Example
client.trading.tradePanelShow(new Bentrix.TradingApi.TradePanelShowArgs(bench, "SYN-DOCS"))tradeProfile#
Save, load or forget a market's trade profile · tool trade_profile
Saves a market's risk, stop and target as its profile, loads it into the trade panel's draft, or forgets it, as the panel's profile menu does; a profile the panel would refuse is refused in its words. Answers the market's profile.
Declaration
client.trading
public Object tradeProfile(TradeProfileArgs args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
action | String | required | |
symbol | String | required | |
rewardRatio | double | optional | With save: the target as a multiple of the stop. |
riskPct | double | optional | With save: the risk in percent of the balance. |
stopPoints | double | optional | With save: the stop's distance in points. |
Returns
Object — the tool’s answer as maps and lists.
What it answers
Answers the market's profile.
Example
client.trading.tradeProfile(new Bentrix.TradingApi.TradeProfileArgs("…", "SYN-DOCS"))