alt/services/worker/internal/storage/postgres/sqlc/models.go
toki 38b68315fc feat: backtest engine baseline implementation
- Add backtest proto definitions and generated code
- Update domain types for backtest results and fixtures
- Add PostgreSQL migrations for backtest tables
- Implement storage layer for backtest result persistence
- Add backtest job definitions and execution pipeline
- Remove obsolete agent-task documents for completed items
2026-05-30 12:13:45 +09:00

52 lines
1 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.27.0
package sqlc
import (
"github.com/jackc/pgx/v5/pgtype"
)
type BacktestResult struct {
RunID string
StartingCashCurrency string
StartingCashAmount pgtype.Numeric
EndingEquityCurrency string
EndingEquityAmount pgtype.Numeric
Trades []byte
Positions []byte
}
type BacktestRun struct {
ID string
StrategyID string
Market string
Timeframe string
FromTime pgtype.Timestamptz
ToTime pgtype.Timestamptz
Status string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type Bar struct {
InstrumentID string
Timeframe string
Timestamp pgtype.Timestamptz
Open pgtype.Numeric
High pgtype.Numeric
Low pgtype.Numeric
Close pgtype.Numeric
Volume pgtype.Numeric
}
type Instrument struct {
ID string
Market string
Venue string
Symbol string
Name string
Currency string
ProviderSymbols []byte
}