Skip to main content

Asset & Listing API Reference

The Asset API manages financial instrument identities, exchange listings, and multi-format EOD history retrieval.


GET /assets/by-isin/{isin}

Retrieve a canonical asset instrument and all its active exchange listings by ISIN code.

Parameters

ParameterTypeRequiredDefaultDescription
isinstring12-character ISIN code (e.g. NL0000235190)

Response Example

{
"id": 42,
"isin": "NL0000235190",
"name": "Airbus SE",
"sector": "Industrials",
"industry": "Aerospace & Defense",
"quote_type": "EQUITY",
"listings": [
{
"id": 101,
"ticker": "AIR.PA",
"exchange": "XPAR",
"currency": "EUR",
"is_primary": true
},
{
"id": 102,
"ticker": "AIR.DE",
"exchange": "XETR",
"currency": "EUR",
"is_primary": false
}
]
}

Examples

cURL

curl -s "http://localhost:5000/assets/by-isin/NL0000235190"

Python

import requests

resp = requests.get("http://localhost:5000/assets/by-isin/NL0000235190")
data = resp.json()
print(f"Asset Name: {data['name']}, Listings Count: {len(data['listings'])}")

GET /listings

Search exchange listings by ticker, ISIN, exchange, or currency.

Parameters

ParameterTypeRequiredDefaultDescription
tickerstringTicker symbol (e.g. AAPL)
isinstringISIN code
exchangestringExchange code (e.g. XPAR, NASDAQ)
currencystring3-letter currency code (e.g. EUR, USD)
limitinteger50Maximum results to return

GET /eod/{ticker}

Retrieve End-of-Day (EOD) historical prices in JSON or CSV format. Auto-triggers historical ingestion if local data is missing.

Parameters

ParameterTypeRequiredDefaultDescription
tickerstringTicker symbol (e.g. AIR.PA, AAPL)
resolutionstringdCandle resolution (d, w, m)
formatstringjsonOutput format (json, csv)
limitinteger100Number of historical bars to return
orderstringascSort order by date (asc, desc)

Status Codes

CodeDescription
200Success
404Asset/Listing not found
422Invalid parameter input