[Academy Level 1] B. Introduction to Hummingbot and Hummingbot Liquidity Mining Campaigns

What is Hummingbot?

Hummingbot is a high-frequency algorithmic trading bot written in Python and Cython that allows users to run market making bots on its supported exchanges.

Everything you learned during the previous lessons such as creating an order, cancelling an order, and executing trades can be done with Hummingbot - but a lot of times faster even while you're doing other things.

To use Hummingbot, you can try out our online Test Drive or desktop client app. We will go through the set up in Stage 2: Beginner level.

Hummingbot Liquidity Mining Campaigns

The Hummingbot miner campaigns is a platform for market makers to earn extra rewards by providing liquidity to the markets listed in the platform. You do not have to use the Hummingbot software to be able earn liquidity mining rewards.

What is liquidity mining?

Liquidity mining is the action of providing liquidity by users through creating maker orders and contributing to the order book depth and liquidity of the market.

Liquidity mining rewards are earned by users for creating maker orders for specific tokens and trading pairs

Hummingbot Liquidity mining vs AMMs and other liquidity mining options

Unlike AMM (automated market maker) platforms like Uniswap, Hummingbot focuses on DMM (Decentralized Market Making) in which users can pick and adjust their own strategies to provide liquidity to the market instead of relying on automated market making algorithms. By doing so, you have more flexibility of the how you can adjust your orders in different markets by running your own bots.

Hummingbot vs Uniswap

Hummingbot vs other liquidity mining options

How do Hummingbot liquidity mining campaigns work

In our market campaigns like, you will be able to see the market (token pairs) in which the rewards are given, the exchange you have to be on for market making, as well as the reward amount given to the users. Usually, more well established pairs (eg. with higher CoinMarketCap ranking) have more popularity hence more people mining on those pairs. Hence, the yield you will be able to get is usually smaller. The vice versa is also true: the riskier the pair, the less liquidity provided by the users, hence higher the yield.

image 2022-03-10 205050

How are rewards allocated?

To learn more about how liquidity mining works on Hummingbot you can read the Liquidity mining whitepaper.

To provide a brief overview:

Rewards are allocated according to three main factors 1) time, 2) spread, 3) order sizes.

  1. Weekly Rewards are first equally divided into per-minute snapshot intervals. The total amount allocated to all users for a campaign is the same every minute. The more miners and the bigger order size, the more competitive the market is. The money you get will be less. image 2022-03-10 205730

2.Rewards are allocated into buckets according to spread, with higher rewards allocated for tighter spreads. The tighter your spread is, the more the rewards exponentially. Half of the rewards are allocated to the bid side, and half to the ask side.

HBOT uses a spread density function to reflect the spread into the return function. Higher spreads mean lower risks (fill order) and lower returns. Choosing the right spread is key to balancing risk and returns.

image 2022-03-10 205823

  1. Rewards are finally distributed to users proportional to their open order sizes, NOT filled orders. Larger open orders mean higher returns and risks.

  2. You do not need to use Hummingbot Miner to get the rewards. You can use any bot, or your own program.

How can you maximize profits?

We will discuss more in the beginner level section. It may seem lucrative to invest your entire capital in the currency pair with the highest daily yield and get a higher return by setting a small spread. However, please note that profit and risk are directly proportional. As a result of this aggressive approach, the gains made are likely to be far less than the trading losses caused by frequent trades and trading fees.

A better choice: choose a currency pair with low volatility but good returns; choose a suitable spread and avoid executing orders.

Max spread, mid price, and spread requirements

bid-ask spread

The bid-ask spread is the difference between the highest price a buyer is willing to pay for an asset and the lowest price a seller is willing to accept. These prices are reflected as bids and asks on an order book, placed by market makers as limit orders.

Price takers will place market orders to buy or sell an asset, and in doing so they accept the best bid or best ask determined by the market maker.

If unclear, review Creating orders in an exchange, Maker and Taker Orders in Basic Crypto Trading.

In Hummingbot, the bid_spread is the % how far from the mid price you want your buy orders are placed. While ask_spread is for your sell orders.

Mid price is NOT the price that you see in the middle of the orderbook - that's the last trade price.

Mid price is the average price of the best bid and ask. Which means:

mid_price = (best_bid + best_ask) / 2

And your order prices are calculated as follows:

hbot_bid_price = mid_price * (1 - bid_spread)
hbot_ask_price = mid_price * (1 + ask_spread)

Max spread requirements

To qualify for rewards on liquidity mining campaigns, your open orders (NOT filled orders, and filled orders do not have spread) have to be placed with spreads lower than the max spread requirements listed in each campaign.

The max spread requirements is the max spread for each of the bid and ask side. For example, if the max spread in the campaign list is 1%, it means that the max bid spread is 1%, and the max ask spread is also 1%.

免责声明:位于、、https://miners.hummingbot.io的网站(统称为“网站”)是属于CoinAlpha, Inc.(“公司”、“我们”和“我们的”)的受版权保护的作品。本网站的某些功能可能受附加指南、条款或规则的约束,这些指南、条款或规则将发布在与此类功能相关的网站上。所有此类附加条款、指南和规则均通过引用纳入本条款。这些使用条款(以下简称“条款”)规定了具有法律约束力的条款和条件,以规范您对本网站的使用。访问或使用本网站,即表示贵方接受这些条款(代表贵方自己或贵方所代表的实体),并且贵方声明并保证贵方有权利、权限和能力签订这些条款(代表贵方自己或贵方所代表的实体)。如果贵方未满18岁,则不得访问、使用本网站或接受这些条款。如果贵方不同意这些条款的所有规定,请勿访问和/或使用本网站。