The CoinSafe coin localization contracts such as BTC, ETH, etc. exist in three contracts at the same time, namely the perpetual BTCUSD_PERP, the current season BTCUSD_200925, the next season BTCUSD_201225.
Perpetual contract can be treated as spot, generally two contracts to do hedging a total of three spreads: the current season - perpetual, the next season - perpetual, the next season - the current season. Butterfly arbitrage need to operate three contracts, the difference is (next quarter - current quarter) - (current quarter - perpetual), that is, the difference = next quarter + perpetual - 2 * current quarter. To go long the spread you need to open long one of the next quarter and perpetual contracts and short 2 of the current quarter contracts.
Strategy parameters
Currency of transaction: the need to exist at the same time the perpetual, the current quarter, the next quarter of the three varieties.
Number of orders: the number of orders per grid.
Grid opening spread: for each deviation from the spread, go long or short by one.
Spread smoothing parameter Alpha: used to calculate the average value of the spread, available by default, you can also backtest.
Iceberg commissioned by the number of sheets: If the number of open positions is too large, in order to reduce the phenomenon of single-leg, you can set the minimum number of sheets each time, the disadvantage is that the grab spreads are not timely. Do not need Iceberg entrusted this parameter settings and the same number of sheets.
If the average of the spread is 100, the current spread is 200, the number of orders is 2, the grid open single spread is 30, then the position at this time: the next quarter empty 6, perpetual empty 6, more than 12 in the current season.
Notes:
Delivery contracts need to be one-way position, can not hold both long and short.
Margin is in full position mode.
The margin is in full position mode. It is not a no-brainer to run the strategy, and it is necessary to understand the principle and test it carefully.
Backtesting is not the same as real trading, no need to over-optimize the parameters.
Grid opening spread to cover the handling fee, such as the handling fee of 12,000, bitcoin 10,000, it is greater than 16.
As we approach settlement, the time difference between the current quarter and the perpetual is widening, and the current quarter is close to the perpetual, which is actually an arbitrage between the next quarter and the perpetual, so we need to stop or observe. The same applies to new contracts.
With IOC orders, the part of the order that cannot be fully filled is canceled directly, without the need to manually cancel orders.
Can be simply modified to current quarter and perpetual or next quarter and perpetual arbitrage.
The strategy does not open and close positions with high frequency, and it is possible that there will be no orders for a day.
The average spread is calculated from the beginning of the run and does not go back in history.
Single-leg situation may exist, can be optimized.
Slippage has no effect on small positions, but large positions need to be optimized, such as iceberg commissions.
Historical data observation
Long spread = Long 1 next quarter + perpetual short 2 current quarter contracts.
Short spread = 1 point short next quarter + perpetual short 2 current quarter contracts
Historical data analysis
The source of profit for Disc Arbitrage is that the next quarter’s contract will fall ahead of the bull to bear panic, the spread widens dramatically, and after the panic is overreacted, the spread returns to its original trajectory.
After the panic is overreacted, the spreads are found to have overreacted and return to their original trajectory, and the spreads are drastically narrowed again, bringing in profits.