xdepthmaker: update instance id format

This commit is contained in:
c9s 2023-12-20 22:20:40 +08:00
parent eb36ed6926
commit 58321e8aa5
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -218,7 +218,7 @@ func (s *Strategy) ID() string {
}
func (s *Strategy) InstanceID() string {
return fmt.Sprintf("%s:%s", ID, s.Symbol)
return fmt.Sprintf("%s:%s:%s-%s", ID, s.Symbol, s.MakerExchange, s.HedgeExchange)
}
func (s *Strategy) Initialize() error {