Every method of client.account in the C++ SDK.
fills_get#
Read a real account's measured fills · tool fills_get
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
Json fills_get(const FillsGetArgs &args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
account | std::string | required | The account's uri, as get_state gives it: bentrix://account/<id>. |
Returns
Json — the tool’s answer as a Json value.
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.fills_get(AccountApi::FillsGetArgs(account))fills_make_bench#
Make a workbench with a real account's measured slippage · tool fills_make_bench
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
Json fills_make_bench(const FillsMakeBenchArgs &args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
account | std::string | required | The account's uri, as get_state gives it: bentrix://account/<id>. |
alike | std::string | optional | The laboratory workbench to make it alike (the laboratory's first when absent): bentrix://lab/<lab>/bench/<bench>. |
latency | bool | optional | Whether the measured latency is taken too (true when absent). |
slippage | std::string | optional | Median (fixed at each market's median shortfall) or mean (random, its mean the measured mean); median when absent. |
Returns
Json — the tool’s answer as a Json value.
What it answers
Answers the workbench's uri.
Example
client.account.fills_make_bench(AccountApi::FillsMakeBenchArgs(account))fills_measure#
Measure a real account's own fills · tool fills_measure
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
Json fills_measure(const FillsMeasureArgs &args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
account | std::string | required | The account's uri, as get_state gives it: bentrix://account/<id>. |
span | std::string | optional | How far back: 30d, 90d, 1y or all (90d when absent). |
Returns
Json — the tool’s answer as a Json value.
What it answers
What the tool's description says.
Example
client.account.fills_measure(AccountApi::FillsMeasureArgs(account))