Giter Site home page Giter Site logo

aaronvvv / auto-trade-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from webclinic017/auto-trade-2

0.0 0.0 0.0 107.87 MB

auto-trade

JavaScript 88.88% Ruby 0.03% Python 9.87% Objective-C 0.12% Java 0.17% HTML 0.16% Jupyter Notebook 0.56% Dockerfile 0.19% Starlark 0.02%

auto-trade-2's Introduction

Auto Trade

ENV

# Anaconda installed
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy==1.22.1
pip install pandas==1.5.2
pip install matplotlib==3.2.2 # 3.6.2
pip install mplfinance==0.12.9b7

pip install scipy==1.9.3
pip install scikit-learn==1.2.0
pip install tensorflow==2.11.0 
# pip install tensorflow-gpu

pip install jupyter==1.0.0
pip install joblib==1.2.0

pip install akshare
pip install pandas_readdata
pip install tushare
# pip install beautifulsoup4==4.11.1

pip install --use-deprecated=legacy-resolver backtesting  
pip install backtrader==1.9.76.123
pip install gym==0.21.0 #0.22.0 #0.26.2
pip install pandas_ta==0.3.14b0
pip install tensortrade==1.0.3
# pip install git+https://github.com/tensortrade-org/tensortrade.git
# pip install plotly==5.11.0
pip install yfinance==0.1.64
pip install ta==0.10.2  
pip install TA-Lib # or 下载 TA_Lib‑0.4.24‑cp38‑cp38‑win_amd64.whl 文件安装
pip install pandas_ta

pip install ray[default,rllib,tune]==1.8.0
# ray 需要 3.7 版本的 aiohttp
pip install aiohttp==3.7.4 
# ray optuna
pip install optuna==3.0.4

pip install torch==1.8.1+cpu 
pip install torchvision==0.9.1+cpu 
pip install torchaudio==0.8.1

# https://github.com/notadamking/RLTrader.git
pip install stable-baselines3[extra]

pip install pandahouse
pip install clickhouse_driver==0.2.3
pip install clickhouse_sqlalchemy==0.2.0
pip install aiochclient

anaconda

source /usr/local/anaconda3/bin/activate
conda activate py38

# 添加 conda 国内镜像源 TUNA 清华源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
# 设置搜索时显示通道地址
conda config --set show_channel_urls yes
# 恢复默认镜像
conda config --remove-key channels

conda create -n py38 python=3.8
# 激活环境
# Linux:  
source activate py38
# or Windows: 
# conda init
# conda activate py38

# 关闭激活环境
# Linux:  
source deactivate py38
# or Windows: 
# conda deactivate py38

# 删除虚拟环境
conda remove -n py38 --all

# 删除环境钟的某个包
# conda remove --name $your_env_name  $package_name

# 安装 package
# conda install -n py38 [package]

install PostgresSQL

  • Mac postgresapp

https://postgresapp.com/downloads.html

  • Mac PgAdmin4

https://www.postgresql.org/ftp/pgadmin/pgadmin4/

Kubernetes

  • Linux
  • Docker
  • Kubernetes
  • Helm
  • Terraform

Postgres

  • PostgreSQL
  • PostGIS
  • TimescaleDB
  • Greenplum
  • Redis
  • Clickhouse
  • Neo4j

Python

  • Python, Django, Numpy, Pandas, Matplotlib, pyplot, pyecharts
  • Git, VSCode, Anaconda, Jupyter Notebook, JupyterLab
  • 正则表达式
  • ML 机器学习
  • DL 深度学习
  • RL 强化学习
  • CNN, LSTM, NLP, Transformer, Attention 。。。

项目

backtrader

https://github.com/mementum/backtrader

https://gitee.com/redace85/backtrader_bilibili_study

https://github.com/phonegapX/bt-ccxt-store-cn

https://github.com/phonegapX/bt-ctpbee-store

https://github.com/khramkov/Backtrader-MQL5-API

https://github.com/woj-i/btgym

https://github.com/kernc/backtesting.py

https://github.com/vnpy/vnpy

https://github.com/physercoe/starquant

https://github.com/jesse-ai/jesse https://github.com/Drakkar-Software/OctoBot

https://github.com/drlgistics/Wt4ElegantRL

https://github.com/hudson-and-thames/mlfinlab

tensortrade

Understanding Deep Learning

https://towardsdatascience.com/creating-bitcoin-trading-bots-that-dont-lose-money-2e7165fb0b29

https://github.com/tensortrade-org/tensortrade

https://www.tensortrade.org/en/latest/

https://github.com/optuna/optuna-examples

https://stable-baselines3.readthedocs.io/en/master/guide/quickstart.html

https://github.com/data-octo/AITrading

https://github.com/notadamking/RLTrader

https://github.com/tdmdal/rl-hedge-2019

data other

https://github.com/akfamily/akshare

https://github.com/mpquant/Ashare

https://github.com/Micro-sheep/efinance

https://github.com/shidenggui/easyquotation

ai other

https://github.com/yhilpisch/rlfinance

https://github.com/yhilpisch/aiif

https://github.com/yhilpisch/py4at

https://github.com/dennybritz/reinforcement-learning

https://github.com/YutaroOgawa/Deep-Reinforcement-Learning-Book

https://github.com/kayuksel/multi-rl-crowd-sim

https://github.com/hudson-and-thames/mlfinlab

https://github.com/tatsath/fin-ml

https://github.com/tyedem/Machine-Learning-Trader

https://github.com/PacktPublishing/Machine-Learning-for-Algorithmic-Trading-Second-Edition_Original

https://github.com/PacktPublishing/Machine-Learning-for-Finance

https://github.com/CloseToAlgoTrading/CodeFromVideo

https://github.com/orlandpm/Math-for-Programmers

https://github.com/noootown/Forex-DQN

https://github.com/CodeLogist/RL-Forex-trader-LSTM

https://github.com/miroblog/tf_deep_rl_trader

https://github.com/miroblog/deep_rl_trader

https://github.com/Kismuz/btgym

https://github.com/microsoft/qlib

https://github.com/AI4Finance-Foundation/FinRL

other

https://github.com/shidenggui/easytrader

https://github.com/bosspen1/stock

参考资料

3.1 资料清单

以下各项中,第5、7、15项未标明出版社,因为它们是相关工具的手册,可到官网下载PDF版。

3.1.1 Python

3.1.1.1 Python编程

[1] Allen B.Downey(著), 赵普明(译). 像计算机科学家一样思考Python(第2版)[M]. 人民邮电出版社, 2013.

[2] Mark Lutz(著),秦鹤,林明(译). PYTHON学习手册(第5版)[M]. 机械工业出版社, 2014.

[3] Mark Lutz(著),邹晓,瞿乔,任发科等(译). Python编程(第4版套装上下册)[M]. **电力出版社, 2014.

[4] Giancarlo Zaccone(著),张龙,宋秉金(译). Python并行编程参考手册[M].电子工业出版社, 2018.

[5] Python Tutorial Release, 3.9.2rc1,2021.

3.1.1.2 Python数据分析

[6] Wes McKinney(著),徐敬一(译). 利用Python进行数据分析(第2版)[M]. 机械工业出版社, 2018.

[7] pandas: powerful Python data analysis toolkit Release, 1.2.1,2021.

[8] Yves Hilpisch(著),姚军(译). PYTHON金融大数据分析(第2版)[M]. 人民邮电出版社, 2020.

3.1.1.3 Python机器学习

[9] Michael Bowles(著),沙嬴,李鹏(译). Python机器学习预测分析核心算法[M].人民邮电出版社, 2016.

[10] Aurelien Geron(著),宋能辉,李娴(译). 机器学习实战基于Scikit-Learn和TensorFlow [M]. 机械工业出版社, 2020.

3.1.1.4 Python量化经济学(宏观、微观理论经济学方向)

Sargent 2015年有一本书,书名是《Quantitative Economics with Python》,其后一直都有更新。有配套网站(https://python.quantecon.org/intro.html)的,好像所有代码也都挂在Github上了。

3.1.2 PostgreSQL

[11] Ebola Ahmed(著),范翊,彭煜玮,唐成(译). PostgreSQL 9X之巅(第2版)[M]. 机械工业出版社, 2018.

[12] Hironobu Suzuki(著),冯若航,刘阳明,张文升(译). PostgreSQL指南内幕探索[M]. 电子工业出版社, 2019.

[13] 唐成(著). PostgreSQL修炼之道:从小工到专家(第2版)[M]. 机械工业出版社, 2020.

[14] 张树杰(著). PostgreSQL技术内幕:查询优化深度探索[M].电子工业出版社, 2018.

[15] PostgreSQL 13.1 Documentation.

3.1.3 正则表达式

[16]Jeffrey E.F. Friedl(著),余晟(译). 精通正则表达式(第3版)[M]. 电子工业出版社, 2012.

3.1.4. Docker与Kubernetes

[17] Sean,P.Kane,Karl,Matthias(著),安道(译). Docker即学即用(第2版)[M]. **电力出版社, 2019.

[18] Kelsey Hightower,Brendan Burns,Joe Beda(著),韩波(译). Kubernetes即学即用[M]. **电力出版社, 2018.

3.1.5 运维

[19] Betsy Beyer,Chris Jones,Jennifer Petoff,Niall Murphy (著),孙宇聪 (译). Google运维解密[M].电子工业出版社,2016.

[20] Betsy Beyer,Niall Murphy 等 (著),钟诚、刘征(译). Google SRE工作手册[M].电子工业出版社,2020.

QA

GitHub's file size limit of 100.00 MB解决办法

brew install git-lfs

git lfs install

find ./ -size +100M

git lfs track "name_of_a_giant_file"
#example:
git lfs track ".//examples/py_quant/aistudio/ml/svm1/work/cnews.train.txt"

git add path_of_a_giant_file
#example:
git add .//examples/py_quant/aistudio/ml/svm1/work/cnews.train.txt
  • 删除某个文件的push
find ./ -size +10M

git filter-branch --force --index-filter "git rm --cached --ignore-unmatch app_zhongli_agent/android/java_pid93576.hprof"  --prune-empty --tag-name-filter cat -- --all

git commit --amend

git push

auto-trade-2's People

Contributors

afirez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.