Companies Home Search Profile

Design, Backtest and Run your Binance Trading Bot on GCP

Focused View

5:21:19

0 View
  • 1 -Introduction Sections and Contents.mp4
    06:33
  • 1 -Binance API Credentials.mp4
    04:02
  • 2 -Creating Local Environment Using Docker.mp4
    14:30
  • 3 -Extraction of Historical Prices.mp4
    06:54
  • 4 -Data Preprocessing.mp4
    04:32
  • 5 -Filters for BTCUSDT.mp4
    02:43
  • 6 -Types of Orders.mp4
    01:37
  • 7 -Getting Order Id and Order Status.mp4
    06:13
  • 8 -Executing Market Order and OCO Order.mp4
    10:30
  • 9 -Bollinger Bands Review.mp4
    05:26
  • 10 -Bollinger Bands Plot.mp4
    04:24
  • 11 -RSI Review.mp4
    03:37
  • 12 -RSI Plot.mp4
    03:40
  • 13 -Engulfing Pattern Review.mp4
    05:03
  • 14 -Engulfing Pattern Plot.mp4
    05:02
  • 1 -Describing the Strategy.mp4
    02:36
  • 2 -Programming the Buy Signal.mp4
    06:36
  • 3 -Plotting Simultaneously Bollinger Bands.mp4
    06:09
  • 4 -Plotting Simultaneously Vertical Lines.mp4
    04:13
  • 5 -Plotting Simultaneously RSI.mp4
    03:11
  • 6 -Plotting Simultaneously Engulfing Pattern.mp4
    03:52
  • 7 -Defining Stoploss and Takeprofit.mp4
    08:11
  • 8 -A Couple Examples of Winning Losing Trades.mp4
    05:33
  • 1 -Dockerfile and Requirements.mp4
    04:21
  • 2 -Libraries and Authentication.mp4
    04:24
  • 3 -Functions for Technical Indicators.mp4
    07:43
  • 4 -Main Function An overview of the Steps.mp4
    03:33
  • 5 -Main Function Setting Global Variables.mp4
    04:03
  • 6 -Main Function Defining Entry Price, Stoploss Price and Takeprofit Price.mp4
    01:55
  • 7 -Main Function When Stoploss and Takeprofit Are Achieved.mp4
    02:22
  • 8 -Main Function Which One Happened First.mp4
    05:32
  • 9 -Repeating Several Steps (Basics Section).mp4
    06:44
  • 10 -Looping the Main Function.mp4
    10:34
  • 11 -Creating Column Fee.mp4
    02:52
  • 12 -Creating Column Is Open.mp4
    04:27
  • 13 -Saving Results to BigQuery.mp4
    02:28
  • 14 -Fixing Typos of Script.mp4
    05:11
  • 15 -Build Container of Backtesting Script.mp4
    02:23
  • 16 -Push Container to Artifact Registry.mp4
    02:08
  • 17 -Run On Google Compute Instance.mp4
    04:09
  • 18 -Resizing the Instance.mp4
    03:11
  • 19 -Verifying Backtesting Results.mp4
    04:39
  • 1 -Dockerfile and Requirements.mp4
    02:09
  • 2 -Class TradingBot Init Function.mp4
    08:54
  • 3 -Class TradingBot Functions for Technical Indicators.mp4
    00:51
  • 4 -Class TradingBot Function for Preprocessing.mp4
    01:36
  • 5 -Class TradingBot Function to Build Columns.mp4
    02:38
  • 6 -Class TradingBot Function to Set Entry Price, Takeprofit and Stoploss.mp4
    06:27
  • 7 -Class TradingBot Function to Create Order.mp4
    03:46
  • 8 -Class TradingBot Function to Create OCO Order.mp4
    02:54
  • 9 -Class TradingBot Function to Cancel Order.mp4
    02:03
  • 10 -Class TradingBot Function to Update Order Status.mp4
    05:02
  • 11 -Class TradingBot Function to Update OCO Order Status.mp4
    06:59
  • 12 -Class Run Function Calling Functions for Preprocessing, Building and Status.mp4
    03:26
  • 13 -Class Run Function Defining Conditions to Enter Trade.mp4
    03:51
  • 14 -Class Run Functions Cases for Status of Order.mp4
    03:26
  • 15 -Class Run Function Calling Function to Create OCO Order.mp4
    04:12
  • 16 -Class Run Function Case No Signal.mp4
    02:31
  • 17 -Running the Class Every Minute.mp4
    01:23
  • 18 -Fixing Typos.mp4
    03:12
  • 19 -Build Container for Trading Bot.mp4
    01:29
  • 20 -Push Container to Artifact Registry.mp4
    01:46
  • 21 -Create Instance on Compute Engine.mp4
    03:46
  • 22 -Running on Local Machine.mp4
    01:31
  • 23 -Results After Running Trading Bot.mp4
    11:15
  • 1 -Install Notepad.mp4
    01:51
  • 2 -Install SDK.mp4
    02:36
  • 3 -Install Docker.mp4
    03:47
  • 4 -Enable Compute Engine, Artifact Registry and BigQuery.mp4
    02:30
  • 5 -Create Json Service Account.mp4
    02:19
  • 6 -Connection Python to BigQuery.mp4
    07:52
  • 7 -SDK Permisisons for Gmail and Docker.mp4
    01:30
  • 8 -SDK Permission for Artifact Registry.mp4
    02:31
  • 9 -SDK Permission for Repository in Artifact Registry.mp4
    03:30
  • Description


    Create a trading strategy using Binance API and Python. Backtest and run it 24/7 on Google Cloud Platform

    What You'll Learn?


    • How to execute Market Orders and OCO Orders using Binance API
    • Combine technical indicators to build a trading strategy
    • Backtest your trading strategy to check if it really works
    • Build a Docker container with your Python script and push it to Google Cloud
    • Create an instance in Google Compute Engine to run your backtest
    • Running your trading bot 24/7 on Google Cloud Compute Engine

    Who is this for?


  • Python developers interested in trading bots and cryptocurrencies.
  • Traders with programming skills.
  • What You Need to Know?


  • Python is strongly recommended.
  • Some basic knowledge of Docker and Google Cloud.
  • Some familiarity with technical indicators would be useful.
  • Some basic knowledge of crypto and Binance.
  • More details


    Description

    Description

    In this course you will learn an example of how to combine three technical indicators (RSI, Bollinger Bands and Engulfing Pattern) to define a trading strategy for Bitcoin (BTCUSD) using Python, Ta-Lib and Binance API. You will perform a backtesting of this strategy to see if it is a successful strategy or not. The execution of the backtesting will take several hours, so you will learn how to containerize your Python script using Docker and how to push it to Google Cloud Platform, specifically how to push the container to Artifact Registry and then run the container on Google Compute Engine. Finally, you will see how to run your trading bot 24/7 on Google Cloud again by using Docker, Artifact Registry and Google Compute Engine.

    Overview of the contents

    Section 1: Basics

    • Create local environment for our experiments using Docker (a Jupyter notebook with specific libraries).

    • Usage of Binance API: getting credentials, extraction of historical prices, checking filters for BTCUSDT, executing market and OCO orders, getting the id and status of an order. Also canceling an order.

    • Reviewing RSI, Bollinger Bands and Engulfing Pattern.

    • Programming them using Ta-Lib and building some basic plots.

    Section 2: Defining and Visualizing the Trading Strategy

    • Describe the trading strategy.

    • Programming the buy signal.

    • Plotting simultaneously the Bollinger Bands, RSI and Engulfing Pattern.

    • Based on previous plot, define the stoploss and takeprofit.

    • Check a couple examples (a winning trade and a losing trade).

    Section 3: Backtesting the Trading Strategy on Google Compute Engine

    • Creation of Dockerfile, requirements.txt and the main Python script (bot_backtesting).

    • The bot_backtesting script Includes a connection to BigQuery to save logs during the execution and to save the final result at the end of the execution. Also it will handle Binance fees and any existing open trades.

    • In bot_backtesting script, construct the main function (compute_sl_tp) steps:

          1 Browsing for buy signals.

          2 Setting entry, takeprofit and stoploss prices.

          3 Determine when we reach each one of them.

          4 Which one happened first.

          5 Retrieve additional information.

    • Building container with Docker, push it to Artifact Registry and run it on Google Compute Engine.

    • Analyze backtesting results.

    Section 4: Building and Running the Trading Bot on Google Compute Engine.

    • Creation of Dockerfile, requirements.txt and the main script (main py) which includes a class called TradingBot.

    • The class will handle buy signals. Also it will define the entry, takeprofit and stoploss prices, estimated fees and returns, and whether we have an existing open trade or not.

    • The class will define the required conditions to enter a trade.

    • It will create market and OCO orders. Also it will check and update the status of both market and OCO orders.

    • Running the class TradingBot every minute.

    • Building container with Docker, push it to Artifact Registry and run it on Google Compute Engine. Also see how to run it on local machine.

    • Results after running trading bot.

    Section 5: Appendix

    • Installing basic tools: Notepad++, Google Cloud SDK, Docker.

    • Enable Google Cloud components: Compute Engine, Artifact Registry and BigQuery

    • Create Json Service Account for connection from Python to BigQuery.

    • Provide additional permissions to SDK: Gmail, Docker, Artifact Registry and repositories in Artifact Registry.

    Who this course is for:

    • Python developers interested in trading bots and cryptocurrencies.
    • Traders with programming skills.

    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Category
    Students take courses primarily to improve job-related skills.Some courses generate credit toward technical certification. Udemy has made a special effort to attract corporate trainers seeking to create coursework for employees of their company.
    • language english
    • Training sessions 74
    • duration 5:21:19
    • Release Date 2024/12/05