Reader small image

You're reading from  Hands-On Bitcoin Programming with Python

Product typeBook
Published inAug 2018
Reading LevelIntermediate
Publisher
ISBN-139781789537000
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
BignumWorks Software LLP
BignumWorks Software LLP
author image
BignumWorks Software LLP

BignumWorks Software LLP is an India-based software consultancy that provides consultancy services in the area of software development and technical training. Our domain expertise includes web, mobile, cloud app development, data science projects, in-house software training services, and up-skilling services
Read more about BignumWorks Software LLP

Right arrow

Installing the Blockchain.info Python library

The following are the steps to install the blockchain Python library:

  1. Open the command-line program on your computer.
  2. Run the pip install blockchain command to install the blockchain library.

The following screenshot shows the installation of bitcoin:

Getting bitcoin exchange rates from Blockchain.info

The following steps shows the method for bitcoin exchange rates:

  1. First, import the exchangerates classes from the blockchain library:
#!/usr/bin/env python

# import blockchain library
from blockchain import exchangerates
  1. Exchange rates define a get_ticker method, which returns the exchange rates data in a dictionary object. Call this method and save the resulting object. The...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-On Bitcoin Programming with Python
Published in: Aug 2018Publisher: ISBN-13: 9781789537000

Author (1)

author image
BignumWorks Software LLP

BignumWorks Software LLP is an India-based software consultancy that provides consultancy services in the area of software development and technical training. Our domain expertise includes web, mobile, cloud app development, data science projects, in-house software training services, and up-skilling services
Read more about BignumWorks Software LLP