Every method of client.Trading in the Go 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
func (a *TradingAPI) TradePanelShow(ctx context.Context, args TradingTradePanelShowArgs) (any, error)Parameters
| Name | Type | What it is | |
|---|---|---|---|
Bench | string | required | The workbench's uri. |
Symbol | string | required | The market the panel shows. |
Pin | *bool | optional | Kept on this market whatever chart has the focus. |
Returns
(any, error) — the tool’s answer as maps and slices (any).
What it answers
Answers the panel's market.
Example
client.Trading.TradePanelShow(ctx, mcp.TradingTradePanelShowArgs{Bench: bench, Symbol: "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
func (a *TradingAPI) TradeProfile(ctx context.Context, args TradingTradeProfileArgs) (any, error)Parameters
| Name | Type | What it is | |
|---|---|---|---|
Action | string | required | |
Symbol | string | required | |
RewardRatio | *float64 | optional | With save: the target as a multiple of the stop. |
RiskPct | *float64 | optional | With save: the risk in percent of the balance. |
StopPoints | *float64 | optional | With save: the stop's distance in points. |
Returns
(any, error) — the tool’s answer as maps and slices (any).
What it answers
Answers the market's profile.
Example
client.Trading.TradeProfile(ctx, mcp.TradingTradeProfileArgs{Action: "…", Symbol: "SYN-DOCS"})