config: update config for new notification switches settings

This commit is contained in:
c9s 2022-09-19 19:32:16 +08:00
parent 4387b078c0
commit 3133d54957
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
16 changed files with 65 additions and 167 deletions

View File

@ -3,19 +3,10 @@ notifications:
slack:
defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error"
# if you want to route channel by symbol
symbolChannels:
"^BTC": "btc"
"^ETH": "eth"
"^BNB": "bnb"
# object routing rules
routing:
trade: "$symbol"
order: "$symbol"
submitOrder: "$session" # not supported yet
pnL: "bbgo-pnl"
switches:
trade: true
orderUpdate: true
submitOrder: true
sessions:
# binance:

View File

@ -4,17 +4,10 @@ notifications:
defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error"
# if you want to route channel by symbol
symbolChannels:
"^BTC": "btc"
"^ETH": "eth"
# object routing rules
routing:
trade: "$symbol"
order: "$symbol"
submitOrder: "$session" # not supported yet
pnL: "bbgo-pnl"
switches:
trade: true
orderUpdate: true
submitOrder: true
sessions:
binance:

View File

@ -3,6 +3,11 @@ notifications:
slack:
defaultChannel: "bbgo"
errorChannel: "bbgo-error"
switches:
trade: true
orderUpdate: true
submitOrder: true
exchangeStrategies:
- on: max

View File

@ -4,17 +4,10 @@ notifications:
defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error"
# if you want to route channel by symbol
symbolChannels:
"^BTC": "btc"
"^ETH": "eth"
# object routing rules
routing:
trade: "$symbol"
order: "$symbol"
submitOrder: "$session" # not supported yet
pnL: "bbgo-pnl"
switches:
trade: true
orderUpdate: true
submitOrder: true
sessions:
binance:

View File

@ -3,16 +3,10 @@ notifications:
slack:
defaultChannel: "bbgo"
errorChannel: "bbgo-error"
reportPnL:
- averageCostBySymbols:
- "BTCUSDT"
- "ETHUSDT"
- "BNBUSDT"
of: binance
when:
- "@daily"
- "@hourly"
switches:
trade: true
orderUpdate: true
submitOrder: true
sessions:
binance:

View File

@ -3,6 +3,10 @@ notifications:
slack:
defaultChannel: "bbgo"
errorChannel: "bbgo-error"
switches:
trade: true
orderUpdate: true
submitOrder: true
exchangeStrategies:
- on: max

View File

@ -4,18 +4,10 @@ notifications:
defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error"
# if you want to route channel by symbol
symbolChannels:
"^BTC": "btc"
"^ETH": "eth"
"^BNB": "bnb"
# object routing rules
routing:
trade: "$symbol"
order: "$symbol"
submitOrder: "$session" # not supported yet
pnL: "bbgo-pnl"
switches:
trade: true
orderUpdate: true
submitOrder: true
sessions:
binance_margin_linkusdt:

View File

@ -3,11 +3,10 @@ notifications:
slack:
defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error"
# object routing rules
routing:
trade: "$symbol"
order: "$symbol"
submitOrder: "$session" # not supported yet
switches:
trade: true
orderUpdate: true
submitOrder: true
sessions:
binance:

View File

@ -4,18 +4,10 @@ notifications:
defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error"
# if you want to route channel by symbol
symbolChannels:
"^BTC": "btc"
"^ETH": "eth"
"^BNB": "bnb"
# object routing rules
routing:
trade: "$symbol"
order: "$symbol"
submitOrder: "$session" # not supported yet
pnL: "bbgo-pnl"
switches:
trade: true
orderUpdate: true
submitOrder: true
sessions:
binance:

View File

@ -4,22 +4,10 @@ notifications:
defaultChannel: "dev-bbgo"
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:
trade: "$symbol"
order: "$slient"
submitOrder: "$slient"
pnL: "bbgo-pnl"
switches:
trade: true
orderUpdate: true
submitOrder: true
sessions:
max:

View File

@ -4,22 +4,10 @@ notifications:
defaultChannel: "dev-bbgo"
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:
trade: "$silent"
order: "$silent"
submitOrder: "$silent"
pnL: "bbgo-pnl"
switches:
trade: true
orderUpdate: true
submitOrder: true
persistence:
json:

View File

@ -4,22 +4,10 @@ notifications:
defaultChannel: "dev-bbgo"
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:
trade: "$symbol"
order: "$silent"
submitOrder: "$silent"
pnL: "bbgo-pnl"
switches:
trade: true
orderUpdate: true
submitOrder: true
reportPnL:
- averageCostBySymbols:

View File

@ -4,22 +4,10 @@ notifications:
defaultChannel: "dev-bbgo"
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:
trade: "$symbol"
order: "$silent"
submitOrder: "$silent"
pnL: "bbgo-pnl"
switches:
trade: true
orderUpdate: false
submitOrder: false
persistence:
json:

View File

@ -4,11 +4,10 @@ notifications:
defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error"
# routing rules
routing:
trade: "$silent"
order: "$silent"
submitOrder: "$silent"
switches:
trade: true
orderUpdate: false
submitOrder: false
persistence:
json:

View File

@ -4,22 +4,10 @@ notifications:
defaultChannel: "dev-bbgo"
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:
trade: "$symbol"
order: "$slient"
submitOrder: "$slient"
pnL: "bbgo-pnl"
switches:
trade: true
orderUpdate: true
submitOrder: true
sessions:
max:

View File

@ -4,14 +4,10 @@ notifications:
defaultChannel: "bbgo"
errorChannel: "bbgo-error"
reportPnL:
- averageCostBySymbols:
- "BTCUSDT"
- "BNBUSDT"
of: binance
when:
- "@daily"
- "@hourly"
switches:
trade: true
orderUpdate: true
submitOrder: true
sessions:
max: