Hummingbot学院

[Academy Level 2] A. Beginner — Exploring Common strategies

Exploring strategies and configurations


The following pages will help you to explore how you can set up your bot with different strategies and configurations:

  1. Strategies:
    • To explore all the different strategies provided by Hummingbot, you can visit Hummingbot Foundation’s documentation site:

https://hummingbot.org/strategies/

  1. Global Configurations:
    • There are global configurations that apply to most strategies. Learn more about them here:

https://hummingbot.org/global-configs/

Overview of all common strategies


We recommend that you use small amounts of real crypto instead of paper trade to try out the strategies. It is better to run the tests this way than paper trade so you get to look at Hummingbot and the exchange side-by-side, understanding better how the strategy and your configuration works. Paper trade is also like another "market" in our codebase, so you may run into errors or problems when paper trading but not when using a live connector.

To save time, only focus on the top three strategies in ** (pure market making, advanced market making, cross-exchange market making)

Pure Market Making

This is the most commonly used strategy by Hummingbot users. The prompts in the configuration walkthrough during the initial setup in Quickstart Guide are the basic parameters to run the strategy.

This is the simplest of all the strategies. Like in normal trading, you buy and sell assets at a certain price by placing maker orders in the order book.

https://hummingbot.org/strategies/pure-market-making/

Advanced market making

This is still pure_market_making strategy but we call it advanced market making because of the list of advanced strategies Hummingbot users can utilize and play around with.

Over time, we found out that users who put more time and effort into learning the parameters, adjusting their settings from time to time are more profitable compared to when using it out of the box.

Please make sure to fully understand how each advanced parameter works, which parameters don't work well together, their use cases, etc.

https://hummingbot.org/strategy-configs/

https://hummingbot.org/global-configs/

Cross-exchange market making

This is another strategy available to use with Hummingbot. You will need to hold inventory on two exchanges or markets, one where the bot will make a market (maker exchange) and another where the bot will source tand hedge any filled orders (taker exchange).

Cross exchange is a maker-taker strategy. Read more through the docs link and blog below :

https://hummingbot.io/blog/2020-09-what-is-cross-exchange-market-making/

https://hummingbot.org/strategies/cross-exchange-market-making/

Our video is outdated in terms of Hummingbot UI but explains the idea of cross exchange market making strategy.

Perpetual Market Making

Similar to pure market making strategy, Hummingbot continually posts limit bid and ask offers on a market and waits for other market participants ("takers") to fill their orders. In addition to that, position management features are introduced to let users further configure the bot to make managing positions easier and remove the need to manually interact with the derivative exchange through other available platforms to close position. Two(2) position management features are currently available which are the Trailing_stop and Take_profit features. Each feature has different parameters which the bot uses to logically determine when positions would be closed when using that particular feature. In all, both features(Trailing stop and take profit) have the capability of securing profits. It should also be noted that only the trailing stop feature can stop-loss immediately when loss is detected even when trailing hasn’t begun. Unlike trailing stop, take profit feature places a limit order at a profitable price from position entry price which is determined by the spreads for each take profit sides.

You can click the link below on how it works and to know more.

https://hummingbot.org/strategies/perpetual-market-making/

Arbitrage

Similar to cross-exchange market making, you will need to hold inventory on two exchanges (a primary and secondary exchange), in order to be able to trade and capture price differentials (i.e. buy low on one exchange, sell high on the other).

Read more in our blog post below.

https://hummingbot.io/blog/2020-09-what-is-arbitrage/

Arbitrage is a taker-taker strategy because it sits around waiting for an opportunity to "take" orders from both exchanges based on the specified min_profitability value.

https://hummingbot.org/strategies/arbitrage/

Missing some trades

You will sometimes encounter scenarios where you might "miss" a trade. In our example in cross exchange strategy, you may have sold the item but can no longer buy the same one because:

  1. Someone else took the order from STORE B and
  2. The price went up and is no longer profitable

Avellaneda market making

https://hummingbot.io/en/blog/2021-04-avellaneda-stoikov-market-making-strategy/

This strategy implements a market making strategy described in the classic paper High-frequency Trading in a Limit Order Book  written by Marco Avellaneda and Sasha Stoikov. It allows users to directly adjust the risk_factor  (gamma) parameter described in the paper. It also features an order book liquidity estimator calculating the trading intensity parameters (alpha and kappa) automatically. Additionally, the strategy implements an order size adjustment algorithm and its order_amount_shape_factor (eta) parameter as described in Optimal High-Frequency Market Making. The strategy is implemented to be used either in fixed timeframes or to be ran indefinitely.

This strategies dynamically changes the bid and ask spreads based on the market volatility and is great for people who do not have that much time to manage their bots. However, if you are participating in liquidity mining campaigns, it provides less control over the spreads so the rewards earned may be less consistent.

https://hummingbot.org/strategies/avellaneda-market-making/

Celo Arbitrage

The celo_arb strategy is a special case of the normal arbitrage strategy. User can attempt to arbitrage profit between Celo and other exchanges supported by Hummingbot.

https://hummingbot.org/strategies/celo-arbitrage/

AMM Arbitrage

The amm_arb strategy is another special case of the normal arbitrage strategy. In which you can arbitrage with Protocol connectors through gateway and a spot connector.

https://hummingbot.org/strategies/amm-arbitrage/

https://hummingbot.io/en/blog/2021-01-terra-amm-arbitrage-trade

Spot Perpetual Arbitrage

The Spot Perpetual Arbitrage strategy, arbitrages through a futures connector like Binance Futures and a spot connector. You can also simulate trading here by using binance_perpetual_testnet and paper_trade for spot connectors.

https://hummingbot.org/strategies/spot-perpetual-arbitrage/

https://hummingbot.io/en/blog/2021-03-spot-perpetual-protocol-guide

https://www.youtube.com/watch?v=hJPmAy-Ellk

Liquidity Mining Strategy

This strategy's focus is on users who want to do liquidity mining on different pairs, the pairs have to be on the same base or quote. For example FIRO-USDT, AVAX-USDT. It also can adjust the spreads based on the volatility of that certain market.

https://hummingbot.org/strategies/liquidity-mining/

https://www.youtube.com/watch?v=7LQxaE3NtLA

The two most common strategies for beginners

The most common strategies for beginners include the following. We will explain each of the strategies in the coming sections.

  1. Pure Market Making Strategy
    • Pure Market Making Strategy gives you most control over the bot’s certain configurations such as bid and ask spreads and is simple to understand. It is one of the most popular strategies.
  2. Cross exchange market making strategy
    • Cross exchange market making strategy is a strategy that we strongly recommend to beginners because it significantly reduces the risk of market making by greatly reducing miners’ inventory risk, giving users more protection when the tokens drop in value significantly.

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