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: slack:
defaultChannel: "dev-bbgo" defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error" errorChannel: "bbgo-error"
switches:
# if you want to route channel by symbol trade: true
symbolChannels: orderUpdate: true
"^BTC": "btc" submitOrder: true
"^ETH": "eth"
"^BNB": "bnb"
# object routing rules
routing:
trade: "$symbol"
order: "$symbol"
submitOrder: "$session" # not supported yet
pnL: "bbgo-pnl"
sessions: sessions:
# binance: # binance:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,22 +4,10 @@ notifications:
defaultChannel: "dev-bbgo" defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error" errorChannel: "bbgo-error"
# if you want to route channel by symbol switches:
symbolChannels: trade: true
"^BTC": "btc" orderUpdate: true
"^ETH": "eth" submitOrder: true
# 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"
sessions: sessions:
max: max:

View File

@ -4,22 +4,10 @@ notifications:
defaultChannel: "dev-bbgo" defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error" errorChannel: "bbgo-error"
# if you want to route channel by symbol switches:
symbolChannels: trade: true
"^BTC": "btc" orderUpdate: true
"^ETH": "eth" submitOrder: true
# 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"
persistence: persistence:
json: json:

View File

@ -4,22 +4,10 @@ notifications:
defaultChannel: "dev-bbgo" defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error" errorChannel: "bbgo-error"
# if you want to route channel by symbol switches:
symbolChannels: trade: true
"^BTC": "btc" orderUpdate: true
"^ETH": "eth" submitOrder: true
# 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"
reportPnL: reportPnL:
- averageCostBySymbols: - averageCostBySymbols:

View File

@ -4,22 +4,10 @@ notifications:
defaultChannel: "dev-bbgo" defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error" errorChannel: "bbgo-error"
# if you want to route channel by symbol switches:
symbolChannels: trade: true
"^BTC": "btc" orderUpdate: false
"^ETH": "eth" submitOrder: false
# 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"
persistence: persistence:
json: json:

View File

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

View File

@ -4,22 +4,10 @@ notifications:
defaultChannel: "dev-bbgo" defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error" errorChannel: "bbgo-error"
# if you want to route channel by symbol switches:
symbolChannels: trade: true
"^BTC": "btc" orderUpdate: true
"^ETH": "eth" submitOrder: true
# 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"
sessions: sessions:
max: max:

View File

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