📁 Strategy Info¶
- Folder: /hummingbot/strategy/spot_perpetual_arbitrage
- Configs: spot_perpetual_arbitrage_config_map.py
- Maintainer: None
🏆 Strategy Tier¶
Community strategies have passed the Minimum Voting Power Threshold in the latest Poll and are included in each monthly release. They are not maintained by Hummingbot Foundation but may be maintained by a community member.
This strategy looks at the price on the spot connector and the price on the derivative connector. Then it calculates the spread between the two connectors. The key features for this strategy are
When the spread between spot and derivative markets reaches a value above
min_divergence, the first part of the operation will be executed, creating a buy/sell order on the spot connector, while opening an opposing long/short position on the derivative connector.
With the position open, the bot will scan the prices on both connectors, and once the price spread between them reaches a value below
min_convergence, the bot will close both positions.
🏦 Exchanges supported¶
- SPOT CLOB CEX
- PERP CLOB CEX
🛠️ Strategy configs¶
||string||True||Enter a spot connector (Exchange/AMM)|
||string||True||Enter the token trading pair you would like to trade on [spot_connector]|
||string||True||Enter a derivative name (Exchange/AMM)|
||string||True||Enter the token trading pair you would like to trade on [derivative_connector]|
||decimal||True||What is the amount of [base_asset] per order?|
||int||1||True||How much leverage would you like to use on the derivative exchange?|
||decimal||1||True||What is the minimum spread between the spot and derivative market price before starting an arbitrage?|
||decimal||0.1||True||What is the minimum spread between the spot and derivative market price before closing an existing arbitrage?|
||decimal||0.05||True||How much buffer do you want to add to the price to account for slippage for orders on the spot market|
||decimal||0.05||True||How much buffer do you want to add to the price to account for slippage for orders on the derivative market|
||float||120||False||How long do you want the strategy to wait to cool off from an arbitrage cycle (in seconds)|
ℹ️ More Resources¶
How to Use the New Spot-perpetual Arbitrage Strategy: Learn how the spot-perpetual arbitrage strategy works and how you can make use of it.
Spot-Perpetual Arbitrage Strategy Demo | Hummingbot Live: A live demo on how you can set parameters to run the spot-perpetual arbitrage strategy
Check out Hummingbot Academy for more resources related to this strategy and others!