Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Mop to monitor stock prices under the Linux command line

2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to use Mop to monitor stock prices under the Linux command line". In daily operation, I believe that many people have doubts about how to use Mop under the Linux command line to monitor stock prices. Xiaobian consulted all kinds of data and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to use Mop to monitor stock prices under the Linux command line". Next, please follow the editor to study!

It's usually nice to have a hidden income, especially if you can easily coordinate part-time and full-time jobs. If you use a networked computer for your daily work, trading stocks is a popular option to earn extra income.

But at present, only a few stock monitoring software can be run on Linux, most of which are based on graphical interface. What if you are an Linux expert and spend a lot of time working on a computer without a graphical interface? Is there nothing you can do? No, there are still some command-line stock tracking tools, including Mop, which we will talk about in this article.

Mop

Mop, as mentioned above, is a tool for continuously displaying and updating information about US stocks and independent stocks from the command line. What is realized in GO language is the wisdom crystallization of Michael Dvorkin.

Download and install

Because this project is implemented using GO, the only step you need to do is to install this programming language on your computer. Here are the steps to install GO on Debian systems, such as Ubuntu:

Sudo apt-get install golang mkdir ~ / workspaceecho 'export GOPATH= "$HOME/workspace" > > ~ / .bashrcsource ~ / .bashrc

After GO is installed, the next step is to install the Mop tools and configure the environment. All you need to do is run the following command:

Sudo apt-get install git go get github.com/michaeldv/mopcd $GOPATH/src/github.com/michaeldv/mopmake installexport PATH= "$PATH:$GOPATH/bin"

When you are finished, you can run the following command to execute Mop:

Cmd

Characteristics

When you run Mop for * times, you will see output similar to the following:

As you can see, this output-- periodic automatic refresh-- contains information about major exchanges and individual stocks.

Add and delete stocks

Mop allows you to easily add / remove individual stock information from the output list. To add, all you have to do is press "+" and enter the stock name. For example, the following figure is to add Facebook (FB) to the list.

I press the "+" key, and a column with the text "Add tickers:" appears, prompting me to add the stock name-- I add FB, and then press enter. The output list is updated, and the new stocks I added appear on the list:

Similarly, you can use the "-" key and provide the stock name to delete a stock.

Group according to price

There is another way to group stocks: according to the rise and fall of their share prices, all you have to do is press the "g" button. Next, stocks will be grouped to show: rising stocks will be shown in green font together, while falling stocks will be shown in black font.

As follows:

Column sort

Mop also allows you to change the collation according to different column types. This usage requires you to press "o" (this command sorts by default using the values of the * column), and then use the left and right keys to select the column you want to sort. Press enter to reorder the content when you are finished.

For example, the screenshot below is sorted alphabetically according to the * * column of the output.

Note: for better understanding, compare it with the previous screenshot.

Other options

Other available options include "p": suspend market and stock information updates, "Q" or "esc" to exit the command line program, "?" Displays the help page.

Conclusion

Mop is a basic stock monitoring tool that doesn't provide many features, only what it claims to be. Obviously, this tool is not for professional stock traders, but only provides you with a decent option to track stock information on a command-line machine.

At this point, the study on "how to use Mop to monitor stock prices under the Linux command line" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 203

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report