QuantSet Docs Developer console

Guides

Global markets

One ID format and one response shape for more than 66,000 listings in 66 markets outside the US. Every example here runs live on three sample listings: Shell in London, Kyokuyo in Tokyo and Reliance in Mumbai.

global:SHEL.Lglobal:1301.Tglobal:RELIANCE.NS

Find the listing

Search by company name or ticker. Each result carries the ID to use everywhere else, with its country, exchange and trading currency. A search for Shell returns the London listing, the New York listing and Hankook Shell Oil in Seoul.

curl "https://api.quantset.dev/api/v1/instruments?q=shell&limit=5" -H "X-API-Key: mw_demo"

A non-US ID is global:, then the ticker with its exchange suffix.

MarketExample IDTrades in
Londonglobal:SHEL.LPence, shown as GBp
Tokyoglobal:1301.TJPY
Mumbaiglobal:RELIANCE.NSINR
Seoulglobal:005930.KSKRW
Hong Kongglobal:00700.HKHKD

Read prices in the local currency

Bars come back in the currency the listing trades in, named in quote_currency. London quotes in pence, so a close of 3,574.5 is £35.745.

curl "https://api.quantset.dev/api/v1/prices?ticker=SHEL.L&limit=5" -H "X-API-Key: mw_demo"

Each bar also has an adjustment label that says what has been checked about splits and dividends for that series. What the labels mean

Ask for several markets at once

One request can mix markets, and it can mix them with US listings and crypto pairs. Each row keeps its own currency.

curl "https://api.quantset.dev/api/v1/quotes?tickers=global:SHEL.L,global:1301.T,global:RELIANCE.NS" -H "X-API-Key: mw_demo"

Convert to US dollars

For the latest price, the snapshot has already done it. native_close is the local close, usd_rate is the rate that was applied, fx_date is the day that rate is from, and price is the result in dollars.

curl "https://api.quantset.dev/api/v1/snapshots?ticker=SHEL.L" -H "X-API-Key: mw_demo"

Use a personal data key with credits for dated FX rates. Three currencies are quoted in hundredths of the main unit: pence (GBp or GBX), South African cents (ZAc) and Israeli agorot (ILA). Scale those by 0.01 before applying the rate.

curl "https://api.quantset.dev/api/v1/fx/rates?base_currency=GBP,JPY,INR&latest_only=true" -H "X-API-Key: YOUR_DATA_ONLY_KEY"
import requests

BASE = "https://api.quantset.dev"
HEADERS = {"X-API-Key": "YOUR_DATA_ONLY_KEY"}
# Currencies quoted in hundredths of the main unit.
MINOR = {"GBp": "GBP", "GBX": "GBP", "ZAc": "ZAR", "ILA": "ILS"}

def get(path, **params):
    response = requests.get(BASE + path, params=params, headers=HEADERS, timeout=15)
    response.raise_for_status()
    return response.json()["data"]

bars = get("/api/v1/prices", ticker="SHEL.L", limit=30)
quoted = bars[0]["quote_currency"]
currency, scale = (MINOR[quoted], 0.01) if quoted in MINOR else (quoted, 1)
rate = get("/api/v1/fx/rates", base_currency=currency, latest_only="true")[0]["usd_per_unit"]

for bar in bars[-5:]:
    print(bar["date"], round(bar["close"] * scale * rate, 2), "USD")

Read company financials

Income statements, balance sheets and cash flow statements use the same fields as US companies. Every row names its own reporting currency, which is not always the trading currency: Shell trades in pence and reports in US dollars, Reliance reports in rupees.

curl "https://api.quantset.dev/api/v1/financial-statements/income?tickers=global:SHEL.L,global:RELIANCE.NS&period=annual&limit_per_instrument=1" -H "X-API-Key: mw_demo"

No filing date outside the US. Non-US rows have no available_at, and each one says so with fiscal_date_is_provider_label in quality_issues. Use them for analysis and screening, not for a backtest that needs to know when a number became public.

Open the local filings

Statutory disclosures and listing profiles from the home market, for listings in China, Hong Kong, Korea, Europe and India.

curl "https://api.quantset.dev/api/v1/regional-filings?ticker=SHEL.L" -H "X-API-Key: mw_demo"

Compare across markets

Correlation and volatility are computed on returns aligned in US dollars, so a London stock, a US stock and a crypto pair sit on one basis.

curl "https://api.quantset.dev/api/v1/analytics/correlations?tickers=us:NVDA,global:SHEL.L,crypto:BTCUSDT" -H "X-API-Key: mw_demo"

Pull it into a spreadsheet

Add format=csv to any of these requests. This formula fills a Google Sheet with a year of London prices.

=IMPORTDATA("https://api.quantset.dev/api/v1/prices?ticker=SHEL.L&limit=250&format=csv&apikey=mw_demo")

What differs from US listings

US listingsGlobal listings
IDus:NVDAglobal: plus ticker and exchange suffix
CurrencyUS dollarsLocal, named in quote_currency
Daily pricesBack to 1962History length varies by market
Adjusted closeadj_close where it has passed its checksNot published. Read the adjustment label
Hourly barsYesNo
StatementsMatched to SEC filings, with filing datesStandardized, without filing dates
PlanEvery planAll paid products and trial credits. The public sandbox reads its sample listings

Where to go next