alleyway / add-tradingview-alerts-tool

Automated entry of TradingView alerts for bot trading tools such as 3Commas, Alertatron, CryptoHopper, etc.
MIT License
632 stars 140 forks source link

Message for Cryptohopper #116

Closed felix-lessoer closed 2 years ago

felix-lessoer commented 2 years ago

Hello,

it looks like the message for Cryptohopper is not a json object like for the others. Its more like key:value which are separated by new lines. However the new line chars that I've put in the config are not reflected in the actual message in the alert. Is there a way to keep the new line chars in message?

Thanks

felix-lessoer commented 2 years ago

I've got it working. For reference: To keep the linebreaks you need to replace > sign with | in the config.yaml

  message: |
    hopper_id:99999
    coin:{{instrument}}
    action:buy