Simplified Quantopian System, locally download data, building strategy, bask testing, paper trading
Data is imported from yahoo finance, I wrapped sp500 stocks from 2000-01-01 to 2018-08-08. You're free to add more stocks using the template. I personally add TSLA, YHOO, BABA.
I used mysql to manage the stocks daily data and provide table to create/insert/update query for reference. It is easy to migrate the data with mysql.
Later, when I introduce the text analysis model, I may use mongo db to manager the text data I wrapped from the web.
Here is an example, I use sklearn template to make this sample. Using the close price - open price as input, find their kernals and try to cluster those stocks with similiar change pattern.
This project requires Python 2.7 and the following Python libraries installed:
- Gareth James • Daniela Witten • Trevor Hastie • Robert Tibshirani, An Introduction to Statistical Learning, 4th Edition.
- CHAN, N. T.; SHELTON, C. An electronic market-maker. 2001.
The contents of this repository are covered under the Apache 2.0 License.