Skip to main content
POST

Authorizations

x-api-key
string
header
required

API key of the application. Only valid together with the x-user-key header — the pair is an alternative to OAuth bearer authentication, never sent alongside it. The pair is granted the same permissions the operation's OAuth scopes describe.

Demo credential for trying the API from these docs: lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663

x-user-key
string
header
required

User-specific authentication key. Only valid together with the x-api-key header — the pair is an alternative to OAuth bearer authentication, never sent alongside it.

Demo credential for trying the API from these docs: eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_

Scopes

etoro-public:real:write

Grants access to the 'etoro-public:real:write' scope.

etoro-public:trade.real:write

Grants access to the 'etoro-public:trade.real:write' scope.

Headers

x-request-id
string<uuid>
required

A unique request identifier.

Example:

"bc371625-05fc-44f5-96e8-2e8d1fe9bc21"

Body

application/json
amount
number<decimal>
required

Amount to allocate to the copy, in the account currency. Value must be non-zero. A positive value adds these funds into the copy sub-portfolio; a negative value removes funds from the sub-portfolio. Every change of funds causes a realignment process that adjusts all the positions inside the sub-portfolio to match the parent portfolio proportions.

referenceID
string
required

Caller-supplied operation reference used to poll the outcome. Case-sensitive, URL-safe characters without '/', unique per operation within your account. Not an idempotency key: resubmitting the same value creates a new operation, and status lookups for a reused reference prefer the successful outcome.

Maximum string length: 35
parentCID
integer<int32>

The investor account id to copy: a user or a Smart Portfolio. When mirrorID is not sent, send either parentCID or parentUsername (not both). If you already copy this investor, the request edits that existing copy. Do not send it together with mirrorID or parentUsername; when editing by mirrorID, the investor of that copy is used.

parentUsername
string

The investor's username, as an alternative to parentCID. When mirrorID is not sent, send either parentCID or parentUsername (not both). As with parentCID, if you already copy this investor, the request edits that existing copy. Do not send it together with mirrorID. 1 to 20 characters, with no space at the start or end; case-insensitive.

Required string length: 1 - 20
mirrorID
integer<int32>

Optional. Send it to change an existing copy by its id, as returned in the status response after a successful registration. The request adds or removes funds on that copy and never creates a new one; the copy must belong to the authenticated account.

Required range: x >= 1
mirrorSLPercentage
number<decimal>

Optional stop-loss: the copy closes when its value falls to this percentage of its realized equity. Must be greater than 0 and less than 100, with at most 2 decimal places. On register (mirrorID absent), when a new copy is created and the field is omitted, the platform default stop-loss is applied. On edit (mirrorID present, or parentCID of an investor you already copy, handled as an edit of that copy), it is the new target value, not a change to the current one; when omitted, the stop-loss is left unchanged. On edit, the stop-loss can only be changed together with a funds change. Every funds change recalculates the stop-loss amount based on the copy's value including that change, while the stop-loss percentage stays the same. The stop-loss percentage is applied asynchronously and can be rejected, for example when the new level is outside the copied investor's limits (or the platform defaults if it has none) or, on edit, would immediately close the copy. If the stop-loss is rejected, a new registration creates no copy, while an edit can still apply the funds change and leaves the stop-loss unchanged. After a timeout, check the outcome with GET /api/v2/trading/copy/{referenceId} before resending.

Required range: 0 < x < 100

Response

Request accepted for asynchronous processing

token
string<uuid>
required

Correlation token for the accepted asynchronous operation.