Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maurodelazeri committed Feb 11, 2020
1 parent 4e939fd commit 256a7e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ZinnionAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self):
logging.basicConfig(
format=format, level=logging.INFO, datefmt="%H:%M:%S")

logging.info("Python ZTrading : Version: 0.0.11")
logging.info("Python ZTrading : Version: 0.0.12")

logging.info("Python ZTrading : Starting threads")

Expand All @@ -29,6 +29,14 @@ def __init__(self):
logging.info("Python ZTrading : sys.platform not supported")
sys.exit()

if os.getenv("TOKEN") is not None:
logging.info("Python ZTrading : Please set your TOKEN")
sys.exit()

if os.getenv("USER_ID") is not None:
logging.info("Python ZTrading : Please set your USER_ID")
sys.exit()

if 'ZTRADING_LIB' in os.environ:
self.ztrading_lib = ctypes.cdll.LoadLibrary(
os.environ['ZTRADING_LIB'])
Expand Down
Binary file removed __init__.pyc
Binary file not shown.

0 comments on commit 256a7e7

Please sign in to comment.