curl --request GET \
--url https://public-api.etoro.com/api/v2/trading/info/orders:lookup \
--header 'x-api-key: <api-key>' \
--header 'x-request-id: <x-request-id>' \
--header 'x-user-key: <api-key>'import requests
url = "https://public-api.etoro.com/api/v2/trading/info/orders:lookup"
headers = {
"x-request-id": "<x-request-id>",
"x-api-key": "<api-key>",
"x-user-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-request-id': '<x-request-id>',
'x-api-key': '<api-key>',
'x-user-key': '<api-key>'
}
};
fetch('https://public-api.etoro.com/api/v2/trading/info/orders:lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://public-api.etoro.com/api/v2/trading/info/orders:lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-request-id: <x-request-id>",
"x-user-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://public-api.etoro.com/api/v2/trading/info/orders:lookup"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "<x-request-id>")
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-user-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://public-api.etoro.com/api/v2/trading/info/orders:lookup")
.header("x-request-id", "<x-request-id>")
.header("x-api-key", "<api-key>")
.header("x-user-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.etoro.com/api/v2/trading/info/orders:lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = '<x-request-id>'
request["x-api-key"] = '<api-key>'
request["x-user-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"accountId": 7765437,
"gcid": 987654321,
"portfolioId": 1,
"orderId": 13902598,
"action": "open",
"transaction": "buy",
"type": "mkt",
"etoroOrderTypeId": 17,
"status": {
"id": 3,
"name": "Filled",
"errorCode": 0,
"errorMessage": null
},
"asset": {
"symbol": "AAPL",
"instrumentId": 101,
"currency": "USD",
"settlementType": "cfd",
"leverage": 2,
"side": "long"
},
"orderCurrency": "usd",
"requestedAmount": 1000,
"requestedUnits": null,
"requestedContracts": null,
"frozenAmount": 1002.5,
"requestedTriggerRate": null,
"openStopLossRate": 1.2,
"openTakeProfitRate": 1.5,
"stopLossType": "fixed",
"totalCosts": 2.5,
"positionsToClose": [],
"positionExecutions": [
{
"positionId": 9001,
"state": "open",
"investedAmountCurrency": 1000,
"initialExposureAccountCurrency": 1000,
"initialExposureAssetCurrency": 1000,
"addedFunds": 0,
"marginAccountCurrency": 1000,
"marginAssetCurrency": 1000,
"remainingUnits": 10.5,
"remainingContracts": 10.5,
"stopLossRate": 1.2,
"takeProfitRate": 1.5,
"openingData": {
"openTime": "2024-01-01T09:00:00Z",
"orderId": 5001,
"executionTime": "2024-01-01T09:00:01Z",
"units": 10.5,
"contracts": null,
"avgPrice": 95.238095,
"avgConversionRate": 1,
"marketSpread": 0.0002,
"markup": 0,
"priceId": 9876543210,
"fees": 2.5,
"taxes": 0
}
}
],
"requestTime": "2024-01-01T09:00:00Z",
"lastUpdate": "2024-01-01T09:00:01Z",
"openActionType": "customer",
"requestType": "byUnits"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Get order information and position details
Rate limit: 60 requests per 60 seconds. This is a shared quota — the same budget is consumed by a group of related endpoints, so calling any of them reduces what is left for the others (you cannot call each at the full rate independently). Endpoints sharing this quota:
GET /api/v1/trading/info/real/close-orders/{orderId}GET /api/v1/trading/info/real/orders/{orderId}
Retrieves comprehensive information about a specific order, including the order status, execution details, and all positions that were opened or closed from this order. This endpoint is essential for tracking order execution and identifying which positions were created as a result of a specific order request. The response includes detailed position information with PositionID values that can be used to query position-specific details. Provide exactly one of orderId or referenceId.
curl --request GET \
--url https://public-api.etoro.com/api/v2/trading/info/orders:lookup \
--header 'x-api-key: <api-key>' \
--header 'x-request-id: <x-request-id>' \
--header 'x-user-key: <api-key>'import requests
url = "https://public-api.etoro.com/api/v2/trading/info/orders:lookup"
headers = {
"x-request-id": "<x-request-id>",
"x-api-key": "<api-key>",
"x-user-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-request-id': '<x-request-id>',
'x-api-key': '<api-key>',
'x-user-key': '<api-key>'
}
};
fetch('https://public-api.etoro.com/api/v2/trading/info/orders:lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://public-api.etoro.com/api/v2/trading/info/orders:lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-request-id: <x-request-id>",
"x-user-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://public-api.etoro.com/api/v2/trading/info/orders:lookup"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "<x-request-id>")
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-user-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://public-api.etoro.com/api/v2/trading/info/orders:lookup")
.header("x-request-id", "<x-request-id>")
.header("x-api-key", "<api-key>")
.header("x-user-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.etoro.com/api/v2/trading/info/orders:lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = '<x-request-id>'
request["x-api-key"] = '<api-key>'
request["x-user-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"accountId": 7765437,
"gcid": 987654321,
"portfolioId": 1,
"orderId": 13902598,
"action": "open",
"transaction": "buy",
"type": "mkt",
"etoroOrderTypeId": 17,
"status": {
"id": 3,
"name": "Filled",
"errorCode": 0,
"errorMessage": null
},
"asset": {
"symbol": "AAPL",
"instrumentId": 101,
"currency": "USD",
"settlementType": "cfd",
"leverage": 2,
"side": "long"
},
"orderCurrency": "usd",
"requestedAmount": 1000,
"requestedUnits": null,
"requestedContracts": null,
"frozenAmount": 1002.5,
"requestedTriggerRate": null,
"openStopLossRate": 1.2,
"openTakeProfitRate": 1.5,
"stopLossType": "fixed",
"totalCosts": 2.5,
"positionsToClose": [],
"positionExecutions": [
{
"positionId": 9001,
"state": "open",
"investedAmountCurrency": 1000,
"initialExposureAccountCurrency": 1000,
"initialExposureAssetCurrency": 1000,
"addedFunds": 0,
"marginAccountCurrency": 1000,
"marginAssetCurrency": 1000,
"remainingUnits": 10.5,
"remainingContracts": 10.5,
"stopLossRate": 1.2,
"takeProfitRate": 1.5,
"openingData": {
"openTime": "2024-01-01T09:00:00Z",
"orderId": 5001,
"executionTime": "2024-01-01T09:00:01Z",
"units": 10.5,
"contracts": null,
"avgPrice": 95.238095,
"avgConversionRate": 1,
"marketSpread": 0.0002,
"markup": 0,
"priceId": 9876543210,
"fees": 2.5,
"taxes": 0
}
}
],
"requestTime": "2024-01-01T09:00:00Z",
"lastUpdate": "2024-01-01T09:00:01Z",
"openActionType": "customer",
"requestType": "byUnits"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Authorizations
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
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
Headers
Query Parameters
Response
Order information retrieved successfully.
Detailed information about a specific order retrieved via the orders lookup endpoint.