Skip to main content
GET
/
api
/
v1
/
market-data
/
instruments
/
history
/
closing-price
Get historical closing prices for all instruments
curl --request GET \
  --url https://public-api.etoro.com/api/v1/market-data/instruments/history/closing-price \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-request-id: <x-request-id>' \
  --header 'x-user-key: <x-user-key>'
[
  {
    "instrumentId": 1002,
    "officialClosingPrice": 175.75,
    "isMarketOpen": true,
    "closingPrices": {
      "daily": {
        "price": 175.75,
        "date": "2025-03-07 00:00:00Z"
      },
      "weekly": {
        "price": 175.75,
        "date": "2025-03-07 00:00:00Z"
      },
      "monthly": {
        "price": 172.22,
        "date": "2025-02-28 00:00:00Z"
      }
    }
  },
  {
    "instrumentId": 999,
    "officialClosingPrice": 68,
    "isMarketOpen": false,
    "closingPrices": {
      "daily": {
        "price": 68,
        "date": "2024-11-16 00:00:00Z"
      },
      "weekly": {
        "price": 68,
        "date": "2024-11-16 00:00:00Z"
      },
      "monthly": {
        "price": -1,
        "date": "0001-01-01 00:00:00Z"
      }
    }
  }
]

Headers

x-request-id
string<uuid>
required

A unique request identifier.

Example:

"bdd164bb-5813-4e30-8f43-2cfc9b4c8c1d"

x-api-key
string<password>
required

API key for authentication.

Example:

"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"

x-user-key
string<password>
required

User-specific authentication key.

Example:

"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"

Response

200 - application/json

Successful retrieval of closing prices

instrumentId
integer

Unique identifier of the instrument

officialClosingPrice
number<float>

Most recent official closing price for the instrument

isMarketOpen
boolean

Obsolete - Do not use

closingPrices
object

Historical closing prices at different time intervals