broker_summary
See which brokers net-bought or net-sold any IDX stock, with volumes in lots and IDR value and foreign/local/govt labels, to identify institutional accumulation or distribution from bandarmology data.
Instructions
Broker summary for an IDX stock: which brokers net-bought/sold, in lots and IDR value, with foreign/local/govt classification. This is the core bandarmology signal — TradingView has no equivalent.
DATES: omit from/to for the latest completed session. Supply BOTH from and to (YYYY-MM-DD) for a historical window — the server aggregates net flow across it in one request, so a multi-month range is as cheap as one day. For a single past day pass the same date twice. Both ends are required; a half-specified range is rejected because the API would silently return the latest session instead.
An empty result for a weekend or public holiday is expected, not an error.
SIGNS: sell-side rows carry NEGATIVE netLots and netValueIdr, because that is how Stockbit sends them. Do not negate them again.
A row omits netLots or netValueIdr when that figure could not be read — missing on the wire, empty, or in a format this server refuses to guess at. Absent is NOT zero, it means unknown, so do not sum these rows without checking. unreadable on the envelope names the wire keys and counts, per side, how many listed brokers a total over these rows would miss.
resolve_names: true adds the securities house to each row as name, joining against the brokers directory so you do not have to. The directory is cached for five minutes, so this is usually free. It is best-effort: if the directory cannot be read the rows and every figure on them are unchanged and names.note says why, and a code the directory does not carry simply has no name — an unresolved code is not a nameless broker.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Range end, YYYY-MM-DD (inclusive). Requires `from`. | |
| from | No | Range start, YYYY-MM-DD. Requires `to`. | |
| limit | No | Max brokers per side (default 50; API default 25 truncates) | |
| period | No | Preset window instead of from/to — LATEST (default), YESTERDAY, LAST_7_DAYS, LAST_3_MONTHS, YEAR_TO_DATE. The server aggregates the whole window in ONE request, so YEAR_TO_DATE costs the same as today. Ignored when from/to are given. | |
| symbol | Yes | IDX ticker, e.g. BBRI | |
| date_to | No | Alias for `to`. | |
| end_date | No | Alias for `to`. | |
| date_from | No | Alias for `from`. | |
| start_date | No | Alias for `from`. | |
| market_board | No | Default REGULER — the ordinary order book, and what bandarmology means. ALL folds in negotiated blocks and can be several times larger. NEGO and TUNAI select those boards alone. | |
| investor_type | No | Default ALL | |
| resolve_names | No | Add each broker's securities house as `name`, joined from the cached directory. | |
| transaction_type | No | NET (default) nets each broker's buys against its sells; GROSS does not. |