An open API service indexing awesome lists of open source software.

https://github.com/beacoder/stock-tracker

Track stock price in Emacs
https://github.com/beacoder/stock-tracker

convinience finance stocks

Last synced: 6 days ago
JSON representation

Track stock price in Emacs

Awesome Lists containing this project

README

          

* Track stock price in Emacs

[[MIT licensed][file:https://img.shields.io/badge/license-MIT-blue.svg]]
[[https://github.com/beacoder/stock-tracker/actions][file:https://github.com/beacoder/stock-tracker/workflows/CI/badge.svg]]
[[http://melpa.org/#/stock-tracker][file:http://melpa.org/packages/stock-tracker-badge.svg]]
[[https://stable.melpa.org/#/stock-tracker][file:https://stable.melpa.org/packages/stock-tracker-badge.svg]]
[[996.icu][file:https://img.shields.io/badge/link-996.icu-red.svg]]

=stock-tracker= is a simple interface for Emacs to track stocks in china and us markets.

CHINA stock api: [[https://money.163.com/stock/][Netease Stock (网易股票)]]\\
US stock api: [[https://quote.cnbc.com/quote-html-webservice/quote.htm?partnerId=2&requestMethod=quick&exthrs=1&noform=1&fund=1&extendedMask=2&output=json&symbols=GOOG][CNBC]]

** Installation

Install =stock-tracker= from [[http://melpa.org/][MELPA]] with:

=M-x package-install RET stock-tracker RET=

** Usage

- =stock-tracker-start= :: Start stock-tracker and display stock information
with buffer

** Sample configuration

#+BEGIN_SRC emacs-lisp

;; Refresh stock price every 5*10 secs
(customize-set-variable 'stock-tracker-refresh-interval 5)

;; Set up as green, down as red
(customize-set-variable 'stock-tracker-up-red-down-green nil)

;; Customize stocks
(customize-set-variable 'stock-tracker-list-of-stocks
'("0688516"
"0601012"
"0601058"
"0603707"
"0603131"
"1002585"
"0600905"
"1002594"
"1300014"
"1300750"
"0600563"))

;; Example Key binding
(global-set-key (kbd "C-c s") 'stock-tracker-start)

#+END_SRC

** Screenshot

[[screenshot.png][file:screenshot-1.png]]
[[screenshot.png][file:screenshot-2.png]]

** Features

- Support CHN (SS, SZ), US stocks.
- Support asynchronous data fetching.
- Automatically save list of added stocks.
- Colorize stocks based on their price.

** Todo

- Find new free api to get hk stocks.

** License

[[file:LICENSE][MIT LICENSE]]. Copyright (c) 2019-2025 Huming Chen

** Donate

If you think that it's helpful for you, please consider paying a cup of coffee
for me. Thank you! :smile:

[[file:WeChatQR.jpg]]

@@html:@@
@@html:Buy Me A Coffee@@
@@html:
@@