A Basic Iceberg Order Method for Staged Cryptocurrency Buying
Summary
This introductory execution strategy splits a target cryptocurrency purchase into smaller limit orders to reduce the market impact of a large buy. It sets each bid below the best bid by a configurable depth, varies order size randomly around a chosen average, and calculates the quantity from available quote currency and the remaining purchase budget. The loop checks balances and ticker prices, waits between polls, and cancels an outstanding order if the last price moves sufficiently above its order price. Buying pauses when the order price exceeds a configured ceiling and stops when the calculated order falls below the minimum trade size.
The document explains the motivation and gives formulas, parameters, and an implementation, but includes no execution-quality or backtest results. It is explicitly presented as an unfinished learning example. Its described rules and code should be reviewed carefully: the stated deviation rule is asymmetric for a buy order, and the purchase completion logic does not clearly enforce the stated total quantity limit. Fees, partial fills, exchange constraints, and order-state handling also affect real outcomes.
Key ideas
- The method divides a large intended buy into smaller limit orders to reduce market impact.
- Order price is set below the best bid using a configurable depth, while order size varies around an average.
- A price ceiling, budget, balance, and minimum order size constrain execution.
- An outstanding order may be canceled when price moves far enough above its limit price.
- The example is unfinished and reports no measured execution results; budget and cancellation logic merit review.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.