Foreign vs domestic flow
foreign_flowRetrieves foreign and domestic buy, sell, net, and totals for a stock symbol over a selected period or custom date range, providing chart-series data for Foreign Flow analysis.
Instructions
Foreign and domestic buy, sell and net for one symbol over a period range, as a chart series with totals (the Foreign Flow tab).
volume fields are shares; values IDR. market_type takes MARKET_TYPE_REGULAR or MARKET_TYPE_ALL_MARKET.
Returns (Stockbit's data field): data{from, to, last_updated, summary{date_range, foreign_buy, foreign_sell, net_foreign, domestic_buy, domestic_sell, net_domestic {label, value{raw,formatted}}, all_markets_summary[], volume{...}}, value{label 'Value (IDR)', total, foreign_buy/sell, domestic_buy/sell, foreign_total, domestic_total {value, percentage}}, volume{same, SHARES}, frequency{same}}.
Endpoint: GET exodus /findata-view/foreign-domestic/v1/chart-data/{symbol}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "foreign_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Custom range end; send instead of `period`. | |
| from | No | Custom range start; send instead of `period`. | |
| period | No | Omit when from/to given (custom range; min date 2025-01-01, max 6 months). Default "PERIOD_RANGE_1D". | |
| symbol | Yes | symbol | |
| market_type | No | NOTE different spelling from MARKET_TYPE_REGULER. Default "MARKET_TYPE_REGULAR". |