Live Quotes (Per Minute)
WSwss://socket.vantafin.com/v1/stocks
Subscribe to per-minute live quotes over the same WebSocket connection. Use channel LM.{ticker} or LM.* for all tickers. Each message delivers one minute quote per subscribed ticker during regular and extended hours on trading days. Lower message volume than per-second streams - a good default for charts, alerts and most real-time apps.
Use cases
- Live candlestick charts and intraday performance trackers
- Streaming watchlists with minute-level updates
- Alerting on minute closes or volume spikes
- Streaming dashboards that need lower message volume than per-second quotes
Subscribe
Send a subscribe message after connecting. Use LM.{ticker} (e.g. LM.AAPL) for a single symbol or LM.* for every symbol.
{
"action": "subscribe",
"params": "LM.AAPL"
}Message fields
| Field | Type | Description |
|---|---|---|
| type | string | Message type discriminator. |
| ticker | string | Ticker. |
| open | float | Opening price of the window. |
| high | float | Highest trade price in the window. |
| low | float | Lowest trade price in the window. |
| close | float | Closing price of the window. |
| volume | integer | Traded volume in the window. |
| timestamp | integer | Window timestamp, epoch milliseconds. |
from vantafin import WebSocketClient
ws = WebSocketClient("vf-live-your_api_key")
ws.connect()
ws.subscribe(["LM.AAPL"])
for message in ws:
print(message){
"type": "live_quote_minute",
"ticker": "AAPL",
"open": 189.02,
"high": 189.45,
"low": 188.9,
"close": 189.31,
"volume": 845000,
"timestamp": 1700000060000
}