mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
xfunding: check spotSession, futuresSession names
This commit is contained in:
parent
d6c430a4b4
commit
e607fc19ac
|
@ -128,6 +128,14 @@ func (s *Strategy) Validate() error {
|
|||
return errors.New("symbol is required")
|
||||
}
|
||||
|
||||
if len(s.SpotSession) == 0 {
|
||||
return errors.New("spotSession name is required")
|
||||
}
|
||||
|
||||
if len(s.FuturesSession) == 0 {
|
||||
return errors.New("futuresSession name is required")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user