alt/services/worker/internal/storage/postgres/sqlc/models.go
toki 9efc0a68dc feat: backtest analysis surface implementation
- Add backtest analysis results migration (000002)
- Update backtest proto definitions and generated code
- Extend backtest domain types and engine
- Add parser map for backtest analysis
- Update storage layer with backtest analysis queries and keys
- Add client contract tests and generated code
- Add m-backtest-analysis-surface task documentation
2026-05-30 14:43:40 +09:00

55 lines
1.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
TotalReturn pgtype.Numeric
TradeCount int32
EquityCurve []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
}