Luno Blog

To the moon: the future of money

Back to Blog

The Luno order book in a spreadsheet

Luno Team
1 minute read

If you're a trader, looking for a simple way to get the Luno order book —the list of all bids and asks on the Luno Exchange— into Google Sheets or Excel, we've got a simple solution for you.

order-book

Simply make a copy of this Google spreadsheet and select the appropriate currency pair tab at the bottom of the page.

Deep dive

Interested in knowing how it was done?

Most spreadsheets only support ImportHTML, ImportTABLE and ImportXML; none of which will work for our data (JSON).

To get ImportJSON working:

  1. Grab this ImportJSON script (by Chris Keller)
  2. Add it to Google Sheets under Tools > Script editor
  3. Use the following function
    =ImportJSON("https://api.mybitx.com/api/1/orderbook?pair=XBTMYR")
  4. Be sure to select the right currency pair, above is for Malaysian ringgit
  5. Set the appropriate execution times for refreshing the script

If you're interested in building Bitcoin into your applications, head over to the Luno API.

Avatar Luno Team
Author

Luno Team

It’s never too late to get started.
Buy, store and learn about Bitcoin and Ethereum now.

Desktop Icon Apple App Store Logo Google Play Store Logo