mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
add baseQuantity
This commit is contained in:
parent
2fbf19455e
commit
8cc5db7506
|
@ -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)
|
||||||
|
|
1
pkg/loader/testdata/strategy.yaml
vendored
1
pkg/loader/testdata/strategy.yaml
vendored
|
@ -3,4 +3,5 @@ exchangeStrategies:
|
||||||
- buyandhold:
|
- buyandhold:
|
||||||
symbol: "BTCUSDT"
|
symbol: "BTCUSDT"
|
||||||
interval: "1m"
|
interval: "1m"
|
||||||
|
baseQuantity: 0.1
|
||||||
minDropPercentage: -0.05
|
minDropPercentage: -0.05
|
||||||
|
|
Loading…
Reference in New Issue
Block a user