Stocks API
The Stocks API provides comprehensive equity market data for publicly traded companies worldwide. This API supports multiple time frame aggregations. Essential for stock analysis, portfolio management, and trading strategy development.
/stocks/tickersRetrieves a comprehensive list of all available stock tickers with support for filtering by country and exchange.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| country | string | Optional | Filter tickers by listed market's region. view all values |
| exchange | string | Optional | Filter tickers by exchange. See Exchange Codes below for full list.view all values |
Examples:
https://api.axionquant.com/stocks/tickershttps://api.axionquant.com/stocks/tickers?country=america&exchange=NASDAQResponse Fields
id number
Unique identifier for the stock
name string
Full company name
ticker string
Stock ticker symbol (e.g., "MSFT", "AAPL")
symbol string
Full symbol with exchange prefix (e.g., "NASDAQ:MSFT")
exchange string
Exchange where stock is listed
market string
Market region (e.g., "america")
type string
Security type (e.g., common stock, preferred stock, dr)
All Stock Tickers
Request
1from axion import Axion
2client = Axion(api_key='axn_123')
3
4tickers = client.stocks.tickers(
5 country='america',
6 exchange='NASDAQ'
7)
8print(tickers)Response
[
{
"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"
},
{
"id": 4,
"name": "JFB Construction Holdings Class A",
"ticker": "JFB",
"symbol": "NASDAQ:JFB",
"exchange": "NASDAQ",
"market": "america",
"type": "common stock"
},
{
"id": 22,
"name": "Strive, Inc. Perf Pfd Registered Shs Series A",
"ticker": "SATA",
"symbol": "NASDAQ:SATA",
"exchange": "NASDAQ",
"market": "america",
"type": "preferred stock"
},
{
"id": 24,
"name": "Minth Group Limited Unsponsored ADR",
"ticker": "MNTHY",
"symbol": "OTC:MNTHY",
"exchange": "OTC",
"market": "america",
"type": "dr"
}
]/stocks/gainersRetrieves the top gaining stocks over a specified lookback period. Returns ticker symbols with their percentage change, sorted from highest gainer to lowest. Useful for identifying market momentum and trending securities.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| days | integer | Optional | Lookback period in days (default: 5) |
| limit | integer | Optional | Maximum number of results to return (default: 10) |
| market | string | Optional | Market filter (e.g., "america").view all values |
Examples:
https://api.axionquant.com/stocks/gainershttps://api.axionquant.com/stocks/gainers?days=30&limit=20Response Fields
ticker string
Stock ticker symbol
pctchange number
Percentage change over the lookback period
Stock Gainers
Request
1from axion import Axion
2client = Axion(api_key='axn_123')
3
4gainers = client.stocks.gainers(
5 days=5,
6 limit=10,
7 market='america'
8)
9print(gainers)Response
[
{
"ticker": "AAPL",
"pctchange": 2.345
},
{
"ticker": "MSFT",
"pctchange": 1.234
},
{
"ticker": "GOOGL",
"pctchange": 0.987
}
]/stocks/losersRetrieves the top losing stocks over a specified lookback period. Returns ticker symbols with their percentage change, sorted from most negative to least negative. Useful for identifying market weakness and potential reversals.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| days | integer | Optional | Lookback period in days (default: 5) |
| limit | integer | Optional | Maximum number of results to return (default: 10) |
| market | string | Optional | Market filter (e.g., "america").view all values |
Examples:
https://api.axionquant.com/stocks/losershttps://api.axionquant.com/stocks/losers?days=30&limit=20Response Fields
ticker string
Stock ticker symbol
pctchange number
Percentage change over the lookback period
Stock Losers
Request
1from axion import Axion
2client = Axion(api_key='axn_123')
3
4losers = client.stocks.losers(
5 days=5,
6 limit=10,
7 market='america'
8)
9print(losers)Response
[
{
"ticker": "TSLA",
"pctchange": -3.456
},
{
"ticker": "META",
"pctchange": -2.345
},
{
"ticker": "NFLX",
"pctchange": -1.234
}
]Stocks API
The Stocks API provides comprehensive equity market data for publicly traded companies worldwide. This API supports multiple time frame aggregations. Essential for stock analysis, portfolio management, and trading strategy development.
/stocks/:ticker/quoteRetrieves a comprehensive quote for a specific stock ticker. Returns the latest OHLC values, exponential moving averages (EMA30, EMA60, EMA90, EMA120), 52-week range statistics, year-to-date performance, and volume data for comprehensive market analysis.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| ticker | string | Required | Stock ticker symbol (e.g., "AAPL", "MSFT") |
Examples:
https://api.axionquant.com/stocks/AAPL/quotehttps://api.axionquant.com/stocks/MSFT/quoteResponse Fields
latestClose number
Most recent closing price
latestOpen number
Most recent opening price
latestHigh number
Most recent high price
latestLow number
Most recent low price
previousClose number
Previous closing price
week52Range object
52-week high/low range { high: number, low: number }
week52AvgClose number
Average closing price over the trailing 52 weeks
ema30 number
30-period exponential moving average
ema60 number
60-period exponential moving average
ema90 number
90-period exponential moving average
ema120 number
120-period exponential moving average
ytdClosePctChange number
Year-to-date closing price percentage change
volume number
Most recent trading volume
avgVolumeLifetime number
Lifetime average trading volume
Stock Quote
Request
1from axion import Axion
2client = Axion(api_key='axn_123')
3
4quote = client.stocks.quote('AAPL')
5print(quote)Response
{
"latestClose": 150.25,
"latestOpen": 151.1,
"latestHigh": 152.34,
"latestLow": 149.87,
"previousClose": 149.45,
"week52Range": {
"high": 180.12,
"low": 120.34
},
"week52AvgClose": 150.05,
"ema30": 152.12,
"ema60": 148.34,
"ema90": 145.56,
"ema120": 142.78,
"ytdClosePctChange": 2.345,
"volume": 50000000,
"avgVolumeLifetime": 45000000
}Stocks API
The Stocks API provides comprehensive equity market data for publicly traded companies worldwide. This API supports multiple time frame aggregations. Essential for stock analysis, portfolio management, and trading strategy development.
/stocks/:tickerRetrieves detailed metadata for a specific stock ticker.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| ticker | string | Required | Stock ticker symbol (e.g., "MSFT", "AAPL", "GOOGL") |
Examples:
https://api.axionquant.com/stocks/AAPLhttps://api.axionquant.com/stocks/MSFTResponse Fields
id number
Unique identifier for the stock
name string
Full company name
ticker string
Stock ticker symbol
symbol string
Full symbol with exchange prefix
exchange string
Exchange where stock is listed
market string
Market region (e.g., "america")
country string
Country of incorporation/listing
type string
Security type (e.g., common stock, preferred stock, dr)
sector string
Company sector classification
industry string
Company industry classification
currency string
Trading currency (e.g., USD)
lastClose number
Most recent closing price
changePct number
Percentage change since last close
Stock Ticker Details
Request
1from axion import Axion
2client = Axion(api_key='axn_123')
3
4ticker = client.stocks.ticker('AAPL')
5print(ticker)Response
{
"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
}