Skip to content

Engineering

Coding a Liquidation Sniper V2 Strategy Controller

cover

by Patrick Meier

In this article, we'll explore how to create a custom V2 Controller for Hummingbot to snipe future liquidations on Binance. We'll use a generic controller to demonstrate the correct usage and implementation of this strategy.

Liquidation Sniper Strategy

This strategy shall be able to exploit liquidations that happen regularly in Crypto Futures Markets. When they happen there is a tendency to have a quick rebound of the market that this strategy aims to catch with different order levels used (DCA).

The goal of this trading strategy is to capitalize on the quick rebounds that often follow liquidation events in the cryptocurrency futures market. These liquidations, caused by traders being forcibly closed out of their leveraged positions, create sharp price movements that can temporarily disrupt market equilibrium.

Hummingbot 2024 Technical Roadmap: Innovating for the Future

cover

After a year of significant milestones in 2023, we're excited to announce the 2024 Hummingbot technical roadmap! Our plans are geared towards enhancing the usability, functionality, and scalability of our platform. Building on the emergence of the V2 framework, we are excited to introduce a range of innovative features that will redefine algorithmic trading for our users.

Here what we expect to deliver from a technical standpoint in 2024:

2023: A Year of Innovation at Hummingbot

cover

As we are assembling the roadmap for the new year, it's important to reflect on the strides Hummingbot has made from an engineering standpoint in 2023.

In the 2023 Technical Roadmap, we defined 4 key goals:

  1. Expand Top Exchange Connectors: Update connectors to latest standards, support market orders and lending/staking
  2. Optimize Hummingbot codebase: Streamline maintenance and move Gateway DEX connectors into a separate repo
  3. Expand Scripts Framework: Integrate indicators into the Scripts framework, add more examples, and make them configurable
  4. Support External Modules: Support community-built external modules like the Brokers orchestration repo

Let’s review each of these milestones versus the actual progress made in 2023:

Introducing V2 Strategies

We are excited to formally introduce the V2 Strategy Framework! After months of testing by us and our community, we are confident that using this new framework to design and deploy strategies will improve your algo trading P&L!

V2 strategies bring unparalleled modularity, real-time adaptability, and backtesting capabilities to your trading arsenal, allowing you to design and deploy powerful, custom strategies with only a few tweaks to the template.

Revolutionizing Strategy Design with Modularity and Flexibility

V2 Strategies marks a departure from the more rigid structure of V1 strategies. It's crafted to enable users to create powerful, custom strategies, even those who may not have extensive Python programming experience.

Key Features:

  • Composable: The core of V2 strategies lies in their modularity, allowing users to create complex and customized trading strategies using simple modifications in the provided templates.
  • Real-Time: Leveraging real-time market data, V2 strategies dynamically adjust spreads and shift prices. This responsiveness to market changes optimizes profitability and minimizes risk, surpassing the capabilities of the static V1 strategies.
  • Backtestable: A crucial component of any trading strategy is the ability to test and refine it. V2 strategies excel in this aspect, offering comprehensive backtesting tools that enable detailed simulations with historical market data, accessible through the Dashboard.

Hummingbot Gateway Architecture - Part 2

cover

by Martin Kou

Update (February 2023): Hummingbot Gateway v2 is now available as a standalone Github repository: https://github.com/hummingbot/gateway. Most of the functionality listed in this post has now been implemented, and we welcome contributions from the community.

Introduction

In Part 1 of this series, we have discussed the architectural changes we are making to Hummingbot Gateway v2 to improve its robustness and reliability, to bring it up to the service quality level expected of production trading systems.

Hummingbot Gateway Architecture - Part 1

cover

by Martin Kou

Update (February 2023): Hummingbot Gateway v2 is now available as a standalone Github repository: https://github.com/hummingbot/gateway. Most of the functionality listed in this post has now been implemented, and we welcome contributions from the community.

Introduction

Hummingbot Gateway is a software that allows Hummingbot to connect to decentralized exchanges like Uniswap.

The Hummingbot Gateway is a separate piece of software apart from Hummingbot, because software libraries needed for accessing decentralized exchanges, e.g. the Uniswap Smart Order Router, are usually not written in Python. The gateway provides Hummingbot access to these decentralized exchanges with their differing software stacks, by exposing a secure and unified API interface to Hummingbot. This API interface can also be used by other potential gateway clients, such as proprietary trading software.

Hummingbot Architecture - Part 2

Introduction

In the last article - Hummingbot Architecture - Part 1 - of this series, we've discussed the design motivations behind Hummingbot, the clock and the market connectors. Today, we'll be discussing the architecture behind trading strategies - the very component that decides Hummingbot trades with your money. We will also discuss how you can diagnose problems and debug Hummingbot in live trading.

Technical Deep Dive into the Avellaneda & Stoikov Strategy

cover

In our previous blog post, we introduced the new avellaneda_market_making strategy. This time, we delve deeper into the mathematical aspects of this strategy. We aim to explain how we adapted the original Avellaneda-Stoikov model for the cryptocurrency market and simplified the calculation of key parameters, known as greeks.

This article mathematically substantiates the assumptions and calculations that made the authors' model more suitable for Hummingbot traders.

Original Model and Our Proposed Extensions

Let's start by revisiting the core equations from the Avellaneda-Stoikov paper:

Hummingbot Architecture - Part 1

Introduction

Hummingbot is a modular framework for building highly reliable, and high performance trading bots. While the official Hummingbot package already allows you to run high frequency trading strategies on a number of cryptocurrency exchanges, the underlying framework is freely extensible for building custom strategies, custom market connectors, and more.

In this blog post, we will discuss some of the key architectural features in Hummingbot, and the rationales behind their designs.