-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27c713d
commit 8e337cb
Showing
13 changed files
with
138 additions
and
41 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM python:3.7-slim | ||
|
||
WORKDIR /app | ||
ADD ./requirements.txt /app/requirements.txt | ||
ADD ./constraints.txt /app/constraints.txt | ||
|
||
RUN apt-get update && apt-get install -y wget && apt-get install -y build-essential && apt-get install -y git | ||
# TA-Lib | ||
RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz && \ | ||
tar -xvzf ta-lib-0.4.0-src.tar.gz && \ | ||
cd ta-lib/ && \ | ||
./configure --prefix=/usr --build=aarch64-unknown-linux-gnu && \ | ||
make && \ | ||
make install | ||
|
||
RUN python -m pip install --upgrade pip && \ | ||
pip install -r requirements.txt -c constraints.txt --no-cache-dir | ||
|
||
RUN apt-get autoremove --purge --yes build-essential | ||
|
||
ADD . /app | ||
|
||
ENV PYTHONUNBUFFERED=1 | ||
ENV dbport=27017 | ||
ENV orderbook=true | ||
ENV threads=2 | ||
ENV dbhost='127.0.0.1' | ||
ENV dbport=27017 | ||
ENV dbuser=kinetick | ||
ENV dbpassword=kinetick | ||
ENV dbname=kinetick | ||
ENV dbskip=true | ||
ENV LOGLEVEL=INFO | ||
|
||
CMD [ "python", "-m", "kinetick.factory.blotter" ] |
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,6 +1,6 @@ | ||
#!/usr/bin/env python | ||
|
||
__version__ = '1.0.14' | ||
__version__ = '1.0.15' | ||
__author__ = 'vin8tech' | ||
|
||
import os | ||
|
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
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
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,39 @@ | ||
FROM python:3.7-slim | ||
|
||
WORKDIR /app | ||
ADD ./requirements.txt /app/requirements.txt | ||
ADD ./constraints.txt /app/constraints.txt | ||
|
||
RUN apt-get update && apt-get install -y wget && apt-get install -y build-essential && apt-get install -y git | ||
|
||
RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz && \ | ||
tar -xvzf ta-lib-0.4.0-src.tar.gz && \ | ||
cd ta-lib/ && \ | ||
./configure --prefix=/usr --build=aarch64-unknown-linux-gnu && \ | ||
make && \ | ||
make install | ||
|
||
RUN python -m pip install --upgrade pip && \ | ||
pip install -r requirements.txt -c constraints.txt --no-cache-dir | ||
|
||
RUN apt-get autoremove --purge --yes build-essential | ||
|
||
ADD . /app | ||
|
||
ENV dbport=27017 | ||
ENV orderbook=true | ||
ENV threads=4 | ||
ENV dbhost='127.0.0.1' | ||
ENV dbport='27017' | ||
ENV dbuser=kinetick | ||
ENV dbpassword=kinetick | ||
ENV dbname=kinetick | ||
ENV dbskip=true | ||
ENV zerodha_user=kinetick | ||
ENV zerodha_password=kinetick | ||
ENV zerodha_pin=kinetick | ||
ENV resolution=1m | ||
ENV LOGLEVEL=INFO | ||
ENV PYTHONUNBUFFERED=1 | ||
|
||
CMD [ "python", "-m", "kinetick.factory.strategy" ] |