Giter Club home page Giter Club logo

kekewind / stock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhangsheng377/stock

0.0 0.0 0.0 1.36 MB

股票监控平台。采用docker部署爬虫模块、量化指标算法模块、订阅分发模块等,完成爬取股票数据存入通用数据库接口,并缓存至redis;算法模块处理数据,将报警信息存入redis;订阅分发模块监控到有报警信息后主动向微信订阅用户推送;同时部署有微信服务器,完成与微信用户的交互。

Shell 1.42% Python 98.58%

stock's Introduction

redis

docker run -d --name redis -v /opt/docker/data/redis:/data -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --restart always -p 6379:6379 redis

redis-cli -h 127.0.0.1 -p 6379

mongo

docker run -d --name mongo -v /opt/docker/data/mongo:/data -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --restart always -p 27017:27017 mongo

mongo 127.0.0.1:27017
show dbs
use tushare
db.sh_600196.insert({"test":"testdb"})

mongodump -h 127.0.0.1:27017 -d tushare -o /data/mongodump/tushare
mongorestore -h 127.0.0.1:27017 -d tushare --dir /data/mongodump/tushare

save_tushare

docker build -t zhangsheng377/save_tushare -f Dockerfile_tushare .

docker run -ti -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro zhangsheng377/save_tushare

docker run -d --name save_tushare -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --restart always zhangsheng377/save_tushare

stock

docker build -t zhangsheng377/stock .

docker run -ti zhangsheng377/stock
docker run -ti zhangsheng377/stock /bin/bash
docker run -ti -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro zhangsheng377/stock

docker run -d --name stock -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --restart always zhangsheng377/stock

save_policies

docker build -t zhangsheng377/save_policies -f Dockerfile_policy .

docker run -ti -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro zhangsheng377/save_policies

docker run -d --name save_policies -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --restart always zhangsheng377/save_policies

部署花生壳 phddns

docker build -t zhangsheng377/phddns -f Dockerfile_phddns .

docker run -ti -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro zhangsheng377/phddns  /bin/bash

docker run -d --name phddns -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --restart always zhangsheng377/phddns

部署微信服务器

docker build -t zhangsheng377/server -f Dockerfile_server .

docker run -ti -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro zhangsheng377/server  /bin/bash

docker run -d --name server -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro -p 5000:5000 --restart always zhangsheng377/server

stock's People

Contributors

zhangsheng377 avatar

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.