Member-only story

How to build a Crypto Trading Bot Tutorial Part 2: Python-binance, API Keys and Connecting to the Binance Exchange

CyberPunkMetalHead
4 min readFeb 22, 2022

--

This is the second article in a series designed to help you build a crypto trading bot from scratch, with no prior knowledge of Python. So yes, you will be picking up Python in the process. In this article we will look at installing Python-binance through pip, generating Binance API keys and connecting to the Binance Exchange using Python.

If at any point you feel that you’re missing a key piece of the puzzle, including but not limited to: how to install python, what is Pip, what is an IDE and how to install one, make sure to check out part one here.

This tutorial is also available as a video guide if you prefer, otherwise just keep on reading:

How to Generate Binance API Keys

Naturally, the first thing you will need is a Binance account. So if you don’t have one, or you’d rather set up yout bot on a seperate account, go ahead and create one here. You can use my referral link to get 5% off your trading fees. Now let’s generate some API keys.

To get your mainnet keys, navigate over your account, and click on API management. Side note: Mainnet are your live API keys, the ones that give access to live trading. You can also generate…

--

--

CyberPunkMetalHead
CyberPunkMetalHead

Written by CyberPunkMetalHead

x3 Top Writer and co-founder of Algo Trading Platform AESIR. I write about crypto, trading, tech and coding.

Responses (3)