How to start an application connected with Bittrex API using python

mondeja(60)
Published in
#hot-to
Words
227
Reading
2 min
Listen
Play
10y

This tutorial is thinked for people who understand the most basic things of python language. We will use for the example the exchange Bittrex. Making requests calls to the Bittrex's API through URLs we can automatize whatever we want.

Python Bittrex

My propose is explain how to start a program connected with Bittrex, like a trading bot or a custom user interface.

1. Download and install Python 2.7.12

https://www.python.org/downloads/

2. Create a folder where we will put the following files:

bittrex.py
data.py

Download here

The first file is the core of our application. Open it with an code editor like IDLE. In data.py there are an tutorial for understand how works.

3. Enable permissions to your account

In your account of Bittrex, go to Settings -> API Keys. To use API Keys, you must have Two-Factor Authentication enabled.

Python Bittrex

Copy and paste your API Key and API secret in the file data.py

4. Python works with modules. Go to bittrex.py and look at first:

Python Bittrex

Urlib, json, time... are modules. This file needs these modules. The instalation of modules depends of your operative system, and there are many ways. The next video help you in Windows:

If you receives an error related with a module, sure you of have it installed.

5. Let's do it.

If you don't understand Python could be more difficult. With study and hard work nothing is impossible.

How to start an application connected with Bittrex API using python | Ecency