database

Get Database Stats

Get aggregate statistics about the database contents.

Returns counts of equities, ETFs, funds, indices, and screening results, along with the number of distinct sectors and countries for equities.

curl example:

curl -X GET "http://localhost:8000/api/database/stats"

Python requests example:

import requests
resp = requests.get("http://localhost:8000/api/database/stats")
stats = resp.json()
get/api/database/stats

Request

  • Base URL: https://api.halalterminal.com
  • URL: https://api.halalterminal.com/api/database/stats
  • Auth: API key in header X-API-Key

Response

Aggregate statistics across all asset categories

Example response

{
  "equities": {
    "count": 12450,
    "countries": 78,
    "sectors": 11
  },
  "etfs": {
    "count": 3200
  },
  "funds": {
    "count": 1540
  },
  "indices": {
    "count": 85
  },
  "screening_results": {
    "count": 4200
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.