MarketDataService wires the collector, the reference sources, the universes and the corporate actions into the scheduler. Short jobs (rates, calendar, mood, spread samples, corporate actions) run on their schedule; long downloads (catalogues, the first history, thousands of stocks, the Binance archives) run on a background worker the jobs only wake, so they never delay the backup or each other. The live crypto feed follows the crypto universe, or BTC, ETH and SOL until one exists. Alpaca uses only the paper account keys; without them the stock part is off and the sources list says why. Market data is off in demo mode, with ANUBIS_MARKET_DATA=off, and in tests that bring no fake network. New: GET /api/data/quality (JSON or Markdown) and /api/data/sources, and "anubis data report|binance|csv" on the command line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
49ed73e6f6
commit
1e71038209
10 files changed
+898
-6
No files matched your search
@@ -67,4 +67,12 @@ internal sealed record ServerOverrides
|
||||
|
||||
/// <summary>How often the database is checked while running and retried while it is missing.</summary>
|
||||
public TimeSpan? DatabaseCheckInterval { get; init; }
|
||||
|
||||
/// <summary>False turns market data off (tests without network); null follows demo mode and ANUBIS_MARKET_DATA.</summary>
|
||||
public bool? MarketData { get; init; }
|
||||
|
||||
/// <summary>Answers the market data requests instead of the network (tests).</summary>
|
||||
public HttpMessageHandler? MarketHttp { get; init; }
|
||||
|
||||
public Func<Anubis.Brokers.IWebSocketTransport>? MarketSockets { get; init; }
|
||||
}
|
||||
Reference in new issue
Block a user