Skip to content

radiocontroller/stock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

实时获取股价信息脚本,可在终端执行

stock.png

1. 使用前需要安装ruby环境:

apt (Debian or Ubuntu)

sudo apt-get install ruby-full

yum (CentOS, Fedora, or RHEL)

sudo yum install ruby

Homebrew (macOS)

brew install ruby

Windows Package Manager

winget install Ruby

确认是否安装成功

ruby -v

2. 进入stock.rb目录下执行

ruby stock.rb

3. 在源码stock.rb中添加fetch行,可对多个股价进行关注

4. 接口返回的各字段含义可参考: https://www.programminghunter.com/article/1952756816/

About

实时输出股价脚本(可在终端使用)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages