Documentation Index
Fetch the complete documentation index at: https://mintlify.com/theonetrade/backtest-monorepo-parallel/llms.txt
Use this file to discover all available pages before exploring further.
@pro/core exports a dependency-injection container built on di-kit’s createActivator('pro'), wiring every built-in service into a single typed object that is simultaneously exported as ioc and assigned to globalThis.core — so strategy files anywhere in the monorepo can access services without a single import statement.
createActivator(‘pro’)
The container is bootstrapped inpackages/core/src/lib/core/di.ts:
provide()
inject() first resolves the token.
A unique symbol from the
TYPES map that identifies the service.A zero-argument factory that constructs and returns the service instance.
inject()
The
TYPES symbol for the service you want to resolve.init()
init() is called automatically at the bottom of packages/core/src/lib/index.ts, after all inject() calls have registered the service references. You do not need to call it manually.TYPES
TYPES is the canonical symbol token map defined in packages/core/src/lib/core/types.ts. Each symbol is the lookup key used with provide() and inject().
Token for the
LoggerService singleton.Token for the
CandleDbService singleton.Token for the
ScraperService singleton.Token for the
ParserService singleton.Token for the
CryptoYodaScreenService singleton.ioc
ioc is the fully-typed service bag exported from packages/core/src/lib/index.ts. It is assembled by calling inject<T>() for each token, then spread into a single object.
General-purpose async logger. Defaults to a no-op implementation — call
setLogger() to activate.Mongoose-backed OHLCV candle store with atomic upsert support.
Telegram MTProto scraper for fetching a full day of channel messages.
Regex-based field extractor that maps raw Telegram messages to typed data.
Pre-built screener for the
crypto_yoda_channel Telegram signal channel.globalThis.core
After assemblingioc, packages/core/src/lib/index.ts assigns it to globalThis and declares the ambient type so TypeScript resolves it everywhere:
./content/ — can call services without any import:
@pro/core → packages/core/types.d.ts in the root tsconfig.json paths config, so IDE auto-complete and strict type checking work out of the box.