Skip to main content

FII Activity Dataโ€‹

API for retrieving Foreign Institutional Investor (FII) activity for a specified market segment and interval. It accepts the data type, interval, and an optional start date, and returns buy/sell amounts, contracts, open interest, and long/short position breakdowns across index futures, stock futures, and options segments. 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/fii?data_type=NSE_FO%7CSTOCK_FUTURES&data_type=NSE_FO%7CINDEX_OPTIONS&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. Accepts a single value or a comma-separated list. Full values listed below.
intervaltrueData interval. Accepted values: 1D (daily), 1M (monthly).
fromfalseStart date for the data range in YYYY-MM-DD format.

Accepted data_type values โ€” pass one or more segments to retrieve activity data for each independently:

  • NSE_FO|INDEX_FUTURES
  • NSE_FO|STOCK_FUTURES
  • NSE_FO|INDEX_OPTIONS
  • NSE_FO|STOCK_OPTIONS
  • NSE_EQ|CASH
Responses

Response bodyโ€‹

{
"status": "success",
"data": {
"NSE_FO|STOCK_FUTURES": [
{
"time_stamp": 1777487400000,
"buy_amount": 23109.75,
"sell_amount": 24642.52,
"buy_contracts": 353981,
"sell_contracts": 384079,
"oi_contracts": 7245154,
"oi_amount": 452650.0,
"total_long_contracts": 4021980,
"total_short_contracts": 3223174,
"total_call_long_contracts": 0,
"total_put_long_contracts": 0,
"total_call_short_contracts": 0,
"total_put_short_contracts": 0
},
{
"time_stamp": 1777401000000,
"buy_amount": 21593.35,
"sell_amount": 21252.58,
"buy_contracts": 327164,
"sell_contracts": 318686,
"oi_contracts": 7237618,
"oi_amount": 456065.1,
"total_long_contracts": 4033261,
"total_short_contracts": 3204357,
"total_call_long_contracts": 0,
"total_put_long_contracts": 0,
"total_call_short_contracts": 0,
"total_put_short_contracts": 0
}
],
"NSE_FO|INDEX_OPTIONS": [
{
"time_stamp": 1777487400000,
"buy_amount": 797967.36,
"sell_amount": 794438.53,
"buy_contracts": 5094129,
"sell_contracts": 5072195,
"oi_contracts": 1995796,
"oi_amount": 313760.14,
"total_long_contracts": 0,
"total_short_contracts": 0,
"total_call_long_contracts": 351772,
"total_put_long_contracts": 715640,
"total_call_short_contracts": 572110,
"total_put_short_contracts": 356275
},
{
"time_stamp": 1777401000000,
"buy_amount": 579943.55,
"sell_amount": 583822.61,
"buy_contracts": 3659192,
"sell_contracts": 3683793,
"oi_contracts": 1776287,
"oi_amount": 281482.39,
"total_long_contracts": 0,
"total_short_contracts": 0,
"total_call_long_contracts": 293574,
"total_put_long_contracts": 653116,
"total_call_short_contracts": 509632,
"total_put_short_contracts": 319965
}
]
}
}
NameTypeDescription
statusstringOutcome of the request. Typically success for successful operations.
dataobjectMap of data_type key to an array of FII 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 FII dataโ€‹

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