Bentrix Docs
HomePricingDashboard

Go: account

Every method of client.Account in the Go SDK.

FillsGet#

Read a real account's measured fills · tool fills_get

scope: readplan: freesince 1.14.0

Answers the measurement fills_measure started: whether it is still reading, the laboratory it re-prices on, per market the shortfall's figures and the calibrated slippage (fixed at the median, random up to twice the mean, each in the market's price units), the latency, and every deal re-priced.

Declaration

client.Account
func (a *AccountAPI) FillsGet(ctx context.Context, args AccountFillsGetArgs) (any, error)

Parameters

NameTypeWhat it is
AccountstringrequiredThe account's uri, as get_state gives it: bentrix://account/<id>.

Returns

(any, error) — the tool’s answer as maps and slices (any).

What it answers

Answers the measurement fills_measure started: whether it is still reading, the laboratory it re-prices on, per market the shortfall's figures and the calibrated slippage (fixed at the median, random up to twice the mean, each in the market's price units), the latency, and every deal re-priced.

Example

client.Account.FillsGet(ctx, mcp.AccountFillsGetArgs{Account: account})

FillsMakeBench#

Make a workbench with a real account's measured slippage · tool fills_make_bench

scope: labplan: freesince 1.14.0

Makes a laboratory workbench alike one of the account's history's laboratory, its fills slipping by what fills_measure measured — fixed at the median or random with the measured mean, each market in its own price units — and waiting the measured latency where chosen; a strategy re-run there runs on the person's own slippage. Answers the workbench's uri.

Declaration

client.Account
func (a *AccountAPI) FillsMakeBench(ctx context.Context, args AccountFillsMakeBenchArgs) (any, error)

Parameters

NameTypeWhat it is
AccountstringrequiredThe account's uri, as get_state gives it: bentrix://account/<id>.
Alike*stringoptionalThe laboratory workbench to make it alike (the laboratory's first when absent): bentrix://lab/<lab>/bench/<bench>.
Latency*booloptionalWhether the measured latency is taken too (true when absent).
Slippage*stringoptionalMedian (fixed at each market's median shortfall) or mean (random, its mean the measured mean); median when absent.

Returns

(any, error) — the tool’s answer as maps and slices (any).

What it answers

Answers the workbench's uri.

Example

client.Account.FillsMakeBench(ctx, mcp.AccountFillsMakeBenchArgs{Account: account})

FillsMeasure#

Measure a real account's own fills · tool fills_measure

scope: readplan: freesince 1.14.0

Reads a real account's deals and orders off its MetaTrader (prices and moments, no money figure) and re-prices each on the laboratory of that account's history: per market the shortfall against what Bentrix's venue would have filled (median, mean, 90th percentile, worst, in points), the latency from placing a market order to its fill, and a calibrated slippage. Starts the read and answers as fills_get does; fills_get again until reading is false.

Declaration

client.Account
func (a *AccountAPI) FillsMeasure(ctx context.Context, args AccountFillsMeasureArgs) (any, error)

Parameters

NameTypeWhat it is
AccountstringrequiredThe account's uri, as get_state gives it: bentrix://account/<id>.
Span*stringoptionalHow far back: 30d, 90d, 1y or all (90d when absent).

Returns

(any, error) — the tool’s answer as maps and slices (any).

What it answers

What the tool's description says.

Example

client.Account.FillsMeasure(ctx, mcp.AccountFillsMeasureArgs{Account: account})

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