// 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
}
