Giter VIP home page Giter VIP logo

stockrecorder's Introduction

股票记录器

每天定时获取指定市场上市股票的分时数据并保存。

记录器分为市场、数据来源和存储三部分。下面的代码演示了使用雅虎财经作为数据源,本地文件系统作为存储,每日定时记录美股、A股、H股所有上市公司的股票分时数据。

recorder.NewRecorder(
	source.NewYahooFinance(), // 雅虎财经作为数据源
	store.NewFileSystem(store.FileSystemConfig{StoreRoot: "F:\\data"}),
	market.America{},  // 美股
	market.China{},    // A股
	market.HongKong{}, // 港股
).RunAndWait()

market 市场

  • 美股:纽交所及纳斯达克上市的股票
  • A股:上海和深圳证券交易所上市的股票
  • H股:香港证券交易所交易所上市的股票

source 数据来源

  • 雅虎财经

store 存储

  • 阿里云OSS
  • 亚马逊S3
  • 本地文件系统
  • Redis

stockrecorder's People

Contributors

nzai avatar

Watchers

 avatar  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.