Spot Copy Trading by Mirroring Reference Account Holdings
Summary
This document outlines a simple spot-market copy-trading bot that monitors a designated reference exchange account and sends corresponding trades to one or more follower accounts. It requires at least two exchange connections, checks that the reference and follower exchanges are not futures venues, and displays their account balances. At each polling interval, it compares the reference account’s current coin holdings, including frozen holdings, with the saved baseline. A net increase triggers buys on the followers; a decrease triggers sells for the absolute change in holdings.
The example includes a virtual-mode test routine that randomly simulates reference trades. The method infers activity from changes in total holdings rather than copying individual orders, prices, or trade timing. It gives no performance evaluation or handling details for partial fills, differing balances, fees, or exchange errors. The document presents the code as a design example for spot following, not as evidence of a tested live strategy.
Key ideas
- The bot treats the first exchange as the reference and subsequent exchanges as followers.
- It detects net changes in reference coin holdings and mirrors their direction and quantity on followers.
- The implementation checks that all connected venues are spot exchanges.
- A virtual-mode routine can randomly simulate trades for testing.
- The document does not provide performance results or explain how it handles execution mismatches, fees, or partial fills.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.