Socketrade

Use case · Copy trading

Read the source. Send the follower.

A copy-trading product is a loop: see what the source account did, decide what the follower should do, send it, then reconcile. Socketrade gives you the two ends of that loop for MT5 accounts, so you can build the loop and own the risk model.

How it works

Step 1
Connect source and followers

One seat per account. Sources and followers are just accounts with ids.

Step 2
Read the source

Open positions and closed history. Poll, or read history after a known close.

Step 3
Send the follower order

OrderSend with the symbol, volume and side. PositionClose with the ticket.

Step 4
Reconcile

Store your own mapping from source position to follower ticket, and retry safely.

What the API gives you

  • OrderSend, PositionClose and position/history reads for MT5 accounts.
  • Per-account ids, so one key can serve many followers.
  • Live bid/ask ticks for the symbols in the loop.
  • The same calls whether the account is demo or live.

A minimal example

# what the source holds
curl https://api.socketrade.com/v2/acc_source/positions \
  -H "X-API-Key: $SOCKETRADE_KEY"

# what the follower gets
curl -X POST https://api.socketrade.com/v2/acc_follower/OrderSend \
  -H "X-API-Key: $SOCKETRADE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "symbol": "EURUSD", "operation": 0, "volume": 0.02 }'

Honest limits

  • Socketrade does not include a copy engine. Sizing, risk limits, slippage and idempotency are your code.
  • Execution speed depends on the follower's broker, not on the API alone.
  • A WebSocket sends price ticks; positions and history are REST reads.
  • Copying trades carries regulatory and broker terms of its own. Check them before you launch.