Push the price information to telegram
3
Follow
1503
Followers
教学策略:
当币价高于或低于设定值后,自动推送一条消息到微信。可设定最小推送间隔。
When the price of the currency is higher or lower than the set value, a message is automatically pushed to WeChat or telegram. The minimum push interval can be set.
Source
JavaScript
/*
This stragegy will sent a message to your telegram when the price is higher or lower than
the set price.
All stragegy must has a main function as the entrance.
*/
function main() {
//change symbol,will cover the default exchange which was set when start a bot.Currency is a strategy arguments
exchange.IO("currency", Currency)
var lastPushTime = 0 //the variable of last push timestamp.
while(true){ //run a infinite loop, which is the basic structureStrategy parameters
Related strategies
Comment
All comments (4)
- 1

