Skip to main content

Portfolio Investments (FIPI/LIPI)

Retrieve portfolio investment data for foreign and local investors including buy/sell volumes and values across sectors.

GET/3.0/portfolio-investments

Description

This endpoint returns portfolio investment data for Foreign Institutional Portfolio Investors (FIPI) and Local Institutional Portfolio Investors (LIPI). The data includes buy and sell volumes, values, and net positions aggregated by investor type, sector, and date. Data can be filtered by date and investor type.

Request

Authentication

  • Type: Bearer Token
  • Required: Yes

Parameters

NameTypeRequiredDescriptionExample
typestringNoInvestor type filter. Use local for LIPI, foreign for FIPIlocal
datestringYesSpecific date filter (format: YYYY-MM-DD)2025-05-08

Response

Success Response (200)

{
"status": "ok",
"message": "",
"data": [
{
"date": "2025-05-08",
"market": "KSE",
"client": "LIPI",
"sector": "COMMERCIAL_BANKS",
"sector_code": "COMMERCIAL_BANKS",
"buy_vol": 750000,
"buy_val": 206250000.00,
"sell_vol": 250000,
"sell_val": 68750000.00,
"net_vol": 500000,
"net_val": 137500000.00,
"usd": 471232.88,
"is_foreign": false
},
{
"date": "2025-05-08",
"market": "KSE",
"client": "FIPI",
"sector": "COMMERCIAL_BANKS",
"sector_code": "COMMERCIAL_BANKS",
"buy_vol": 350000,
"buy_val": 96250000.00,
"sell_vol": 100000,
"sell_val": 27500000.00,
"net_vol": 250000,
"net_val": 68750000.00,
"usd": 235616.44,
"is_foreign": true
}
]
}

Response Fields

FieldTypeDescription
datestringDate of the record (YYYY-MM-DD)
marketstringMarket code (e.g., KSE)
clientstringInvestor type: LIPI (Local) or FIPI (Foreign)
sectorstringSector name
sector_codestringSector classification code
buy_volnumberTotal buy volume for the period
buy_valnumberTotal buy value in PKR
sell_volnumberTotal sell volume for the period
sell_valnumberTotal sell value in PKR
net_volnumberNet volume (buy - sell)
net_valnumberNet value in PKR (buy - sell)
usdnumberNet value in USD
is_foreignbooleanTrue for FIPI, False for LIPI

Error Responses

For detailed Common Error responses, see the Error Handling.

Missing Parameters (200)

{
"status": "error",
"message": "no `date` provided"
}

Invalid Type (200)

{
"status": "error",
"message": "invalid_type"
}

Invalid Date Format (200)

{
"status": "error",
"message": "invalid_date"
}

Examples

Get Portfolio Investments

curl -X GET "https://csapis.com/3.0/portfolio-investments?date=2025-12-11&type=local" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Use Cases

  • Investor Tracking: Monitor foreign and local investor portfolio activities
  • Sector Analysis: Analyze portfolio investments by sector
  • Fund Flow Analysis: Track net buy/sell flows by investor type
  • Market Sentiment: Gauge investor sentiment through portfolio investments
  • Investment Research: Analyze institutional investor trends and patterns