# 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
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]
- Mac postgresapp
https://postgresapp.com/downloads.html
- Mac PgAdmin4
https://www.postgresql.org/ftp/pgadmin/pgadmin4/
- Linux
- Docker
- Kubernetes
- Helm
- Terraform
- PostgreSQL
- PostGIS
- TimescaleDB
- Greenplum
- Redis
- Clickhouse
- Neo4j
- Python, Django, Numpy, Pandas, Matplotlib, pyplot, pyecharts
- Git, VSCode, Anaconda, Jupyter Notebook, JupyterLab
- 正则表达式
- ML 机器学习
- DL 深度学习
- RL 强化学习
- CNN, LSTM, NLP, Transformer, Attention 。。。
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/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
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
https://github.com/akfamily/akshare
https://github.com/mpquant/Ashare
https://github.com/Micro-sheep/efinance
https://github.com/shidenggui/easyquotation
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
https://github.com/shidenggui/easytrader
https://github.com/bosspen1/stock
-
《并行大数据处理:基于Python与PostgreSQL》:https://mp.weixin.qq.com/s/yuO4D2ySzL4FbbHc9BBArw
-
《深入浅出 Python 量化交易实战》,京东读书App
以下各项中,第5、7、15项未标明出版社,因为它们是相关工具的手册,可到官网下载PDF版。
[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.
[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.
[9] Michael Bowles(著),沙嬴,李鹏(译). Python机器学习预测分析核心算法[M].人民邮电出版社, 2016.
[10] Aurelien Geron(著),宋能辉,李娴(译). 机器学习实战基于Scikit-Learn和TensorFlow [M]. 机械工业出版社, 2020.
Sargent 2015年有一本书,书名是《Quantitative Economics with Python》,其后一直都有更新。有配套网站(https://python.quantecon.org/intro.html)的,好像所有代码也都挂在Github上了。
[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.
[16]Jeffrey E.F. Friedl(著),余晟(译). 精通正则表达式(第3版)[M]. 电子工业出版社, 2012.
[17] Sean,P.Kane,Karl,Matthias(著),安道(译). Docker即学即用(第2版)[M]. **电力出版社, 2019.
[18] Kelsey Hightower,Brendan Burns,Joe Beda(著),韩波(译). Kubernetes即学即用[M]. **电力出版社, 2018.
[19] Betsy Beyer,Chris Jones,Jennifer Petoff,Niall Murphy (著),孙宇聪 (译). Google运维解密[M].电子工业出版社,2016.
[20] Betsy Beyer,Niall Murphy 等 (著),钟诚、刘征(译). Google SRE工作手册[M].电子工业出版社,2020.
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