set and get now work trough endpoint api
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user