炒股,量化交易,stock

炒股,量化交易,stock

code:G:_codes\test_stock

有哪些自動交易平臺

富途牛牛

老虎證券

有哪些數據獲取接口(免費,實時數據,歷史數據)

akshare (sina, qq)

https://www.akshare.xyz/zh_CN/latest/data/stock/stock.html

pip install akshare  --upgrade

https://www.akshare.xyz/zh_CN/latest/data/stock/stock.html#id26


import akshare as ak
current_data_df = ak.stock_hk_spot()
print(current_data_df)

# 目标地址: http://stock.finance.sina.com.cn/hkstock/quotes/01336.html(个例)
import akshare as ak
stock_hk_daily_hfq_df = ak.stock_hk_daily(symbol="00700", adjust="hfq")
print(stock_hk_daily_hfq_df)

easyquotation(sina, qq)

https://github.com/shidenggui/easyquotation

backtrader (yahoo)

目標地址 https://finance.yahoo.com/quote/0522.HK/history/

# Note Woeks for AAPL but Not work for 0522.HK
# https://stackoverflow.com/questions/27261382/pandas-yahoo-finance-real-time-data
from pandas.io.data import DataReader
from datetime import datetime

aapl = DataReader('AAPL',  'yahoo', datetime(2015,7,1), datetime(2015,7,1))
print(aapl['Adj Close'][0])

有哪些量化交易軟件(模擬交易)

开源平台

网页端

回测最强神器backtrader

目前基于Python的量化回测框架有很多,

这些量化框架或平台各有优劣。就个人而言,比较偏好用backtrader,因为

Ref

Powered by Jekyll and Theme by solid

本站总访问量