Skip to main content

Insiders by Type

Retrieve insider transactions filtered by transaction type (Buy or Sell).

GET/3.0/insider/type

Description

This endpoint returns insider trading transactions filtered by transaction type, allowing analysis of insider buying and selling activity separately.

Request

Authentication

  • Type: Bearer Token
  • Required: Yes

Parameters

NameTypeRequiredDescriptionExample
typestringYesTransaction type. See Available Types for valid values.buy
offsetintegerNoPagination offset for results. Defaults to 0.0
countintegerNoNumber of records to return per page. Defaults to 50.25

Available Types

TypeDescription
buyBuy
sellSell
gift-inGift (In)
gift-outGift (Out)
bonusBonus
rightRight
ral-inRAL (In)
ral-outRAL (Out)
conversion-of-loanConversion of Loan
conversion-of-pres-sharesConversion of Preference Shares
mergerMerger
other-than-rightOther than Right
ofs-by-personOFS by Person
ipoIPO
esosESOS
inheritance-inInheritance (In)
inheritance-outInheritance (Out)
repo-inRepo (In)
repo-outRepo (Out)
split-inSplit (In)
split-outSplit (Out)
other-inOther (In)
other-outOther (Out)

Response

Success Response (200)

{
"status": "ok",
"message": "",
"data": [
{
"id": "67a8b12c3d4e5f6g7h8i9j3a",
"date": "2024-12-09",
"type": "Buy",
"notice_id": "PSX-2024-12-009",
"notice_date": "2024-12-09T15:30:00+05:00",
"symbol": "UBL",
"company_name": "United Bank Limited",
"name": "Muhammad Jawaid Iqbal",
"description": "Purchase of ordinary shares",
"price": 410.50,
"shares": 50000,
"share_type": "Ordinary",
"market": "PSX"
},
{
"id": "67a8b12c3d4e5f6g7h8i9j3b",
"date": "2024-12-07",
"type": "Buy",
"notice_id": "PSX-2024-12-007",
"notice_date": "2024-12-07T10:45:00+05:00",
"symbol": "LUCK",
"company_name": "Lucky Cement Limited",
"name": "Khalid Siraj Subhani",
"description": "Purchase of ordinary shares",
"price": 850.00,
"shares": 25000,
"share_type": "Ordinary",
"market": "PSX"
},
{
"id": "67a8b12c3d4e5f6g7h8i9j3c",
"date": "2024-12-05",
"type": "Buy",
"notice_id": "PSX-2024-12-005",
"notice_date": "2024-12-05T09:00:00+05:00",
"symbol": "HBL",
"company_name": "Habib Bank Limited",
"name": "Wasim Akhtar",
"description": "Purchase of ordinary shares",
"price": 345.00,
"shares": 150000,
"share_type": "Ordinary",
"market": "PSX"
}
]
}

Response Fields

FieldTypeDescription
idstringUnique transaction identifier
datestringTransaction date (YYYY-MM-DD format)
typestringTransaction type (Buy/Sell)
notice_idstringPSX notice ID reference
notice_datestring (ISO 8601)PSX notice publication date
symbolstringStock symbol
company_namestringCompany name
namestringInsider's name
descriptionstringTransaction description
pricefloatTransaction price per share
sharesintegerNumber of shares transacted
share_typestringType of shares (Ordinary/Preference)
marketstringMarket code (PSX)

Error Responses

For detailed Common Error responses, see the Error Handling.

Missing Parameters

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

Examples

Get All Insider Buy Transactions

curl -X GET "https://csapis.com/3.0/insider/type?type=Buy" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Use Cases

  • Sentiment Analysis: Separate buy and sell signals for trend analysis
  • Insider Confidence: Use insider buying as market confidence indicator
  • Risk Assessment: Monitor insider selling as potential red flag
  • Market Timing: Analyze insider activity patterns for timing insights
  • Aggregated Analysis: Compare buy vs sell volume for overall sentiment