Files
gocryptotrader/config/versions/v5/defaults.go
Gareth Kirwan 563ae7883b Config: Eliminate shared config version package vars (#1867)
* Config: Replace consts for Version2 from/to

Could have moved them to v2/consts.go but doesn't seem enough RoI

* Config: Use generic error in Version4

* Config: Fix Version5 pkg vars

* Config: Fix Version6 test func names and shared test var
2025-04-01 19:51:38 +11:00

21 lines
687 B
Go

package v5
import (
"strconv"
"time"
)
// DefaultFuturesTrackingSeekDuration contains the default futures tracking seek duration
// Note: Do not be tempted to use an external package constant for Duration; This is the value at v5 only
var DefaultFuturesTrackingSeekDuration = strconv.FormatInt(int64(time.Hour)*24*365, 10)
// DefaultOrderbookConfig contains the stateless V5 representation of orderbookManager
var DefaultOrderbookConfig = []byte(`{
"enabled": true,
"verbose": false,
"activelyTrackFuturesPositions": true,
"futuresTrackingSeekDuration": ` + DefaultFuturesTrackingSeekDuration + `,
"cancelOrdersOnShutdown": false,
"respectOrderHistoryLimits": true
}`)