mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-13 02:23:51 +00:00
exchange: adjust tests for order fee-amount protection
This commit is contained in:
parent
76489873ee
commit
d76245cb43
|
@ -82,16 +82,25 @@ func TestLoadConfig(t *testing.T) {
|
||||||
assert.Equal(t, map[string]interface{}{
|
assert.Equal(t, map[string]interface{}{
|
||||||
"sessions": map[string]interface{}{
|
"sessions": map[string]interface{}{
|
||||||
"max": map[string]interface{}{
|
"max": map[string]interface{}{
|
||||||
"exchange": "max",
|
"exchange": "max",
|
||||||
"envVarPrefix": "MAX",
|
"envVarPrefix": "MAX",
|
||||||
"takerFeeRate": 0.,
|
"takerFeeRate": 0.,
|
||||||
"makerFeeRate": 0.,
|
"makerFeeRate": 0.,
|
||||||
|
"modifyOrderAmountForFee": false,
|
||||||
},
|
},
|
||||||
"binance": map[string]interface{}{
|
"binance": map[string]interface{}{
|
||||||
"exchange": "binance",
|
"exchange": "binance",
|
||||||
"envVarPrefix": "BINANCE",
|
"envVarPrefix": "BINANCE",
|
||||||
"takerFeeRate": 0.,
|
"takerFeeRate": 0.,
|
||||||
"makerFeeRate": 0.,
|
"makerFeeRate": 0.,
|
||||||
|
"modifyOrderAmountForFee": false,
|
||||||
|
},
|
||||||
|
"ftx": map[string]interface{}{
|
||||||
|
"exchange": "ftx",
|
||||||
|
"envVarPrefix": "FTX",
|
||||||
|
"takerFeeRate": 0.,
|
||||||
|
"makerFeeRate": 0.,
|
||||||
|
"modifyOrderAmountForFee": true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"build": map[string]interface{}{
|
"build": map[string]interface{}{
|
||||||
|
|
8
pkg/bbgo/testdata/strategy.yaml
vendored
8
pkg/bbgo/testdata/strategy.yaml
vendored
|
@ -5,11 +5,19 @@ sessions:
|
||||||
envVarPrefix: MAX
|
envVarPrefix: MAX
|
||||||
takerFeeRate: 0
|
takerFeeRate: 0
|
||||||
makerFeeRate: 0
|
makerFeeRate: 0
|
||||||
|
modifyOrderAmountForFee: false
|
||||||
binance:
|
binance:
|
||||||
exchange: binance
|
exchange: binance
|
||||||
envVarPrefix: BINANCE
|
envVarPrefix: BINANCE
|
||||||
takerFeeRate: 0
|
takerFeeRate: 0
|
||||||
makerFeeRate: 0
|
makerFeeRate: 0
|
||||||
|
modifyOrderAmountForFee: false
|
||||||
|
ftx:
|
||||||
|
exchange: ftx
|
||||||
|
envVarPrefix: FTX
|
||||||
|
takerFeeRate: 0
|
||||||
|
makerFeeRate: 0
|
||||||
|
modifyOrderAmountForFee: true
|
||||||
|
|
||||||
exchangeStrategies:
|
exchangeStrategies:
|
||||||
- on: ["binance"]
|
- on: ["binance"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user