Code Monkey home page Code Monkey logo

FundStock

引入的库-

gin-gonic/gin 【Gin框架】

go-playground/validator 【validator表单验证器】

concurrent-map 【concurrent-map替换原生map解决并发读写】

gorm.io/gorm 【Gorm数据查询工具】

go-redis/redis 【go-redis缓存】

spf13/viper 【配置读取工具】

uber-go/zap 【zap日志库】

日志TrackId链路追踪,包含mysql语句


目录结构

.
├── app
│     ├── controllers
│     │     ├── client
│     │     │     ├── v1
│     │     │     ├── v2
│     │     │     └── v3
│     │     ├── email
│     │     │     └── v1
│     │     └── web
│     │         └── v1
│     ├── middlewares
│     │     ├── common
│     │     ├── v1
│     │     ├── v2
│     │     └── v3
│     ├── migration
│     ├── models
│     ├── requests
│     └── response
├── bin
├── bootstrap
├── config
├── logs
│     ├── binary-client
│     ├── binary-fund
│     ├── binary-stock
├── pkg
│     ├── abnormal
│     ├── address
│     ├── config
│     ├── echo
│     │     └── code
│     │         ├── en
│     │         ├── insa
│     │         └── zh
│     ├── email
│     ├── helpers
│     ├── larkbot
│     ├── logger
│     │     └── zapgorm2
│     ├── mysql
│     ├── notice
│     │     ├── bark
│     │     ├── mail
│     │     └── telegram
│     ├── output
│     ├── pprof
│     ├── recaptcha
│     ├── redis
│     ├── request
│     ├── utils
│     ├── validate
│     ├── ws_server
│     ├── wss-heart-beating
│     └── xjson
├── routes
│     ├── client_v1
│     ├── client_v2
│     └── client_v3
├── serve
│     ├── binary-api
│     ├── binary-email
│     │     ├── common
│     │     ├── config
│     │     └── queue
│     ├── binary-fund
│     │     ├── client
│     │     ├── config
│     │     └── params
│     ├── binary-stock
│     │     ├── client
│     │     ├── config
│     │     ├── params
│     │     └── response
│     │         └── qtimg
│     └── binary-timer
│         ├── task_plan
│         └── task_route
└── test

81 directories

  • 2023-09-25 添加 bark 通知功能
  • 2023-09-26 添加 实时数据获取

打包编译

  • 打包docker镜像
# timer 服务
docker build -t fund-stock-timer -f serve/binary-timer/timer.dockerfile .
  • 上传 docker 镜像
# timer 镜像
docker tag fund-stock-timer iszmxw/fund-stock-timer:latest
docker push iszmxw/fund-stock-timer:latest
  • 上传 docker 镜像
# 运行 timer 镜像
docker run -e=CONFIG_FILE=./config -v=/home/yezhiming/binary/timer:/home/yezhiming/binary/timer/config -p 7104:7104 --name=xw-timer --network="host" -d iszmxw/timer:latest

TODO

  • 分时任务
  • 盯盘助手
  • 研报股评
  • 每日监控
  • 微信提醒
  • 玩转组织
  • AI智能

fund-stock's Projects

easyquotation icon easyquotation

实时获取新浪 / 腾讯 的免费股票行情 / 集思路的分级基金行情

shares icon shares

A-share quantitative system. A股量化系统

stock icon stock

30天掌握量化交易 (持续更新)

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.