πΉFlexible Market Making (FMM)
Holdstation DeFutures Flexible Market Making (FMM) model, inspired by Dodo Proactive Market Making Model, uses funding fees in blocks and applies them universally to all assets, including perpetual futures for commodities, crypto, forex,...
The funding fee structure is simplified with a single smart contract implementing both pricing and funding fee logic, creating a more streamlined and efficient trading experience.
Holdstation FMM model has only one general-purpose trading pool (i.e. one single smart contract) implementing the pricing and funding fee logic.
Holdstation DeFutures FMM algorithm works as follows:
P is used below to represent the current mark price of the asset being traded. The mark price is the reference price for determining profit and loss, and is determined by an oracle (a trusted data source that feeds price information into the blockchain). When the net position is 0 (i.e. the number of long positions equals the number of short positions), the mark price equals the index price fed by the oracle. However, when there is a trade, the mark price can change based on the size and direction of the trade.
x is the total trade size of total position
FMM algorithm maintains equilibrium when the net position is 0 (non long-short users paid funding fee)
The mark price equals the index price fed by the dynamic price feed.
Trades push the mark price toward the specific trading direction.
The price change due to the trade is proportional to the trade size x.
The mark price is pushed proportionally to formula include P (call spread), with a determined by the available open interest
The trading volume pushes the mark price linearly.
The precise collateral size is calculated by the deduce the trading cost (leverage, collateral) - more details available in Protocol Fee
The price spread and the mark price are determined by the total net position.
The funding fee will calculate by individual blocks time, and determine the funding fees when the users close the orders.
Last updated