Udemybeginneren

Design, Backtest and Run your Binance Trading Bot on GCP

Learn to build and automate a profitable crypto trading strategy with Python and the Binance API. Backtest & deploy 24/7 on Google Cloud.

28students
5h 21m
Certificate
Antonio de Jesus Campos Rodriguez
Antonio de Jesus Campos RodriguezData Scientist

Course Content

Design, Backtest and Run your Binance Trading Bot on GCP is a beginner-level Udemy course taught by Antonio de Jesus Campos Rodriguez. It runs 5h 21m, is taught in English, and includes a certificate of completion. 28 students have enrolled. It is a paid course, last updated November 2024.

Automated Bitcoin Trading Bot Development with Python & Google Cloud

This comprehensive course guides you through building and deploying an automated Bitcoin (BTCUSD) trading bot using Python, the Ta-Lib library, and the Binance API. You'll learn to combine technical indicators – RSI, Bollinger Bands, and Engulfing Patterns – into a robust trading strategy and rigorously backtest its performance.

Key Skills You'll Acquire:

  • Technical Analysis for Trading: Understand and apply RSI, Bollinger Bands, and Engulfing Patterns to identify potential trading opportunities in the Bitcoin market.
  • Python Programming for Finance: Develop Python scripts to interact with the Binance API, retrieve historical price data, and execute trading orders.
  • Backtesting Strategies: Learn how to backtest your trading strategy to evaluate its profitability and risk profile using historical data.
  • Docker Containerization: Package your Python code into Docker containers for consistent and portable execution.
  • Google Cloud Platform (GCP) Deployment: Deploy your trading bot on Google Cloud using Artifact Registry and Google Compute Engine for 24/7 operation.
  • Automated Trading Bot Development: Build a fully automated trading bot that can execute trades based on predefined conditions.
  • API Integration: Master connecting to and utilizing the Binance API for market data and order execution.
  • Error Handling & Order Management: Implement robust error handling and manage open orders (market and OCO).
  • Data Logging & Analysis: Track trading performance and analyze results using BigQuery for detailed insights.

Course Content Breakdown:

Section 1: Foundations & API Setup

  • Setting up the Development Environment: Create a local environment using Docker with pre-configured libraries (Jupyter Notebook).
  • Binance API Integration: Learn to obtain API credentials, retrieve historical Bitcoin prices (BTCUSDT), and execute market and OCO orders.
  • Order Management: Understand how to check order status, cancel orders, and manage Binance fees.
  • Technical Indicator Fundamentals: Deep dive into RSI, Bollinger Bands, and Engulfing Patterns, including their interpretation and application.
  • Ta-Lib Implementation: Programmatically implement these indicators using Ta-Lib and visualize them with basic plots.

Section 2: Strategy Definition & Visualization

  • Trading Strategy Design: Define a clear trading strategy based on the combined signals from RSI, Bollinger Bands, and Engulfing Patterns.
  • Buy Signal Programming: Develop Python code to generate buy signals based on the defined strategy.
  • Visualizing Indicators: Simultaneously plot Bollinger Bands, RSI, and Engulfing Patterns to identify potential trade setups.
  • Stop-Loss & Take-Profit Implementation: Define and implement stop-loss and take-profit levels based on the visualized indicators.
  • Trade Example Analysis: Review winning and losing trade examples to understand the strategy's behavior.

Section 3: Backtesting on Google Compute Engine

  • Dockerfile & Requirements File: Create a Dockerfile and requirements.txt file to define the environment for your backtesting script.
  • bot_backtesting Script: Develop a Python script (bot_backtesting) that connects to BigQuery for logging and stores backtesting results.
  • BigQuery Integration: Utilize BigQuery to store detailed logs during backtesting and the final results.
  • Fee Handling: Account for Binance trading fees in the backtesting calculations.
  • Open Trade Management: Handle existing open trades during backtesting.
  • Containerization & Deployment: Build a Docker container, push it to Artifact Registry, and deploy it on Google Compute Engine.
  • Backtesting Result Analysis: Analyze the backtesting results to assess the strategy's performance.

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

  • TradingBot Class: Create a Python class (TradingBot) to encapsulate the trading logic.
  • Trading Logic Implementation: Implement the trading logic within the TradingBot class, including signal generation, entry/exit conditions, and order placement.
  • Order Execution: Create market and OCO orders using the Binance API.
  • Order Status Monitoring: Continuously monitor the status of market and OCO orders.
  • Automated Execution: Run the TradingBot class every minute to automatically execute trades.
  • Containerization & Deployment: Build a Docker container, push it to Artifact Registry, and deploy it on Google Compute Engine.

$ whoami — the devs behind tutorialsearch.io

Want AI in your product? Hire the team behind TutorialSearch.io

LLM features, RAG, agents and automation wired into a real product — built by the devs who shipped this site.