config: clean up xmaker config

This commit is contained in:
c9s 2022-01-01 01:06:08 +08:00
parent abc7dc0a2b
commit 1652c17e33

View File

@ -4,31 +4,11 @@ notifications:
defaultChannel: "dev-bbgo" defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error" errorChannel: "bbgo-error"
# if you want to route channel by symbol
symbolChannels:
"^BTC": "btc"
"^ETH": "eth"
# if you want to route channel by exchange session
sessionChannels:
max: "bbgo-max"
binance: "bbgo-binance"
# routing rules # routing rules
routing: routing:
trade: "$symbol" trade: "$silent"
order: "$silent" order: "$silent"
submitOrder: "$silent" submitOrder: "$silent"
pnL: "bbgo-pnl"
reportPnL:
- averageCostBySymbols:
- "BTCUSDT"
- "BNBUSDT"
of: binance
when:
- "@daily"
- "@hourly"
persistence: persistence:
json: json:
@ -59,10 +39,11 @@ crossExchangeStrategies:
# disableHedge: true # disableHedge: true
hedgeInterval: 10s hedgeInterval: 10s
notifyTrade: true
margin: 0.004 margin: 0.004
askMargin: 0.004 askMargin: 0.4%
bidMargin: 0.004 bidMargin: 0.4%
quantity: 0.001 quantity: 0.001
quantityMultiplier: 2 quantityMultiplier: 2