📜  gnus stock (1)

📅  最后修改于: 2023-12-03 15:00:59.937000             🧑  作者: Mango

Gnus Stock

Gnus Stock is a stock market monitoring tool built for Emacs users who want to keep track of their investments while they work. It's part of the Gnus group of Emacs packages, which is a collection of email and news reading tools.

Features
  • Real-time stock quotes retrieval: Gnus Stock retrieves real-time stock quotes from Yahoo Finance API, which allows you to get up-to-date prices of your holdings.
  • Alerts: You can set up alerts to notify you if certain stocks go over or under a certain threshold. Alerts can either be shown in your Gnus inbox or sent as an email.
  • Portfolio tracking: Keep track of your investment portfolio by manually adding or removing stocks from your portfolio. Gnus Stock also automatically retrieves the current value of your portfolio based on the current market prices.
  • Customizable: You can customize how Gnus Stock displays information, such as changing the color scheme or formatting the displayed portfolio data.
  • Integration with Gnus: Gnus Stock integrates with Gnus' group mode, allowing you to organize your stocks into groups and browse them in a similar way to your email inbox.
Installation

Gnus Stock is included in the default Emacs distribution since version 27.1, so it should be available out of the box. If you are using an older version of Emacs or want to install a newer version of Gnus Stock, you can install it from the MELPA repository.

To install it using MELPA, add the following code to your Emacs configuration file (~/.emacs.d/init.el):

(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-refresh-contents)
(package-install 'gnus-stock)
Usage

To use Gnus Stock, you need to first load the package by adding this line to your Emacs configuration file:

(require 'gnus-stock)

Then, you can open Gnus Stock by running the command M-x gnus-stock.

Configuration

Gnus Stock can be configured by customizing the group parameters. To customize the parameters, type M-x customize-group gnus-stock.

Some of the parameters that you can customize:

  • gnus-stock-companies: A list of stock symbols that you want to monitor.
  • gnus-stock-update-interval: The interval (in seconds) for retrieving stock quotes.
  • gnus-stock-alert-thresholds: A list of alert thresholds for each stock symbol.
Conclusion

Gnus Stock is a useful tool for Emacs users who are also investors. It allows you to keep track of your investments while you work and can notify you of price changes and other events. With its integration with Gnus, you can easily manage your portfolio alongside your email inbox.