The project designed by programmers for the open source of Leek, stock analysis and code learning are both correct!

Recently, the newly-entered "Chive Zero Queen" was "robbed" by the market and was completely messed up by the "green".
One after another they became all the queens!
In order to help you no longer be cut at will, the recommended articles on this side are recommended to be collected.

It is said that in the second quarter of 2020, Buffett’s only stock is Barrick Gold, which bought 20.92 million shares of Barrick Gold at a cost of US$564 million (equivalent to RMB 3.9 billion).

image

The pace of Warren Buffett believes that leeks are always paying attention, and programmers leeks besides paying attention to the news of the God of stocks, they also have an advantage that they can analyze stocks through technical means.

I heard that the stock market has experienced a collective climax recently. Today, I will share with you a stock analysis project created by a programmer-stock.

image

At present, the project has been marked 2.4K stars on Github, and a total of 738 forks (Github address: https://github.com/pythonstock/stock)

Note: The programmer’s first focus should be on technology. The creator also reminds everyone in the project introduction: There is risk investment in the stock market, and you need to be cautious. This project can only be used for Python code learning, stock analysis, and investment failure. Responsible, not a BUG.

PythonStock V1 is a full-stack stock system developed based on Python's pandas, tushare, bokeh, tornado, stockstats, ta-lib and other frameworks. It has the following features:
you can directly use docker to deploy and run directly locally. After the entire project is compressed on the docker hub, 200BM, it will occupy 500MB of disk space locally.

Use Docker to solve the Python library installation problem, and use Mariadb (MySQL) to store data. Grab data with tushare (old API, subsequent development with tushare pro)

Use corn as a timed task, perform data capture calculations every day, start data calculations at 18:00 every day, calculate the data of the day, use 300 days of data for calculations, and it will take about 15 minutes to complete the calculations.

The stock data interface is prevented from being blocked, data is cached on a daily basis, the data of the last 3 days is stored, and it is cleared regularly every day, and it is stored in the gzip compression mode of read_pickle to_pickle.

Use tornado to develop web system, support stock data, CSI 300 constituent stocks, CSI 500 constituent stocks, Dragon and Tiger ranking data, daily stock data, daily market index quotations, etc.

The data display system is a general data display system. After the dictionary template is configured, the page automatically loads the data and completes the data display, and then the index data developed by yourself can be added.

Add curve data analysis. When viewing stocks, you can directly jump to the Oriental Wealth page to view relevant information. After clicking on the indicator, use Bokeh to plot the data of up to 17 indicators and display the chart.

bokeh drawing indicator data:

image

Then calculate the stock data based on 3 indicators:

image

Daily stock index data calculates 17 indicators as follows:

image

In addition, the project author also introduced the stock system design principles, architecture design principles, application deployment points and other knowledge. If you are also interested in this project, you can try it. Of course, again, the main purpose is to study technology. After all, the stock market is risky and you need to be cautious when entering the market.

Guess you like

Origin blog.csdn.net/cxyITgc/article/details/114673166
Recommended