Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypto Terminal

A colorful, interactive command-line tool written in Go for fetching real-time cryptocurrency prices from 10 major exchanges.


Crypto CLI Screenshot

Features

  • Query live prices for any cryptocurrency symbol (uppercase letters only, e.g. BTC, ETH)
  • 10 exchange integrations using public REST APIs — no API keys required
  • Colorful terminal UI with startup banner, exchange loading grid, and fetch spinner
  • Styled live price result table with pair, price, and exchange details
  • Continuous querying in an interactive loop
  • Graceful error handling with HTTP timeouts and clean Ctrl+C exit

Supported Exchanges

Exchange Quote Currency
Binance USDT
Bitget USDT
Bybit USDT
OKX USDT
KuCoin USDT
Gate.io USDT
MEXC USDT
Crypto.com USDT
Kraken USD
Coinbase USD

Installation

Prerequisites

  • Go 1.24 or later

Build from source

  1. Clone this repository:

    git clone https://github.com/yourusername/crypto-cli.git
    cd crypto-cli
  2. Install dependencies:

    go mod download
  3. Run the CLI:

    go run .

    Or build a binary:

    go build -o crypto .
    ./crypto

Usage

  1. Enter a coin symbol (e.g. BTC)
  2. Select an exchange from the list
  3. View the live price in the results table
  4. Repeat for another query, or press Ctrl+C to exit

Example

COIN SYMBOL: BTC
SELECT EXCHANGE: Binance

  ✓ Price received — BTC-USDT via Binance

  ╔══════════════════════════════════════════╗
  ║  📈 LIVE MARKET PRICE                    ║
  ║                                          ║
  ╠══════════════════════════════════════════╣
  ║  Pair       BTC-USDT                     ║
  ║  Price      $60966.780000                ║
  ║  Exchange   Binance                      ║
  ║                                          ║
  ╚══════════════════════════════════════════╝

Project Structure

File Description
main.go Exchange API fetchers, HTTP client, main loop
ui.go Terminal UI — colors, startup, spinner, tables

License

Open source. See repository for license details.

About

A simple and interactive command-line interface (CLI) tool written in Go for fetching real-time cryptocurrency prices from popular exchanges

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages