add trade and position service
This commit is contained in:
@@ -54,7 +54,7 @@ type Trade struct {
|
||||
|
||||
func (r *AddTradeRequest) Validate() error {
|
||||
if r.Symbol == "" {
|
||||
return errors.New("empty SYmbol string")
|
||||
return errors.New("empty Symbol string")
|
||||
}
|
||||
if r.Shares <= 0 {
|
||||
return errors.New("shares must be a positive integer")
|
||||
|
||||
Reference in New Issue
Block a user