Skip to content

Publish trades to a Telegram channel#

Overview#

With CopyFactory you can publish strategy trades to a Telegram channel

In order to publish your strategy trades to a Telegram channel, please:

  1. Create telegram bot via BotFather (see this doc).
  2. Make your bot an administrator of the channel you are going to publish the trades to.
  3. Configure your CopyFactory strategy to publish trades via Telegram (see below).

Configuration schema is defined in StrategyTelegramSettings model.

Example (strategy)#

{
  "name": "Strategy",
  ...
  "telegram": {
    "publishing": {
      "token": "your-bot-api-token",
      "chatId": "@myPublicChannel",
      "template": "FxTrader: ${description}"
    }
  },
  ...
}

The settings below will generate following Telegram signals:

FxTrader: Open order #+aFc8 buy limit 0.01 EURUSD @1.2345, TP 1.4567
FxTrader: Modify order #+aFc8 buy limit 0.01 EURUSD @1.2345, SL 1.2345
FxTrader: Remove order #+aFc8