How to start an application connected with Bittrex API using python

in hot-to •  8 years ago  (edited)

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.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Why didn´t you pasted the code in your text instead of providing a download link to an RAR file? It would be more interesting, especially for discussing aspects of the code.

Hi, could you please post the code? the rar file does not work anymore!