Sin descripción

skyfffire 86f8b5000d 移除部分代码 hace 2 años
bak 27c97201a4 初始化 hace 2 años
exchange 27c97201a4 初始化 hace 2 años
.gitignore 27c97201a4 初始化 hace 2 años
backtest.py 27c97201a4 初始化 hace 2 años
broker.py 27c97201a4 初始化 hace 2 años
config.toml 27c97201a4 初始化 hace 2 años
model.py 27c97201a4 初始化 hace 2 años
predictor.py 27c97201a4 初始化 hace 2 años
quant.py 27c97201a4 初始化 hace 2 años
readme.txt 27c97201a4 初始化 hace 2 años
strategy.py 86f8b5000d 移除部分代码 hace 2 años
utils.py 86f8b5000d 移除部分代码 hace 2 años

readme.txt

运行环境:
Aws20 t3.m 2h 1gb内存 10u一个月
东京 A区
Ubuntu20系统

环境安装:
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo service sshd restart

sudo apt update -y
sudo apt list --upgradable
sudo apt upgrade -y
sudo apt install gcc -y
gcc -v

sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libbz2-dev liblzma-dev sqlite3 libsqlite3-dev tk-dev uuid-dev libgdbm-compat-dev -y

wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
tar xzf Python-3.10.0.tgz
cd Python-3.10.0

sudo ./configure --enable-optimizations
sudo make altinstall

python3.10 --version
pip3.10 --version

pip3.10 install numpy pandas toml ujson psutil aiohttp flask joblib sklearn uvloop requests_toolbelt pycrypto netifaces

修改配置文件:
config.toml
utils.py get_params函数定义了每个配置文件具体是什么作用


运行指令:
python3 quant.py