mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 08:15:15 +00:00
doc: notes about tg notification settings in bbgo.yaml
This commit is contained in:
parent
8fdd8873c8
commit
dc8ce96fa9
|
@ -22,6 +22,20 @@ you can set `TELEGRAM_AUTH_TOKEN` in the `.env.local` file, e.g.,
|
||||||
```sh
|
```sh
|
||||||
TELEGRAM_BOT_AUTH_TOKEN=itsme55667788
|
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.
|
Run your bbgo.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user