Skip to main content

Margin Financing System (MFS)

Retrieve margin financing data including open positions, current takeup volumes, and free float financing metrics.

GET/3.0/margin-financing

Description

This endpoint returns Margin Financing System (MFS) data, which includes open position volumes and values, current takeup volumes and values, markup-weighted averages, free float information, and the percentage of free float that has been financed through margin financing for eligible securities.

Request

Authentication

  • Type: Bearer Token
  • Required: Yes

Parameters

NameTypeRequiredDescriptionExample
fromstringYesStart date for filtering data (format: YYYY-MM-DD). Required parameter.2022-07-20
tostringYesEnd date for filtering data (format: YYYY-MM-DD). Required parameter.2022-10-13
symbolstringNoStock symbol filter to get data for a specific security.UBL

Response

Success Response (200)

{
"status": "ok",
"message": "",
"data": [
{
"date": "2022-10-13T16:00:00+05:00",
"symbol": "UBL",
"name": "United Bank Limited",
"oprvol": 1000000,
"oprval": 275000000.00,
"crvol": 150000,
"crval": 41250000.00,
"ctvol": 50000,
"ctval": 13750000.00,
"mwa": 275.50,
"nopvol": 1000000,
"nopval": 275000000.00,
"noppct": 2.50,
"ff": 15000000,
"pctfff": 18.33
},
{
"date": "2022-10-13T16:00:00+05:00",
"symbol": "MCB",
"name": "MCB Bank Limited",
"oprvol": 500000,
"oprval": 130000000.00,
"crvol": 75000,
"crval": 19500000.00,
"ctvol": 25000,
"ctval": 6500000.00,
"mwa": 260.00,
"nopvol": 500000,
"nopval": 130000000.00,
"noppct": 1.75,
"ff": 8000000,
"pctfff": 12.50
},
{
"date": "2022-10-13T16:00:00+05:00",
"symbol": "HUBC",
"name": "Hub Power Company Limited",
"oprvol": 2000000,
"oprval": 130000000.00,
"crvol": 300000,
"crval": 19500000.00,
"ctvol": 100000,
"ctval": 6500000.00,
"mwa": 65.00,
"nopvol": 2000000,
"nopval": 130000000.00,
"noppct": 3.25,
"ff": 25000000,
"pctfff": 22.75
}
]
}

Response Fields

FieldTypeDescription
datestring (ISO 8601)Date and time of the margin financing record
symbolstringStock symbol of the security
namestringFull name of the company/security
oprvolfloatOpen position release volume
oprvalfloatOpen position release value
crvolfloatCurrent release volume
crvalfloatCurrent release value
ctvolfloatCurrent takeup volume
ctvalfloatCurrent takeup value
mwafloatMarkup weighted average price
nopvolfloatNet open position volume
nopvalfloatNet open position value
noppctfloatNet open position percentage
fffloatFree float volume
pctffffloatPercentage of free float financed

Error Responses

For detailed Common Error responses, see the Error Handling.

No Date Range Provided

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

Examples

Get MFS Data for Specific Symbol

curl -X GET "https://csapis.com/3.0/margin-financing?from=2022-07-20&to=2022-10-13&symbol=UBL" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Use Cases

  • Margin Financing Tracking: Monitor margin financing volumes and values
  • Free Float Analysis: Analyze free float and margin financing percentages
  • Risk Assessment: Track net open positions and weighted averages
  • Financing Trends: Analyze margin financing trends over time periods
  • Regulatory Compliance: Generate margin financing reports for compliance