Skip to main content

Overview

An ETF holds many underlying stocks, some compliant and some not. halal.sh screens each holding and rolls the results up into a single purity figure, so you can tell at a glance how much of a fund is Shariah-compliant by weight. Two endpoints cover the workflow:

GET /etfs/{symbol}

Fund-level purity — the headline compliant-by-weight percentage plus holding counts.

GET /etfs/{symbol}/holdings

The per-holding breakdown, with each holding’s compliance status and weight.

Get fund-level purity

purity.percentage is a percentage number, not a decimal: 66.74 means 66.74% of the fund is compliant by weight. The holding counts break the fund down by status:
Purity is weighted, so the percentage won’t match the raw count of compliant holdings. A handful of large non-compliant positions can pull percentage down even when most holdings pass, and unanalyzed_holdings represents weight that simply isn’t counted as compliant yet.

Get the per-holding breakdown

Each holding’s weight is a percentage number (7.12 = 7.12% of the fund), and compliance_status is one of compliant, non-compliant, or pending. To find the positions dragging purity down, filter for non-compliant holdings and sort by weight:

How a holder thinks about purification

A common approach for someone who already holds the ETF:
1

Read the purity percentage

purity.percentage tells you what share of the fund is compliant by weight. The remainder comes from non-compliant (and not-yet-analysed) holdings.
2

Estimate the non-compliant share

The portion to purify corresponds to the weight that isn’t compliant — roughly 100 − purity.percentage percent of income attributable to non-compliant holdings. Treat unanalyzed_holdings conservatively, since their weight isn’t yet counted as compliant.
3

Apply it to income received

Multiply that non-compliant share by the dividends (or distributions) you received to estimate the amount to purify by giving it away.
These figures are screening outputs, not financial or religious advice. Purification methodology varies — present the data and let users (or their scholars) decide how to act on it.

Use cases

  • Robo-advisors — rank funds by purity.percentage so users can pick the most compliant ETF.
  • Portfolio tools — weight each ETF’s purity by position size to estimate portfolio-level purity.
  • Research — track how a fund’s purity shifts over time as its holdings change.