From dc8ce96fa939b568b65181e7d4970603a4fdae59 Mon Sep 17 00:00:00 2001 From: Andy Cheng Date: Thu, 9 Dec 2021 20:27:12 +0800 Subject: [PATCH] doc: notes about tg notification settings in bbgo.yaml --- doc/configuration/telegram.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/configuration/telegram.md b/doc/configuration/telegram.md index 5788d489c..e9650e188 100644 --- a/doc/configuration/telegram.md +++ b/doc/configuration/telegram.md @@ -22,6 +22,20 @@ you can set `TELEGRAM_AUTH_TOKEN` in the `.env.local` file, e.g., ```sh 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.