-
-
Notifications
You must be signed in to change notification settings - Fork 820
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 : New alpha release 0.0.12
[Alpha version] Alpha version 0.0.12
- Loading branch information
Showing
161 changed files
with
4,064 additions
and
3,455 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,29 @@ | ||
#Download base image ubuntu 16.04 | ||
FROM ubuntu:16.04 | ||
FROM python:3 | ||
|
||
# Update Ubuntu Software repository | ||
# Update Software repository | ||
RUN apt-get update | ||
RUN apt install git -y | ||
|
||
# Set up dev environment | ||
RUN git clone https://github.com/Trading-Bot/CryptoBot | ||
WORKDIR /bot | ||
RUN git clone https://github.com/Trading-Bot/CryptoBot /bot/cryptobot | ||
WORKDIR /bot/cryptobot | ||
RUN git checkout dev | ||
|
||
# install dependencies | ||
RUN bash ./docs/install/linux_installer.sh | ||
|
||
# configuration | ||
RUN cp ./docs/install/config_test.json ./config/config.json | ||
RUN cp ./config/default_config.json ./config/config.json | ||
RUN cp ./config/default_evaluator_config.json ./config/evaluator_config.json | ||
|
||
# python libs | ||
RUN python3 -m pip install -r requirements.txt | ||
RUN pip3 install -U setuptools | ||
RUN pip3 install -r requirements.txt | ||
|
||
# install evaluators | ||
RUN python start.py -p install all | ||
|
||
# entry point | ||
ENTRYPOINT ["python"] | ||
CMD ["start.py"] |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,3 @@ def __init__(bot): | |
|
||
def get_bot(): | ||
return bot_instance | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import json | ||
import os | ||
|
||
from config.cst import CONFIG_DATA_COLLECTOR_PATH | ||
|
||
|
||
class DataCollectorParser: | ||
@staticmethod | ||
def parse(file): | ||
if os.path.isfile(CONFIG_DATA_COLLECTOR_PATH + file): | ||
with open(CONFIG_DATA_COLLECTOR_PATH + file) as file_to_parse: | ||
file_content = json.loads(file_to_parse.read()) | ||
else: | ||
with open(file) as file_to_parse: | ||
file_content = json.loads(file_to_parse.read()) | ||
return file_content |
Oops, something went wrong.