set and get now work trough endpoint api

This commit is contained in:
zipfriis
2026-03-25 17:44:04 +01:00
parent b9f462f5be
commit e056d8a37e
7 changed files with 82 additions and 18 deletions

View File

@@ -41,13 +41,13 @@ type Trade struct {
}
type AddTradeRequest struct {
TickerId int
Shares int
Product int
Type bool
Price float64
Currency string
Date time.Time
TickerId int `json:"ticker_id"`
Shares int `json:"shares"`
Product int `json:"product"`
Type bool `json:"type"`
Price float64 `json:"price"`
Currency string `json:"currency"`
Date time.Time `json:"date"`
}
func (r *AddTradeRequest) Validate() error {