app

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2026 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DailyBarStorage

type DailyBarStorage struct {
	Reader daily.ReadRepository
	Writer daily.WriteRepository
}

type DailyServices

type DailyServices struct {
	Reader    daily.ReadService
	Collector daily.Service
}

type Handlers

type Handlers struct {
	Backtest     handler.Backtest
	Compositions handler.Composition
	Daily        handler.Daily
	Index        handler.Index
	Financials   handler.Financials
	Instruments  handler.Instrument
	Intraday     handler.Intraday
	Migration    handler.Migration
	Orderbooks   handler.Orderbook
	Quotes       handler.Quote
	Strategy     handler.Strategy
	Trades       handler.Trades
}

type IndexBarStorage

type IndexBarStorage struct {
	Reader indexservice.ReadRepository
	Writer indexservice.WriteRepository
}

type IndexServices

type IndexServices struct {
	Reader    indexservice.ReadService
	Collector indexservice.Service
}

type Options

type Options struct {
	Database             string
	ProviderAuthDatabase string
	Market               provider.Market
	ProviderID           provider.ProviderID
	PreferProvider       provider.ProviderID
	ProviderConfig       provider.Config
	ActivateProviders    bool
}

type ProviderRuntime

type ProviderRuntime struct {
	Registry     *provider.Registry
	Router       *provider.Router
	Compositions composition.Router
	DailyBars    dailybar.Router
	IndexBars    indexbar.Router
	Financials   financials.Router
	Quotes       quote.Router
	Instruments  instrument.Router
	Intraday     intradaybar.Router
	Orderbooks   orderbook.Router
	Trades       trades.Router
}

type Runtime

type Runtime struct {
	Storage   StorageRuntime
	Providers ProviderRuntime
	Services  ServiceRuntime
	Handlers  Handlers
}

func NewRuntime

func NewRuntime(opts Options) (*Runtime, error)

func NewRuntimeWithProviderBuilders

func NewRuntimeWithProviderBuilders(opts Options, builders ...provider.ProviderBuilder) (*Runtime, error)

func (*Runtime) Close

func (r *Runtime) Close() error

type StorageRuntime

type StorageRuntime struct {
	Database             *storage.Database
	ProviderAuthDatabase *providerauth.Database
	Compositions         compositionservice.Repository
	DailyBars            DailyBarStorage
	IndexBars            IndexBarStorage
	Instruments          instrumentservice.Repository
	Migrations           migrationcore.Store
	Strategies           strategyservice.Repository
	BacktestStrategies   backtestservice.StrategyRepository
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL