curl --request GET \
--url https://public-api.etoro.com/api/v1/trading/info/real/orders/{orderId} \
--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/v1/trading/info/real/orders/{orderId}"
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/v1/trading/info/real/orders/{orderId}', 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/v1/trading/info/real/orders/{orderId}",
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/v1/trading/info/real/orders/{orderId}"
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/v1/trading/info/real/orders/{orderId}")
.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/v1/trading/info/real/orders/{orderId}")
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": 123,
"gcid": 123,
"portfolioId": 123,
"orderId": 123,
"action": "<string>",
"transaction": "<string>",
"type": "<string>",
"etoroOrderTypeId": 123,
"status": {
"id": 123,
"name": "<string>",
"errorCode": 123,
"errorMessage": "<string>"
},
"asset": {
"symbol": "<string>",
"instrumentId": 123,
"currency": "<string>",
"settlementType": "<string>",
"leverage": 123,
"side": "<string>"
},
"orderCurrency": "<string>",
"requestedAmount": 123,
"requestedUnits": 123,
"requestedContracts": 123,
"frozenAmount": 123,
"requestedTriggerRate": 123,
"openStopLossRate": 123,
"openTakeProfitRate": 123,
"stopLossType": "<string>",
"totalCosts": 123,
"positionsToClose": [
123
],
"positionExecutions": [
{
"positionId": 123,
"state": "<string>",
"investedAmountCurrency": 123,
"initialExposureAccountCurrency": 123,
"initialExposureAssetCurrency": 123,
"addedFunds": 123,
"marginAccountCurrency": 123,
"marginAssetCurrency": 123,
"remainingUnits": 123,
"remainingContracts": 123,
"stopLossRate": 123,
"takeProfitRate": 123,
"openingData": {
"openTime": "2023-11-07T05:31:56Z",
"orderId": 123,
"executionTime": "2023-11-07T05:31:56Z",
"units": 123,
"contracts": 123,
"avgPrice": 123,
"avgConversionRate": 123,
"marketSpread": 123,
"markup": 123,
"priceId": 123,
"fees": 123,
"taxes": 123
}
}
],
"requestTime": "2023-11-07T05:31:56Z",
"lastUpdate": "2023-11-07T05:31:56Z",
"openActionType": "<string>",
"requestType": "<string>"
}{
"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
Deprecated: This endpoint is marked deprecated in the etoro Public API Swagger. Prefer the current replacement endpoints where available.
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/v2/trading/info/orders:lookup
Retrieves the current state and execution details of an order submitted for the authenticated real account. Use this endpoint to track whether the order was received, placed, filled, rejected, cancelled, expired, or is still waiting for execution conditions.
curl --request GET \
--url https://public-api.etoro.com/api/v1/trading/info/real/orders/{orderId} \
--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/v1/trading/info/real/orders/{orderId}"
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/v1/trading/info/real/orders/{orderId}', 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/v1/trading/info/real/orders/{orderId}",
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/v1/trading/info/real/orders/{orderId}"
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/v1/trading/info/real/orders/{orderId}")
.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/v1/trading/info/real/orders/{orderId}")
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": 123,
"gcid": 123,
"portfolioId": 123,
"orderId": 123,
"action": "<string>",
"transaction": "<string>",
"type": "<string>",
"etoroOrderTypeId": 123,
"status": {
"id": 123,
"name": "<string>",
"errorCode": 123,
"errorMessage": "<string>"
},
"asset": {
"symbol": "<string>",
"instrumentId": 123,
"currency": "<string>",
"settlementType": "<string>",
"leverage": 123,
"side": "<string>"
},
"orderCurrency": "<string>",
"requestedAmount": 123,
"requestedUnits": 123,
"requestedContracts": 123,
"frozenAmount": 123,
"requestedTriggerRate": 123,
"openStopLossRate": 123,
"openTakeProfitRate": 123,
"stopLossType": "<string>",
"totalCosts": 123,
"positionsToClose": [
123
],
"positionExecutions": [
{
"positionId": 123,
"state": "<string>",
"investedAmountCurrency": 123,
"initialExposureAccountCurrency": 123,
"initialExposureAssetCurrency": 123,
"addedFunds": 123,
"marginAccountCurrency": 123,
"marginAssetCurrency": 123,
"remainingUnits": 123,
"remainingContracts": 123,
"stopLossRate": 123,
"takeProfitRate": 123,
"openingData": {
"openTime": "2023-11-07T05:31:56Z",
"orderId": 123,
"executionTime": "2023-11-07T05:31:56Z",
"units": 123,
"contracts": 123,
"avgPrice": 123,
"avgConversionRate": 123,
"marketSpread": 123,
"markup": 123,
"priceId": 123,
"fees": 123,
"taxes": 123
}
}
],
"requestTime": "2023-11-07T05:31:56Z",
"lastUpdate": "2023-11-07T05:31:56Z",
"openActionType": "<string>",
"requestType": "<string>"
}{
"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
Response
Order information retrieved successfully.
Detailed information about a specific order retrieved via the orders lookup endpoint.