changes to model

This commit is contained in:
samantha42
2026-03-26 08:39:42 +01:00
parent ff7b41e2a8
commit 3f878c1dc0
15 changed files with 119 additions and 195 deletions

View File

@@ -6,11 +6,13 @@ import (
)
type Position struct {
Company Company
Currency Currency
Weight float64
CostBasis float64
Shares int
CompanyID int
Symbol string
CurrencyCode string
CurrencyID int
Weight float64
CostBasis float64
Shares int
}
type TradeProduct int
@@ -31,13 +33,15 @@ const (
)
type Trade struct {
Ticker Company
Shares int
Product TradeProduct
Type TradeType
Price float64
Currency string
Date time.Time
CompanyID int
Symbol string
CurrencyID int
CurrencyCode string
Shares int
Product TradeProduct
Type TradeType
Price float64
Date time.Time
}
type AddTradeRequest struct {