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>
18 lines
584 B
C#
18 lines
584 B
C#
using Anubis.Server;
|
|
|
|
// "anubis db export <folder>" and "anubis db import <folder>" (SPEC 5.4) run with the engine stopped; anything else starts the server.
|
|
if (args.Length >= 1 && args[0] == "db")
|
|
{
|
|
return await DatabaseCommand.RunAsync(args[1..]).ConfigureAwait(false);
|
|
}
|
|
|
|
// "anubis data report|binance|csv": the data quality report and the research imports (Phase 2).
|
|
if (args.Length >= 1 && args[0] == "data")
|
|
{
|
|
return await DataCommand.RunAsync(args[1..]).ConfigureAwait(false);
|
|
}
|
|
|
|
var app = ServerApp.Build(args);
|
|
await app.RunAsync().ConfigureAwait(false);
|
|
return 0;
|