Create Agent Portfolio (v2)
Creates a new agent-portfolio using scope names. Scopes are specified by name (scopeNames); scope ids are not supported in v2. IMPORTANT: investmentAmountInUsd is the amount deducted from YOUR (the caller’s) account balance to copy-trade this agent-portfolio — it is NOT the agent-portfolio’s own balance. Positions are mirrored proportionally: e.g. if you invest 10,000, each position is copied at 20% of its size into your account.
Headers
A unique request identifier.
"1f7bab86-9687-4f77-9714-7caae8542911"
API key for authentication.
"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"
User-specific authentication key.
"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"
Body
The amount in USD deducted from the CALLER's account balance to copy-trade this agent-portfolio. This is NOT the agent-portfolio's own balance — the agent-portfolio receives a separate fixed virtual balance (returned as agentPortfolioVirtualBalance). Positions are mirrored proportionally: e.g. $2,000 with a $10,000 virtual balance = 20% position sizing.
2000
A unique display name for the agent-portfolio (6-10 characters).
"MyPort1"
A human-readable name for the user token provisioned with the agent-portfolio.
"my-trading-token"
The set of permission scope names to grant to the provisioned user token. Available scopes: etoro-public:trade.real:read, etoro-public:trade.real:write, etoro-public:trade.demo:read, etoro-public:trade.demo:write.
[
"etoro-public:trade.real:read",
"etoro-public:trade.real:write"
]An optional description of the agent-portfolio's purpose or strategy.
"My trading portfolio"
An optional set of IPv4 addresses allowed to use the provisioned user token.
["192.168.1.1"]An optional expiration date and time (UTC) for the provisioned user token.
"2026-12-31T23:59:59Z"
Response
Agent-portfolio and user token created successfully
The unique identifier of the newly created agent-portfolio.
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
The display name assigned to the agent-portfolio.
"MyPort1"
The GCID associated with the agent-portfolio.
12345678
The fixed virtual balance (in USD) that the agent-portfolio was funded with. The investmentAmountInUsd used to copy is proportional to this balance.
10000
The Trading API mirror ID for this agent-portfolio's copy trade.
12345
The user tokens generated during agent-portfolio creation.