基金涨跌监控,每天14:30定时抓取基金行情,如果超过自己设置的阈值,则发邮件给自己,根据行情做相应的加仓/建仓动作。解放你的注意力,避免因为频繁查看行情而影响自己的情绪,从而冲动操作,买基金最重要就是:选好一支基金并且长期持有。
使用Travis构建,在Travis后台设置邮箱的环境变量,EMAIL_NAME和EMAIL_PASSWORD,然后将构建时间设置为【每天】。
建cron任务。
💰帮助你在基金定投时稳住自己的情绪
$ 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.
做了我一直想做到事,那么请问老兄关注到哪几只基金了~~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.