Some indicators are always used to predict stock's trends, for example, MACD Oscillator, Bollinger Bands Pattern, Hikkake Pattern, and etc. The project aim to make simulation trade with fund using some scientific technical indicators(we use Bollinger Bands Pattern in the project now).
Before you can start, the following dependencies need to be installed.
- Python(version>=3.7)
- pip3
- The following python dependencies
pip3 install django akshare plotly kaleido PyJWT PyYAML aliyun-python-sdk-sts \
aliyun-python-sdk-core oss2 alibabacloud_sts20150401 timeloop chardet
For development environment
cd <root of project>
python manage.py runserver
For server deployment, following this guide save my life: 【Djangoの本番環境構築】Ubuntu20.04,Python3.8,Nginx,Gunicorn,PostgreSQL, and be careful when configuring venv
(Creation of virtual environments).
Other reference: Install Python 3.8 on CentOS 7 / CentOS 8
# Python Error
(<class 'AttributeError'>, AttributeError("'HttpResponse' object has no attribute 'headers'"),
<traceback object at 0x7f46aeacae80>)
# Solution
pip3 install --upgrade Django
# Error
django.core.exceptions.ImproperlyConfigured: SQLite 3.9.0 or later is required (found 3.7.17).
# Solution
# Download source code
wget https://www.sqlite.org/2019/sqlite-autoconf-3360000.tar.gz
# Compile
tar zxvf sqlite-autoconf-3360000.tar.gz
cd sqlite-autoconf-3360000/
./configure --prefix=/usr/local
make && make install
# Replace system low version sqlite3
mv /usr/bin/sqlite3 /usr/bin/sqlite3_old
ln -s /usr/local/bin/sqlite3 /usr/bin/sqlite3
echo "/usr/local/lib" > /etc/ld.so.conf.d/sqlite3.conf
ldconfig
sqlite3 -version
Reference: Upgrade to sqlite3 under centos 7
This project is for study and research purposes only and does not constitute any investment advice.
Released under the Apache License 2.0 Copyright © RyougiChan. All rights reserved.