Execute and manage trades — real and demo
Open and close positions, place and cancel market and limit orders, and read live or demo PnL, portfolio, orders, and trade history. The Real and Demo APIs share the same shape: demo is a full-fidelity sandbox with simulated balances.
A representative API call for this surface. Copy it, paste it, and see a response.
curl -X POST https://public-api.etoro.com/api/v1/trading/execution/open/demo/by-amount \
-H "x-api-key: $ETORO_API_KEY" \
-H "x-user-key: $ETORO_USER_KEY" \
-H "x-request-id: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"instrumentId": 1001,
"amount": 500,
"isBuy": true,
"leverage": 1
}'These surfaces align with how teams use the Builders Portal — personal investing, shipping apps, or enterprise integrations.
Position management, risk controls, and automated strategy execution.
Track positions, P&L, balances, and manage your portfolio programmatically.
Step-by-step demo Trading API walkthrough.
Moving from the demo sandbox to the real trading API.
Open the API Portal for this surface, start onboarding, or jump into the interactive playground.