Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/juxuny/statistics

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/juxuny/statistics

  • v0.0.0-20210112143229-833f7802f5cc
  • Source
  • Go
  • Socket score

Version published
Created
Source

statistics

statistics

Install

mkdir /opt/gopath
export GOPATH=/opt/gopath
go install github.com/juxuny/statistics/cmd/statistics-cli
go install github.com/juxuny/statistics/cmd/collect

数据收集

Run

每天13:00 - 16:00收集数据,保存到MySQL,这些前请先把 res目录里两个SQL文件导入

  • res/index_list.sql
  • res/stock_code.sql
/opt/gopath/bin/collect -u root -p 123456 -d=true -log=/root/2.log -start=13:00 -end=16:00

数据导出

导出已经标准化的数据到csv文件

/opt/gopath/bin/statistics-cli -d -log="" -m pre -out=F:\tmp\pre-process -start=2017-11-30 -end=2017-12-07 -host=127.0.0.1 -p=123456 -u=root -code=sh600018

导出某一天所有数据

/opt/gopath/bin/statistics-cli -d -log="" -m export -out=F:\tmp -date=2017-11-30 -host=127.0.0.1 -p=123456 -u=root

FAQs

Package last updated on 12 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc