
Hello, my name is Robert, I am a Full Stack Developer and in this course I will show you how to create a bot in the Python programming language that places positions ( long and short ) and order (take profits and stop loss) on the Binance Platform in the Futures Market with Leverage based on live Telegram messages. I hope you like it and find it useful!
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development.
What is Python used for?
- Data analysis and machine learning
- Web development
- Automation or scriptiong
- Software testing and prototyping
- Everyday tasks
In this lecture I will show you how to install Python and how to add Python folder in the environment variables to can execute python script in CMD ( Command Prompt ).
In this lecture I will show you how to install the needed packages, the short way is to download the requirements.txt file attached in this lecture and to open a terminal and type pip install -r requirements.txt, the file needs to be in the actually path.
In this lecture I will show you in a big picture the project structure!
I prefer to write the code in Visual Studio Code and after that to open a Command Prompt, navigate to the file and simply type ,,python {name_of_the_file}.py'' but, you can install an IDE that can run python files inside as example I can give you my favorite PyCharm.
You need to install the auto-py-to-exe package with ,,pip install auto-py-to-exe'' and after that just type in Command Prompt ,,auto-py-to-exe'' choose the file you want to convert and also choose the output folder and that it!
Attention you need to have installed the colorama package to work!
You don't need to install or to import the Input package because Python comming with it!
You have to import the getpass package but the usage is the same like the input package.
You don't need to install or to import the timestamp or the datetime packages because Python comming with it!
You don't need to install or to import any package because Python comming with it!
Navigate to https://my.telegram.org, login, click to API development tools, create an app and after that you will get the api_id and api_hash.
Navigate to https://web.telegram.org, login, click on a group and after that you will see in the url some digits starting with minus, just copy it, that's it, simple!
You have the source code attached to this lecture!
I attached in this lecture the base code for threading in python, don't forget to import the Thread from threading!
I attached in this lecture the base code for split function, in the next lecture we will discuss about the check exit points function!
I attached in this lecture the base code for check exit points function and also the entire logic with the telegram message received!
*REMINDER* - Don't forget to check the Enable Futures option!
Read a little bit the documentation regarding the HMAC-SHA256 attached in this lecture!
I attached in this lecture the base code regarding how to send public request!
The Binance Futures Base API Url is: 'https://fapi.binance.com', I attached in this lecture the base code for how to get your account USDT balance!
I attached in this lecture the base code for how to get the exchange informations!
I attached in this lecture the base code for how to get the tick size for a specific symbol!
I attached in this lecture the base code for how to get the min quantity size for a specific symbol!
I attached in this lecture the base code for how to set the leverage on a specific symbol!
*REMEIDER* For the SHORT Positions we set SELL as type and for LONG Positions we set BUY as type, I attached the base code on this lecture for how to open a position!
*REMEIDER* For the SHORT Positions we set BUY as type and for LONG Positions we set SELL as type, I attached the base code on this lecture for how to open a take profit order!
*REMEIDER* For the SHORT Positions we set BUY as type and for LONG Positions we set SELL as type, I attached the base code on this lecture for how to open a stop loss order!
I attached the base code in this lecture for how we can check every 60 seconds the open orders and to close it when one of them the stop loss or take profit/s executed for a specific symbol!
I attached in this lecture the final code for the entire project, I hope you like it and find it useful!
In this course i will tech you how to create a bot (automated script) in Python programming language for Binance platform on Futures Market API who will place positions (long or short) and orders (take proft/s and stop loss if you choose in the menu to do that) with leverage based on live Telegram messages (signals). You don't need experience with Python or with Binance Futures API or with Telegram API because I will tech you from scratch how they works. In the future you can subscribe to a VIP Signals group on Telegram, get the group_chat_id and when a signal / message is received the bot will automatically place positions and orders. This course have 6 sections, section 1 Getting Started, section 2 The Basics On Python, section 3 The Basics On Telegram API, section 4 Advanced In Python, section 5 Binance Futures API and the last section, section 6 Final Project. Along the way we will learn some advanced things in Python such as Threading because this is the main task, to use Threads in Python because maybe sometime you give or receive from a VIP Signals group multiple messages / signals and you want to place positions and orders for all the signals at the same time and this thing is possible just with the help of Threads. If you have any questions or problems feel free to ask, I will do my best to answer immediately.