API Product
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.
AAPLBUY
Apple Inc.
$500.00
@ $198.49
P&L
+$12.40
Leverage
1x
Status
Open
Not writing raw API code? Build on etoro with MCP, Agent Skills, or no-code platforms like Base44 and Lovable.
A representative API call for this surface. Copy it, paste it, and see a response.
curl -X POST https://public-api.etoro.com/api/v2/trading/execution/demo/orders \
-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 '{
"action": "open",
"transaction": "buy",
"instrumentId": 1001,
"orderType": "mkt",
"amount": 500,
"orderCurrency": "usd",
"leverage": 1,
"stopLossType": "fixed"
}'Example response
{
"token": "066faaee-e1e9-49d2-a568-c6e1cc336ad8",
"orderId": 13902598,
"referenceId": "1c94300c-90aa-4303-9d00-dec376d74efb"
}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.
3 min readTrack positions, P&L, balances, and manage your portfolio programmatically.
4 min readStep-by-step demo Trading API walkthrough.
3 min readMoving from the demo sandbox to the real trading API.
4 min readTrading
Open the API Portal for this surface, start onboarding, or jump into the interactive playground.