Skip to content

Commit

Permalink
First stable version and completely operationnal
Browse files Browse the repository at this point in the history
Add tray icon
Add .exe to launch programm
Add python local installation
Add assets folder for pictures
  • Loading branch information
thremilien committed Jun 13, 2020
1 parent 3a23e60 commit 96fca43
Show file tree
Hide file tree
Showing 8,758 changed files with 1,766,465 additions and 23 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions CryptExcel.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_key = xxxxx
secret_key = xxxxx
api_key = xxxx
secret_key = xxxx
pairs = ETHUSDT, ETHEUR
refresh = 10
Binary file added CryptExcel.exe
Binary file not shown.
38 changes: 36 additions & 2 deletions CryptExcel.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from infi.systray import SysTrayIcon
from binance.client import Client
from datetime import datetime
from time import sleep
import openpyxl
import warnings
import os

#Read CryptExcel.config
f = open("CryptExcel.config", "r")
Expand All @@ -10,6 +13,31 @@
secret_key = content[1].replace("secret_key", "").replace("=", "").strip()
pairs = content[2].replace("pairs", "").replace("=", "").replace(" ", "").strip().split(",")
refresh = int(content[3].replace("refresh", "").replace("=", "").strip())
if refresh<10:
refresh = 10

#Tray icon
def left(systray):
global run
print("Close CryptExcel")
run = False

def config_file(systray):
os.startfile("CryptExcel.config")

def trading_sheet(systray):
os.startfile("trading.xlsx")

def open_folder(systray):
os.startfile(os.getcwd())

options_menu = (("Open folder", None, open_folder), ("Config file", None, config_file), ("Trading sheet", None, trading_sheet), ("Close", None, left))
tray = SysTrayIcon("assets/icon.ico", "CryptExcel", options_menu)
tray.start()

#Other
warnings.filterwarnings("ignore", category=DeprecationWarning)
run=True

def modify():
#Binance API
Expand Down Expand Up @@ -116,6 +144,12 @@ def modify():
print('Not saved because file is open...')
pass

while True:
while run:
modify()
sleep(refresh)
for i in range(refresh):
if run==True:
sleep(1)
else:
break

tray.shutdown()
19 changes: 0 additions & 19 deletions Installer.bat

This file was deleted.

Binary file added assets/icon.ico
Binary file not shown.
Binary file added python38/DLLs/_asyncio.pyd
Binary file not shown.
Binary file added python38/DLLs/_bz2.pyd
Binary file not shown.
Binary file added python38/DLLs/_ctypes.pyd
Binary file not shown.
Binary file added python38/DLLs/_decimal.pyd
Binary file not shown.
Binary file added python38/DLLs/_elementtree.pyd
Binary file not shown.
Binary file added python38/DLLs/_hashlib.pyd
Binary file not shown.
Binary file added python38/DLLs/_lzma.pyd
Binary file not shown.
Binary file added python38/DLLs/_msi.pyd
Binary file not shown.
Binary file added python38/DLLs/_multiprocessing.pyd
Binary file not shown.
Binary file added python38/DLLs/_overlapped.pyd
Binary file not shown.
Binary file added python38/DLLs/_queue.pyd
Binary file not shown.
Binary file added python38/DLLs/_socket.pyd
Binary file not shown.
Binary file added python38/DLLs/_sqlite3.pyd
Binary file not shown.
Binary file added python38/DLLs/_ssl.pyd
Binary file not shown.
Binary file added python38/DLLs/_tkinter.pyd
Binary file not shown.
Binary file added python38/DLLs/libcrypto-1_1.dll
Binary file not shown.
Binary file added python38/DLLs/libffi-7.dll
Binary file not shown.
Binary file added python38/DLLs/libssl-1_1.dll
Binary file not shown.
Binary file added python38/DLLs/py.ico
Binary file not shown.
Binary file added python38/DLLs/pyc.ico
Binary file not shown.
Binary file added python38/DLLs/pyd.ico
Binary file not shown.
Binary file added python38/DLLs/pyexpat.pyd
Binary file not shown.
Binary file added python38/DLLs/python_lib.cat
Binary file not shown.
Binary file added python38/DLLs/python_tools.cat
Binary file not shown.
Binary file added python38/DLLs/select.pyd
Binary file not shown.
Binary file added python38/DLLs/sqlite3.dll
Binary file not shown.
Binary file added python38/DLLs/tcl86t.dll
Binary file not shown.
Binary file added python38/DLLs/tk86t.dll
Binary file not shown.
Binary file added python38/DLLs/unicodedata.pyd
Binary file not shown.
Binary file added python38/DLLs/winsound.pyd
Binary file not shown.
Loading

0 comments on commit 96fca43

Please sign in to comment.