비트코인 가격 설정 및 위챗 푸시(교육)
3
Follow
1518
Followers
교수 전략:
코인 가격이 설정값보다 높거나 낮을 때 자동으로 메시지를 위챗으로 푸시합니다. 최소 푸시 간격을 설정할 수 있습니다.
코인 가격이 설정값보다 높거나 낮을 때 자동으로 메시지를 위챗 또는 텔레그램으로 푸시합니다. 최소 푸시 간격을 설정할 수 있습니다.
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

