Every method of client.trading() in the Rust SDK.
trade_panel_show#
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()
pub fn trade_panel_show(&self, args: TradingTradePanelShowArgs) -> Result<ValueParameters
| Name | Type | What it is | |
|---|---|---|---|
bench | impl Into<String> | required | The workbench's uri. |
symbol | impl Into<String> | required | The market the panel shows. |
pin | bool | optional | Kept on this market whatever chart has the focus. |
Returns
Result<Value, Error> — the tool’s answer as a serde_json::Value.
What it answers
Answers the panel's market.
Example
client.trading().trade_panel_show(mcp::TradingTradePanelShowArgs::new(bench.clone(), "SYN-DOCS"))?trade_profile#
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()
pub fn trade_profile(&self, args: TradingTradeProfileArgs) -> Result<ValueParameters
| Name | Type | What it is | |
|---|---|---|---|
action | impl Into<String> | required | |
symbol | impl Into<String> | required | |
reward_ratio | f64 | optional | With save: the target as a multiple of the stop. |
risk_pct | f64 | optional | With save: the risk in percent of the balance. |
stop_points | f64 | optional | With save: the stop's distance in points. |
Returns
Result<Value, Error> — the tool’s answer as a serde_json::Value.
What it answers
Answers the market's profile.
Example
client.trading().trade_profile(mcp::TradingTradeProfileArgs::new("…", "SYN-DOCS"))?