Bitcoin 101 – Calling All APIs – Coding Live Price Data From Bitcoin Exchanges

15
SHARE

0
0
0
0
0
0
0
0
0

Confused about APIs and JSON? Looking to run an arbitrage business or build a data intensive site? Well this video is for you. This is the first of our videos looking at programming calls for exchange data. In just a few lines of code, we grab the last price from four exchanges (Btc-e, Kraken, Bitstamp and Bitfinex) and pseudo exchange extraordinaire, Coinbase. James walks you through the first steps of building a live feed of this data.

As usual, all our code is on GitHub for you to rip apart and enjoy.
https://github.com/wobine/blackboard101/blob/master/call%20all%20apis%20-%20exchanges.py

Welcome to WBN’s Bitcoin 101 Blackboard Series — a full beginner to expert course in bitcoin. Please like, subscribe, comment or even drop a little jangly in our bitcoin tip jar 1javsf8GNsudLaDue3dXkKzjtGM8NagQe. Thanks, WBN

15 COMMENTS

  1. New to this. After downloading Sublime Text 2 and changing the path to C:/Python34, upon execution of the Build get Invalid Syntax Error, where the comma is at the end of …."Bitstamp Price in USD =", .

  2. How do i compile the .py file? I tried running python file.py in my terminal but it spits out an error below:

    Traceback (most recent call last):
      File "exchange-data.py", line 2, in <module>
        import time, json, requests
    ImportError: No module named requests

  3. Great video! There needs to be an easier way to tip btc. A qr code I can scan with my phone or just by clicking the address, so I don't have to log into my coinbase acct and copy/paste the address I want to send btc to.

  4. Thanks so much for the recent coding videos, James. I've been wanting to learn coding for some time now, but never had an interest that I wanted to apply coding knowledge to until crypto-currencies. Also helps having a teacher with the same interests as me.

LEAVE A REPLY