market

Get Quote

Get a real-time quote for a single symbol.

Returns the latest price, change, volume, and key metrics for the requested ticker symbol.

curl example:

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

Python requests example:

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

Request

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

Path parameters

symbolstring required

Ticker symbol, e.g. AAPL.

Response

Real-time quote for the requested symbol

symbolstring required

Ticker symbol

namestring required

Company or asset name

pricenumber required

Last traded price, in currency

currencystring nullable

Currency the venue quotes this instrument in, ISO code. Sub-unit venues are folded into their parent, so a London line reports GBP and a price in pounds. Null when the upstream did not say.

changenumber required

Absolute price change since previous close

changePercentnumber required

Percentage price change since previous close

volumeinteger required

Trading volume for the current session

highnumber required

Session high price

lownumber required

Session low price

opennumber required

Session opening price

previousClosenumber required

Previous session closing price

marketCapnumber nullable

Market capitalization, in currency

peRationumber nullable

Price-to-earnings ratio (trailing twelve months)

dividendYieldnumber nullable

Annual dividend yield as a decimal

betanumber nullable

Beta coefficient relative to the market

Example response

{
  "beta": 1.28,
  "change": 1.32,
  "changePercent": 0.71,
  "dividendYield": 0.0055,
  "high": 188.5,
  "low": 185.73,
  "marketCap": 2890000000000,
  "name": "Apple Inc.",
  "open": 186.12,
  "peRatio": 29.5,
  "previousClose": 186.12,
  "price": 187.44,
  "symbol": "AAPL",
  "volume": 54638921
}

Changes

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