Minkang Heo
Sep 13, 2017 · 2 min read

Build a Bitcoin Price bot

The cryptocurrency market is exploding. Bitcoin, Ethereum, and many other alternative coins have attracted a lot of hype as their value skyrocketed in recent years.

Market trade 24 hours a day, seven days a week and there are many cryptocurrency trading platforms.

This tutorial will show you how to build a simple chatbot to get current cryptocurrency price using trading platform APIs. Let’s get started.

Source: pixabya
  1. Requirements
  • Sign up BotHub.Studio account
  • Install SDK and CLI tool of BotHub.Studio
  • Create FB Messenger Bot

If you’re new to develop chatbot using Bothub.Studio, we suggest you take a look at our following tutorial first.

2. Implement API

We’re going to use Bitfinex API to check the current status of Bitcoin, Ethereum.

You can use Bitfinex’s Public APIs for checking the current status of the market without authentication. If you want to build a chatbot that can place exchange orders, you’ll need Bitfinex’s User APIs after signing up.

This tutorial only covers getting up to date cryptocurrency price index, so we’ll use only Bitfinex’s public APIs.

3. Create Chatbot

Let’s get the current price information for Bitcoin(BTC), Ethereum(ETH), Ripple(XRP). Given that there are only three options to choose, providing menu would be good enough then the conversational user interface.

FB Messenger provides a feature named ‘Quick Reply’ which appears prominently at any time while the menu is hidden.

Source: Facebook Developers

We’ll use this feature to help users could choose the currency easily without typing it.

Here’s what FB Messenger looks like following this tutorial.

Do you want to build your own chatbot using Bitfinex’s APIs beyond just checking the current price? Get started now with BotHub.Studio.

4. Reference

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store