This document outlines the Margined Protocol (MP) CL MMing vault in response to the Strategic BTC Position for Enhanced Market Liquidity
This strategy would LP ±5% either side of the market price providing a number of key benefits over the static position suggested in the thread above.
In addition we provide an suggestion for the configuration of the positions and are open to further discussion on the strategy.
NOTE: We could deploy this strategy from 18/11/24 onwards.
MP has developed a CL MMing vault for Liquid Staked Derivatives (LSDs) but has extended it to be used in any market.
At a high level it works as follows:
It has the ability to place different amounts of liquidity across the bids and asks, enabling small trades to have a good price but for large trades to to incur more slippage.
As prices move and liquidity is consumed it then repositions the inventory accordingly.
Above we see that liquidity is shifted as the external price moves past a threshold.
Using the spot and external prices as references from which to place limit orders we are able to ensure that assets are never sold below their market rate.
Further, by removing liquidity between bids and asks (at least during the initial phase) enables the spot and external price rate to converge. Note: this assumes the asset's price is set externally and not on-chain.
Over time the two positions should converge and a single sided position will be created in the middle. If positions have met in the middle then the liquidity should only be repositioned if:
If the price moves through liquidity then inventory will become imbalanced as shown below:
As a LP MMing strategy some amount of inventory imbalance should be accepted. However, if the inventory becomes imbalanced past the inventory imbalance threshold
This makes it less likely for liquidity to be consumed on that side, thus incentivising a gradual return to a balanced inventory.
Margined's CL MMing strategy is configurable using the below:
Variable | Definition | Description |
---|---|---|
Spread bids | Spread from top of book for bid orders | |
Spread asks. | Spread from top of book for ask orders. | |
Number of bid orders | Total count of active bid orders in the market | |
Number of ask orders | Total count of active ask orders in the market | |
Liquidity profile array for bids | Array representing percentage bid order liquidity at each price level from best to worst price, e.g., [10, 10, 30, 50] |
|
Liquidity profile array for asks | Array representing percentage ask order liquidity at each price level from best to worst price | |
Spot price | Current price derived from market trades | |
External price source (oracle) | Price obtained from an external oracle | |
Spot price threshold | Threshold level set for spot price | |
External price threshold | Threshold level set for the external oracle price | |
Inventory imbalance threshold | Threshold level of imbalance at which point additional spread is added |
[5, 10, 30, 30, 25]
[5, 10, 30, 30, 25]