Skip to main content

Quotes

Use quotes for current or latest market data: price, change, volume, market state, quote type, exchange, and common valuation fields.

Python

import yfin

client = yfin.Client(contact="[email protected]")
quote = client.quote(["AAPL", "MSFT", "NVDA"])

for item in quote["data"]["quoteResponse"]["result"]:
print(item["symbol"], item.get("regularMarketPrice"))

For yfinance-shaped code:

import yfin as yf

aapl = yf.Ticker("AAPL", contact="[email protected]")
print(aapl.fast_info)
print(aapl.info["regularMarketPrice"])

TypeScript

import { Client } from "@yfin/sdk";

const client = new Client({ contact: "[email protected]" });
const quote = await client.quote(["AAPL", "MSFT", "NVDA"]);

for (const item of quote.data?.quoteResponse?.result ?? []) {
console.log(item.symbol, item.regularMarketPrice);
}

REST

curl "https://api.yfin.dev/v1/quote?symbols=AAPL,MSFT,NVDA" \
-H "X-Yfin-Contact: [email protected]"

Common Fields

FieldUse
regularMarketPriceDisplay the latest regular-market price.
regularMarketChangePercentShow daily percent movement.
regularMarketVolumeShow current session volume.
marketStateLabel whether the market is open, closed, pre-market, or post-market.
quoteTypeBranch UI behavior by instrument type.

See Financial Fields for more definitions.

  • Batch symbols with symbols=AAPL,MSFT,NVDA instead of making one request per symbol.
  • Search user-entered text before quoting if the input is not already a ticker.
  • Handle missing optional fields for ETFs, indexes, crypto, FX, and international listings.
  • Use Rate Limits when sizing polling or refresh behavior.