Skip to content

Rami-Majdoub/crypto-fiat-coingecko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

installation

npm install -g crypto-fiat-coingecko

token symbol (API id)

token symbol

get 1 token price in usd

crypto-fiat-coingecko --tokens="ethereum"
# 1 ETH        = 1938.54 USD

get multiple token prices in usd

crypto-fiat-coingecko --tokens="bitcoin, ethereum, matic-network"
# 1 ETH        = 1938.54 USD
# 1 MATIC      = 0.812917 USD
# 1 BTC        = 30339 USD

1 BTC = ? ETH

crypto-fiat-coingecko --tokens="bitcoin:eth"
# 1 BTC        = 15.65162 ETH

1 ETH = ? EUR

crypto-fiat-coingecko --tokens="ethereum:eur"
# 1 ETH        = 1724.9 EUR

List of supported currencies