Coder Social home page Coder Social logo

vlight's Introduction

vlight

基金涨跌监控,每天14:30定时抓取基金行情,如果超过自己设置的阈值,则发邮件给自己,根据行情做相应的加仓/建仓动作。解放你的注意力,避免因为频繁查看行情而影响自己的情绪,从而冲动操作,买基金最重要就是:选好一支基金并且长期持有。

创作动机

如何在理财中胜出

如何构建

一、无服务器

使用Travis构建,在Travis后台设置邮箱的环境变量,EMAIL_NAME和EMAIL_PASSWORD,然后将构建时间设置为【每天】。

二、有自己的服务器

建cron任务。

vlight's People

Contributors

dependabot[bot] avatar pinple avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vlight's Issues

大佬,还会更新吗?我按照教程做的一直报错。

$ travis_setup_go
go version go1.12.1 linux/amd64
$ export GOPATH="/home/travis/gopath"
$ export PATH="/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.12.1.linux.amd64/bin:/home/travis/bin:/home/travis/bin:/home/travis/.local/bin:/usr/local/lib/jvm/openjdk11/bin:/opt/pyenv/shims:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v8.12.0/bin:/home/travis/.rvm/gems/ruby-2.5.3/bin:/home/travis/.rvm/gems/ruby-2.5.3@global/bin:/home/travis/.rvm/rubies/ruby-2.5.3/bin:/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.11.1.linux.amd64/bin:/usr/local/maven-3.6.3/bin:/usr/local/cmake-3.12.4/bin:/usr/local/clang-7.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/travis/.rvm/bin:/home/travis/.phpenv/bin:/opt/pyenv/bin:/home/travis/.yarn/bin"
$ export GO111MODULE="auto"
$ gimme version
v1.5.4
$ go version
go version go1.12.1 linux/amd64
go.env
$ go env
install
8.39s$ travis_install_go_dependencies 1.12.1 -v
3.22s$ go run main.go
panic: runtime error: index out of range
goroutine 1 [running]:
main.FetchFund(0xc000012c80, 0x1, 0x1, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/DanielGao97/vlight/main.go:75 +0x8b2
main.main()
/home/travis/gopath/src/github.com/DanielGao97/vlight/main.go:220 +0x45
exit status 2
The command "go run main.go" exited with 1.
Done. Your build exited with 1.

666

做了我一直想做到事,那么请问老兄关注到哪几只基金了~~

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.