Skip to main content

DII Activity Dataโ€‹

API for retrieving Domestic Institutional Investor (DII) activity data. It accepts the data type, interval, and an optional start date, and returns buy/sell amounts for domestic institutional flows in the equities market. Data is available from 1st April 2026 onwards.

  • Daily (1D) โ€” up to 30 trading days of data per request.
  • Monthly (1M) โ€” up to 12 months of data per request (data collection started from 1st April 2026; the available range will grow as more months are recorded).

Requestโ€‹

curl --location 'https://api.upstox.com/v2/market/dii?data_type=NSE_EQ%7CCASH&interval=1D' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your_access_token}'

For additional samples in various languages, please refer to the Sample code section on this page.


Query Parametersโ€‹

NameRequiredDescription
data_typetrueMarket segment. Only accepted value is NSE_EQ cash segment โ€” see full value below.
intervaltrueData interval. Accepted values: 1D (daily), 1M (monthly).
fromfalseStart date for the data range in YYYY-MM-DD format.

Accepted data_type value โ€” DII data is currently available only for the NSE equity cash segment:

  • NSE_EQ|CASH
Responses

Response bodyโ€‹

{
"status": "success",
"data": {
"NSE_EQ|CASH": [
{
"time_stamp": 1746633600000,
"buy_amount": 8523456789.0,
"sell_amount": 7234567890.5,
"buy_contracts": 0,
"sell_contracts": 0,
"oi_contracts": 0,
"oi_amount": 0.0,
"total_long_contracts": 0,
"total_short_contracts": 0,
"total_call_long_contracts": 0,
"total_put_long_contracts": 0,
"total_call_short_contracts": 0,
"total_put_short_contracts": 0
}
]
}
}
NameTypeDescription
statusstringOutcome of the request. Typically success for successful operations.
dataobjectMap of data_type key to an array of DII activity records.
data[key][].time_stampintegerUnix timestamp of the record in milliseconds.
data[key][].buy_amountnumberTotal buy value in INR.
data[key][].sell_amountnumberTotal sell value in INR.
data[key][].buy_contractsintegerNumber of contracts bought.
data[key][].sell_contractsintegerNumber of contracts sold.
data[key][].oi_contractsintegerOpen interest in number of contracts.
data[key][].oi_amountnumberOpen interest value in INR.
data[key][].total_long_contractsintegerTotal long contracts held.
data[key][].total_short_contractsintegerTotal short contracts held.
data[key][].total_call_long_contractsintegerTotal long call option contracts.
data[key][].total_put_long_contractsintegerTotal long put option contracts.
data[key][].total_call_short_contractsintegerTotal short call option contracts.
data[key][].total_put_short_contractsintegerTotal short put option contracts.

Sample Codeโ€‹

Get DII dataโ€‹

curl --location 'https://api.upstox.com/v2/market/dii?data_type=NSE_EQ%7CCASH&interval=1D' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your_access_token}'
Loading...