diff --git a/config/fixedmaker.yaml b/config/fixedmaker.yaml index 98f213029..63d3ee058 100644 --- a/config/fixedmaker.yaml +++ b/config/fixedmaker.yaml @@ -1,10 +1,27 @@ --- +backtest: + startTime: "2023-01-01" + endTime: "2023-05-31" + symbols: + - USDCUSDT + sessions: + - max + accounts: + max: + balances: + USDC: 500.0 + USDT: 500.0 + exchangeStrategies: - on: max fixedmaker: - symbol: BTCUSDT + symbol: USDCUSDT interval: 5m halfSpread: 0.05% - quantity: 0.005 + quantity: 15 orderType: LIMIT_MAKER - dryRun: true + dryRun: false + + positionHardLimit: 1500 + maxPositionQuantity: 1500 + circuitBreakLossThreshold: -0.15 diff --git a/pkg/strategy/fixedmaker/strategy.go b/pkg/strategy/fixedmaker/strategy.go index 28de0a917..08a7267c6 100644 --- a/pkg/strategy/fixedmaker/strategy.go +++ b/pkg/strategy/fixedmaker/strategy.go @@ -64,7 +64,7 @@ func (s *Strategy) Validate() error { } if s.HalfSpread.Float64() <= 0 { - return fmt.Errorf("halfSpreadRatio should be positive") + return fmt.Errorf("halfSpread should be positive") } return nil }