doc: fix tg doc, needs no notification: block

This commit is contained in:
Andy Cheng 2021-12-13 11:43:05 +08:00
parent d847d223e3
commit 5a6ff7ebb7
2 changed files with 0 additions and 19 deletions

View File

@ -1,12 +1,4 @@
--- ---
notifications:
# object routing rules
routing:
trade: "$symbol"
order: "$symbol"
submitOrder: "$session" # not supported yet
pnL: "bbgo-pnl"
sessions: sessions:
binance: binance:
exchange: binance exchange: binance

View File

@ -26,17 +26,6 @@ TELEGRAM_BOT_AUTH_TOKEN=itsme55667788
The alerting strategies use Telegram bot notification without further configuration. You can check the [pricealert The alerting strategies use Telegram bot notification without further configuration. You can check the [pricealert
yaml file](../../config/pricealert-tg.yaml) in the `config/` directory for example. yaml file](../../config/pricealert-tg.yaml) in the `config/` directory for example.
If you want the order submitting/filling notification, add the following to your `bbgo.yaml`:
```yaml
notifications:
routing:
trade: "$symbol"
order: "$symbol"
submitOrder: "$session"
pnL: "bbgo-pnl"
```
Run your bbgo. Run your bbgo.
Open your Telegram app, search your bot `bbgo_bot_711222333` Open your Telegram app, search your bot `bbgo_bot_711222333`