database

Get Stock From Database

Retrieve the database record for a single stock by symbol.

Returns the stored reference data for the given symbol including name, sector, exchange, and country.

curl example:

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

Python requests example:

import requests
resp = requests.get("http://localhost:8000/api/database/stock/AAPL")
stock = resp.json()
get/api/database/stock/{symbol}

Request

  • Base URL: https://api.halalterminal.com
  • URL: https://api.halalterminal.com/api/database/stock/{symbol}
  • Auth: API key in header X-API-Key

Path parameters

symbolstring required

Ticker symbol, e.g. AAPL.

Response

Full database record for the requested symbol

symbolstring required

Ticker symbol

typestring nullable

Asset type, e.g. equities, etfs, funds

namestring nullable

Company or asset name

sectorstring nullable

Sector classification

exchangestring nullable

Exchange where the asset is listed

countrystring nullable

Country of incorporation or domicile

Example response

{
  "country": "United States",
  "exchange": "NMS",
  "name": "Apple Inc.",
  "sector": "Technology",
  "symbol": "AAPL",
  "type": "equities"
}

Changes

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