在终端中跟踪代币价格
NEVER LEAVE YOUR TERMINAL
my-token (or mt for short) is a CLI tool for those who are both Crypto investors and Engineers, allowing you
to track token prices and changes in your favorite exchanges on the terminal.
# WIPcurl | bash style downloads to /usr/local/bin$ curl -sfL https://raw.githubusercontent.com/polyrabbit/my-token/master/install.sh | bash -s -- -d -b /usr/local/bin$ go get -u github.com/polyrabbit/my-tokenDownload from release page and extract the tarbal into
/usr/bin or your PATH directory.
…BNBUSDT, BTCUSDT from Binance and HTUSDT from Huobi$ mt binance.BNBUSDT binance.BTCUSDT Huobi.HTUSDTHere Binance and Huobi can be replaced by any supported exchanges, and different exchanges use different forms to
express tokens/symbols/markets, refer to their URLs to find the format.
$ mt -r 10 binance.BNBUSDT binance.BTCUSDT Huobi.HTUSDTNOTE: some exchanges has a strict rate limit, too frequent refresh may cause your IP banned by their servers.
$ mt --show Symbol,Price binance.BTCUSDTSee issue #3 for a discussion on this feature.
$ mt -c my_token.example.yamlmy-token can also read options from configuration file, see the attached my_token.example.yaml
for its format. By default my-token searches configuration file my_token.yml in current directory and $HOME, so you
can compose a my_token.yml, place it in your $HOME and just type mt to get all pre-defined prices.
$ # Generate an example config file to my $HOME directory
$ mt --example-config-file=$HOME/my_token.yml
$
$
$ # my-token will search for configuration file "my_token.yml" in current directory and "$HOME" by default
$ mt # <--- This is also the way I used most freqently The MIT License (MIT) - see LICENSE.md for more details
暂无开放 Issues,或尚未同步最近议题。