The Challenge
Copy trading platforms must monitor master accounts in real-time and replicate trades to follower accounts — often across different trading platforms. Each platform has different APIs, data models, and event systems.
Create copy trading systems that work across MT4, MT5, cTrader, and B2Trader. WebAPI's real-time streaming and unified position management make cross-platform trade copying possible.
Get StartedCopy trading platforms must monitor master accounts in real-time and replicate trades to follower accounts — often across different trading platforms. Each platform has different APIs, data models, and event systems.
The Realtime Service streams position, order, and deal events with consistent data models. The Position Service enables opening and closing trades across any platform. A master trader on MT4 can have followers on MT5, cTrader, and B2Trader.
// Subscribe to master trader's positions
const stream = webapi.realtimeService.Subscribe({
subject: Subject.POSITIONS,
selectors: [Selector.CREATE],
platform: Platform.MT5,
logins: [masterLogin]
});
for await (const event of stream) {
const masterPos = event.position;
// Copy trade to all followers across platforms
for (const follower of followers) {
await webapi.positionService.Open({
platform: follower.platform,
login: follower.login,
symbol: masterPos.symbol,
action: masterPos.action,
volume: calculateVolume(masterPos.volume, follower.ratio)
});
}
}Master trader opens position on any platform
WebAPI Realtime Service detects the new position
Copy engine sends orders to follower accounts
Positions opened across MT4, MT5, cTrader, B2Trader
Followers on each platform
Volume proportional to follower's equity vs master's equity
vol = masterVol × (followerEquity / masterEquity)Same lot size on all followers regardless of equity
vol = fixedLot (e.g. 0.1)Volume scaled by follower's equity
vol = baseVol × (followerEquity / baseEquity)stream positions, orders, deals
open, close, batch operations
trade history and execution details
follower account management
B2Copy processes over 10,000 copied trades daily across MT4, MT5, cTrader, and B2Trader through a single WebAPI integration.
Build cross-platform copy trading with real-time streaming and unified position management across MT4, MT5, cTrader, and B2Trader.
Get Started