mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
interact: Remove status from strategy signature
This commit is contained in:
parent
1a13826505
commit
8c353421d8
|
@ -420,7 +420,8 @@ func getStrategySignature(strategy SingleExchangeStrategy) (string, error) {
|
|||
|
||||
for i := 0; i < rv.NumField(); i++ {
|
||||
field := rv.Field(i)
|
||||
if field.Kind() == reflect.String {
|
||||
fieldName := rv.Type().Field(i).Name
|
||||
if field.Kind() == reflect.String && fieldName != "Status" {
|
||||
str := field.String()
|
||||
if len(str) > 0 {
|
||||
signature += "." + field.String()
|
||||
|
|
Loading…
Reference in New Issue
Block a user