Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitcoin-cli

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcoin-cli

Bitcoin command line tool that tells you current prices

  • 1.0.1.post2
  • PyPI
  • Socket score

Maintainers
1

Bitcoin

This is a small command line tool that gives you the price of the Bitcoin cryptocurrency. You can use it for every currency as long as coinbase supports it

Installation

# For your user
pip install bitcoin-cli
# Globally
sudo pip install bitcoin-cli

Usage

The default currency is GBP, so by just running bitcoin you will see the price in GBP If you wish to use another currency, use:

bitcoin USD # US Dollars
bitcoin EUR # Euros
bitcoin AUD # Australian Dollars
# etc.

It will return an output like this:

--------------------------------------------------
Current Bitcoin Price in GBP:
£34,557.00
--------------------------------------------------
Price Change over 24 Hours:
Down 11.71%
--------------------------------------------------
Date & Time (BST):
18:55:31, Thursday 13 May 2021
--------------------------------------------------
Source:
Coin Gecko API (coingecko.com)
--------------------------------------------------

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc