Skip to content

2021

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:

Guide to the Avellaneda & Stoikov Strategy

cover

Welcome back to the Hummingbot Academy!

The latest Hummingbot release (0.38) introduces an exciting strategy based on classical academic market-making models. This article will delve into the Avellaneda & Stoikov paper from 2008 and its implementation in Hummingbot.

For those who enjoy in-depth scientific papers, the original publication is readily accessible online or directly here.

Sharing is Caring: 3 Trading Pairs I Picked

cover

by Thomas Yit

Until now, the majority of the articles are about learning and optimizing Hummingbot. Let’s take this to the next level.

Is it possible to profit from market making, and does liquidity rewards help mitigate directional risks? I share the following three markets(live) and performance in an attempt to address these concerns.

A little bit of intro about myself, been a retail trading in forex for a couple of year till i stumbled on Bitcoin back in 2015 which a buyer accept only BTC as payment back then, bought some using localbitcoins and forget about Bitcoin till 2017 ICO crazy period. Over the next few years start to move into crypto trading space and found Hummingbot in May 2020. Ever since, have been running 4-6 instances but not every instance is performing liquidity mining.

Guide to the Spot-Perpetual Arbitrage Strategy

cover

Welcome back to the Hummingbot Academy!

Each Hummingbot release brings exciting new features, and version 0.37 is no exception.

This version introduces two significant enhancements to our favorite algorithmic trading robot:

  • Perpetual Protocol connector: a new decentralized AMM protocol for derivatives markets operating on Ethereum's layer 2 xDai.
  • Spot-perpetual markets arbitrage strategy: an innovative strategy enabling traders to capitalize on price discrepancies between these market types.

In this article, we'll delve into the new spot-perpetual arbitrage strategy, elucidate its logic, and discuss identifying lucrative trading opportunities.

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.

Order Management Configurations

Welcome to our series where we delve into all possible configurations of Hummingbot, exploring the underlying concepts. In this installment, we focus on Order Management, covering:

  • The essentials of order management for market makers;
  • Managing orders using the Hummingbot Client;
  • The rationale behind traders' frequent offer adjustments in order books;
  • Understanding and implementing order optimization;
  • Enhancing order management with scripts.

Missed our previous articles? Catch up here:

Hummingbot vs Haasbot

cover

In the previous comparison blog, we compared Cryptohopper and Hummingbot, and this time, we will continue to compare Haasbot and Hummingbot.

The goal of this article is to test out both bots and help you make better decisions on which software to use for liquidity mining (Remember, you do not need to use Hummingbot to earn liquidity mining rewards). We will make a comparison of their features and run these two bots for liquidity mining to test out the performance.