Last Price
Returns the most recent traded price for stocks, ETFs, indices, options, mutual funds, crypto, and forex.
Supported Symbol Formats
| Type | Format | Example |
|---|---|---|
| US Stocks | SYMBOL | AAPL, MSFT |
| ETFs | SYMBOL | SPY, QQQ |
| Indices | ^SYMBOL | ^SPX, ^VIX |
| Crypto | SYMBOL-USD | BTC-USD, ETH-USD |
| Forex | SYMBOL=X | EURUSD=X |
| Canadian | SYMBOL:CA | SHOP:CA |
| Options | OCC Symbol | AAPL240315C00170000 |
Notes
- Prices are typically delayed 15 minutes
- For real-time streaming prices, use
QM_Stream_Last() - Returns "NA" if the symbol is invalid or data is unavailable
Examples
When to Use
- Quick price lookup for any symbol
- Portfolio valuation spreadsheets
- Building watchlists and dashboards
- Price input for calculations
When NOT to Use
| Scenario | Use Instead |
|---|---|
| Real-time streaming | QM_Stream_Last() |
| Historical price on date | Close_Historical() |
| Previous day's close | PreviousClose() |
| Pre-market price | QM_Stream_PreMarketLast() |
Common Issues & FAQ
Q: Why am I getting "NA"? A: Check symbol format:
- Canadian stocks need
:CAsuffix - Crypto needs
-USDsuffix - Indices need
^prefix - Forex needs
=Xsuffix
Q: How do I get real-time prices?
A: Use QM_Stream_Last() for streaming updates.
