How to Use MyToken: Your CLI Tool for Crypto Tracking

Aug 8, 2021 | Blockchain

If you’re both a crypto investor and an engineer, tracking token prices can be a breeze with MyToken, a Command Line Interface (CLI) tool designed just for you! In this article, we’ll walk you through the installation, usage, and troubleshooting of MyToken. So, grab your terminal and let’s dive in!

What is MyToken?

MyToken, often abbreviated as mt, is a powerful CLI tool that allows you to monitor token prices and their changes across multiple exchanges right from your terminal. With features such as auto-refresh, support for over 12 exchanges, and proxy-aware HTTP requests, it’s your go-to tool for real-time crypto price tracking.

Features of MyToken

  • Auto-refresh on a specified interval for live updates
  • Proxy-aware HTTP requests to access blocked exchanges
  • Real-time prices from over 12 exchanges

Supported Exchanges

Installation

Installing MyToken is straightforward. Choose from one of the methods below to get started:

Using Homebrew

For those familiar with Homebrew, the installation process is on its way!

Using cURL

bash
$ curl -sfL https://raw.githubusercontent.com/polyrabbit/my-token/master/install.sh | bash -s -- -d -b /usr/local/bin

Using Go (Version 1.16+)

bash
$ go get -u github.com/polyrabbit/my-token

Manually Download

Download from the release page and extract the tarball to your /usr/bin or your PATH directory.

Usage

Once installed, you can start tracking prices. The general usage command looks like this:

$ mt --help

This prompts the following options:

  • -v, –version: Show version number
  • -d, –debug: Enable debug mode
  • -l, –list-exchanges: List supported exchanges
  • -r, –refresh int: Auto refresh on specified seconds
  • -c, –config-file string: Config file path
  • –example-config-file string: Generate example config file
  • -s, –show strings: Show specific columns
  • -p, –proxy string: Proxy for sending HTTP requests
  • -t, –timeout int: HTTP request timeout in seconds

Example Commands

To display the latest market prices for specific tokens, use:

bash
$ mt binance.BNBUSDT binance.BTCUSDT huobi.HTUSDT

To enable auto-refresh every 10 seconds, use:

bash
$ mt -r 10 binance.BNBUSDT binance.BTCUSDT huobi.HTUSDT

To show specific columns, execute:

bash
$ mt --show Symbol,Price binance.BTCUSDT

Troubleshooting Tips

If you encounter any issues while using MyToken, here are a few troubleshooting steps to consider:

  • Check Your Internet Connection: Ensure your device is connected to the internet.
  • Update Your Tool: Make sure you are using the latest version of MyToken by checking the MyToken repository.
  • Rate Limits: If you notice an error while fetching data, it may be due to hitting the exchange’s rate limit. Try refreshing after a few seconds.
  • Permission Issues: If you encounter permission errors, ensure that you have the necessary permissions to execute scripts in the directory.

For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.

Conclusion

At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

Stay Informed with the Newest F(x) Insights and Blogs

Tech News and Blog Highlights, Straight to Your Inbox