Skip to main content

tickers()

tickers(params?: { country?: string, exchange?: string }): Promise<ApiResponse>
Get list of available stock tickers.
params.country
string
Filter by country code
params.exchange
string
Filter by exchange code

Example

const tickers = await client.stocks.tickers({ exchange: 'NASDAQ' });

ticker()

ticker(ticker: string): Promise<ApiResponse>
Get detailed information for a specific stock ticker.
ticker
string
required
Stock ticker symbol (e.g., “AAPL”)

Example

const info = await client.stocks.ticker('AAPL');

prices()

prices(ticker: string, params?: { from?: string, to?: string, frame?: string }): Promise<ApiResponse>
Get historical price data for a stock.
ticker
string
required
Stock ticker symbol
params.from
string
Start date for price history
params.to
string
End date for price history
params.frame
string
Time frame (e.g., “1d”, “1h”)

Example

const prices = await client.stocks.prices('AAPL', {
  from: '2024-01-01',
  to: '2024-12-31',
  frame: '1d'
});