eToro Public API
Base URL: https://public-api.etoro.com/api/v1
About
This skill allows to interact with the user's eToro account programatically, including executing trades.
Authentication & Required Headers
Keys (request from the user on install)
- Public API Key: application
- User Key: user account
- Environment: Real Portfolio or Virtual Portfolio (real/demo)
Key generation (user-facing):
- Log in to eToro.
- Settings > Trading.
- Create New Key.
- Choose Environment (Real or Virtual/Demo) and Permissions (Read or Write).
- Verify identity and copy the generated User Key.
Headers (every request):
x-request-id: unique UUID per request
x-api-key: Public API Key ()
x-user-key: User Key ()
Example:
curl -X GET "https://public-api.etoro.com/api/v1/watchlists" \
-H "x-request-id: <UUID>" \
-H "x-api-key: <PUBLIC_KEY>" \
-H "x-user-key: <USER_KEY>"
Request Conventions
- All paths below are relative to the Base URL (which already includes
/api/v1).
Example: GET /watchlists means GET https://public-api.etoro.com/api/v1/watchlists.
- Query params go in the URL, path params go in the URL path.
- For query params that are documented as
array, send them as comma-separated values (e.g., instrumentIds=1001,1002).
- Pagination patterns vary by endpoint:
- Search:
pageNumber, pageSize
- People search & trade history:
page, pageSize
- Feeds:
take, offset
- Watchlist items listing:
pageNumber, itemsPerPage
- Casing matters for request bodies:
- Trading execution uses PascalCase fields (e.g.,
InstrumentID, IsBuy, Leverage).
- Market close body uses
InstrumentId (capital I, lowercase d).
- Watchlist items use
ItemId, ItemType, ItemRank.
- Feeds post body uses lower camel (
owner, message, tags, mentions, attachments).
- Some responses may use different casing for similar concepts (e.g.,
instrumentId vs InstrumentID). When extracting IDs, handle both if present.
Demo vs Real Trading
- Use demo execution endpoints (contain
/demo/) for testing and paper trading.
- Use non-demo execution endpoints for real trading.
- For portfolio/PnL:
- Demo:
/trading/info/demo/*
- Real:
/trading/info/portfolio and /trading/info/real/pnl
- Ensure your key environment matches the endpoint (Virtual vs Real). Each User Key is associated with a specific environment.
Use Defaults
- Important: You don't need to specify all parameters. If the user doesn't specify leverage for example, don't send it on the API request.
Quick Start (Demo Trade)
- Resolve
instrumentId using search.
fields is required on search requests.
curl -X GET "https://public-api.etoro.com/api/v1/market-data/search?internalSymbolFull=BTC&fields=instrumentId,internalSymbolFull,displayname" \
-H "x-api-key: <PUBLIC_KEY>" \
-H "x-user-key: <USER_KEY>" \
-H "x-request-id: <UUID>"
- Place a demo market order by amount (PascalCase body):
curl -X POST "https://public-api.etoro.com/api/v1/trading/execution/demo/market-open-orders/by-amount" \
-H "x-api-key: <PUBLIC_KEY>" \
-H "x-user-key: <USER_KEY>" \
-H "x-request-id: <UUID>" \
-H "Content-Type: application/json" \
-d '{
"InstrumentID": 100000,
"IsBuy": true,
"Leverage": 1,
"Amount": 100
}'
Common IDs
instrumentId: from Search or Instruments metadata
positionId: from Portfolio endpoints
orderId: from execution responses or Portfolio endpoints
marketId: used by instrument feed endpoints (typically available in instrument metadata/search fields)
userId: numeric eToro user ID (often referred to as CID in responses; discover via People endpoints/search)
watchlistId: from watchlists list/create endpoints
Market Data (Requests)
Search instruments
GET /market-data/search
- Required query:
fields (comma-separated list of instrument fields to return)
- Optional:
searchText, pageSize, pageNumber, sort
- The Search endpoint supports filtering by fields returned in results; for exact symbol lookup, use
internalSymbolFull as a query param and verify the exact match.
- Recommended minimal
fields when you need IDs: include the instrument identifier (may appear as instrumentId or InstrumentID), plus internalSymbolFull and displayname (and marketId if you plan to use Feeds).
Metadata
GET /market-data/instruments
Filters: instrumentIds, exchangeIds, stocksIndustryIds, instrumentTypeIds.
Prices & history
GET /market-data/instruments/rates
Required: instrumentIds (comma-separated).
GET /market-data/instruments/history/closing-price
Returns historical closing prices for all instruments (bulk).
GET /market-data/instruments/{instrumentId}/history/candles/{direction}/{interval}/{candlesCount}
direction: asc or desc. candlesCount max 1000.
Use only supported interval values (confirm via docs if unsure).
Reference data
GET /market-data/exchanges (optional exchangeIds)
GET /market-data/instrument-types
GET /market-data/stocks-industries (optional stocksIndustryIds)
Trading Execution (Requests)
Requires a key with appropriate permissions (typically Write) and the correct environment (Demo vs Real).
Market Open Orders (by amount)
Endpoints:
POST /trading/execution/demo/market-open-orders/by-amount
POST /trading/execution/market-open-orders/by-amount
Body (PascalCase, JSON):
- Required:
InstrumentID, IsBuy, Leverage, Amount
- Optional:
StopLossRate, TakeProfitRate, IsTslEnabled, IsNoStopLoss, IsNoTakeProfit
Market Open Orders (by units)
Endpoints:
POST /trading/execution/demo/market-open-orders/by-units
POST /trading/execution/market-open-orders/by-units
Body (PascalCase, JSON):
- Required:
InstrumentID, IsBuy, Leverage, AmountInUnits
- Optional:
StopLossRate, TakeProfitRate, IsTslEnabled, IsNoStopLoss, IsNoTakeProfit
Cancel Market Open Orders
Endpoints:
DELETE /trading/execution/demo/market-open-orders/{orderId}
DELETE /trading/execution/market-open-orders/{orderId}
Market Close Orders
Endpoints:
POST /trading/execution/demo/market-close-orders/positions/{positionId}
POST /trading/execution/market-close-orders/positions/{positionId}
DELETE /trading/execution/demo/market-close-orders/{orderId}
DELETE /trading/execution/market-close-orders/{orderId}
Body (JSON):
- Required:
InstrumentId
- Optional:
UnitsToDeduct (number or null)
Partial close: set UnitsToDeduct.
Full close: set UnitsToDeduct to null.
You must close by positionId, not by symbol.
Market-if-touched (Limit) Orders
Endpoints:
POST /trading/execution/demo/limit-orders
DELETE /trading/execution/demo/limit-orders/{orderId}
POST /trading/execution/limit-orders
DELETE /trading/execution/limit-orders/{orderId}
Body (PascalCase, JSON):
- Required:
InstrumentID, IsBuy, Leverage, Rate, and one of Amount or AmountInUnits
- Optional:
StopLossRate, TakeProfitRate, IsTslEnabled, IsNoStopLoss, IsNoTakeProfit
- Do not send:
IsDiscounted, CID
Trading Info & Portfolio (Requests)
GET /trading/info/demo/pnl
GET /trading/info/real/pnl
GET /trading/info/demo/portfolio
GET /trading/info/portfolio
Use these to discover positionId and orderId for close/cancel flows.
GET /trading/info/trade/history
Required: minDate (YYYY-MM-DD). Optional: page, pageSize.
Watchlists (Requests)
User watchlists
GET /watchlists
Optional: itemsPerPageForSingle, ensureBuiltinWatchlists, addRelatedAssets.
GET /watchlists/{watchlistId}
Optional: pageNumber, itemsPerPage.
POST /watchlists
Query: name (required), type, dynamicQuery (optional). (Uses query params, not a JSON body.)
PUT /watchlists/{watchlistId}
Query: newName (required). (Uses query params, not a JSON body.)
DELETE /watchlists/{watchlistId}
Watchlist items (body schema)
WatchlistItemDto fields:
ItemId (required, int)
ItemType (required, string: Instrument or Person)
ItemRank (optional, int)
Endpoints:
POST /watchlists/{watchlistId}/items
PUT /watchlists/{watchlistId}/items
DELETE /watchlists/{watchlistId}/items
Example body:
[
{ "ItemId": 12345, "ItemType": "Instrument", "ItemRank": 1 },
{ "ItemId": 67890, "ItemType": "Instrument", "ItemRank": 2 }
]
Default watchlists
POST /watchlists/default-watchlist/selected-items
GET /watchlists/default-watchlists/items
Optional: itemsLimit, itemsPerPage.
POST /watchlists/newasdefault-watchlist
Query: name (required), type, dynamicQuery (optional).
PUT /watchlists/setUserSelectedUserDefault/{watchlistId}
PUT /watchlists/rank/{watchlistId}
Query: newRank (required).
Public watchlists
GET /watchlists/public/{userId}
GET /watchlists/public/{userId}/{watchlistId}
Feeds (Requests)
Read feeds
GET /feeds/instrument/{marketId}
Optional: requesterUserId, take, offset, badgesExperimentIsEnabled, reactionsPageSize.
GET /feeds/user/{userId}
Optional: requesterUserId, take, offset, badgesExperimentIsEnabled, reactionsPageSize.
Notes:
marketId is associated with an instrument (typically available via instrument metadata/search if you include it in fields).
userId is a numeric user identifier (CID). If you only have a username, discover the numeric ID via People endpoints (see User Info & Analytics).
Create post
POST /feeds/post
- Body fields (lower camel, JSON):
owner (int)
message (string)
tags: { "tags": [{ "name": "...", "id": "..." }] }
mentions: { "mentions": [{ "userName": "...", "id": "...", "isDirect": true }] }
attachments: array of objects with url, title, host, description, mediaType, and optional media.
Minimal example:
{ "message": "Hello eToro feed!" }
Curated Lists & Recommendations (Requests)
GET /curated-lists
GET /market-recommendations/{itemsCount}
Popular Investors (Copiers)
User Info & Analytics (Requests)
GET /user-info/people
Optional: usernames, cidList.
Use this to map username ↔ CID (userId) when you need numeric userId for feeds/public watchlists.
GET /user-info/people/search
Required: period. Optional: page, pageSize, sort, popularInvestor, gainMax, maxDailyRiskScoreMin, maxDailyRiskScoreMax, maxMonthlyRiskScoreMin, maxMonthlyRiskScoreMax, weeksSinceRegistrationMin, countryId, instrumentId, instrumentPctMin, instrumentPctMax, isTestAccount, and other filters.
GET /user-info/people/{username}/gain
GET /user-info/people/{username}/daily-gain
Required: minDate, maxDate, type (Daily or Period).
GET /user-info/people/{username}/portfolio/live
GET /user-info/people/{username}/tradeinfo
Required: period (e.g., LastTwoYears).
Responses & Schemas
For response schemas and full examples, refer to:
1---2name: etoro-api3description: Enables agents to interact with the eToro API to access market data, portfolio and social features, and execute trades programmatically.4---5
6# eToro Public API
7
8Base URL: `https://public-api.etoro.com/api/v1`
9
10## About
11
12This skill allows to interact with the user's eToro account programatically, including executing trades.
13
14## Authentication & Required Headers
15
16**Keys (request from the user on install)**
17
18- **Public API Key**: application
19- **User Key**: user account
20- **Environment**: Real Portfolio or Virtual Portfolio (real/demo)
21
22**Key generation (user-facing):**
23
241. Log in to eToro.
252. Settings > Trading.
263. Create New Key.
274. Choose **Environment** (Real or Virtual/Demo) and **Permissions** (Read or Write).
285. Verify identity and copy the generated User Key.
29
30**Headers (every request):**
31
32- `x-request-id`: unique UUID per request
33- `x-api-key`: Public API Key (<PUBLIC_KEY>)
34- `x-user-key`: User Key (<USER_KEY>)
35
36Example:
37
38```bash
39curl -X GET "https://public-api.etoro.com/api/v1/watchlists" \
40 -H "x-request-id: <UUID>" \
41 -H "x-api-key: <PUBLIC_KEY>" \
42 -H "x-user-key: <USER_KEY>"
43```
44
45## Request Conventions
46
47- **All paths below are relative to the Base URL** (which already includes `/api/v1`).
48 Example: `GET /watchlists` means `GET https://public-api.etoro.com/api/v1/watchlists`.
49- Query params go in the URL, path params go in the URL path.
50- For query params that are documented as `array`, send them as **comma-separated values** (e.g., `instrumentIds=1001,1002`).
51- Pagination patterns vary by endpoint:
52 - Search: `pageNumber`, `pageSize`
53 - People search & trade history: `page`, `pageSize`
54 - Feeds: `take`, `offset`
55 - Watchlist items listing: `pageNumber`, `itemsPerPage`
56- **Casing matters** for request bodies:
57 - Trading execution uses **PascalCase** fields (e.g., `InstrumentID`, `IsBuy`, `Leverage`).
58 - Market close body uses `InstrumentId` (capital I, lowercase d).
59 - Watchlist items use `ItemId`, `ItemType`, `ItemRank`.
60 - Feeds post body uses lower camel (`owner`, `message`, `tags`, `mentions`, `attachments`).
61- Some responses may use different casing for similar concepts (e.g., `instrumentId` vs `InstrumentID`). When extracting IDs, handle both if present.
62
63## Demo vs Real Trading
64
65- Use **demo execution endpoints** (contain `/demo/`) for testing and paper trading.
66- Use **non-demo execution endpoints** for real trading.
67- For portfolio/PnL:
68 - Demo: `/trading/info/demo/*`
69 - Real: `/trading/info/portfolio` and `/trading/info/real/pnl`
70- Ensure your key environment matches the endpoint (Virtual vs Real). Each User Key is associated with a specific environment.
71
72## Use Defaults
73
74- Important: You don't need to specify all parameters. If the user doesn't specify leverage for example, don't send it on the API request.
75
76## Quick Start (Demo Trade)
77
781. **Resolve `instrumentId`** using search.
79 `fields` is required on search requests.
80
81```bash
82curl -X GET "https://public-api.etoro.com/api/v1/market-data/search?internalSymbolFull=BTC&fields=instrumentId,internalSymbolFull,displayname" \
83 -H "x-api-key: <PUBLIC_KEY>" \
84 -H "x-user-key: <USER_KEY>" \
85 -H "x-request-id: <UUID>"
86```
87
882. **Place a demo market order by amount** (PascalCase body):
89
90```bash
91curl -X POST "https://public-api.etoro.com/api/v1/trading/execution/demo/market-open-orders/by-amount" \
92 -H "x-api-key: <PUBLIC_KEY>" \
93 -H "x-user-key: <USER_KEY>" \
94 -H "x-request-id: <UUID>" \
95 -H "Content-Type: application/json" \
96 -d '{
97 "InstrumentID": 100000,
98 "IsBuy": true,
99 "Leverage": 1,
100 "Amount": 100
101 }'
102```
103
104## Common IDs
105
106- `instrumentId`: from Search or Instruments metadata
107- `positionId`: from Portfolio endpoints
108- `orderId`: from execution responses or Portfolio endpoints
109- `marketId`: used by instrument feed endpoints (typically available in instrument metadata/search fields)
110- `userId`: numeric eToro user ID (often referred to as **CID** in responses; discover via People endpoints/search)
111- `watchlistId`: from watchlists list/create endpoints
112
113## Market Data (Requests)
114
115**Search instruments**
116
117- `GET /market-data/search`
118- Required query: `fields` (comma-separated list of instrument fields to return)
119- Optional: `searchText`, `pageSize`, `pageNumber`, `sort`
120- The Search endpoint supports filtering by fields returned in results; for exact symbol lookup, use `internalSymbolFull` as a query param and verify the exact match.
121- Recommended minimal `fields` when you need IDs: include the instrument identifier (may appear as `instrumentId` or `InstrumentID`), plus `internalSymbolFull` and `displayname` (and `marketId` if you plan to use Feeds).
122
123**Metadata**
124
125- `GET /market-data/instruments`
126 Filters: `instrumentIds`, `exchangeIds`, `stocksIndustryIds`, `instrumentTypeIds`.
127
128**Prices & history**
129
130- `GET /market-data/instruments/rates`
131 Required: `instrumentIds` (comma-separated).
132- `GET /market-data/instruments/history/closing-price`
133 Returns historical closing prices for all instruments (bulk).
134- `GET /market-data/instruments/{instrumentId}/history/candles/{direction}/{interval}/{candlesCount}`
135 `direction`: `asc` or `desc`. `candlesCount` max 1000.
136 Use only supported `interval` values (confirm via docs if unsure).
137
138**Reference data**
139
140- `GET /market-data/exchanges` (optional `exchangeIds`)
141- `GET /market-data/instrument-types`
142- `GET /market-data/stocks-industries` (optional `stocksIndustryIds`)
143
144## Trading Execution (Requests)
145
146> Requires a key with appropriate permissions (typically **Write**) and the correct environment (Demo vs Real).
147
148### Market Open Orders (by amount)
149
150Endpoints:
151
152- `POST /trading/execution/demo/market-open-orders/by-amount`
153- `POST /trading/execution/market-open-orders/by-amount`
154
155Body (PascalCase, JSON):
156
157- **Required:** `InstrumentID`, `IsBuy`, `Leverage`, `Amount`
158- **Optional:** `StopLossRate`, `TakeProfitRate`, `IsTslEnabled`, `IsNoStopLoss`, `IsNoTakeProfit`
159
160### Market Open Orders (by units)
161
162Endpoints:
163
164- `POST /trading/execution/demo/market-open-orders/by-units`
165- `POST /trading/execution/market-open-orders/by-units`
166
167Body (PascalCase, JSON):
168
169- **Required:** `InstrumentID`, `IsBuy`, `Leverage`, `AmountInUnits`
170- **Optional:** `StopLossRate`, `TakeProfitRate`, `IsTslEnabled`, `IsNoStopLoss`, `IsNoTakeProfit`
171
172### Cancel Market Open Orders
173
174Endpoints:
175
176- `DELETE /trading/execution/demo/market-open-orders/{orderId}`
177- `DELETE /trading/execution/market-open-orders/{orderId}`
178
179### Market Close Orders
180
181Endpoints:
182
183- `POST /trading/execution/demo/market-close-orders/positions/{positionId}`
184- `POST /trading/execution/market-close-orders/positions/{positionId}`
185- `DELETE /trading/execution/demo/market-close-orders/{orderId}`
186- `DELETE /trading/execution/market-close-orders/{orderId}`
187
188Body (JSON):
189
190- **Required:** `InstrumentId`
191- **Optional:** `UnitsToDeduct` (number or `null`)
192
193Partial close: set `UnitsToDeduct`.
194Full close: set `UnitsToDeduct` to `null`.
195You must close by `positionId`, not by symbol.
196
197### Market-if-touched (Limit) Orders
198
199Endpoints:
200
201- `POST /trading/execution/demo/limit-orders`
202- `DELETE /trading/execution/demo/limit-orders/{orderId}`
203- `POST /trading/execution/limit-orders`
204- `DELETE /trading/execution/limit-orders/{orderId}`
205
206Body (PascalCase, JSON):
207
208- **Required:** `InstrumentID`, `IsBuy`, `Leverage`, **`Rate`**, and **one of** `Amount` **or** `AmountInUnits`
209- **Optional:** `StopLossRate`, `TakeProfitRate`, `IsTslEnabled`, `IsNoStopLoss`, `IsNoTakeProfit`
210- **Do not send:** `IsDiscounted`, `CID`
211
212## Trading Info & Portfolio (Requests)
213
214- `GET /trading/info/demo/pnl`
215- `GET /trading/info/real/pnl`
216- `GET /trading/info/demo/portfolio`
217- `GET /trading/info/portfolio`
218 Use these to discover `positionId` and `orderId` for close/cancel flows.
219- `GET /trading/info/trade/history`
220 Required: `minDate` (YYYY-MM-DD). Optional: `page`, `pageSize`.
221
222## Watchlists (Requests)
223
224**User watchlists**
225
226- `GET /watchlists`
227 Optional: `itemsPerPageForSingle`, `ensureBuiltinWatchlists`, `addRelatedAssets`.
228- `GET /watchlists/{watchlistId}`
229 Optional: `pageNumber`, `itemsPerPage`.
230- `POST /watchlists`
231 Query: `name` (required), `type`, `dynamicQuery` (optional). (Uses query params, not a JSON body.)
232- `PUT /watchlists/{watchlistId}`
233 Query: `newName` (required). (Uses query params, not a JSON body.)
234- `DELETE /watchlists/{watchlistId}`
235
236**Watchlist items (body schema)**
237
238`WatchlistItemDto` fields:
239
240- `ItemId` (required, int)
241- `ItemType` (required, string: `Instrument` or `Person`)
242- `ItemRank` (optional, int)
243
244Endpoints:
245
246- `POST /watchlists/{watchlistId}/items`
247- `PUT /watchlists/{watchlistId}/items`
248- `DELETE /watchlists/{watchlistId}/items`
249
250Example body:
251
252```json
253[
254 { "ItemId": 12345, "ItemType": "Instrument", "ItemRank": 1 },
255 { "ItemId": 67890, "ItemType": "Instrument", "ItemRank": 2 }
256]
257```
258
259**Default watchlists**
260
261- `POST /watchlists/default-watchlist/selected-items`
262- `GET /watchlists/default-watchlists/items`
263 Optional: `itemsLimit`, `itemsPerPage`.
264- `POST /watchlists/newasdefault-watchlist`
265 Query: `name` (required), `type`, `dynamicQuery` (optional).
266- `PUT /watchlists/setUserSelectedUserDefault/{watchlistId}`
267- `PUT /watchlists/rank/{watchlistId}`
268 Query: `newRank` (required).
269
270**Public watchlists**
271
272- `GET /watchlists/public/{userId}`
273- `GET /watchlists/public/{userId}/{watchlistId}`
274
275## Feeds (Requests)
276
277**Read feeds**
278
279- `GET /feeds/instrument/{marketId}`
280 Optional: `requesterUserId`, `take`, `offset`, `badgesExperimentIsEnabled`, `reactionsPageSize`.
281- `GET /feeds/user/{userId}`
282 Optional: `requesterUserId`, `take`, `offset`, `badgesExperimentIsEnabled`, `reactionsPageSize`.
283
284Notes:
285
286- `marketId` is associated with an instrument (typically available via instrument metadata/search if you include it in `fields`).
287- `userId` is a numeric user identifier (CID). If you only have a username, discover the numeric ID via People endpoints (see User Info & Analytics).
288
289**Create post**
290
291- `POST /feeds/post`
292- Body fields (lower camel, JSON):
293 - `owner` (int)
294 - `message` (string)
295 - `tags`: `{ "tags": [{ "name": "...", "id": "..." }] }`
296 - `mentions`: `{ "mentions": [{ "userName": "...", "id": "...", "isDirect": true }] }`
297 - `attachments`: array of objects with `url`, `title`, `host`, `description`, `mediaType`, and optional `media`.
298
299Minimal example:
300
301```json
302{ "message": "Hello eToro feed!" }
303```
304
305## Curated Lists & Recommendations (Requests)
306
307- `GET /curated-lists`
308- `GET /market-recommendations/{itemsCount}`
309
310## Popular Investors (Copiers)
311
312- `GET /pi-data/copiers`
313
314## User Info & Analytics (Requests)
315
316- `GET /user-info/people`
317 Optional: `usernames`, `cidList`.
318 Use this to map **username ↔ CID (userId)** when you need numeric `userId` for feeds/public watchlists.
319- `GET /user-info/people/search`
320 Required: `period`. Optional: `page`, `pageSize`, `sort`, `popularInvestor`, `gainMax`, `maxDailyRiskScoreMin`, `maxDailyRiskScoreMax`, `maxMonthlyRiskScoreMin`, `maxMonthlyRiskScoreMax`, `weeksSinceRegistrationMin`, `countryId`, `instrumentId`, `instrumentPctMin`, `instrumentPctMax`, `isTestAccount`, and other filters.
321- `GET /user-info/people/{username}/gain`
322- `GET /user-info/people/{username}/daily-gain`
323 Required: `minDate`, `maxDate`, `type` (`Daily` or `Period`).
324- `GET /user-info/people/{username}/portfolio/live`
325- `GET /user-info/people/{username}/tradeinfo`
326 Required: `period` (e.g., `LastTwoYears`).
327
328## Responses & Schemas
329
330For response schemas and full examples, refer to:
331
332- https://api-portal.etoro.com/
333- MCP server: `https://api-portal.etoro.com/mcp`