Giter Club home page Giter Club logo

django_stock_search's Introduction

Django_Stock_Search

这个项目可以说是个简单的demo
其中的用途就是对股票进行查询——返回一个图表方便展示,还有就是数据是已经存在数据库当中
对股票进行组合查询,通过时间段、融资融券金额、股价三个部分进行组合,找到您所需要股票

缺点:
1、数据不是实时从网上获取下来到数据库当中,所以需要做数据自己手动获取导入数据库,因为实时获取的话并太好(时间、数据都是问题)(爬虫大佬可以忽略)
2、在进行组合查询的时候好鬼慢,因为股票的数据量好大,一旦将所有的数据全部到进去将是5000多*3000多条的数据(可以使用redis来做数据缓冲,大佬们可以练下手)

琐事:
这里面使用了两个很出名的库pyecharts(用来将数据变为图表)、datetimepicker(在获取时间段的时候方便)

使用方法:
(1)首先安装好python的环境再来看
(2)下载整个项目到本地
(3)安装该项目所需要的python库文件(此处叹息!!!python库真的强大又好用)pip install -r Library_Funtions.txt
(4)然后就是运行MySQL_createTable.py文件,这时候先需要修改33行的数据库账号、密码、还要新建数据库,还要改72行文件路径
(5)python manage.py makemigrations
(6)python manage.py migrate
(7)python manage.py runserver

注意:
1、有什么错改什么
2、不懂可以给我邮箱留言|本人超级有空
3、欢迎指出错误

django_stock_search's People

Contributors

ciciandjojo avatar

Stargazers

 avatar liqiang0330 avatar  avatar Will Clark avatar  avatar  avatar

Watchers

James Cloos avatar

Forkers

lattic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.