This project mainly focus on US HK CN equity. do following things
- spider US HK CN stock daily trade data and financial data freely
- do some statistcal research for history trade and financial data with machin learning
- Backtest
- Live trade
pip install -r requirements.txt
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo apt install ./google-chrome-stable_current_amd64.deb
>>> from selenium import webdriver
>>> from selenium.webdriver.chrome.service import Service
>>> from webdriver_manager.chrome import ChromeDriverManager
>>> from selenium.webdriver.chrome.options import Options
>>> from selenium.webdriver.common.by import By
>>> from selenium.webdriver.common.keys import Keys
>>> from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
>>> from selenium.webdriver.support.ui import WebDriverWait
>>> from selenium.webdriver.support import expected_conditions as EC
>>> options = Options()
>>> options.add_argument('--headless')
>>> options.add_argument('--no-sandbox')
>>> options.add_argument('--disable-dev-shm-usage')
>>> driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
configure folder stored download data
vim conf.json
{"data_dir": "/your_dir/quant_free/data"}
download data to data_dir.
cd test
python test_us_equity_xq_finance_download.py
there is some statistical analysis in research folder for US equity.