# Axion API Reference All endpoints use `GET` method and return JSON. Base path prefix applies per asset class. All time-series `/prices` endpoints accept `from`, `to`, and `frame` query parameters for date filtering and aggregation. --- ## Market Data APIs ### 1. Stocks API Base path: `/stocks` #### Top Gainers ``` GET /stocks/gainers ``` **Query Params:** `days` (int, default 5), `limit` (int, default 10), `market` (string, default 'america'). **Response:** Array of `{ ticker, pctchange }`. **Sample Response:** ```json [ { "ticker": "AAPL", "pctchange": 2.345 }, { "ticker": "MSFT", "pctchange": 1.234 } ] ``` #### Top Losers ``` GET /stocks/losers ``` **Query Params:** `days` (int, default 5), `limit` (int, default 10), `market` (string, default 'america'). **Response:** Array of `{ ticker, pctchange }`. **Sample Response:** ```json [ { "ticker": "AAPL", "pctchange": -2.345 }, { "ticker": "MSFT", "pctchange": -1.234 } ] ``` #### Get Stock Quote ``` GET /stocks/:ticker/quote ``` **Path Params:** `ticker` (string, required). **Response Fields:** `latestClose`, `latestOpen`, `latestHigh`, `latestLow`, `previousClose`, `week52Range` (object with `high`, `low`), `week52AvgClose`, `ema30`, `ema60`, `ema90`, `ema120`, `ytdClosePctChange`, `volume`, `avgVolumeLifetime`. **Sample Response:** ```json { "latestClose": 150.25, "latestOpen": 151.10, "latestHigh": 152.30, "latestLow": 149.80, "previousClose": 150.00, "week52Range": { "high": 180.50, "low": 120.10 }, "week52AvgClose": 155.30, "ema30": 151.20, "ema60": 149.80, "ema90": 148.40, "ema120": 147.10, "ytdClosePctChange": 10.5, "volume": 50000000, "avgVolumeLifetime": 45000000 } ``` #### List Unique Column Values ``` GET /stocks/list/:column ``` **Path Params:** `column` (string, required; one of: `market`, `country`, `currency`, `sector`, `industry`, `type`). **Response:** Array of unique values. **Sample Response:** ```json ["common stock", "preferred stock", "reit fund"] ``` #### Get All Stock Tickers ``` GET /stocks/tickers ``` **Query Params:** `country` (string), `exchange` (string). **Response:** Array of `{ id, name, ticker, symbol, exchange, market, type }`. **Sample Response:** ```json [ { "id": 10, "name": "Zoompass Holdings, Inc.", "ticker": "ZPAS", "symbol": "OTC:ZPAS", "exchange": "OTC", "market": "america", "type": "common stock" }, { "id": 11, "name": "Roper Technologies, Inc.", "ticker": "ROP", "symbol": "NASDAQ:ROP", "exchange": "NASDAQ", "market": "america", "type": "common stock" } ] ``` #### Get Stock Ticker Details ``` GET /stocks/:ticker ``` **Path Params:** `ticker` (string, required). **Response Fields:** `id`, `name`, `ticker`, `symbol` (with exchange prefix), `exchange`, `market`, `country`, `type`, `sector`, `industry`, `currency`, `lastClose`, `changePct`. **Sample Response:** ```json { "id": 17640, "name": "Apple Inc.", "ticker": "AAPL", "symbol": "NASDAQ:AAPL", "exchange": "NASDAQ", "market": "america", "country": "United States", "type": "common stock", "sector": "Electronic Technology", "industry": "Telecommunications Equipment", "currency": "USD", "lastClose": 297.78500366, "changePct": 0.260931909533994 } ``` #### Get Historical Stock Price Data ``` GET /stocks/:ticker/prices ``` **Path Params:** `ticker` (string, required). **Query Params:** `from` (date), `to` (date), `frame` (string: `daily`/`weekly`/`monthly`/`quarterly`/`yearly`, default `daily`). **Response:** Array of `{ time, ticker, open, high, low, close, volume }`. All numeric values are returned as strings to preserve decimal precision. **Sample Response:** ```json [ { "time": "2025-12-19T19:03:05.000Z", "ticker": "AAPL", "open": "272.1400", "high": "272.9200", "low": "270.2700", "close": "270.6700", "volume": "43267805" }, { "time": "2025-12-18T14:30:00.000Z", "ticker": "AAPL", "open": "273.6100", "high": "273.6300", "low": "266.9500", "close": "272.1900", "volume": "51600000" } ] ``` --- ### 2. Crypto API Base path: `/crypto` #### Top Gainers ``` GET /crypto/gainers ``` **Query Params:** `days` (int, default 5), `limit` (int, default 10). **Response:** Array of `{ ticker, pctchange }`. **Sample Response:** ```json [ { "ticker": "VANA", "pctchange": 24077102.262329 }, { "ticker": "LUNA", "pctchange": 29965.2941892873 } ] ``` #### Top Losers ``` GET /crypto/losers ``` **Query Params:** `days` (int, default 5), `limit` (int, default 10). **Response:** Array of `{ ticker, pctchange }`. **Sample Response:** ```json [ { "ticker": "ZYPTO", "pctchange": -100 }, { "ticker": "3ULL", "pctchange": -82.1428578389002 } ] ``` #### Get Crypto Quote ``` GET /crypto/:ticker/quote ``` **Path Params:** `ticker` (string, required). **Response:** Same quote shape as stocks: `latestClose`, `latestOpen`, `latestHigh`, `latestLow`, `previousClose`, `week52Range`, `week52AvgClose`, `ema30`, `ema60`, `ema90`, `ema120`, `ytdClosePctChange`, `volume`, `avgVolumeLifetime`. **Sample Response:** ```json { "latestClose": 62283.98828125, "latestOpen": 63951.5078125, "latestHigh": 64163.44921875, "latestLow": 61990.453125, "previousClose": 63952.10546875, "week52Range": { "high": 126198.0703, "low": 59108.918 }, "week52AvgClose": 91640.0534, "ema30": 66533.3484, "ema60": 69524.5156, "ema90": 71313.7034, "ema120": 73026.2493, "ytdClosePctChange": -30.753, "volume": 30031278080, "avgVolumeLifetime": 22325308811.0181 } ``` #### List Unique Column Values ``` GET /crypto/list/:column ``` **Path Params:** `column` (string, required; one of: `category`, `rating`, `type`). **Response:** Array of unique values. **Sample Response:** ```json ["closedend fund", "common stock", "dr", "etf fund", "mutual fund", "preferred stock", "reit fund", "structured", "unit fund"] ``` #### Get All Cryptocurrency Tickers ``` GET /crypto/tickers ``` **Query Params:** `type` (string; e.g. `coin`, `token`). **Response:** Array of `{ id, ticker, name, type, category }`. **Sample Response:** ```json [ { "id": 1, "ticker": "BTC", "name": "Bitcoin", "type": "spot", "category": "cryptocurrencies" }, { "id": 2, "ticker": "ETH", "name": "Ethereum", "type": "spot", "category": "smart contract platforms" }, { "id": 3, "ticker": "USDT", "name": "Tether USDt", "type": "spot", "category": "stablecoins" } ] ``` #### Get Cryptocurrency Ticker Details ``` GET /crypto/:ticker ``` **Path Params:** `ticker` (string, required; e.g. BTC). **Response Fields:** `id`, `ticker`, `name`, `type`, `category`, `rating`, `cap`, `supply`, `lastClose`, `changePct`. **Sample Response:** ```json { "id": 1, "ticker": "BTC", "name": "Bitcoin", "type": "spot", "category": "cryptocurrencies", "rating": "strongsell", "cap": "1248599187015.109900", "supply": "20046943.000000", "lastClose": 62283.98828125, "changePct": -2.60838509580443 } ``` #### Get Historical Price Data ``` GET /crypto/:ticker/prices ``` **Path Params:** `ticker` (string, required). **Query Params:** `from` (date), `to` (date), `frame` (string: `daily`/`weekly`/`monthly`/`quarterly`/`yearly`, default `daily`). **Response:** Array of `{ time, ticker, open, high, low, close, volume }`. **Sample Response:** ```json [ { "time": "2025-12-19T12:43:00.000Z", "ticker": "BTC", "open": "85463.3000", "high": "88292.5500", "low": "85134.0600", "close": "87981.6800", "volume": "59129171968" }, { "time": "2025-12-18T00:00:00.000Z", "ticker": "BTC", "open": "86144.3700", "high": "89412.6600", "low": "84436.3100", "close": "85462.5100", "volume": "52667115348" } ] ``` --- ### 3. Forex API Base path: `/forex` #### Top Gainers ``` GET /forex/gainers ``` **Query Params:** `days` (int, default 5), `limit` (int, default 10). **Response:** Array of `{ ticker, pctchange }`. **Sample Response:** ```json [ { "ticker": "EURUSD", "pctchange": 0.523 }, { "ticker": "GBPUSD", "pctchange": 0.412 } ] ``` #### Top Losers ``` GET /forex/losers ``` **Query Params:** `days` (int, default 5), `limit` (int, default 10). **Response:** Array of `{ ticker, pctchange }`. **Sample Response:** ```json [ { "ticker": "EURUSD", "pctchange": -0.523 }, { "ticker": "GBPUSD", "pctchange": -0.412 } ] ``` #### Get Forex Quote ``` GET /forex/:ticker/quote ``` **Path Params:** `ticker` (string, required). **Response:** Same quote shape as stocks. #### List Unique Column Values ``` GET /forex/list/:column ``` **Path Params:** `column` (string, required; one of: `exchange`, `rating`, `country`). **Response:** Array of unique values. **Sample Response:** ```json ["major", "minor", "exotic"] ``` #### Get All Forex Tickers ``` GET /forex/tickers ``` **Query Params:** `country` (string), `exchange` (string). **Response:** Array of `{ id, ticker, detail, exchange, country }`. **Sample Response:** ```json [ { "id": 2, "ticker": "AEDBRX", "detail": "U.A.E. DIRHAM / BRAZILIAN REAL REFERENCE RATE", "exchange": "IDC", "country": "AE" }, { "id": 3, "ticker": "AEDCAD", "detail": "U.A.E. DIRHAM / CANADIAN DOLLAR", "exchange": "IDC", "country": "AE" } ] ``` #### Get Forex Ticker Details ``` GET /forex/:ticker ``` **Path Params:** `ticker` (string, required; e.g. EURUSD). **Response Fields:** `id`, `ticker`, `detail`, `exchange`, `country`, `rating`, `lastClose`, `changePct`. **Sample Response:** ```json { "id": 27, "ticker": "AEDUSD", "detail": "U.A.E. DIRHAM / U.S. DOLLAR", "exchange": "IDC", "country": "AE", "rating": "strongsell", "lastClose": 0.2722718418, "changePct": -0.0353971187137187 } ``` #### Get Historical Exchange Rate Data ``` GET /forex/:ticker/prices ``` **Path Params:** `ticker` (string, required). **Query Params:** `from` (date), `to` (date), `frame` (string, default `daily`). **Response:** Array of `{ time, ticker, open, high, low, close, volume }`. **Sample Response:** ```json [ { "time": "2025-12-19T13:26:59.000Z", "ticker": "AEDAUD", "open": "0.4100", "high": "0.4100", "low": "0.4100", "close": "0.4100", "volume": "0" }, { "time": "2025-12-18T00:00:00.000Z", "ticker": "AEDAUD", "open": "0.4100", "high": "0.4100", "low": "0.4100", "close": "0.4100", "volume": "0" } ] ``` --- ### 4. Futures API Base path: `/futures` #### Top Gainers ``` GET /futures/gainers ``` **Query Params:** `days` (int, default 5), `limit` (int, default 10). **Response:** Array of `{ ticker, pctchange }`. **Sample Response:** ```json [ { "ticker": "ES", "pctchange": 1.234 }, { "ticker": "NQ", "pctchange": 0.987 } ] ``` #### Top Losers ``` GET /futures/losers ``` **Query Params:** `days` (int, default 5), `limit` (int, default 10). **Response:** Array of `{ ticker, pctchange }`. **Sample Response:** ```json [ { "ticker": "ES", "pctchange": -1.234 }, { "ticker": "NQ", "pctchange": -0.987 } ] ``` #### Get Futures Quote ``` GET /futures/:ticker/quote ``` **Path Params:** `ticker` (string, required). **Response:** Same quote shape as stocks. #### List Unique Column Values ``` GET /futures/list/:column ``` **Path Params:** `column` (string, required; one of: `exchange`, `currency`, `timezone`, `country`). **Response:** Array of unique values. **Sample Response:** ```json ["CME", "CMX", "ICE"] ``` #### Get All Futures Tickers ``` GET /futures/tickers ``` **Query Params:** `exchange` (string). **Response:** Array of `{ id, ticker, name, exchange }`. **Sample Response:** ```json [ { "id": 12, "ticker": "ESG", "name": "E-mini S&P 500 ESG Index Future", "exchange": "CME" }, { "id": 50, "ticker": "BTC", "name": "Bitcoin Futures", "exchange": "CME" } ] ``` #### Get Specific Futures Ticker ``` GET /futures/:ticker ``` **Path Params:** `ticker` (string, required). **Response Fields:** `id`, `ticker`, `name`, `exchange`, `currency`, `country`, `timezone`, `list`, `expiration`, `lastClose`, `changePct`. **Sample Response:** ```json { "id": 3, "ticker": "ALI", "name": "Aluminum Futures", "exchange": "CMX", "currency": "USD", "country": "america", "timezone": "EDT", "list": "2014-05-06T04:00:00.000Z", "expiration": "2026-09-28T00:00:00.000Z", "lastClose": 3399, "changePct": -11.9601113773231 } ``` #### Get Historical Price Data ``` GET /futures/:ticker/prices ``` **Path Params:** `ticker` (string, required). **Query Params:** `from` (date), `to` (date), `frame` (string, default `daily`). **Response:** Array of `{ time, ticker, open, high, low, close, volume }`. **Sample Response:** ```json [ { "time": "2025-12-19T16:02:30.000Z", "ticker": "ALI", "open": "2920.2500", "high": "2965.2500", "low": "2914.0000", "close": "2964.0000", "volume": "327" }, { "time": "2025-12-18T05:00:00.000Z", "ticker": "ALI", "open": "2823.7500", "high": "2823.7500", "low": "2823.7500", "close": "2823.7500", "volume": "0" } ] ``` --- ### 5. Indices API Base path: `/indices` #### Top Gainers ``` GET /indices/gainers ``` **Query Params:** `days` (int, default 5), `limit` (int, default 10). **Response:** Array of `{ ticker, pctchange }`. **Sample Response:** ```json [ { "ticker": "SPX", "pctchange": 0.856 }, { "ticker": "IXIC", "pctchange": 0.723 } ] ``` #### Top Losers ``` GET /indices/losers ``` **Query Params:** `days` (int, default 5), `limit` (int, default 10). **Response:** Array of `{ ticker, pctchange }`. **Sample Response:** ```json [ { "ticker": "SPX", "pctchange": -0.856 }, { "ticker": "IXIC", "pctchange": -0.723 } ] ``` #### Get Index Quote ``` GET /indices/:ticker/quote ``` **Path Params:** `ticker` (string, required). **Response:** Same quote shape as stocks. #### List Unique Column Values ``` GET /indices/list/:column ``` **Path Params:** `column` (string, required; one of: `exchange`, `timezone`, `country`). **Response:** Array of unique values. **Sample Response:** ```json ["ASX", "AMS", "VIE"] ``` #### Get All Index Tickers ``` GET /indices/tickers ``` **Query Params:** `exchange` (string). **Response:** Array of `{ id, ticker, name, exchange }`. **Sample Response:** ```json [ { "id": 75, "ticker": "AMZIVWAP", "name": "Alerian MLP Infrastructure Inde", "exchange": "NYS" }, { "id": 5, "ticker": "AXJO", "name": "S&P/ASX 200", "exchange": "ASX" } ] ``` #### Get Index Ticker Details ``` GET /indices/:ticker ``` **Path Params:** `ticker` (string, required). **Response Fields:** `id`, `ticker`, `name`, `exchange`, `country`, `timezone`, `lastClose`, `changePct`. **Sample Response:** ```json { "id": 5, "ticker": "AXJO", "name": "S&P/ASX 200", "exchange": "ASX", "country": "australia", "timezone": "AEST", "lastClose": 8816.09960938, "changePct": -0.142723001701814 } ``` #### Get Historical Index Data ``` GET /indices/:ticker/prices ``` **Path Params:** `ticker` (string, required). **Query Params:** `from` (date), `to` (date), `frame` (string, default `daily`). **Response:** Array of `{ time, ticker, open, high, low, close, volume }`. **Sample Response:** ```json [ { "time": "2025-12-19T16:31:46.000Z", "ticker": "GVZ", "open": "21.2600", "high": "21.3900", "low": "20.8100", "close": "21.0600", "volume": "0" }, { "time": "2025-12-18T14:30:00.000Z", "ticker": "GVZ", "open": "20.6500", "high": "21.5100", "low": "20.0500", "close": "21.3100", "volume": "0" } ] ``` #### Get Index Components ``` GET /indices/:ticker/components ``` **Path Params:** `ticker` (string, required). **Response:** `{ symbol, components }`. **Sample Response:** ```json { "symbol": "SPX", "components": ["AAPL", "MSFT", "GOOGL", "AMZN"] } ``` #### Get Index Exposure (find indices containing a ticker) ``` GET /indices/:ticker/exposure ``` **Path Params:** `ticker` (string, required; stock ticker to find which indices include it). **Response:** Array of `{ symbol, components }`. **Sample Response:** ```json [ { "symbol": "SPX", "components": ["AAPL", "MSFT"] }, { "symbol": "NDX", "components": ["AAPL", "MSFT", "GOOGL"] } ] ``` --- ### 6. ETFs API ETFs have two route groups under `/etfs`: price data endpoints and fundamental data endpoints. #### Price Data Endpoints ##### Top ETF Gainers ``` GET /etfs/gainers ``` **Query Params:** `days` (int, default 5), `limit` (int, default 10). **Response:** Array of `{ ticker, pctchange }`. **Sample Response:** ```json [ { "ticker": "SPY", "pctchange": 1.234 }, { "ticker": "QQQ", "pctchange": 0.987 } ] ``` ##### Top ETF Losers ``` GET /etfs/losers ``` **Query Params:** `days` (int, default 5), `limit` (int, default 10). **Response:** Array of `{ ticker, pctchange }`. **Sample Response:** ```json [ { "ticker": "SPY", "pctchange": -1.234 }, { "ticker": "QQQ", "pctchange": -0.987 } ] ``` ##### Get ETF Quote ``` GET /etfs/:ticker/quote ``` **Path Params:** `ticker` (string, required). **Response Fields:** `latestClose`, `latestOpen`, `latestHigh`, `latestLow`, `previousClose`, `week52Range`, `week52AvgClose`, `ema30`, `ema60`, `ema90`, `ema120`, `ytdClosePctChange`, `volume`, `avgVolumeLifetime`, `nav`, `expense`. **Sample Response:** ```json { "latestClose": 717, "latestOpen": 717.72, "latestHigh": 718.74, "latestLow": 712.56, "previousClose": 725.51, "week52Range": { "high": 748.65, "low": 551.56 }, "week52AvgClose": 622.65, "ema30": 715.81, "ema60": 695.04, "ema90": 677.94, "ema120": 664.65, "ytdClosePctChange": 16.94, "volume": 15379091, "avgVolumeLifetime": 64776883.17, "nav": 723.16, "expense": 0.0018 } ``` ##### List Unique Column Values ``` GET /etfs/list/:column ``` **Path Params:** `column` (string, required; one of: `market`, `exchange`, `country`, `currency`, `sector`, `industry`, `type`). **Response:** Array of unique values. **Sample Response (`column=type`):** ```json ["etf fund", "etf", "index etf"] ``` **Sample Response (`column=exchange`):** ```json [ "AMEX", "AQUIS", "ASX", "BIVA", "BMV", "BSE", "CBOE", "CSE", "DUS", "FSE", "FWB", "HAM", "HAN", "HKEX", "KRX", "LSE", "LSIN", "MUN", "NAG", "NASDAQ", "NEO", "NSE", "NYSE", "OTC", "SAPSE", "SGX", "SSE", "SWB", "SZSE", "TADAWUL", "TSE", "TSX", "TSXV", "XETR" ] ``` ##### Get All ETF Tickers ``` GET /etfs/tickers ``` **Query Params:** `country` (string), `exchange` (string). **Response:** Array of `{ id, name, ticker, symbol, exchange, market, type }` (filtered to ETF types only). **Sample Response:** ```json [ { "id": 23, "name": "Aptus International Enhanced Yield", "ticker": "IDUB", "symbol": "CBOE:IDUB", "exchange": "CBOE", "market": "america", "type": "etf fund" }, { "id": 6, "name": "ProShares Ultra MSCI Brazil Capped", "ticker": "UBR", "symbol": "AMEX:UBR", "exchange": "AMEX", "market": "america", "type": "etf fund" } ] ``` ##### Get ETF Ticker Details ``` GET /etfs/:ticker ``` **Path Params:** `ticker` (string, required). **Response Fields:** `id`, `name`, `ticker`, `symbol`, `exchange`, `market`, `country`, `type`, `sector`, `industry`, `currency`, `lastClose`, `changePct`, `issuer`, `description`, `inception`. **Sample Response:** ```json { "id": 5512, "name": "Invesco QQQ Trust Series I", "ticker": "QQQ", "symbol": "NASDAQ:QQQ", "exchange": "NASDAQ", "market": "america", "country": "United States", "type": "etf fund", "sector": "Miscellaneous", "industry": "Investment Trusts/Mutual Funds", "currency": "USD", "lastClose": 717, "changePct": -1.17296931198755, "issuer": "Invesco", "description": "To maintain the correspondence between the composition and weights of the securities in the trust (the \"securities\") and the stocks in the NASDAQ-100 Index\u00ae, the adviser adjusts the securities from time to time to conform to periodic changes in the identity and/or relative weights of index securities. The composition and weighting of the securities portion of a portfolio deposit are also adjusted to conform to changes in the index.", "inception": "1999-03-10T00:00:00.000Z" } ``` ##### Get Historical ETF Prices ``` GET /etfs/:ticker/prices ``` **Path Params:** `ticker` (string, required). **Query Params:** `from` (date), `to` (date), `frame` (string, default `daily`). **Response:** Array of `{ time, ticker, open, high, low, close, volume }`. #### Fundamental Data Endpoints ##### Get Fund Information ``` GET /etfs/:ticker/fund ``` **Path Params:** `ticker` (string, required). **Response:** Comprehensive ETF metadata including classification, ratings, efficiency scores, tradability, and trading metrics. **Sample Response:** ```json { "ticker": "SPY", "fund": "SPDR S&P 500 ETF Trust", "assetclass": "Equity", "category": "Size and Style", "focus": "Large Cap", "niche": "Broad-based", "region": "North America", "geography": "U.S.", "segment": "Equity: U.S. - Large Cap", "segmentid": 261, "hassegmentreport": true, "lettergrade": "A", "analystpick": false, "opportunitieslist": false, "efficiencyscore": 99.69286, "tradabilityscore": 99.679609, "fitscore": null, "segmentavgefficiency": 80.6980909027027, "segmentavgtradability": 79.1212271516854, "segmentavgfit": 59.8830314558824, "overallratingdate": "2024-08-15T00:00:00.000Z", "msciesghasbadge": false, "genericrpt": false, "msciesgready": true, "dividendyield": null, "state": 1, "inverse": false, "leveraged": false, "overallratingscore": "A ", "morecomparisons": "IVV,VOO,SPLG,SCHX,IWB", "medianspreadpct45day": 0.000029, "primaryexchange": "NYSEArca" } ``` ##### Get Sector & Region Weights ``` GET /etfs/:ticker/weights ``` **Path Params:** `ticker` (string, required). **Response:** `sector` (array of `{ name, weight, rawWeight }`), `regions` (array of `{ name, weight, benchmarkWeight, rawWeight }`). **Sample Response:** ```json { "sector": [ { "name": "Technology Services", "weight": "21.08%", "rawWeight": 0.21079285342758 }, { "name": "Commercial Services", "weight": "2.90%", "rawWeight": 0.0289666913939312 } ], "regions": [ { "name": "United States", "weight": "100.00%", "benchmarkWeight": "99.89%", "rawWeight": 1 }, { "name": "Canada", "weight": "--", "benchmarkWeight": "0.11%", "rawWeight": "--" } ] } ``` ##### Get Top Holdings ``` GET /etfs/:ticker/holdings ``` **Path Params:** `ticker` (string, required). **Response:** Array of `{ ticker, name, weight, shares, marketValue, rawWeight }`. **Sample Response:** ```json [ { "ticker": "NVDA", "name": "NVIDIA Corporation", "weight": "7.17%", "shares": 305156465, "marketValue": 44519276678.85, "rawWeight": 0.0716544211188534 }, { "ticker": "AAPL", "name": "Apple Inc.", "weight": "6.95%", "shares": 188603226, "marketValue": 43190138754, "rawWeight": 0.0695151543630329 } ] ``` ##### Get All Holdings ``` GET /etfs/:ticker/holdings/all ``` **Path Params:** `ticker` (string, required). **Response:** Array of `{ name, ticker, weight, rawWeight, since }`. **Sample Response:** ```json [ { "name": "NVIDIA Corporation", "ticker": "NVDA", "weight": "7.17%", "rawWeight": 0.0716544211188534, "since": "2024-03-15" }, { "name": "Apple Inc.", "ticker": "AAPL", "weight": "6.95%", "rawWeight": 0.0695151543630329, "since": "2024-03-15" } ] ``` ##### Get ETF Exposure Analysis (funds holding a stock) ``` GET /etfs/:ticker/exposure ``` **Path Params:** `ticker` (string, required; stock ticker to find ETFs holding it). **Response:** Array of ETFs holding the stock with `ticker`, `fundName`, `segment`, `allocation`, `marketValue`, `rawAllocation`, `rawMarketValue`. **Sample Response:** ```json [ { "ticker": "XLK", "fundName": "Technology Select Sector SPDR Fund", "segment": "Equity: U.S. Information Technology", "allocation": "24.17%", "marketValue": "$10.46B", "rawAllocation": 0.2417, "rawMarketValue": 10460000000 }, { "ticker": "FTEC", "fundName": "Fidelity MSCI Information Technology Index ETF", "segment": "Equity: U.S. Information Technology", "allocation": "23.75%", "marketValue": "$1.45B", "rawAllocation": 0.2375, "rawMarketValue": 1450000000 } ] ``` --- ## Fundamentals APIs ### 7. Profile API (Corp. Intelligence) Base path: `/profiles` #### Get Company Profile (Asset Profile) ``` GET /profiles/:ticker ``` **Path Params:** `ticker` (string, required). **Response Fields:** Company info, business summary, sector/industry, employees, contact, executives, governance scores. **Sample Response:** ```json { "address1": "One Apple Park Way", "city": "Cupertino", "state": "CA", "zip": "95014", "country": "United States", "phone": "(408) 996-1010", "website": "https://www.apple.com", "industry": "Consumer Electronics", "industryKey": "consumer-electronics", "industryDisp": "Consumer Electronics", "sector": "Technology", "sectorKey": "technology", "sectorDisp": "Technology", "longBusinessSummary": "Apple Inc. designs, manufactures, and markets smartphones...", "fullTimeEmployees": 166000, "companyOfficers": [ { "name": "Mr. Timothy D. Cook", "age": 63, "title": "CEO & Director", "yearBorn": 1961, "fiscalYear": 2024, "totalPay": 16520856, "exercisedValue": 0, "unexercisedValue": 0 } ], "auditRisk": 7, "boardRisk": 1, "compensationRisk": 3, "shareHolderRightsRisk": 1, "overallRisk": 1, "governanceEpochDate": "2025-12-01T00:00:00.000Z", "compensationAsOfEpochDate": "2024-12-31T00:00:00.000Z", "irWebsite": "http://investor.apple.com/", "executiveTeam": [] } ``` #### Get Company Info (Summary Profile) ``` GET /profiles/:ticker/info ``` **Path Params:** `ticker` (string, required). **Response Fields:** Light version: address, sector, industry, business description, employee count, phone, website. **Sample Response:** ```json { "address1": "One Apple Park Way", "city": "Cupertino", "state": "CA", "zip": "95014", "country": "United States", "phone": "(408) 996-1010", "website": "https://www.apple.com", "industry": "Consumer Electronics", "industryKey": "consumer-electronics", "industryDisp": "Consumer Electronics", "sector": "Technology", "sectorKey": "technology", "sectorDisp": "Technology", "longBusinessSummary": "Apple Inc. designs, manufactures, and markets smartphones...", "fullTimeEmployees": 166000, "companyOfficers": [], "irWebsite": "http://investor.apple.com/", "executiveTeam": [] } ``` #### Get Performance Summary ``` GET /profiles/:ticker/summary ``` **Path Params:** `ticker` (string, required). **Response:** Summary detail object with current price, day range, 52w range, volume, avg volume, market cap, PE, EPS, dividend yield, beta. **Sample Response:** ```json { "priceHint": 2, "previousClose": 271.84, "open": 273.605, "dayLow": 266.96, "dayHigh": 273.62, "regularMarketPreviousClose": 271.84, "regularMarketOpen": 273.605, "regularMarketDayLow": 266.96, "regularMarketDayHigh": 273.62, "dividendRate": 1.04, "dividendYield": 0.0038, "exDividendDate": "2025-11-10T00:00:00.000Z", "payoutRatio": 0.1367, "fiveYearAvgDividendYield": 0.53, "beta": 1.107, "trailingPE": 36.486595, "forwardPE": 29.841238, "volume": 51509672, "regularMarketVolume": 51509672, "averageVolume": 46958041, "averageVolume10days": 40567560, "averageDailyVolume10Day": 40567560, "bid": 272, "ask": 274.97, "bidSize": 100, "askSize": 400, "marketCap": 4039405731840, "fiftyTwoWeekLow": 169.21, "fiftyTwoWeekHigh": 288.62, "allTimeHigh": 288.62, "allTimeLow": 0.049107, "priceToSalesTrailing12Months": 9.706353, "fiftyDayAverage": 268.8426, "twoHundredDayAverage": 229.53786, "trailingAnnualDividendRate": 1.02, "trailingAnnualDividendYield": 0.0037522072, "currency": "USD", "fromCurrency": null, "toCurrency": null, "lastMarket": null, "coinMarketCapLink": null, "algorithm": null, "tradeable": false } ``` #### Get Key Statistics ``` GET /profiles/:ticker/statistics ``` **Path Params:** `ticker` (string, required). **Response:** Key statistics with enterprise value, shares outstanding, short interest, insider/institutional ownership, valuation ratios. **Sample Response:** ```json { "priceHint": 2, "enterpriseValue": 4079655583744, "forwardPE": 29.841238, "profitMargins": 0.26915002, "floatShares": 14750642146, "sharesOutstanding": 14776353000, "sharesShort": 129458559, "sharesShortPriorMonth": "1973-08-30T11:23:56.000Z", "sharesShortPreviousMonthDate": "2025-10-31T00:00:00.000Z", "dateShortInterest": "2025-11-28T00:00:00.000Z", "sharesPercentSharesOut": 0.0088, "heldPercentInsiders": 0.016970001, "heldPercentInstitutions": 0.64405996, "shortRatio": 2.64, "shortPercentOfFloat": 0.0088, "beta": 1.107, "impliedSharesOutstanding": 14840390000, "category": null, "bookValue": 4.991, "priceToBook": 54.536163, "fundFamily": null, "legalType": null, "lastFiscalYearEnd": "2025-09-27T00:00:00.000Z", "nextFiscalYearEnd": "2026-09-27T00:00:00.000Z", "mostRecentQuarter": "2025-09-27T00:00:00.000Z", "earningsQuarterlyGrowth": 0.864, "netIncomeToCommon": 112010002432, "trailingEps": 7.46, "forwardEps": 9.12127, "lastSplitFactor": "4:1", "lastSplitDate": 1598832000, "enterpriseToRevenue": 9.803, "enterpriseToEbitda": 28.185, "52WeekChange": 0.068175554, "SandP52WeekChange": 0.13329959, "lastDividendValue": 0.26, "lastDividendDate": "2025-11-10T00:00:00.000Z", "latestShareClass": null, "leadInvestor": null } ``` #### Get Calendar Events ``` GET /profiles/:ticker/calendar ``` **Path Params:** `ticker` (string, required). **Response:** Next earnings date, earnings call date, ex-div date, dividend pay date, consensus EPS estimate, consensus revenue estimate. **Sample Response:** ```json { "earnings": { "earningsDate": ["2026-01-29T21:00:00.000Z"], "earningsCallDate": ["2025-10-30T21:00:00.000Z"], "isEarningsDateEstimate": true, "earningsAverage": 2.6647, "earningsLow": 2.51, "earningsHigh": 2.76, "revenueAverage": 138253076640, "revenueLow": 136679500000, "revenueHigh": 142741000000 }, "exDividendDate": "2025-11-10T00:00:00.000Z", "dividendDate": "2025-11-13T00:00:00.000Z" } ``` #### Get Recommendation Trends ``` GET /profiles/:ticker/recommendation ``` **Path Params:** `ticker` (string, required). **Response:** Array of periods with `strongBuy`, `buy`, `hold`, `sell`, `strongSell` counts. **Sample Response:** ```json [ { "period": "0m", "strongBuy": 5, "buy": 24, "hold": 15, "sell": 1, "strongSell": 3 }, { "period": "-1m", "strongBuy": 5, "buy": 24, "hold": 15, "sell": 1, "strongSell": 3 }, { "period": "-2m", "strongBuy": 5, "buy": 24, "hold": 15, "sell": 1, "strongSell": 3 }, { "period": "-3m", "strongBuy": 5, "buy": 23, "hold": 15, "sell": 1, "strongSell": 3 } ] ``` --- ### 8. Earnings API Base path: `/earnings` #### Earnings Transcript Sentiment ``` GET /earnings/transcript/sentiment ``` **Query Params:** `id` (string, required; base64 encoded JSON with `{ ticker, year, quarter }`). **Response:** `{ label, score, breakdown: { positive: { count, avgScore }, negative: { count, avgScore } } }`. **Sample Response:** ```json { "label": "POSITIVE", "score": 0.962592193195897, "breakdown": { "positive": { "count": 5063, "avgScore": 0.962592193195897 }, "negative": { "count": 1878, "avgScore": 0.969751293244569 } } } ``` #### Get Earnings Transcript ``` GET /earnings/:ticker/transcript ``` **Path Params:** `ticker` (string, required). **Query Params:** `year` (int, required), `quarter` (int 1-4, required). **Response:** `{ ticker, year, quarter, id, transcript: [{ paragraphNumber, speaker, content }] }`. **Sample Response:** ```json { "ticker": "AAPL", "year": "2024", "quarter": "2", "id": "eyJ0aWNrZXIiOiJBQVBMIiwieWVhciI6IjIwMjQiLCJxdWFydGVyIjoiMiJ9", "transcript": [ { "paragraphNumber": 1, "speaker": "Suhasini Chandramouli", "content": "Good Afternoon, and welcome to the Apple Q2 Fiscal Year 2024 Earnings Conference Call..." }, { "paragraphNumber": 2, "speaker": "Tim Cook", "content": "Thank you, Suhasini..." } ] } ``` #### Get Earnings History ``` GET /earnings/:ticker/history ``` **Path Params:** `ticker` (string, required). **Response:** Array of `{ epsActual, epsEstimate, epsDifference, surprisePercent, quarter, currency, period }`. **Sample Response:** ```json [ { "epsActual": 2.4, "epsEstimate": 2.34102, "epsDifference": 0.06, "surprisePercent": 0.0252, "quarter": "2024-12-31T00:00:00.000Z", "currency": "USD", "period": "-4q" }, { "epsActual": 1.65, "epsEstimate": 1.62253, "epsDifference": 0.03, "surprisePercent": 0.016900001, "quarter": "2025-03-31T00:00:00.000Z", "currency": "USD", "period": "-3q" } ] ``` #### Get Earnings Trend ``` GET /earnings/:ticker/trend ``` **Path Params:** `ticker` (string, required). **Response:** Array of trend objects with `period`, `endDate`, `growth`, `earningsEstimate`, `revenueEstimate`, `epsTrend`, `epsRevisions`. **Sample Response:** ```json [ { "period": "0q", "endDate": "2025-12-31T00:00:00.000Z", "growth": 0.1103, "earningsEstimate": { "avg": 2.66574, "low": 2.51, "high": 2.8, "yearAgoEps": 2.4, "numberOfAnalysts": 29, "growth": 0.1107, "earningsCurrency": "USD" }, "revenueEstimate": { "avg": 138253076640, "low": 136679500000, "high": 142741000000, "numberOfAnalysts": 29, "yearAgoRevenue": 124300000000, "growth": 0.11229999, "revenueCurrency": "USD" }, "epsTrend": { "current": 2.66574, "7daysAgo": 2.66367, "30daysAgo": 2.66153, "60daysAgo": 2.48232, "90daysAgo": 2.492, "epsTrendCurrency": "USD" }, "epsRevisions": { "upLast7days": 1, "upLast30days": 1, "downLast30days": 0, "downLast7Days": 0, "downLast90days": null, "epsRevisionsCurrency": "USD" } } ] ``` #### Get Earnings Index Estimate ``` GET /earnings/:ticker/index ``` **Path Params:** `ticker` (string, required; e.g. SP5 for S&P 500). **Response:** `{ symbol, estimates: [{ period, growth }] }`. **Sample Response:** ```json { "symbol": "SP5", "estimates": [ { "period": "0q", "growth": 0.1524 }, { "period": "+1q", "growth": 0.070300005 }, { "period": "0y", "growth": 0.109 }, { "period": "+1y", "growth": 0.1487 }, { "period": "LTG", "growth": 0.122 } ] } ``` #### Get Earnings Report (8-K Tables) ``` GET /earnings/:ticker/report ``` **Path Params:** `ticker` (string, required). **Query Params:** `year` (int, required), `quarter` (int 1-4, required). **Response:** Extracted financial tables from the 8-K filing including income statement, balance sheet, cash flow, segment data. **Sample Response:** ```json [ { "dataframe": [ { "label": "ASSETS:", "values": [] }, { "label": "Current assets:", "values": [] }, { "label": "Cash and cash equivalents", "values": ["$", 40760, "$", 29965] }, { "label": "Marketable securities", "values": [32340, 31590] }, { "label": "Total current assets", "values": [143692, 143566] }, { "label": "Total assets", "values": ["$", 353514, "$", 352583] } ], "scale": 1000000000, "title": null, "statementType": "balance_sheet", "periods": ["Period 1"], "rawIndex": 5 }, { "dataframe": [ { "label": "Three Months Ended", "values": [] }, { "label": "Cash generated by operating activities", "values": [39895, 34005] }, { "label": "Cash generated by/(used in) investing activities", "values": [1927, -1445] }, { "label": "Cash used in financing activities", "values": [-30585, -35563] } ], "scale": 1000000000, "statementType": "cash_flow", "rawIndex": 6 } ] ``` --- ### 9. SEC Filings API Base path: `/filings` #### List Available Form Types ``` GET /filings/list/forms ``` **Response:** Array of supported SEC form type strings including `"all"`. **Sample Response:** ```json ["all", "10-K", "10-Q", "8-K", "4", "3", "S-1", "S-3", "DEF 14A", "13F-HR", "SC 13G", "SC 13D", "144", "NPORT-P", "NPORT-EX"] ``` #### Search Filings by Year and Quarter ``` GET /filings/search ``` **Query Params:** `year` (int, required), `quarter` (int 1-4, required), `form` (string), `ticker` (string). **Response:** Array of filing objects with `company`, `cik`, `form`, `filingDate`, `accessionNumber`, `documentId`, `url`. **Sample Response:** ```json [ { "company": "Apple Inc.", "cik": 320193, "form": "10-Q", "filingDate": "2020-01-29", "accessionNumber": "0000320193-20-000010", "documentId": "aHR0cHM6Ly93d3cuc2VjLmdvdi9BcmNoaXZlcy9lZGdhci9kYXRhLzMyMDE5My8wMDAwMzIwMTkzLTIwLTAwMDAxMC50eHQ=", "url": "https://www.sec.gov/Archives/edgar/data/320193/000032019320000010/a10-qq1202012282019.htm" } ] ``` #### Get Recent Filings by Ticker ``` GET /filings/:ticker ``` **Path Params:** `ticker` (string, required). **Query Params:** `limit` (int, default 20), `form` (string; filter by form type). **Response:** Array of filing objects with `cik`, `form`, `filingDate`, `accessionNumber`, `documentId`, `url`. **Sample Response:** ```json [ { "cik": 320193, "form": "4", "filingDate": "2026-06-17", "accessionNumber": "0001140361-26-025622", "documentId": "aHR0cHM6Ly93d3cuc2VjLmdvdi9BcmNoaXZlcy9lZGdhci9kYXRhLzMyMDE5My8wMDAxMTQwMzYxMjYwMjU2MjIveHNsRjM0NVgwNi9mb3JtNC54bWw=", "url": "https://www.sec.gov/Archives/edgar/data/320193/000114036126025622/xslF345X06/form4.xml" }, { "cik": 320193, "form": "10-Q", "filingDate": "2026-05-01", "accessionNumber": "0000320193-26-000013", "documentId": "aHR0cHM6Ly93d3cuc2VjLmdvdi9BcmNoaXZlcy9lZGdhci9kYXRhLzMyMDE5My8wMDAwMzIwMTkzMjYwMDAwMTMvYWFwbC0yMDI2MDMyOC5odG0=", "url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000013/aapl-20260328.htm" } ] ``` #### Get Filings by Form Type and Date Range ``` GET /filings/:ticker/:formType ``` **Path Params:** `ticker` (string, required), `formType` (string, required). **Query Params:** `startDate` (string, required; YYYY-MM-DD), `endDate` (string, optional; YYYY-MM-DD, defaults to today). **Response:** Array of filing objects with `company`, `cik`, `form`, `filingDate`, `reportDate`, `accessionNumber`, `documentId`, `url`. **Sample Response:** ```json [ { "company": "Apple Inc.", "cik": 320193, "form": "10-Q", "filingDate": "2026-05-01", "reportDate": "2026-03-28", "accessionNumber": "0000320193-26-000013", "documentId": "aHR0cHM6Ly93d3cuc2VjLmdvdi9BcmNoaXZlcy9lZGdhci9kYXRhLzMyMDE5My8wMDAwMzIwMTkzMjYwMDAwMTMvYWFwbC0yMDI2MDMyOC5odG0=", "url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000013/aapl-20260328.htm" } ] ``` #### Get Filing Document Sentiment ``` GET /filings/document/sentiment ``` **Query Params:** `documentId` (string, required; base64-encoded SEC document URL from a filing record). **Response:** `{ label, score, breakdown: { positive: { count, avgScore }, negative: { count, avgScore } } }`. **Sample Response:** ```json { "label": "NEGATIVE", "score": 0.984021182571139, "breakdown": { "positive": { "count": 63, "avgScore": 0.987096269925435 }, "negative": { "count": 293, "avgScore": 0.984021182571139 } } } ``` #### Get Filing Document Text ``` GET /filings/document/text ``` **Query Params:** `documentId` (string, required; base64-encoded SEC document URL). **Response:** JSON object with `src` (decoded source URL) and `text` (plain text content). ```json { "src": "https://www.sec.gov/Archives/edgar/data/320193/0000320193-20-000010.txt", "text": "UNITED STATES\n\nSECURITIES AND EXCHANGE COMMISSION\n\nWashington, D.C. 20549\n\nFORM SD\n\nSpecialized Disclosure Report\n\nApple Inc.\n\n..." } ``` --- ### 10. Financials API Base path: `/financials` #### Get Balance Sheet Statement ``` GET /financials/statements/:ticker/balance ``` **Path Params:** `ticker` (string, required). **Query Params:** `year` (int), `quarter` (int 1-4). If omitted, returns the latest available quarter. **Response:** Object with ~50+ camelCase balance sheet fields (accountsPayable, cash, totalAssets, etc.). #### Get Income Statement ``` GET /financials/statements/:ticker/income ``` **Path Params:** `ticker` (string, required). **Query Params:** `year` (int), `quarter` (int 1-4). If omitted, returns the latest available quarter. **Response:** Object with ~40+ income statement fields (totalRevenue, grossProfit, netIncome, dilutedEps, etc.). #### Get Cash Flow Statement ``` GET /financials/statements/:ticker/cashflow ``` **Path Params:** `ticker` (string, required). **Query Params:** `year` (int), `quarter` (int 1-4). If omitted, returns the latest available quarter. **Response:** Object with ~50+ cash flow fields (operatingCashFlow, freeCashFlow, capitalExpenditure, etc.). #### Revenue ``` GET /financials/:ticker/revenue ``` **Path Params:** `ticker` (string, required). **Query Params:** `periods` (int, default 1; number of trailing periods to return). **Response:** Array of annual revenue values. **Sample Response:** ```json [143756000000, 416161000000, 313695000000, 94036000000] ``` #### Net Income ``` GET /financials/:ticker/netincome ``` **Path Params:** `ticker` (string, required). **Query Params:** `periods` (int). **Response:** Array of annual net income values. **Sample Response:** ```json [42097000000, 112010000000, 84544000000, 23434000000] ``` #### Total Assets ``` GET /financials/:ticker/total/assets ``` **Path Params:** `ticker` (string, required). **Query Params:** `periods` (int). **Response:** Array of annual total asset values. **Sample Response:** ```json [379297000000, 359241000000, 359241000000, 331495000000] ``` #### Total Liabilities ``` GET /financials/:ticker/total/liabilities ``` **Path Params:** `ticker` (string, required). **Query Params:** `periods` (int). **Response:** Array of annual total liability values. **Sample Response:** ```json [291107000000, 285508000000, 285508000000, 265665000000] ``` #### Stockholders' Equity ``` GET /financials/:ticker/stockholdersequity ``` **Path Params:** `ticker` (string, required). **Query Params:** `periods` (int). **Response:** Array of annual equity values. **Sample Response:** ```json [88190000000, 73733000000, 73733000000, 65830000000] ``` #### Current Assets ``` GET /financials/:ticker/current/assets ``` **Path Params:** `ticker` (string, required). **Query Params:** `periods` (int). **Response:** Array of annual current asset values. **Sample Response:** ```json [158104000000, 147957000000, 147957000000, 122491000000] ``` #### Current Liabilities ``` GET /financials/:ticker/current/liabilities ``` **Path Params:** `ticker` (string, required). **Query Params:** `periods` (int). **Response:** Array of annual current liability values. **Sample Response:** ```json [162367000000, 165631000000, 165631000000, 141120000000] ``` #### Operating Cash Flow ``` GET /financials/:ticker/cashflow/operating ``` **Path Params:** `ticker` (string, required). **Query Params:** `periods` (int). **Response:** Array of annual operating cash flow values. **Sample Response:** ```json [53925000000, 111482000000, 81754000000, 53887000000] ``` #### Capital Expenditures ``` GET /financials/:ticker/capitalexpenditures ``` **Path Params:** `ticker` (string, required). **Query Params:** `periods` (int). **Response:** Array of annual capex values. **Sample Response:** ```json [2373000000, 12715000000, 9473000000, 6011000000] ``` #### Free Cash Flow ``` GET /financials/:ticker/cashflow/free ``` **Path Params:** `ticker` (string, required). **Query Params:** `periods` (int). **Response:** Array of annual free cash flow values. **Sample Response:** ```json [51552000000, 98767000000, 72281000000, 47876000000] ``` #### Basic Shares Outstanding ``` GET /financials/:ticker/sharesoutstanding/basic ``` **Path Params:** `ticker` (string, required). **Query Params:** `periods` (int). **Response:** Array of annual basic shares outstanding. **Sample Response:** ```json [14748158000, 14948500000, 14992898000, 14902886000] ``` #### Diluted Shares Outstanding ``` GET /financials/:ticker/sharesoutstanding/diluted ``` **Path Params:** `ticker` (string, required). **Query Params:** `periods` (int). **Response:** Array of annual diluted shares outstanding. **Sample Response:** ```json [14810356000, 15004697000, 15051726000, 14948179000] ``` #### Financial Metrics (Composite) ``` GET /financials/:ticker/metrics ``` **Path Params:** `ticker` (string, required). **Response Fields:** revenue, netIncome, totalAssets, totalLiabilities, stockholdersEquity, currentAssets, currentLiabilities, operatingCashFlow, capitalExpenditures, freeCashFlow, sharesOutstandingBasic, sharesOutstandingDiluted, currentRatio, debtToAssets. **Sample Response:** ```json { "revenue": 143756000000, "netIncome": 42097000000, "totalAssets": 379297000000, "totalLiabilities": 291107000000, "stockholdersEquity": 88190000000, "currentAssets": 158104000000, "currentLiabilities": 162367000000, "operatingCashFlow": 53925000000, "capitalExpenditures": 2373000000, "freeCashFlow": 51552000000, "sharesOutstandingBasic": 14748158000, "sharesOutstandingDiluted": 14810356000, "currentRatio": 0.973744664864166, "debtToAssets": 0.76749091081659 } ``` #### Financial Snapshot ``` GET /financials/:ticker/snapshot ``` **Path Params:** `ticker` (string, required). **Response:** Real-time price, analyst targets, valuation metrics, profitability ratios, market data. **Sample Response:** ```json { "currentPrice": 272.19, "targetHighPrice": 350, "targetLowPrice": 215, "targetMeanPrice": 287.70682, "targetMedianPrice": 300, "recommendationMean": 2, "recommendationKey": "buy", "numberOfAnalystOpinions": 41, "totalCash": 54697000960, "totalCashPerShare": 3.702, "ebitda": 144748003328, "totalDebt": 112377004032, "quickRatio": 0.771, "currentRatio": 0.893, "totalRevenue": 416161005568, "debtToEquity": 152.411, "revenuePerShare": 27.84, "returnOnAssets": 0.22964, "returnOnEquity": 1.7142199, "grossProfits": 195201007616, "freeCashflow": 78862254080, "operatingCashflow": 111482003456, "earningsGrowth": 0.912, "revenueGrowth": 0.079, "grossMargins": 0.46905, "ebitdaMargins": 0.34782, "operatingMargins": 0.31647, "profitMargins": 0.26915002, "financialCurrency": "USD" } ``` #### EPS (Historical) ``` GET /financials/:ticker/eps ``` **Path Params:** `ticker` (string, required). **Query Params:** `from` (date), `to` (date). **Response:** Array of `{ reportDate, tailingEps }`. **Sample Response:** ```json [ {"reportDate": "2024-12-31", "tailingEps": 6.29}, {"reportDate": "2025-03-31", "tailingEps": 6.41}, {"reportDate": "2025-06-30", "tailingEps": 6.58}, {"reportDate": "2025-09-30", "tailingEps": 7.46}, {"reportDate": "2025-12-31", "tailingEps": 7.9}, {"reportDate": "2026-03-31", "tailingEps": 8.27} ] ``` #### P/E Ratio (Historical) ``` GET /financials/:ticker/pe ``` **Path Params:** `ticker` (string, required). **Query Params:** `from` (date), `to` (date), `frame` (string: `daily`/`weekly`/`monthly`, default `daily`). **Response:** Array of `{ reportDate, epsReportDate, closePrice, ttmEps, ttmPe }`. **Sample Response:** ```json [ {"reportDate": "2026-07-06", "epsReportDate": "2026-03-31", "closePrice": 312.66, "ttmEps": 8.27, "ttmPe": 37.82}, {"reportDate": "2026-07-10", "epsReportDate": "2026-03-31", "closePrice": 315.32, "ttmEps": 8.27, "ttmPe": 38.14}, {"reportDate": "2026-07-13", "epsReportDate": "2026-03-31", "closePrice": 317.31, "ttmEps": 8.27, "ttmPe": 38.38} ] ``` #### Market Cap (Historical) ``` GET /financials/:ticker/marketcap ``` **Path Params:** `ticker` (string, required). **Query Params:** `from` (date), `to` (date), `frame` (string, default `daily`). **Response:** Array of `{ reportDate, sharesReportDate, closePrice, sharesOutstanding, marketCapitalization }`. **Sample Response:** ```json [ {"reportDate": "2026-07-02", "sharesReportDate": "2026-04-17", "closePrice": 308.63, "sharesOutstanding": 14687356000, "marketCapitalization": 4532958682280}, {"reportDate": "2026-07-10", "sharesReportDate": "2026-04-17", "closePrice": 315.32, "sharesOutstanding": 14687356000, "marketCapitalization": 4631217093920}, {"reportDate": "2026-07-13", "sharesReportDate": "2026-04-17", "closePrice": 317.31, "sharesOutstanding": 14687356000, "marketCapitalization": 4660444932360} ] ``` #### ROE (Historical) ``` GET /financials/:ticker/roe ``` **Path Params:** `ticker` (string, required). **Query Params:** `from` (date), `to` (date). **Response:** Array of `{ reportDate, netIncomeCommonStockholders, beginningStockholdersEquity, endingStockholdersEquity, avgEquity, roe }`. **Sample Response:** ```json [ {"reportDate": "2024-12-31", "netIncomeCommonStockholders": 36330000000, "beginningStockholdersEquity": 56950000000, "endingStockholdersEquity": 66758000000, "avgEquity": 61854000000, "roe": 0.5874}, {"reportDate": "2025-12-31", "netIncomeCommonStockholders": 42097000000, "beginningStockholdersEquity": 73733000000, "endingStockholdersEquity": 88190000000, "avgEquity": 80961500000, "roe": 0.52}, {"reportDate": "2026-03-31", "netIncomeCommonStockholders": 29578000000, "beginningStockholdersEquity": 88190000000, "endingStockholdersEquity": 106491000000, "avgEquity": 97340500000, "roe": 0.3039} ] ``` #### Enterprise Value (Historical) ``` GET /financials/:ticker/ev ``` **Path Params:** `ticker` (string, required). **Query Params:** `from` (date), `to` (date), `frame` (string, default `daily`). **Response:** Array of `{ reportDate, marketCapitalization, totalDebt, cashAndCashEquivalents, enterpriseValue }`. **Sample Response:** ```json [ {"reportDate": "2026-06-24", "marketCapitalization": 4304570296480, "totalDebt": 84711000000, "cashAndCashEquivalents": 45572000000, "enterpriseValue": 4343709296480}, {"reportDate": "2026-07-02", "marketCapitalization": 4532958682280, "totalDebt": 84711000000, "cashAndCashEquivalents": 45572000000, "enterpriseValue": 4572097682280}, {"reportDate": "2026-07-13", "marketCapitalization": 4660444932360, "totalDebt": 84711000000, "cashAndCashEquivalents": 45572000000, "enterpriseValue": 4699583932360} ] ``` #### EBITDA (Historical) ``` GET /financials/:ticker/ebitda ``` **Path Params:** `ticker` (string, required). **Query Params:** `from` (date), `to` (date). **Response:** Array of `{ reportDate, ttmEbitda, reportDateEbitda, exchangeToUsdRate, ttmEbitdaUsd }`. **Sample Response:** ```json [ {"reportDate": "2025-06-30", "ttmEbitda": 141696000000, "reportDateEbitda": {"2024-09-30": 32502000000, "2024-12-31": 45912000000, "2025-03-31": 32250000000, "2025-06-30": 31032000000}, "exchangeToUsdRate": 1, "ttmEbitdaUsd": 141696000000}, {"reportDate": "2025-12-31", "ttmEbitda": 152902000000, "reportDateEbitda": {"2025-03-31": 32250000000, "2025-06-30": 31032000000, "2025-09-30": 35554000000, "2025-12-31": 54066000000}, "exchangeToUsdRate": 1, "ttmEbitdaUsd": 152902000000}, {"reportDate": "2026-03-31", "ttmEbitda": 159976000000, "reportDateEbitda": {"2025-06-30": 31032000000, "2025-09-30": 35554000000, "2025-12-31": 54066000000, "2026-03-31": 39324000000}, "exchangeToUsdRate": 1, "ttmEbitdaUsd": 159976000000} ] ``` #### Debt-to-Equity (Historical) ``` GET /financials/:ticker/de ``` **Path Params:** `ticker` (string, required). **Query Params:** `from` (date), `to` (date). **Response:** Array of `{ reportDate, totalDebt, stockholdersEquity, debtToEquity }`. **Sample Response:** ```json [ {"reportDate": "2024-09-30", "totalDebt": 106629000000, "stockholdersEquity": 56950000000, "debtToEquity": 1.87}, {"reportDate": "2025-12-31", "totalDebt": 90509000000, "stockholdersEquity": 88190000000, "debtToEquity": 1.03}, {"reportDate": "2026-03-31", "totalDebt": 84711000000, "stockholdersEquity": 106491000000, "debtToEquity": 0.8} ] ``` #### DCF Valuation ``` GET /financials/dcf/:ticker/value ``` **Path Params:** `ticker` (string, required). **Response Fields:** `enterpriseValue`, `cash`, `totalDebt`, `equityValue`, `sharesOutstanding`, `fairPrice`, `currentPrice`, `marginOfSafety`, `recommendation`. **Sample Response:** ```json { "enterpriseValue": 3953331149665.99, "cash": 68507000000, "totalDebt": 111088000000, "equityValue": 3910750149665.99, "sharesOutstanding": 14687356000, "fairPrice": 266.27, "currentPrice": 315.32, "marginOfSafety": -0.1842, "recommendation": "Sell" } ``` #### Discount Rate / WACC ``` GET /financials/dcf/:ticker/rate ``` **Path Params:** `ticker` (string, required). **Response Fields:** `marketCap`, `beta5y`, `totalDebt`, `interestExpense`, `pretaxIncome`, `taxProvision`, `riskFreeRate`, `weightOfDebt`, `weightOfEquity`, `costOfDebt`, `costOfEquity`, `taxRate`, `wacc`. **Sample Response:** ```json { "marketCap": 4631217093920, "beta5y": 1.0839, "totalDebt": 111088000000, "interestExpense": 1002000000, "pretaxIncome": 26998000000, "taxProvision": 4042000000, "riskFreeRate": 0.0353, "weightOfDebt": 0.0234, "weightOfEquity": 0.9766, "costOfDebt": 0.009, "costOfEquity": 0.1054, "taxRate": 0.15, "wacc": 0.1031 } ``` --- ### 11. Insiders & Ownership API Base path: `/insiders` #### Get Fund Ownership ``` GET /insiders/:ticker/funds ``` **Path Params:** `ticker` (string, required). **Response:** Array of `{ reportDate, organization, pctHeld, position, value, pctChange }`. **Sample Response:** ```json [ { "reportDate": "2025-09-30T00:00:00.000Z", "organization": "VANGUARD INDEX FUNDS-Vanguard Total Stock Market Index Fund", "pctHeld": 0.031600002, "position": 467135722, "value": 127149673311, "pctChange": -0.0274 }, { "reportDate": "2025-09-30T00:00:00.000Z", "organization": "VANGUARD INDEX FUNDS-Vanguard 500 Index Fund", "pctHeld": 0.0248, "position": 366145920, "value": 99661258858, "pctChange": -0.1363 } ] ``` #### Get Individual Insider Holders ``` GET /insiders/:ticker/individuals ``` **Path Params:** `ticker` (string, required). **Response:** Array of `{ name, relation, url, transactionDescription, latestTransDate, positionDirect, positionDirectDate }`. **Sample Response:** ```json [ { "name": "ADAMS KATHERINE L", "relation": "General Counsel", "url": "", "transactionDescription": "Stock Gift", "latestTransDate": "2025-11-12T00:00:00.000Z", "positionDirect": 175408, "positionDirectDate": "2025-11-12T00:00:00.000Z" }, { "name": "COOK TIMOTHY D", "relation": "Chief Executive Officer", "url": "", "transactionDescription": "Sale", "latestTransDate": "2025-10-02T00:00:00.000Z", "positionDirect": 3280300, "positionDirectDate": "2025-10-02T00:00:00.000Z" } ] ``` #### Get Institutional Ownership ``` GET /insiders/:ticker/institutions ``` **Path Params:** `ticker` (string, required). **Response:** Array of `{ reportDate, organization, pctHeld, position, value, pctChange }`. **Sample Response:** ```json [ { "reportDate": "2025-09-30T00:00:00.000Z", "organization": "Vanguard Group Inc", "pctHeld": 0.0947, "position": 1399427162, "value": 380910082641, "pctChange": -0.0117 }, { "reportDate": "2025-09-30T00:00:00.000Z", "organization": "Blackrock Inc.", "pctHeld": 0.0776, "position": 1146332274, "value": 312020184458, "pctChange": -0.0022 } ] ``` #### Get Major Holders Breakdown ``` GET /insiders/:ticker/ownership ``` **Path Params:** `ticker` (string, required). **Response Fields:** `insidersPercentHeld`, `institutionsPercentHeld`, `institutionsFloatPercentHeld`, `institutionsCount`. **Sample Response:** ```json { "insidersPercentHeld": 0.016970001, "institutionsPercentHeld": 0.64405996, "institutionsFloatPercentHeld": 0.65518, "institutionsCount": 7072 } ``` #### Get Net Share Purchase Activity ``` GET /insiders/:ticker/activity ``` **Path Params:** `ticker` (string, required). **Response:** 6-month summary with buy/sell info counts and shares. **Sample Response:** ```json { "period": "6m", "buyInfoCount": 8, "buyInfoShares": 582428, "buyPercentInsiderShares": 0.002, "sellInfoCount": 7, "sellInfoShares": 352873, "sellPercentInsiderShares": 0.001, "netInfoCount": 15, "netInfoShares": 229555, "netPercentInsiderShares": 0.001, "totalInsiderShares": 250754720 } ``` #### Get Insider Transactions ``` GET /insiders/:ticker/transactions ``` **Path Params:** `ticker` (string, required). **Response:** Array of `{ shares, value, filerUrl, transactionText, filerName, filerRelation, moneyText, startDate, ownership }`. **Sample Response:** ```json [ { "shares": 3750, "value": 0, "filerUrl": "", "transactionText": "Stock Gift at price 0.00 per share.", "filerName": "ADAMS KATHERINE L", "filerRelation": "General Counsel", "moneyText": "", "startDate": "2025-11-12T00:00:00.000Z", "ownership": "D" }, { "shares": 3752, "value": 1017655, "filerUrl": "", "transactionText": "Sale at price 271.23 per share.", "filerName": "KONDO CHRISTOPHER", "filerRelation": "Officer", "moneyText": "", "startDate": "2025-11-07T00:00:00.000Z", "ownership": "D" } ] ``` --- ## Macros & Signals APIs ### 12. Economic Data API (FRED) Base path: `/econ` #### Find Economic Series (Natural Language) ``` GET /econ/find ``` **Query Params:** `query` (string, required; natural language description of desired dataset). **Response:** Array of FRED series objects with `id`, `realtimeStart`, `realtimeEnd`, `title`, `observationStart`, `observationEnd`, `frequency`, `frequencyShort`, `units`, `unitsShort`, `seasonalAdjustment`, `seasonalAdjustmentShort`, `lastUpdated`, `popularity`, `notes`. **Sample Response:** ```json [ { "id": "IPG3344S", "realtimeStart": "2026-07-10", "realtimeEnd": "2026-07-10", "title": "Industrial Production: Manufacturing: Durable Goods: Semiconductor and Other Electronic Component (NAICS = 3344)", "observationStart": "1972-01-01", "observationEnd": "2026-05-01", "frequency": "Monthly", "frequencyShort": "M", "units": "Index 2017=100", "unitsShort": "Index 2017=100", "seasonalAdjustment": "Seasonally Adjusted", "seasonalAdjustmentShort": "SA", "lastUpdated": "2026-06-15 08:25:00-05", "popularity": "44", "notes": "..." } ] ``` #### Search Economic Series (Exact Term) ``` GET /econ/search ``` **Query Params:** `query` (string, required; keyword search term). **Response:** Same array format as `/econ/find`. #### Get Dataset by Series ID ``` GET /econ/dataset/:id ``` **Path Params:** `id` (string, required; FRED series ID from search/find). **Response:** Array of `{ realtimeStart, date, value }` observations. **Sample Response:** ```json [ { "realtimeStart": "2015-03-13T00:00:00.000Z", "date": "1971-01-01T00:00:00.000Z", "value": 63.4 }, { "realtimeStart": "2015-03-13T00:00:00.000Z", "date": "1971-02-01T00:00:00.000Z", "value": 63.6 } ] ``` #### Economic Calendar ``` GET /econ/calendar ``` **Query Params:** `from` (date), `to` (date), `country` (string; CSV of 2-letter codes), `minImportance` (int 0-3), `currency` (string; CSV), `category` (string; CSV), `limit` (int, default 10). **Response:** Array of calendar events with `id`, `title`, `country`, `indicator`, `ticker`, `comment`, `category`, `period`, `referenceDate`, `source`, `sourceUrl`, `actual`, `previous`, `forecast`, `actualRaw`, `previousRaw`, `forecastRaw`, `currency`, `importance`, `date`. **Sample Response:** ```json [ { "id": "366961", "title": "New Year's Day", "country": "AR", "indicator": "Holidays", "ticker": null, "comment": null, "category": "gov", "period": "", "referenceDate": null, "source": "", "sourceUrl": "", "actual": null, "previous": null, "forecast": null, "actualRaw": null, "previousRaw": null, "forecastRaw": null, "currency": "ARS", "importance": -1, "date": "2025-01-01T00:00:00.000Z" } ] ``` --- ### 13. News API Base path: `/news` #### Get Company News ``` GET /news/:ticker ``` **Path Params:** `ticker` (string, required). **Response:** Array of `{ title, link, summary, published }`. The `link` is a local proxy URL to avoid rate limiting. **Sample Response:** ```json [ { "title": "Apple spent 2025 setting itself up for the future", "link": "http://localhost:3001/news/article/aHR0cHM6Ly9uZXdzLmdvb2dsZS5jb20vcnNzLw==", "summary": "Apple spent 2025 setting itself up for the future", "published": "Wed, 24 Dec 2025 09:05:43 GMT" } ] ``` #### Get News by Country ``` GET /news/country/:country ``` **Path Params:** `country` (string, required; 2-letter code). **Response:** Array of news articles. #### Get News by Category ``` GET /news/category/:category ``` **Path Params:** `category` (string, required). **Response:** Array of news articles. #### Get General News ``` GET /news ``` **Response:** Array of general news articles. #### Get Article (Redirect) ``` GET /news/article/:id ``` **Path Params:** `id` (string, required; encoded article ID from news link). **Response:** 302 redirect to the original article URL. --- ### 14. Supply Chain API Base path: `/supply-chain` #### Get Key Suppliers ``` GET /supply-chain/:ticker/suppliers ``` **Path Params:** `ticker` (string, required). **Response:** Array of `{ ticker, companyName, marketCap, revenues, income, employees }`. **Sample Response:** ```json [ { "ticker": "GOOG", "companyName": "Alphabet Inc", "marketCap": "4,116,377.17", "revenues": "422,498.00", "income": "160,208.00", "employees": "46,224" }, { "ticker": "AAOI", "companyName": "Applied Optoelectronics Inc", "marketCap": "10,176.32", "revenues": "506.29", "income": "-43.34", "employees": "4,691" } ] ``` #### Get Competitors (Peers) ``` GET /supply-chain/:ticker/peers ``` **Path Params:** `ticker` (string, required). **Response:** Array of `{ name, ticker, symbol }`. **Sample Response:** ```json [ { "name": "GainClients, Inc.", "ticker": "GCLT", "symbol": "OTC:GCLT" }, { "name": "Gartner, Inc.", "ticker": "IT", "symbol": "NYSE:IT" } ] ``` #### Get Major Customers ``` GET /supply-chain/:ticker/customers ``` **Path Params:** `ticker` (string, required). **Response:** Array of `{ ticker, companyName, marketCap, revenues, income, employees }`. **Sample Response:** ```json [ { "ticker": "AMZN", "companyName": "Amazon com Inc", "marketCap": "2,522,766.91", "revenues": "742,776.00", "income": "90,798.00", "employees": "1,576,000" } ] ``` --- ### 15. Credit Ratings API (S&P) Base path: `/credit` #### Search Organizations ``` GET /credit/search ``` **Query Params:** `query` (string, required; name search term). **Response:** Array of `{ id, name, sectorCode, country, state, navigationUrl }`. **Sample Response:** ```json [ { "id": "689595", "name": "Apple Bidco, LLC", "sectorCode": "CORP", "country": "USA", "state": "Texas", "navigationUrl": null }, { "id": "112354", "name": "Apple Inc.", "sectorCode": "CORP", "country": "USA", "state": "California", "navigationUrl": null } ] ``` #### Get Credit Ratings ``` GET /credit/ratings/:id ``` **Path Params:** `id` (string, required; organization ID from search). **Response:** Array of rating objects. **Sample Response:** ```json [ { "orgDebtTypeDesc": "Issuer Credit Rating", "rating": "B", "ratingDate": "06-Jul-2021", "currentCwOl": "Stable", "currentCwOlDate": "06-Jul-2021", "ratingDebtTypeCode": "ICR", "lastReviewDate": "11-Jun-2025", "coreOrgId": "689595", "endorsementIndicator": "EE|UKE", "coreRatingId": "937228060", "ratingTypeCode": "STDLONG", "ratingTypeCodeDesc": "Local Currency LT", "pcrFlag": true, "id": 1 } ] ``` --- ### 16. ESG API Base path: `/esg` #### Get ESG Scores by Ticker ``` GET /esg/:ticker ``` **Path Params:** `ticker` (string, required). **Response:** Array of `{ category, score, grade, id }` covering esg, environment, social, governance, and controversy categories. **Sample Response:** ```json [ { "category": "esg", "score": 42.86, "grade": "BB", "id": "1" }, { "category": "social", "score": 40, "grade": "BB", "id": "5" }, { "category": "governance", "score": 31, "grade": "BB", "id": "6" }, { "category": "controversy", "score": 20, "grade": "B", "id": "3" }, { "category": "environment", "score": 57, "grade": "BBB", "id": "4" } ] ``` --- ### 17. Sentiment API Base path: `/sentiment` #### Get Social Media Sentiment ``` GET /sentiment/:ticker/social ``` **Path Params:** `ticker` (string, required). **Response:** `{ label, score, breakdown: { positive: { count, avgScore }, negative: { count, avgScore } } }`. **Sample Response:** ```json { "label": "NEGATIVE", "score": 0.99506558974584, "breakdown": { "positive": { "count": 145, "avgScore": 0.93158021569252 }, "negative": { "count": 436, "avgScore": 0.99506558974584 } } } ``` #### Get News Sentiment ``` GET /sentiment/:ticker/news ``` **Path Params:** `ticker` (string, required). **Response:** Same annotation structure as social sentiment. **Sample Response:** ```json { "label": "NEGATIVE", "score": 0.982357367873192, "breakdown": { "positive": { "count": 231, "avgScore": 0.903340172767639 }, "negative": { "count": 1292, "avgScore": 0.982357367873192 } } } ``` #### Get Analyst Sentiment ``` GET /sentiment/:ticker/analyst ``` **Path Params:** `ticker` (string, required). **Response:** `{ sentiment: "POSITIVE"|"NEGATIVE"|"NEUTRAL", score: float (0-1) }`. **Sample Response:** ```json { "sentiment": "NEGATIVE", "score": 0.31 } ``` --- ### 18. Company Web Traffic API Base path: `/web-traffic` #### Get Website Traffic ``` GET /web-traffic/:ticker/traffic ``` **Path Params:** `ticker` (string, required). **Response:** Object with traffic metrics, monthly trends, country breakdown, traffic sources/destinations, competitors, SEO keywords, backlinks. **Sample Response:** ```json { "traffic": { "visits": "704.64M", "change": "+11%", "pagesPerVisit": 3.33, "avgVisitDuration": "07:58", "bounceRate": "59.95%", "organicSearchTraffic": "983.17M", "organicSearchTrafficChange": "+4%", "paidSearchTraffic": "7.26M", "paidSearchTrafficChange": "+14%", "globalRank": 46, "globalRankLocation": "Worldwide", "countryRank": 38, "countryRankLocation": "United States", "visitsInt": 704640000, "changeNum": 11, "bounceRateNum": 59.95, "organicSearchTrafficInt": 983170000, "organicSearchTrafficChangeNum": 4, "paidSearchTrafficInt": 7260000, "paidSearchTrafficChangeNum": 14 }, "last3Months": [ { "displayValue": "704.64M", "rawValue": 704640000 }, { "displayValue": "635.76M", "rawValue": 635760000 }, { "displayValue": "849.72M", "rawValue": 849720000 } ], "trafficByCountry": [ { "country": "United States", "trafficShare": "34.84%", "traffic": "245.48M", "desktopShare": "40.03%", "mobileShare": "59.97%", "trafficShareNum": 34.84, "trafficInt": 245480000, "desktopShareNum": 40.03, "mobileShareNum": 59.97 } ], "trafficJourney": { "sources": [ { "name": "Direct", "share": "44.97%", "change": "+12.12%", "shareNum": 44.97, "changeNum": 12.12 }, { "name": "Google organic\u2022google.com", "share": "29.17%", "change": "+6.65%", "shareNum": 29.17, "changeNum": 6.65 } ], "destinations": [ { "name": "Chatgpt.com", "share": "7.43%", "change": "+19.24%", "shareNum": 7.43, "changeNum": 19.24 } ] }, "competitors": [ { "rank": "#1", "name": "google.com", "visits": "101.17B", "visitsInt": 101170000000 } ], "topKeywords": [ { "keyword": "gmail", "intent": "N", "position": 4, "volume": 55600000, "cpc": 1.64, "trafficPercent": "1.8%", "trafficPercentNum": 1.8 } ], "backlinks": { "authorityScore": 100, "referringDomains": "5.9M", "referringDomainsChange": "+2%", "backlinks": "6.56B", "backlinksChange": "+2%", "referringDomainsInt": 5900000, "referringDomainsChangeNum": 2, "backlinksInt": 6560000000, "backlinksChangeNum": 2 }, "site": "apple.com", "date": "2026-06-26T18:41:52.288Z" } ``` --- ## Notes All endpoints return JSON. Errors follow a consistent pattern: - **400 Bad Request:** `{ error: "message" }` (missing required params) - **404 Not Found:** `{ error: "Ticker not found" }` or similar - **500 Server Error:** `{ error: error.message }` Some endpoints use a **free tier restriction** (Stocks API only; enforces `market=america` for free users). The `usage` middleware tracks API usage counts against user plan limits on every endpoint. Caching is applied via `cacheMiddleware(ttl, prefix)` for select endpoints (TTL in minutes).