This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| KERNEL_VERSION=$(echo `uname -r` | sed 's/\(.*\)-boot2docker/\1/') | |
| MAKE="--workdir=/linux-kernel --rm -v /usr/src:/usr/src -v /lib/modules:/lib/modules -v /linux-kernel:/linux-kernel ivotron/alpine-build-base make" | |
| rm -r /linux-kernel | |
| cd /c/Users/Kristy/tmp | |
| curl https://www.kernel.org/pub/linux/kernel/v${KERNEL_VERSION%%.*}.x/linux-$KERNEL_VERSION.tar.gz | tar -C / -xz | |
| cd / | |
| mv /linux-* /linux-kernel/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime | |
| import email | |
| import imaplib | |
| import time | |
| import logging | |
| def readmail(volume): | |
| time.sleep(1.5) | |
| m = imaplib.IMAP4_SSL("imap.gmail.com") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def generate_nonce(length=8): | |
| """Generate pseudorandom number.""" | |
| return ''.join([str(random.randint(0, 9)) for i in range(length)]) | |
| def trade(signal,volume,pair): | |
| try: | |
| trade = 'TRADE|OPEN|' + signal + '|' + pair + '|0|0|0|IcarusBot Trade|' + generate_nonce() + '|' + volume | |
| s.send_string(trade, encoding='utf-8') | |
| print("Waiting for metatrader to respond...") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from telegram.ext import (Updater, CommandHandler, RegexHandler, ConversationHandler) | |
| def tele(direction, pair, bot, update): | |
| update.message.reply_text( | |
| "Signal Detected by IcarusBot: " + direction + " on " + pair) | |
| return SIGNALS | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from telegram.ext import (Updater, CommandHandler, RegexHandler, ConversationHandler) | |
| def tele(direction, pair, bot, update): | |
| update.message.reply_text( | |
| "Signal Detected by IcarusBot: " + direction + " on " + pair) | |
| return SIGNALS | |
| bots = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def start(bot, update): | |
| bots.append(bot) | |
| updates.append(update) | |
| update.message.reply_text( | |
| "Hi. I'm IcarusBot. I'm waiting for your input!") | |
| return SIGNALS | |
| def cancel(bot, update): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def main(): | |
| try: | |
| print("Listening to Telegram Channel...") | |
| updater = Updater(token) | |
| dp = updater.dispatcher | |
| conv_handler = ConversationHandler( | |
| entry_points=[CommandHandler('start', start)], | |
| states={ | |
| SIGNALS: [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import email, imaplib | |
| import random | |
| import datetime, time | |
| import logging | |
| import json | |
| import threading | |
| SIGNALS = range(4) | |
| with open('config.json') as json_data_file: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Buy on ETHBTC at 0.03365400 | |
| Buy on LTCBTC at 0.00868200 | |
| Sell On BNBBTC at 0.00151120 | |
| Sell On NEOBTC at 0.00272400 | |
| Sell On BCCBTC at 0.06776400 | |
| Sell On GASBTC at 0.00082200 | |
| Buy on BTCUSDT at 6485.97000000 | |
| Buy on MCOBTC at 0.00066800 | |
| Buy on WTCBTC at 0.00048140 | |
| Buy on LRCBTC at 0.00001450 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| red = ["1","3","5","7","9","12","14","16","18","21","23","25","27","30","32","34","36"] | |
| black = ["2","4","6","8","10","11","13","15","17","19","20","22","24","26","28","29","31","33","35"] | |
| green = ["0"] | |
| even = ["2","4","6","8","10","12","14","16","18","20","22","24","26","28","30","32","34","36"] | |
| odd = ["1","3","5","7","9","11","13","15","17","19","21","23","25","27","29","31","33","35"] | |
| def results(): |
OlderNewer