Foreign flow history
foreign_flow_historyRetrieve daily foreign versus domestic net flows and historical prices for one or more stock symbols over a chosen period, with values in IDR, to analyze foreign investor activity.
Instructions
Daily foreign vs domestic net for one or more symbols over a period.
Values IDR.
Returns (Stockbit's data field): data{from, to, historical_net[{date, datetime_label, datetime_label_table, net_foreign{raw,formatted}, foreign_buy, foreign_sell, average_price, percentage_foreign_value, percentage_domestic_value, net_lot, net_frequency}], historical_price[{date, open, high, low, close{raw,formatted}}]}.
Endpoint: GET exodus /order-trade/foreign-domestic/historical.
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": {
"symbols": "<symbols>"
},
"name": "foreign_flow_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | to Default "". | |
| from | No | Only when period=TB_PERIOD_UNSPECIFIED (else sent as ''). Default "". | |
| period | No | TB_PERIOD_UNSPECIFIED => use from/to. Default "TB_PERIOD_LAST_7_DAYS". | |
| symbols | Yes | Repeated key. | |
| market_type | No | market_type Default "MARKET_TYPE_REGULER". |