@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.cjs CHANGED
@@ -2187,7 +2187,18 @@ const log$l = (message, options = { type: "info" }) => {
2187
2187
  };
2188
2188
  // Default settings for market data API
2189
2189
  const DEFAULT_ADJUSTMENT = "all";
2190
- const DEFAULT_FEED$1 = "sip";
2190
+ // Data feed tier. SIP is full US-market-consolidated feed (requires a paid
2191
+ // Alpaca market-data subscription). IEX is the free tier — single-exchange,
2192
+ // delayed. Engine deploys running on IEX-only accounts hit chronic HTTP 403
2193
+ // ("subscription does not permit querying recent SIP data") at ~100/min when
2194
+ // this defaulted to "sip", which saturated Railway's per-replica log ingest
2195
+ // and hid steady-state signal. The ALPACA_MARKET_DATA_FEED env var overrides
2196
+ // the default. Fall back to "iex" so the free tier is safe by default; LIVE
2197
+ // deployments with SIP entitlements set ALPACA_MARKET_DATA_FEED=sip in their
2198
+ // environment to restore full data access. Per-call overrides (the optional
2199
+ // `feed` argument on getOptions*/getLatestBars/etc.) still win.
2200
+ const DEFAULT_FEED$1 = (process.env.ALPACA_MARKET_DATA_FEED ||
2201
+ "iex");
2191
2202
  const DEFAULT_CURRENCY$1 = "USD";
2192
2203
  /**
2193
2204
  * Singleton class for interacting with Alpaca Market Data API