ICEBERG
The ICEBERG algorithm helps traders place large orders without significantly affecting the market price. It achieves this by breaking down the order into smaller, hidden "child orders."
Here's how it works:
- Hidden Power: The total order size remains hidden, only displaying a user-defined portion (DisplayQty) on the market.
- Smart Slicing: The algorithm splits the large order into smaller child orders, each with the same limit price as the parent order.
- Gradual Execution: These child orders are released one by one, filling the parent order gradually. This helps avoid significant market price movements caused by a single large order.
- Time Constraints: The process continues until the entire order is filled or until a predefined time limit is reached.
Benefits of the ICEBERG Algorithm:
- Reduced Market Impact: By hiding the true order size, this algorithm helps traders avoid pushing the price against them when executing large orders.
- Improved Order Efficiency: The gradual execution helps ensure the order gets filled at a more favorable price compared to a single large order.
In essence, the ICEBERG algorithm allows traders to execute large orders with greater control and potentially minimize the impact on the market price.
import { IcebergOrder } from '@botmain/execution';
const icebergOrder = new IcebergOrder(
symbol: 'ETHUSDT',
side: 'buy',
totalQuantity: 100,
limitPrice: 2500,
displayQuantity: 5,
duration: 86400 // One day
);
await this.tradingApi.sendOrder(icebergOrder);