mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-16 07:26:47 +00:00
* 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
21 lines
687 B
Go
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
|
|
}`)
|