Skip to content

GetCopyTradeLinks

Endpoint

GET /copytrade/trade-links

Authorization

Requires SESSION_CUSTOMER.

Description

Returns trade links where either master_login or follower_login belongs to the authenticated customer.

Trade links map a master order to the copied follower order. state = 2 (FAILED) is a retained diagnostic link for a failed copy attempt and does not mean a follower order was successfully created. Customer results include links where either the master or follower login is owned by that customer.

The endpoint uses the standard table filter payload. Supported request fields:

  • limit
  • offset
  • where
  • whereNot
  • whereIn
  • whereNotIn
  • whereBetween
  • whereNotBetween
  • orderBy

The response is returned as a table: structure, rows, count.

Response

{
  "structure": [
    "id",
    "subscription_id",
    "master_login",
    "follower_login",
    "master_order",
    "follower_order",
    "symbol",
    "cmd",
    "volume",
    "state",
    "created_time",
    "updated_time"
  ],
  "rows": [
    [1, 10, 100001, 100002, 50001, 60001, "EURUSD", 0, 10000, 0, 1778160000, 1778160000]
  ],
  "count": 1
}

symbol, cmd, and volume are resolved from the linked master order, with fallback to the follower order if the master order is not available.

Errors

HTTP Error Description
401 INVALID_CUSTOMER_SESSION Customer session is missing or invalid
400 INVALID_DATA Filter payload is invalid