- Add asset_type column to instrument table (migration 000003) - Extend market domain types with asset_type and related fields - Update proto definitions for common and market messages - Regenerate Dart and Go protobuf code - Add shared query surface for US market data - Add KIS US daily itemchartprice provider and tests - Update backtest and operator components for US market support - Update socket market mapping for new asset types - Move paper-trading-command-workflow to archive - Add agent-task for m-us-market-expansion (subtasks 02+01, 03+01, 04+02,03)
56 lines
1.2 KiB
Go
56 lines
1.2 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
|
|
AssetType string
|
|
}
|