工具 API
capture_ realtime_ ws
Capture real-time streaming market data via WebSocket for a fixed time window. Use when the user needs live tick-by-tick prices, real-time trades, bid/ask quotes, or streaming forex/crypto rates. Connects to EODHD WebSocket feeds, subscribes to specified symbols, collects messages for the given duration, then returns all captured data at once. Unlike get_live_price_data (REST snapshot), this streams continuous updates. For a single REST-based price snapshot, use get_live_price_data instead. For historical tick-level trade data (not real-time), use get_us_tick_data.
调用信息
- 工具标识
- eodhd.capture_realtime_ws
- 服务提供方
- EODHD
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
feed必填One of {'us_trades','us_quotes','us_candles','us_status', 'eu_trades','eu_quotes','eu_candles','eu_status','forex','crypto'}.
symbols必填Single or comma-separated symbols, or a list. US equities use plain tickers ('AAPL'); European equities use TICKER.EXCHANGE ('GSK.LSE'). For a European dual-class ticker the un-hyphenated alias is accepted too, and the reply always reports the canonical hyphenated form in 's'. Returns:
duration_secondsinteger
api_token—
max_messages—
ping_intervalnumber
ping_timeoutnumber
connect_timeoutnumber
max_data_bytesinteger