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
The eToro API supports two authentication methods. Both use the same base URL and endpoints — only the auth headers differ.
Method 1 — OAuth SSO (Bearer Token)
If the user authenticated via "Login with eToro" (SSO/OAuth), an access_token is available from the token exchange.
Headers (every request):
x-request-id: unique UUID per request
Authorization: Bearer <access_token>
Where access_token comes from:
- User clicks "Login with eToro" → redirects to
https://www.etoro.com/sso/ with PKCE challenge.
- User authenticates on eToro's side.
- eToro redirects back with an authorization
code.
- The code is exchanged for tokens via
POST https://www.etoro.com/sso/oidc/token:
grant_type=authorization_code
code=<auth_code>
redirect_uri=<callback_url>
code_verifier=<pkce_verifier>
- Plus
Authorization: Basic <base64(client_id:client_secret)> header
- Response contains:
access_token — this is the Bearer token for API calls (~2130 chars, JWT)
id_token — JWT with user identity (sub claim = 128-char encoded user ID)
token_type: "Bearer"
expires_in: (varies)
Example:
curl -X GET "https://public-api.etoro.com/api/v1/watchlists" \
-H "x-request-id: <UUID>" \
-H "Authorization: Bearer <access_token>"
Method 2 — Manual API Keys
If the user provides API keys manually (no OAuth), use key-based auth.
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 (<PUBLIC_KEY>)
x-user-key: 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>"
Choosing the Auth Method in Code
When making requests, check which credentials are available:
if (ctx.accessToken) {
// SSO auth — Bearer token from OAuth token exchange
headers["Authorization"] = `Bearer ${ctx.accessToken}`;
} else {
// Manual API key auth
headers["x-api-key"] = ctx.apiKey;
headers["x-user-key"] = ctx.userKey;
}
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 "Authorization: Bearer <access_token>" \
-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 "Authorization: Bearer <access_token>" \
-H "x-request-id: <UUID>" \
-H "Content-Type: application/json" \
-d '{
"InstrumentID": 100000,
"IsBuy": true,
"Leverage": 1,
"Amount": 100
}'
Note: The examples above use OAuth (Bearer token). For API key auth, replace the Authorization header with x-api-key and x-user-key headers instead.
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 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": "...", "isD irect": 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-apps
3version: 1.0.0
4description: Enables agents to interact with the eToro API to access market data, portfolio and social features, and execute trades programmatically. Supports both OAuth SSO and manual API key authentication.
5homepage: https://api-portal.etoro.com/
6metadata:
7 source: https://skillmd.com/skills/modbender/etoro-apps
8 openclaw:
9 emoji: 📈
10 category: finance
11 api_base: https://public-api.etoro.com/api/v1
12---
13
14# eToro Public API
15
16Base URL: `https://public-api.etoro.com/api/v1`
17
18## About
19
20This skill allows to interact with the user's eToro account programatically, including executing trades.
21
22## Authentication & Required Headers
23
24The eToro API supports **two** authentication methods. Both use the same base URL and endpoints — only the auth headers differ.
25
26### Method 1 — OAuth SSO (Bearer Token)
27
28If the user authenticated via **"Login with eToro"** (SSO/OAuth), an `access_token` is available from the token exchange.
29
30**Headers (every request):**
31
32- `x-request-id`: unique UUID per request
33- `Authorization`: `Bearer <access_token>`
34
35Where `access_token` comes from:
36
371. User clicks "Login with eToro" → redirects to `https://www.etoro.com/sso/` with PKCE challenge.
382. User authenticates on eToro's side.
393. eToro redirects back with an authorization `code`.
404. The code is exchanged for tokens via `POST https://www.etoro.com/sso/oidc/token`:
41 - `grant_type=authorization_code`
42 - `code=<auth_code>`
43 - `redirect_uri=<callback_url>`
44 - `code_verifier=<pkce_verifier>`
45 - Plus `Authorization: Basic <base64(client_id:client_secret)>` header
465. Response contains:
47 - `access_token` — **this is the Bearer token for API calls** (~2130 chars, JWT)
48 - `id_token` — JWT with user identity (`sub` claim = 128-char encoded user ID)
49 - `token_type`: `"Bearer"`
50 - `expires_in`: (varies)
51
52Example:
53
54```bash
55curl -X GET "https://public-api.etoro.com/api/v1/watchlists" \
56 -H "x-request-id: <UUID>" \
57 -H "Authorization: Bearer <access_token>"
58```
59
60### Method 2 — Manual API Keys
61
62If the user provides API keys manually (no OAuth), use key-based auth.
63
64**Keys (request from the user on install)**
65
66- **Public API Key**: application
67- **User Key**: user account
68- **Environment**: Real Portfolio or Virtual Portfolio (real/demo)
69
70**Key generation (user-facing):**
71
721. Log in to eToro.
732. Settings > Trading.
743. Create New Key.
754. Choose **Environment** (Real or Virtual/Demo) and **Permissions** (Read or Write).
765. Verify identity and copy the generated User Key.
77
78**Headers (every request):**
79
80- `x-request-id`: unique UUID per request
81- `x-api-key`: Public API Key (`<PUBLIC_KEY>`)
82- `x-user-key`: User Key (`<USER_KEY>`)
83
84Example:
85
86```bash
87curl -X GET "https://public-api.etoro.com/api/v1/watchlists" \
88 -H "x-request-id: <UUID>" \
89 -H "x-api-key: <PUBLIC_KEY>" \
90 -H "x-user-key: <USER_KEY>"
91```
92
93### Choosing the Auth Method in Code
94
95When making requests, check which credentials are available:
96
97```typescript
98if (ctx.accessToken) {
99 // SSO auth — Bearer token from OAuth token exchange
100 headers["Authorization"] = `Bearer ${ctx.accessToken}`;
101} else {
102 // Manual API key auth
103 headers["x-api-key"] = ctx.apiKey;
104 headers["x-user-key"] = ctx.userKey;
105}
106```
107
108## Request Conventions
109
110- **All paths below are relative to the Base URL** (which already includes `/api/v1`).
111 Example: `GET /watchlists` means `GET https://public-api.etoro.com/api/v1/watchlists`.
112- Query params go in the URL, path params go in the URL path.
113- For query params that are documented as `array`, send them as **comma-separated values** (e.g., `instrumentIds=1001,1002`).
114- Pagination patterns vary by endpoint:
115 - Search: `pageNumber`, `pageSize`
116 - People search & trade history: `page`, `pageSize`
117 - Feeds: `take`, `offset`
118 - Watchlist items listing: `pageNumber`, `itemsPerPage`
119- **Casing matters** for request bodies:
120 - Trading execution uses **PascalCase** fields (e.g., `InstrumentID`, `IsBuy`, `Leverage`).
121 - Market close body uses `InstrumentId` (capital I, lowercase d).
122 - Watchlist items use `ItemId`, `ItemType`, `ItemRank`.
123 - Feeds post body uses lower camel (`owner`, `message`, `tags`, `mentions`, `attachments`).
124- Some responses may use different casing for similar concepts (e.g., `instrumentId` vs `InstrumentID`). When extracting IDs, handle both if present.
125
126## Demo vs Real Trading
127
128- Use **demo execution endpoints** (contain `/demo/`) for testing and paper trading.
129- Use **non-demo execution endpoints** for real trading.
130- For portfolio/PnL:
131 - Demo: `/trading/info/demo/*`
132 - Real: `/trading/info/portfolio` and `/trading/info/real/pnl`
133- Ensure your key environment matches the endpoint (Virtual vs Real). Each User Key is associated with a specific environment.
134
135## Use Defaults
136
137- 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.
138
139## Quick Start (Demo Trade)
140
1411. **Resolve `instrumentId`** using search.
142 `fields` is required on search requests.
143
144```bash
145curl -X GET "https://public-api.etoro.com/api/v1/market-data/search?internalSymbolFull=BTC&fields=instrumentId,internalSymbolFull,displayname" \
146 -H "Authorization: Bearer <access_token>" \
147 -H "x-request-id: <UUID>"
148```
149
1502. **Place a demo market order by amount** (PascalCase body):
151
152```bash
153curl -X POST "https://public-api.etoro.com/api/v1/trading/execution/demo/market-open-orders/by-amount" \
154 -H "Authorization: Bearer <access_token>" \
155 -H "x-request-id: <UUID>" \
156 -H "Content-Type: application/json" \
157 -d '{
158 "InstrumentID": 100000,
159 "IsBuy": true,
160 "Leverage": 1,
161 "Amount": 100
162 }'
163```
164
165> **Note:** The examples above use OAuth (Bearer token). For API key auth, replace the `Authorization` header with `x-api-key` and `x-user-key` headers instead.
166
167## Common IDs
168
169- `instrumentId`: from Search or Instruments metadata
170- `positionId`: from Portfolio endpoints
171- `orderId`: from execution responses or Portfolio endpoints
172- `marketId`: used by instrument feed endpoints (typically available in instrument metadata/search fields)
173- `userId`: numeric eToro user ID (often referred to as **CID** in responses; discover via People endpoints/search)
174- `watchlistId`: from watchlists list/create endpoints
175
176## Market Data (Requests)
177
178**Search instruments**
179
180- `GET /market-data/search`
181- Required query: `fields` (comma-separated list of instrument fields to return)
182- Optional: `searchText`, `pageSize`, `pageNumber`, `sort`
183- 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.
184- 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).
185
186**Metadata**
187
188- `GET /market-data/instruments`
189 Filters: `instrumentIds`, `exchangeIds`, `stocksIndustryIds`, `instrumentTypeIds`.
190
191**Prices & history**
192
193- `GET /market-data/instruments/rates`
194 Required: `instrumentIds` (comma-separated).
195- `GET /market-data/instruments/history/closing-price`
196 Returns historical closing prices for all instruments (bulk).
197- `GET /market-data/instruments/{instrumentId}/history/candles/{direction}/{interval}/{candlesCount}`
198 `direction`: `asc` or `desc`. `candlesCount` max 1000.
199 Use only supported `interval` values (confirm via docs if unsure).
200
201**Reference data**
202
203- `GET /market-data/exchanges` (optional `exchangeIds`)
204- `GET /market-data/instrument-types`
205- `GET /market-data/stocks-industries` (optional `stocksIndustryIds`)
206
207## Trading Execution (Requests)
208
209> Requires appropriate permissions (typically **Write**) and the correct environment (Demo vs Real).
210
211### Market Open Orders (by amount)
212
213Endpoints:
214
215- `POST /trading/execution/demo/market-open-orders/by-amount`
216- `POST /trading/execution/market-open-orders/by-amount`
217
218Body (PascalCase, JSON):
219
220- **Required:** `InstrumentID`, `IsBuy`, `Leverage`, `Amount`
221- **Optional:** `StopLossRate`, `TakeProfitRate`, `IsTslEnabled`, `IsNoStopLoss`, `IsNoTakeProfit`
222
223### Market Open Orders (by units)
224
225Endpoints:
226
227- `POST /trading/execution/demo/market-open-orders/by-units`
228- `POST /trading/execution/market-open-orders/by-units`
229
230Body (PascalCase, JSON):
231
232- **Required:** `InstrumentID`, `IsBuy`, `Leverage`, `AmountInUnits`
233- **Optional:** `StopLossRate`, `TakeProfitRate`, `IsTslEnabled`, `IsNoStopLoss`, `IsNoTakeProfit`
234
235### Cancel Market Open Orders
236
237Endpoints:
238
239- `DELETE /trading/execution/demo/market-open-orders/{orderId}`
240- `DELETE /trading/execution/market-open-orders/{orderId}`
241
242### Market Close Orders
243
244Endpoints:
245
246- `POST /trading/execution/demo/market-close-orders/positions/{positionId}`
247- `POST /trading/execution/market-close-orders/positions/{positionId}`
248- `DELETE /trading/execution/demo/market-close-orders/{orderId}`
249- `DELETE /trading/execution/market-close-orders/{orderId}`
250
251Body (JSON):
252
253- **Required:** `InstrumentId`
254- **Optional:** `UnitsToDeduct` (number or `null`)
255
256Partial close: set `UnitsToDeduct`.
257Full close: set `UnitsToDeduct` to `null`.
258You must close by `positionId`, not by symbol.
259
260### Market-if-touched (Limit) Orders
261
262Endpoints:
263
264- `POST /trading/execution/demo/limit-orders`
265- `DELETE /trading/execution/demo/limit-orders/{orderId}`
266- `POST /trading/execution/limit-orders`
267- `DELETE /trading/execution/limit-orders/{orderId}`
268
269Body (PascalCase, JSON):
270
271- **Required:** `InstrumentID`, `IsBuy`, `Leverage`, **`Rate`**, and **one of** `Amount` **or** `AmountInUnits`
272- **Optional:** `StopLossRate`, `TakeProfitRate`, `IsTslEnabled`, `IsNoStopLoss`, `IsNoTakeProfit`
273- **Do not send:** `IsDiscounted`, `CID`
274
275## Trading Info & Portfolio (Requests)
276
277- `GET /trading/info/demo/pnl`
278- `GET /trading/info/real/pnl`
279- `GET /trading/info/demo/portfolio`
280- `GET /trading/info/portfolio`
281 Use these to discover `positionId` and `orderId` for close/cancel flows.
282- `GET /trading/info/trade/history`
283 Required: `minDate` (YYYY-MM-DD). Optional: `page`, `pageSize`.
284
285## Watchlists (Requests)
286
287**User watchlists**
288
289- `GET /watchlists`
290 Optional: `itemsPerPageForSingle`, `ensureBuiltinWatchlists`, `addRelatedAssets`.
291- `GET /watchlists/{watchlistId}`
292 Optional: `pageNumber`, `itemsPerPage`.
293- `POST /watchlists`
294 Query: `name` (required), `type`, `dynamicQuery` (optional). (Uses query params, not a JSON body.)
295- `PUT /watchlists/{watchlistId}`
296 Query: `newName` (required). (Uses query params, not a JSON body.)
297- `DELETE /watchlists/{watchlistId}`
298
299**Watchlist items (body schema)**
300
301`WatchlistItemDto` fields:
302
303- `ItemId` (required, int)
304- `ItemType` (required, string: `Instrument` or `Person`)
305- `ItemRank` (optional, int)
306
307Endpoints:
308
309- `POST /watchlists/{watchlistId}/items`
310- `PUT /watchlists/{watchlistId}/items`
311- `DELETE /watchlists/{watchlistId}/items`
312
313Example body:
314
315```json
316[
317 { "ItemId": 12345, "ItemType": "Instrument", "ItemRank": 1 },
318 { "ItemId": 67890, "ItemType": "Instrument", "ItemRank": 2 }
319]
320```
321
322**Default watchlists**
323
324- `POST /watchlists/default-watchlist/selected-items`
325- `GET /watchlists/default-watchlists/items`
326 Optional: `itemsLimit`, `itemsPerPage`.
327- `POST /watchlists/newasdefault-watchlist`
328 Query: `name` (required), `type`, `dynamicQuery` (optional).
329- `PUT /watchlists/setUserSelectedUserDefault/{watchlistId}`
330- `PUT /watchlists/rank/{watchlistId}`
331 Query: `newRank` (required).
332
333**Public watchlists**
334
335- `GET /watchlists/public/{userId}`
336- `GET /watchlists/public/{userId}/{watchlistId}`
337
338## Feeds (Requests)
339
340**Read feeds**
341
342- `GET /feeds/instrument/{marketId}`
343 Optional: `requesterUserId`, `take`, `offset`, `badgesExperimentIsEnabled`, `reactionsPageSize`.
344- `GET /feeds/user/{userId}`
345 Optional: `requesterUserId`, `take`, `offset`, `badgesExperimentIsEnabled`, `reactionsPageSize`.
346
347Notes:
348
349- `marketId` is associated with an instrument (typically available via instrument metadata/search if you include it in `fields`).
350- `userId` is a numeric user identifier (CID). If you only have a username, discover the numeric ID via People endpoints (see User Info & Analytics).
351
352**Create post**
353
354- `POST /feeds/post`
355- Body fields (lower camel, JSON):
356 - `owner` (int)
357 - `message` (string)
358 - `tags`: `{ "tags": [{ "name": "...", "id": "..." }] }`
359 - `mentions`: `{ "mentions": [{ "userName": "...", "id": "...", "isD irect": true }] }`
360 - `attachments`: array of objects with `url`, `title`, `host`, `description`, `mediaType`, and optional `media`.
361
362Minimal example:
363
364```json
365{ "message": "Hello eToro feed!" }
366```
367
368## Curated Lists & Recommendations (Requests)
369
370- `GET /curated-lists`
371- `GET /market-recommendations/{itemsCount}`
372
373## Popular Investors (Copiers)
374
375- `GET /pi-data/copiers`
376
377## User Info & Analytics (Requests)
378
379- `GET /user-info/people`
380 Optional: `usernames`, `cidList`.
381 Use this to map **username ↔ CID (userId)** when you need numeric `userId` for feeds/public watchlists.
382- `GET /user-info/people/search`
383 Required: `period`. Optional: `page`, `pageSize`, `sort`, `popularInvestor`, `gainMax`, `maxDailyRiskScoreMin`, `maxDailyRiskScoreMax`, `maxMonthlyRiskScoreMin`, `maxMonthlyRiskScoreMax`, `weeksSinceRegistrationMin`, `countryId`, `instrumentId`, `instrumentPctMin`, `instrumentPctMax`, `isTestAccount`, and other filters.
384- `GET /user-info/people/{username}/gain`
385- `GET /user-info/people/{username}/daily-gain`
386 Required: `minDate`, `maxDate`, `type` (`Daily` or `Period`).
387- `GET /user-info/people/{username}/portfolio/live`
388- `GET /user-info/people/{username}/tradeinfo`
389 Required: `period` (e.g., `LastTwoYears`).
390
391## Responses & Schemas
392
393For response schemas and full examples, refer to:
394
395- https://api-portal.etoro.com/
396- MCP server: `https://api-portal.etoro.com/mcp`