Skip to content

pelbyl/conv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

conv

CLI currency converter (fiat ↔ crypto) using CoinMarketCap API.

Install

go install github.com/pelbyl/conv/cmd/conv@latest

Setup

conv config set api-key <YOUR_COINMARKETCAP_API_KEY>
conv config set base-url https://pro-api.coinmarketcap.com
conv config set timeout 30s
conv config set provider coinmarketcap

Usage

# Convert by symbol
conv 100 USD BTC

# Convert by provider ID
conv --id 100 2781 1

# JSON output
conv --json 100 USD BTC

# Get currency info
conv info BTC

About

CLI currency converter (fiat ↔ crypto).

Resources

Stars

Watchers

Forks

Packages

No packages published