This example is for educational purposes only and demonstrates effective strategies for high-frequency market-making schemes. All backtests are based on a 0.005% rebate, the highest market maker rebate available on Binance Futures. See Binance Upgrades USDⓢ-Margined Futures Liquidity Provider Program for more details.
Plain High-Frequency Grid Trading
This is a high-frequency version of grid trading that keeps posting orders on grids centered around the mid-price, maintaining a fixed interval and a set number of grids.High-Frequency Grid Trading with Skewing
By incorporating position-based skewing, the strategy’s risk-adjusted returns can be improved:Key Parameters
- grid_num: Number of price levels on each side
- grid_interval: Price spacing between grid levels
- half_spread: Distance from mid-price to first grid level
- skew: Position-based price adjustment factor
- max_position: Maximum allowed position size
Performance Considerations
Weak Skew (skew = 1)
- More balanced position management
- Higher number of trades
- More stable equity curve
Strong Skew (skew = 10)
- More aggressive position control
- Lower maximum position exposure
- Better Sharpe ratio but lower absolute returns
For generating order latency from the feed data file, which uses feed latency as order latency, please see Advanced Latency Modeling.