Create an order
This endpoint allows traders to place an order. Leverage, stop-loss, and take-profit settings can be applied. Order size must use exactly one of amount, units, or contracts. For open orders the instrument must be identified by exactly one of symbol or instrumentId - providing both is rejected. A unique X-Request-Id header (GUID) is required for idempotency. Currently only orders to open a position are supported.
Authorizations
eToro OAuth2. Each operation lists the scopes that grant access as separate security requirements (OpenAPI OR semantics): the caller's token only needs ONE of them — you do NOT need all of them. The same scopes back the x-api-key/x-user-key credential pair.
Headers
A unique request identifier.
"52558681-8251-4c6e-859d-94d2f1958b7f"
API key for authentication.
"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"
User-specific authentication key.
"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"
Body
Request payload for creating an order to open or close a position.
The order action type. Possible values: open, close.
open, close "open"
The transaction direction. Possible values: buy, sell, sellShort, buyToCover.
buy, sell, sellShort, buyToCover "buy"
The asset ticker symbol. For open orders provide exactly one of symbol or instrumentId - providing both is rejected.
"AAPL"
The eToro instrument identifier. For open orders provide exactly one of symbol or instrumentId - providing both is rejected.
101
The settlement type. Possible values: cfd, real, realFutures, marginTrade. Required for open orders.
cfd, real, realFutures, marginTrade "cfd"
The order execution type. Possible values: mkt (market), mit (market if touched).
mkt, mit "mkt"
The trigger rate for mit orders. Required for mit orders.
The leverage multiplier to apply. Required for open orders.
2
The monetary amount to invest in the order currency. Mutually exclusive with units and contracts.
1000
The currency for the order amount. Typically usd.
"usd"
The number of units to trade. Mutually exclusive with amount and contracts.
The number of contracts to trade. Mutually exclusive with amount and units.
The stop-loss rate at which the position will automatically close.
1.2
The take-profit rate at which the position will automatically close.
1.5
The stop-loss type. Possible values: fixed, trailing.
fixed, trailing "fixed"
Additional margin to allocate to the position.
List of position IDs to close. Required for close orders.
Response
Order submitted successfully. Returns the created order details.
Response payload after successfully submitting an order.
A tracking token for the order request, used for correlation and debugging.
"066faaee-e1e9-49d2-a568-c6e1cc336ad8"
The unique identifier of the created order.
13902598
The client reference identifier for the order, matching the X-Request-Id header if provided.
"1c94300c-90aa-4303-9d00-dec376d74efb"