CoinEx LTC/USDT Spread Trading with Fixed-Size Orders
Summary
This introductory CoinEx bot trades LTC against USDT by placing buy and sell orders around the current market. It adjusts the target prices according to the bid-ask spread: wider spreads lead to quotes around the midpoint, while tighter spreads use prices nearer the bid and ask. A fixed order size and price precision are configurable, alongside a minimum spread, quote-distance limit, price offset, and retry delay.
The code monitors open orders, cancels quotes that drift too far from the market, and tracks partially or fully filled buys before attempting a corresponding sale. It also reports balances and accumulated trading profit, and includes a separate-account routine for selling accumulated CET. The document offers implementation detail but no backtest results or evidence of profitability. It does not explain fee treatment, inventory limits, or safeguards against adverse selection, and its account and order handling may depend on the exchange interface. The strategy is presented as an exploratory example rather than a validated trading system.
Key ideas
- The bot changes its buy and sell quotes according to the observed bid-ask spread.
- It uses fixed-size orders and cancels resting quotes when their distance from the market exceeds a configured limit.
- The code tracks buy fills and attempts to sell the acquired amount, including handling partial fills.
- It reports account balances and accumulated profit, but provides no performance evaluation or fee analysis.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.