Skip to content
All library documents

Designing a Crypto Copy-Trading Server with Pause Controls and Size Scaling

Article FMZ digest · Author: 发明者量化-小小梦

Summary

This installment designs the receiving side of a trade synchronization system. It explains how to pause copying through a strategy control and require a password to resume, and how to set a fixed order quantity or scale the quantity received in each signal. It also describes routing spot and futures actions to different order functions and parsing signals that carry the symbol, contract type, direction, and amount.

The example demonstrates the receiver processing entry and closing signals, with a test setup sending trades from a Binance account to an OKEX account. The described tests show a short order and a corresponding close being copied; they are operational demonstrations rather than evidence about trading performance. The design depends on exchange-specific order conventions and library behavior. Fixed sizing or scaling does not by itself ensure that the follower’s exposure matches the source, and the pause control, credentials, signal parsing, and order failures require production safeguards.

Key ideas

  • A receiver can suspend copy trading and require a configured password before resuming it.
  • Signal quantities can be replaced with a fixed amount or multiplied by a scaling ratio, with the two settings treated as exclusive.
  • The receiver parses each signal into a symbol, contract type, direction, and quantity before placing an order.
  • Spot and derivatives actions use different order-handling functions, and exchange quantity conventions can differ.
  • The demonstrated copied entry and close show basic operation but do not establish reliability or profitable trading.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.