Quotes
Use quotes for current or latest market data: price, change, volume, market state, quote type, exchange, and common valuation fields.
Python
import yfin
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
print(aapl.fast_info)
print(aapl.info["regularMarketPrice"])
TypeScript
import { Client } from "@yfin/sdk";
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
| Field | Use |
|---|---|
regularMarketPrice | Display the latest regular-market price. |
regularMarketChangePercent | Show daily percent movement. |
regularMarketVolume | Show current session volume. |
marketState | Label whether the market is open, closed, pre-market, or post-market. |
quoteType | Branch UI behavior by instrument type. |
See Financial Fields for more definitions.
Recommended Handling
- Batch symbols with
symbols=AAPL,MSFT,NVDAinstead 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.