doc: notes about tg notification settings in bbgo.yaml

This commit is contained in:
Andy Cheng 2021-12-09 20:27:12 +08:00
parent 8fdd8873c8
commit dc8ce96fa9

View File

@ -23,6 +23,20 @@ you can set `TELEGRAM_AUTH_TOKEN` in the `.env.local` file, e.g.,
TELEGRAM_BOT_AUTH_TOKEN=itsme55667788
```
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.
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.
Open your Telegram app, search your bot `bbgo_bot_711222333`