@adaptic/utils 0.0.964 → 0.0.965

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2185,7 +2185,18 @@ const log$l = (message, options = { type: "info" }) => {
2185
2185
  };
2186
2186
  // Default settings for market data API
2187
2187
  const DEFAULT_ADJUSTMENT = "all";
2188
- const DEFAULT_FEED$1 = "sip";
2188
+ // Data feed tier. SIP is full US-market-consolidated feed (requires a paid
2189
+ // Alpaca market-data subscription). IEX is the free tier — single-exchange,
2190
+ // delayed. Engine deploys running on IEX-only accounts hit chronic HTTP 403
2191
+ // ("subscription does not permit querying recent SIP data") at ~100/min when
2192
+ // this defaulted to "sip", which saturated Railway's per-replica log ingest
2193
+ // and hid steady-state signal. The ALPACA_MARKET_DATA_FEED env var overrides
2194
+ // the default. Fall back to "iex" so the free tier is safe by default; LIVE
2195
+ // deployments with SIP entitlements set ALPACA_MARKET_DATA_FEED=sip in their
2196
+ // environment to restore full data access. Per-call overrides (the optional
2197
+ // `feed` argument on getOptions*/getLatestBars/etc.) still win.
2198
+ const DEFAULT_FEED$1 = (process.env.ALPACA_MARKET_DATA_FEED ||
2199
+ "iex");
2189
2200
  const DEFAULT_CURRENCY$1 = "USD";
2190
2201
  /**
2191
2202
  * Singleton class for interacting with Alpaca Market Data API