reports
Get Portfolio Report
Generate a Shariah compliance report for a portfolio of stocks.
Accepts a list of ticker symbols and returns an aggregated report with per-holding compliance results, overall compliance percentage, and summary counts. Useful for screening an entire portfolio at once.
curl example:
curl -X POST "http://localhost:8000/api/reports/portfolio" \
-H "Content-Type: application/json" \
-d '{"symbols": ["AAPL", "MSFT", "AMZN"]}'
Python requests example:
import requests
resp = requests.post(
"http://localhost:8000/api/reports/portfolio",
json={"symbols": ["AAPL", "MSFT", "AMZN"]},
)
report = resp.json()
print(f"Compliance: {report['compliance_percentage']}%")
print(f"Compliant: {report['compliant']}/{report['total']}")
post/api/reports/portfolio
Request
- Base URL: https://api.halalterminal.com
- URL: https://api.halalterminal.com/api/reports/portfolio
- Auth: API key in header X-API-Key
Request body
Example request
{
"symbols": [
"AAPL",
"MSFT",
"AMZN"
]
}Response
Aggregated Shariah compliance report for the portfolio
Example response
{
"compliance_percentage": 66.67,
"compliant": 2,
"errors": 0,
"holdings": [
{
"is_compliant": true,
"screening": {
"methodology": "aaoifi"
},
"symbol": "AAPL"
},
{
"is_compliant": true,
"screening": {
"methodology": "aaoifi"
},
"symbol": "MSFT"
},
{
"is_compliant": false,
"screening": {
"methodology": "aaoifi"
},
"symbol": "AMZN"
}
],
"non_compliant": 1,
"report_generated_at": "2026-03-24T12:00:00Z",
"total": 3
}Changes
No recorded changes to this operation across all 1 revision of this API.