Market Data
polygon_market · Nodes · Market
Fetches market data from Polygon.
Fetches market data from Polygon.io API. Supports real-time quotes and historical candle data with flexible intervals.
Config:
connection- Polygon.io API key configurationoperation-"GetQuote"for current price or"GetCandles"for historical barsticker- Stock symbol (e.g.,"AAPL")interval- Candle interval:"1min","5min","15min","30min","1hour","1day","1week", or"1month"(candles only)lookback- Number of candles to fetch (candles only)retry- Retries up to 5 attempts by default; set Retry to Off to send once. Every request is a read (GET), sent again freely; a quote whose bid/ask or last trade still fails falls back to the previous close. See Retries
Input: None (all configuration is static) or override ticker via input field
Output: on data. For GetQuote, a quote object with symbol, bid, ask, last_price,
last_size, timestamp. For GetCandles, an array of bars — the shape the Technical
Indicators node consumes, so the two connect directly.
Example:
[Trigger] → [Polygon Market] (GetCandles)
→ [
{ "timestamp": "2024-01-15T10:00:00Z", "open": "248.5", "high": "251.2",
"low": "247.0", "close": "250.8", "volume": 52000000 }
]
Tips:
- Polygon free tier has a 5-year historical limit for most tickers
- Use
"1min"intervals for intraday strategies;"1day"for swing trading analysis - Timestamps are RFC 3339 strings; prices are strings, preserving decimal precision
- Combine with technical indicator nodes for complete analysis pipelines
Inputs
inputRequiredtickerOptionalconfigOptional
Outputs
data
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
connection | connection(polygon) | Yes | |
operation | enum(get_quote, get_candles) | No | |
ticker | string | No | |
interval | enum(1m, 5m, 15m, 1h, 1d) | No | |
lookback | number | No | |
retry | tagged_union | No | Sends a request again after a failure that passes: a rate limit, a busy server, a dropped connection. Off sends once. |
base_config | record | No | Shared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow). |