Git Product home page Git Product logo

loafer's Introduction

起因:

迫于最近行情不错,公司又明令禁止上班进行与工作无关活动,且不得使用QQ,微信等通讯工具。

奈何人力终有穷,身为码农,搬砖累了想摸鱼风险又太高,手上有台闲置的服务器(当然本地启动也行),便在周末撸了个本项目--较全面+安全摸鱼+社交(拉上基友们在一个群,交流频率提升50%)的理财工具。

(摸鱼是不好的,一定要先完成本职工作!)


项目说明:

均使用原生Go库,无任何依赖组件,拉取即可启动,拉取基友一起摸鱼吧。 实现很粗糙,欢迎大家提出建议,一起学习,欢迎star~

项目地址

https://github.com/stair-go/loafer

功能
  • 工作日9:00 -- 15:00 每半个小时(默认),抓取配置的基金、大盘及股票数据至钉钉机器人
  • 通过Http请求实时请求爬虫和推送
  • 通过Http请求,运行中添加基金或股票代码
预览

image.png image.png

安装:

环境需求:

拉取本项目代码:

git clone https://github.com/stair-go/loafer.git

配置机器人地址: image.png 注:其中"CodeAttr"为 基金代码,"Exponent"为大盘指数,"Stock"为股票代码,可在启动前配置,也可启动后,通过http接口添加;

接口说明:

默认端口为8189

查询

实时请求爬虫,并推送至dd群

  • 示例: "ip:prot/" or "ip:prot/query"
添加基金代码
  • 路径: "ip:prot/add/fund?code="
  • 示例: 127.0.0.1:8189/add?code=213001
添加股票代码
  • 路径: "ip:prot/add/stock/?code="
  • 示例: 127.0.0.1:8189/add/stock?code=sz002905
删除基金代码
  • 路径: "ip:prot/delete/fund?code="
  • 示例: 127.0.0.1:8189/delete?code=213001
删除股票代码
  • 路径: "ip:prot/delete/stock/?code="
  • 示例: 127.0.0.1:8189/delete/stock?code=sz002905

loafer's People

Contributors

stair-go avatar

Watchers

James Cloos 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.