add baseQuantity

This commit is contained in:
c9s 2020-10-20 14:14:21 +08:00
parent 2fbf19455e
commit 8cc5db7506
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ func TestLoadStrategies(t *testing.T) {
length: 1, length: 1,
}, },
} }
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
strategies, err := LoadExchangeStrategies(tt.args.configFile) strategies, err := LoadExchangeStrategies(tt.args.configFile)

View File

@ -3,4 +3,5 @@ exchangeStrategies:
- buyandhold: - buyandhold:
symbol: "BTCUSDT" symbol: "BTCUSDT"
interval: "1m" interval: "1m"
baseQuantity: 0.1
minDropPercentage: -0.05 minDropPercentage: -0.05